CN106648400B - Touch data reporting method and electronic equipment - Google Patents

Touch data reporting method and electronic equipment Download PDF

Info

Publication number
CN106648400B
CN106648400B CN201510746767.3A CN201510746767A CN106648400B CN 106648400 B CN106648400 B CN 106648400B CN 201510746767 A CN201510746767 A CN 201510746767A CN 106648400 B CN106648400 B CN 106648400B
Authority
CN
China
Prior art keywords
touch
type
event
data
processing unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510746767.3A
Other languages
Chinese (zh)
Other versions
CN106648400A (en
Inventor
陈苑锋
钟光华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Device Co Ltd
Original Assignee
Huawei Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Device Co Ltd filed Critical Huawei Device Co Ltd
Priority to CN201510746767.3A priority Critical patent/CN106648400B/en
Publication of CN106648400A publication Critical patent/CN106648400A/en
Application granted granted Critical
Publication of CN106648400B publication Critical patent/CN106648400B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/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

Abstract

The embodiment of the invention discloses an electronic device and a method for reporting touch data, wherein the method comprises the following steps: the method comprises the steps that a first processing unit receives touch data reported by a touch screen, wherein the first processing unit comprises a touch type recognition module and a touch gesture recognition module; the touch type identification module identifies the type of the touch event according to the touch data; if the type of the touch event is a first type event, the touch type identification module reports the touch data to the touch gesture identification module; and if the type of the touch event is a second type event, the touch type identification module reports the touch data to the touch gesture identification module and a second processing unit, wherein the second processing unit is used for executing the operation corresponding to the touch gesture. According to the scheme, the operation load and the operation power consumption of the second processing unit can be reduced, the smoothness of system touch operation is improved, and the touch operation experience of a user is improved.

Description

Touch data reporting method and electronic equipment
Technical Field
The embodiment of the invention relates to the technical field of touch, in particular to a method for reporting touch data in electronic equipment and the electronic equipment.
Background
With the development of smart phones, a capacitive Touch screen (TP for short) is widely used, and more mobile phones are applied to replacing key operations with Touch operations, such as left-hand drawing operation, right-hand drawing operation, up-drawing operation, down-drawing operation, page enlargement, page reduction, page rotation and the like.
When a user operates a mobile phone with a touch screen, it is desirable that the touch operation be fast and smooth. For example, when the user is sliding the screen, the user expects the sliding operation to achieve a feeling of real dragging, i.e., the response speed of the sliding operation is as fast as possible. However, in order to achieve the goal of faster and better response speed, a Central Processing Unit (CPU) has to maintain a higher operating frequency to process the touch operation of the user, which results in higher power consumption of the system.
Disclosure of Invention
The embodiment of the invention provides an electronic device and a method for reporting touch data in the electronic device, which can improve the smoothness of system touch operation and improve the touch operation experience of a user.
In a first aspect, a method for reporting touch data in an electronic device is disclosed, where the method includes:
the method comprises the steps that a first processing unit receives touch data reported by a touch screen, wherein the first processing unit comprises a touch type recognition module and a touch gesture recognition module;
the touch type identification module identifies the type of the touch event according to the touch data;
if the type of the touch event is a first type event, the touch type identification module reports the touch data to the touch gesture identification module;
if the type of the touch event is a second type event, the touch type identification module reports the touch data to the touch gesture identification module and a second processing unit;
the touch gesture recognition module is used for recognizing a touch gesture corresponding to the touch data, and the second processing unit is used for executing an operation corresponding to the touch gesture.
With reference to the first aspect, in a first possible implementation manner of the first aspect, the touch data includes coordinate data of a touch point detected by the touch screen on the touch screen of the electronic device, and the identifying, by the touch type identifying module according to the touch data, the type of the touch event specifically is:
the touch type identification module identifies the type of the touch event according to touch data including touch point coordinate data, wherein the touch point coordinate data are coordinate data of N continuous touch points, and N is an integer greater than or equal to 2.
With reference to the first aspect, in a second possible implementation manner of the first aspect, the touch gesture recognition module is further configured to report the touch gesture recognized according to the touch data to the second processing unit.
With reference to the first possible implementation manner of the first aspect, in a third possible implementation manner of the first aspect, the touch type identifying module identifies, according to the coordinate data of the touch point, that a touch speed of a user is greater than a preset condition, and the type of the touch event is a first type event, where the touch speed refers to a distance that a touch point continuously moves on the touch screen in unit time.
With reference to the first possible implementation manner of the first aspect, in a fourth possible implementation manner of the first aspect, the touch type identifying module identifies that a touch speed of a user is less than a preset condition according to the coordinate data of the touch point, and the second processing unit determines that a user interface touched by the user needs to report position information of the touch point, where the type of the touch event is a second type event, where the touch speed refers to a distance that the touch point continuously moves on the touch screen in unit time.
With reference to the second possible implementation manner of the first aspect, in a fifth possible implementation manner of the first aspect, the second processing unit is configured to perform an operation corresponding to the touch gesture, specifically: and the second processing unit redraws the user interface of the electronic equipment according to the touch gesture and the touch point coordinate data.
In a second aspect, an electronic device is disclosed, the electronic device comprising: the touch screen comprises a first processor, a second processor and a touch screen; the touch screen is used for generating touch data according to touch operation of a user;
the first processor is used for receiving touch data reported by the touch screen, and comprises a touch type identification module and a touch gesture identification module;
the touch type identification module is used for:
identifying the type of the touch event according to the touch data;
reporting the touch data to the touch gesture recognition module under the condition that the type of the touch event is a first type event;
reporting the touch data to the touch gesture recognition module and a second processor under the condition that the type of the touch event is a second type event;
the touch gesture recognition module is used for recognizing a touch gesture corresponding to the touch data;
wherein the second processor is configured to perform an operation corresponding to the touch gesture.
With reference to the second aspect, in a first possible implementation manner of the second aspect, the touch data includes coordinate data of a touch point detected by the touch screen on the touch screen of the electronic device, and the identifying, by the touch type identifying module, a type of the touch event according to the touch data specifically includes:
the touch type identification module is used for identifying the type of a touch event according to touch data including touch point coordinate data, wherein the touch point coordinate data are continuous coordinate data of N touch points, and N is an integer greater than or equal to 2.
With reference to the second aspect, in a second possible implementation manner of the second aspect, the touch gesture recognition module is further configured to report the touch gesture recognized according to the touch data to the second processor.
With reference to the first possible implementation manner of the second aspect, in a third possible implementation manner of the second aspect, the touch type identifying module is specifically configured to identify, according to the coordinate data of the touch point, that a touch speed of a user is greater than a preset condition, and the type of the touch event is a first type event, where the touch speed refers to a distance that a touch point continuously moves on the touch screen in unit time.
With reference to the first possible implementation manner of the second aspect, in a fourth possible implementation manner of the second aspect, the touch type identifying module is specifically configured to identify that a touch speed of a user is smaller than a preset condition according to the coordinate data of the touch point, and the second processor determines that a user interface touched by the user needs to report position information of the touch point, where the type of the touch event is a second type event, where the touch speed refers to a distance that the touch point continuously moves on the touch screen in unit time.
With reference to the second possible implementation manner of the second aspect, in a fifth possible implementation manner of the second aspect, the executing, by the second processor, the operation corresponding to the touch gesture specifically includes: and the second processor is used for redrawing the user interface of the electronic equipment according to the touch gesture and the touch point coordinate data.
In a third aspect, an electronic device is disclosed, the electronic device comprising:
the touch screen comprises a first processing unit and a second processing unit, wherein the first processing unit is used for receiving touch data reported by the touch screen and comprises a touch type identification module and a touch gesture identification module;
the identification unit is used for identifying the type of the touch event according to the touch data by the touch type identification module;
the first reporting unit is used for reporting the touch data to the touch gesture recognition module by the touch type recognition module if the type of the touch event is a first type event;
the second reporting unit is used for reporting the touch data to the touch gesture recognition module and the second processing unit by the touch type recognition module if the type of the touch event is a second type event;
the touch gesture recognition module is used for recognizing a touch gesture of a user, and the second processing unit is used for executing an operation corresponding to the touch gesture.
With reference to the third aspect, in a first possible implementation manner of the third aspect, the touch data includes coordinate data of a touch point detected by the touch screen on the touch screen of the electronic device, and the identification unit is specifically configured to:
the touch type identification module identifies the type of the touch event according to touch data including touch point coordinate data, wherein the touch point coordinate data are coordinate data of N continuous touch points, and N is an integer greater than or equal to 2.
With reference to the third aspect, in a second possible implementation manner of the third aspect, the touch gesture recognition module is further configured to report the touch gesture recognized according to the touch data to the second processing unit.
With reference to the first possible implementation manner of the third aspect, in a third possible implementation manner of the third aspect, the electronic device further includes:
and the first judging unit is used for identifying that the touch speed of the user is greater than a preset condition according to the touch point coordinate data by the touch type identification module, and the type of the touch event is a first type event, wherein the touch speed refers to the distance of the continuous movement of the touch point on the touch screen in unit time.
With reference to the first possible implementation manner of the third aspect, in a fourth possible implementation manner of the third aspect, the electronic device further includes:
and the second judging unit is used for identifying that the touch speed of the user is smaller than a preset condition according to the coordinate data of the touch point by the touch type identification module, and judging that the user interface touched by the user needs to report the position information of the touch point by the second processing unit, wherein the type of the touch event is a second type event, and the touch speed refers to the continuous moving distance of the touch point on the touch screen in unit time.
With reference to the second possible implementation manner of the third aspect, in a fifth possible implementation manner of the third aspect, the second processing unit is configured to perform an operation corresponding to the touch gesture specifically: and the second processing unit is used for redrawing the user interface of the electronic equipment according to the touch gesture and the touch point coordinate data.
A fourth aspect of embodiments of the present invention provides a computer readable storage medium storing one or more programs, the one or more programs comprising instructions, which when executed by a portable electronic device comprising a touch screen and a plurality of application programs, cause the portable electronic device to perform the method according to any one of the possible implementations of the first aspect to the fifth aspect.
Optionally, the second processor is a main processor. The second processing unit is a main processing unit of the electronic device.
Optionally, the touch type identification module reports a flag bit or a status bit to the second processing unit, where the flag bit or the status bit is used to identify the touch gesture.
In the foregoing technical solution, the method for reporting touch data in an electronic device provided in the embodiments of the present invention can reduce an operation load and an operation power consumption of a second processing unit, improve smoothness of a system touch operation, and improve a touch operation experience of a user.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic diagram of a method for reporting touch data according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of another electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some embodiments, but not all embodiments, of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
When a user operates an electronic device with a touch screen, it is desirable that the touch operation be fast and smooth. In order to quickly respond to the touch operation of the user, a common processing method for touch data in the industry is that a touch screen generates touch data based on the touch operation of the user and reports the touch data to a main CPU of the electronic device, and the main CPU performs calculation of touch coordinates, calculation of touch tracks and the like according to the touch data and an algorithm, recognizes a touch gesture of the user, and notifies an application program to execute corresponding touch operation. Since a user may perform a touch operation on the electronic device at any time, the main CPU needs to be in an operating state all the time and needs to process each touch data reported by the touch screen in order to process the touch data reported by the touch screen, and therefore, even when the electronic device does not run other application programs, the main CPU needs to be turned on and is in the operating state, and thus certain power consumption is consumed.
In addition, when the main CPU is running, it usually does not run only one touch data code, but runs apk (application Package file) codes of some system applications or other applications at the same time. Therefore, when the main CPU is occupied by another process and the main CPU is busy processing touch data, the system operation is correspondingly slowed down or the page turning is delayed, and the user experience is deteriorated.
The touch screen comprises In-Cell, On-Cell, OGS (One Glass Solution), G/G (Cover Glass/Sensor Glass, and the sensing Glass can be called a touch functional layer) and GFF (Cover Glass conductive layer/conductive layer) touch screens. In-Cell refers to a method of embedding a touch function into a liquid crystal pixel of a display screen, that is, embedding a touch sensor function inside the display screen; the On-Cell is a method for embedding the touch screen between a color filter substrate and a polarizer of the display screen, namely, a touch function is configured On a liquid crystal panel of the display screen. The OGS technology is to integrate a touch screen and protective glass together and plate an ITO conductive layer on the inner side of the protective glass. G/G and GFF touch screens refer to touch sensing devices of a touch screen system mounted on an upper layer of a display screen.
In this application, the term "electronic device" includes various handheld devices with touch screens, vehicle-mounted devices, wearable devices, computing devices, and the like, such as smart phones, tablet computers, smart watches, and the like.
In order to solve the problem that the power consumption of a main CPU is high, the invention adopts two processing units, namely a first processing unit and a second processing unit. The first processing unit may be a co-processing unit, and the second processing unit may be a main processing unit or a main CPU. The processing of the touch data is mainly performed by the co-processing unit. When a user operates the electronic device, the first processing unit completes recognition of touch types and touch gestures, and then recognized touch gesture information is reported to the second processing unit, so that the second processing unit does not need to analyze touch data and can directly acquire the touch gesture information from the first processing unit. And then the second processing unit informs the application program to execute corresponding operation according to the touch gesture information. For example, the touch gesture includes a left-stroke operation, a right-stroke operation, an up-stroke operation, a down-stroke operation, a page enlargement, a page reduction, a page rotation, and the like. By adopting the technical scheme of the invention, the second processing unit does not need to be in the running state all the time, so that the running power consumption of the main CPU can be reduced, and the touch operation experience of a user can be improved.
Example one
The scheme provided by the embodiment of the invention is explained in the following with reference to fig. 1.
S101: the method comprises the steps that a first processing unit receives touch data reported by a touch screen, wherein the first processing unit comprises a touch type recognition module and a touch gesture recognition module.
The first processing unit may also be called a co-processing unit, and mainly analyzes the touch data reported by the touch screen. When a user touches the touch screen of the electronic equipment, the touch screen of the electronic equipment generates touch data based on touch operation of the user, and then touch data information is reported. Taking a capacitive touch screen as an example, the touch data includes touch data generated by a capacitance change of the touch screen when a user touches on the touch screen of the electronic device. The touch screen may detect a change in capacitance caused by a user's finger or a stylus (touch pen) contacting a surface of the touch screen. The touch screen generates touch data based on the detected capacitance change. In order to clearly divide the labor and accelerate the processing speed, the first processing unit comprises a touch type recognition module and a touch gesture recognition module.
S102: and the touch type identification module identifies the type of the touch event according to the touch data.
Generally, a Micro Controller Unit (MCU) of a Touch screen reports Touch (TP) points 80 times per second. In order to obtain more touch data, the TP points may be reported in a manner higher than a normal reporting frequency, for example, 120 TP points per second. The number of TP points reported each time may be one or two, depending on the number of TP points generated by the user at one time. If the user generates one touch point at a time, the touch screen reports one TP point each time; if the user generates two touch points at a time, the touch screen reports two TP points at a time. Because the MCU adopts a reporting mode with a frequency higher than the normal reporting frequency, the touch type identification module has enough touch data to judge the type of the touch event.
Optionally, the touch type identifying module identifies the type of the touch event according to the coordinate data condition of the N continuous touch points. Wherein N is an integer of 2 or more.
If the type of the touch event is the first type event, executing step S103;
if the type of the touch event is the second type event, step S104 is executed.
The touch type identification module identifies that the touch speed of the user is greater than a preset speed according to the coordinate data condition of a touch point when the user touches the electronic device, and the type of the touch event is the first type event, wherein the touch speed refers to the distance of continuous movement of the touch point on the touch screen in unit time. For example, the user slides the switching system desktop left and right quickly.
The second type of event may also be called a slow event, the touch type identification module identifies that the touch speed of the User is less than a preset speed according to coordinate data of a touch point when the User touches the electronic device, and the second processing unit determines that a User Interface (UI) touched by the User needs to report position information of the touch point on the UI Interface, where the type of the touch event is the second type of event, and the touch speed refers to a distance that the touch point continuously moves on the touch screen in unit time. For example, taking an Android mobile phone as an example, in a Desktop (Desktop) interface of the mobile phone, the second processing unit determines that the interface is an interface for which touch point position information needs to be reported, when a user slowly pulls down a notification menu on the Desktop interface, a touch speed is less than a preset speed, and the type of the touch event is a slow event.
S103: and the touch type recognition module reports the touch data to the touch gesture recognition module.
The touch gesture recognition module is used for recognizing a touch gesture corresponding to the touch data.
If the type of the touch event is a first type event, for example, the user slides to the right quickly to switch the system desktop, the touch type recognition module reports the touch data to the touch gesture recognition module. And the touch gesture recognition module recognizes the touch gesture of the user as rightward sliding according to the touch data. And the second processing unit redraws the UI interface according to the right-sliding operation and displays the UI interface after the right sliding.
Optionally, the touch gesture recognition module reports a flag bit or a status bit to inform the second processing unit that the touch operation of the user is a rightward sliding operation. At this time, the second processing unit does not need to process touch data, and can directly obtain the touch operation information of the user from the touch gesture recognition module, so that the running load of the second processing unit is reduced, and the running power consumption of the second processing unit is saved.
S104: and the touch type identification module reports the touch data to the touch gesture identification module and the second processing unit.
The second processing unit is used for executing operation corresponding to the touch gesture. Optionally, the second processing unit is a main processing unit of the electronic device.
If the type of the touch event is a second type event, for example, when a user slowly pulls down a notification menu on a desktop interface, the touch gesture recognition module recognizes that the touch gesture of the user is a downslide operation according to the touch data, the touch speed is lower than a preset speed, and the second processing unit judges that the UI interface (the desktop interface) needs to report the position information of the touch point, the touch type recognition module reports the touch data to the touch gesture recognition module and the second processing unit. And the second processing unit redraws the UI interface according to the pull-down operation and the touch point coordinate data and displays the UI interface of the pull-down notification bar.
Optionally, the touch gesture recognition module reports a flag bit or a status bit to inform the second processing unit that the touch operation of the user is a downward sliding operation. The second processing unit adjusts the display of the UI according to the operation information (such as the sliding down operation) transmitted by the touch gesture recognition module and according to the coordinate information of the touch point when the user touches the UI. At this time, because the touch operation of the user is a slow event, when the second processing unit redraws the UI interface (or called frame synchronization), when the change of the coordinate data of the touch point exceeds a certain range, only the coordinate information of one touch point is reported in a tracking manner, so that the generation of the UI interface with repeated touch point coordinates can be greatly reduced.
The first processing unit may be integrated into the second processing unit or may be a processing module separate from the second processing unit.
By adopting the technical scheme provided by the embodiment of the invention, the first processing unit firstly carries out touch type identification and touch gesture identification on the touch data and then reports the identification result to the second processing unit, so that the running load and running power consumption of the second processing unit are reduced, the smoothness of system touch operation is improved, and the touch operation experience of a user is improved.
Example two
Fig. 2 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
The electronic device comprises a first processor 203, a second processor 202 and a touch screen 201; the touch screen 201 is configured to generate touch data according to a touch operation of a user;
the first processor 203 is configured to receive touch data reported by the touch screen 201, where the first processor 203 includes a touch type recognition module 2031 and a touch gesture recognition module 2032;
the touch type recognition module 2031 is used for:
identifying the type of the touch event according to the touch data;
reporting the touch data to the touch gesture recognition module 2032 when the type of the touch event is the first type event;
reporting the touch data to the touch gesture recognition module 2032 and the second processor 202 when the type of the touch event is a second type event;
the touch gesture recognition module 2032 is configured to recognize a touch gesture corresponding to the touch data;
wherein the second processor 202 is configured to perform an operation corresponding to the touch gesture.
Optionally, the second processor 202 is a main processor of the electronic device.
Specifically, the touch data includes coordinate data of a touch point detected by the touch screen on the touch screen of the electronic device. The touch type identification module is used for identifying the type of a touch event according to touch data including touch point coordinate data, wherein the touch point coordinate data are continuous coordinate data of N touch points, and N is an integer greater than or equal to 2.
Optionally, the touch gesture recognition module is further configured to report the touch gesture recognized according to the touch data to the second processor. The touch gesture recognition module may report a flag bit or a status bit to notify the second processor of the touch operation type of the user, for example, the touch operation of the user is leftward sliding.
The touch type identification module is specifically used for identifying that the type of the touch event is a first type event if the touch speed of a user is greater than a preset condition according to the touch point coordinate data; the second processor determines that the user interface touched by the user needs to report the position information of the touch point, and the touch type identification module is specifically configured to identify that the touch speed of the user is less than a preset condition according to the coordinate data of the touch point, and the type of the touch event is a second type event.
Optionally, the second processor redraws the user interface of the electronic device according to the corresponding touch gesture and the touch point coordinate data.
By the electronic equipment provided by the embodiment of the invention, the running load and the running power consumption of the second processor can be reduced, the smoothness of the touch operation of the system is improved, and the touch operation experience of a user is improved.
EXAMPLE III
Fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
The electronic device includes:
the first processing unit 301 is configured to receive touch data reported by a touch screen, where the first processing unit includes a touch type recognition module and a touch gesture recognition module;
an identifying unit 302, configured to identify a type of a touch event according to the touch data by the touch type identifying module;
a first reporting unit 303, configured to report the touch data to the touch gesture recognition module by the touch type recognition module if the type of the touch event is a first type event;
a second reporting unit 304, configured to report, by the touch type identification module, the touch data to the touch gesture identification module and a second processing unit if the type of the touch event is a second type event;
the touch gesture recognition module is used for recognizing a touch gesture of a user, and the second processing unit is used for executing an operation corresponding to the touch gesture.
Optionally, the second processing unit is a main processing unit of the electronic device.
Optionally, the touch gesture recognition module is further configured to report the touch gesture recognized according to the touch data to the second processing unit.
Optionally, the second processing unit is configured to execute an operation corresponding to the touch gesture, specifically: and the second processing unit is used for redrawing the user interface of the electronic equipment according to the touch gesture and the touch point coordinate data.
Optionally, the touch data includes coordinate data of a touch point detected by the touch screen on the touch screen of the electronic device, and the identification unit is specifically configured to: the touch type identification module identifies the type of the touch event according to touch data including touch point coordinate data, wherein the touch point coordinate data are coordinate data of N continuous touch points, and N is an integer greater than or equal to 2.
Optionally, the electronic device further includes: and the first judging unit is used for identifying that the touch speed of the user is greater than a preset condition according to the touch point coordinate data by the touch type identification module, and the type of the touch event is a first type event.
And if the second processing unit judges that the user interface touched by the user needs to report the position information of the touch point, and the electronic equipment further comprises a second judging unit which is used for identifying that the touch speed of the user is less than a preset condition according to the coordinate data of the touch point by the touch type identification module, and the type of the touch event is a second type event.
Wherein the touch speed refers to a distance that a touch point continuously moves on the touch screen within a unit time.
By the electronic equipment provided by the embodiment of the invention, the operation load and the operation power consumption of the second processing unit can be reduced, the smoothness of the touch operation of the system is improved, and the touch operation experience of a user is improved.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; although the present invention and the advantageous effects thereof have been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions.

Claims (18)

1. A method for reporting touch data in electronic equipment is characterized by comprising the following steps:
the method comprises the steps that a first processing unit receives touch data reported by a touch screen, wherein the first processing unit comprises a touch type recognition module and a touch gesture recognition module;
the touch type identification module identifies the type of the touch event according to the touch data;
if the type of the touch event is a first type event, the touch type identification module reports the touch data to the touch gesture identification module;
if the type of the touch event is a second type event, the touch type identification module reports the touch data to the touch gesture identification module and a second processing unit;
the touch gesture recognition module is used for recognizing a touch gesture corresponding to the touch data, and the second processing unit is used for executing an operation corresponding to the touch gesture.
2. The method according to claim 1, wherein the touch data includes coordinate data of a touch point detected by the touch screen on the touch screen of the electronic device, and the touch type identification module identifies the type of the touch event according to the touch data specifically:
the touch type identification module identifies the type of the touch event according to touch data including touch point coordinate data, wherein the touch point coordinate data are coordinate data of N continuous touch points, and N is an integer greater than or equal to 2.
3. The method of claim 1, wherein the touch gesture recognition module is further configured to report the touch gesture recognized according to the touch data to the second processing unit.
4. The method according to claim 2, wherein the touch type recognition module recognizes that the touch speed of the user is greater than a preset condition according to the touch point coordinate data, and the type of the touch event is a first type event, wherein the touch speed refers to a distance that the touch point continuously moves on the touch screen in a unit time.
5. The method according to claim 2, wherein the touch type recognition module recognizes that the touch speed of the user is less than a preset condition according to the coordinate data of the touch point, and the second processing unit determines that the user interface touched by the user needs to report the position information of the touch point, so that the type of the touch event is a second type event, wherein the touch speed refers to a distance that the touch point continuously moves on the touch screen in unit time.
6. The method according to claim 3, wherein the second processing unit is configured to perform the operation corresponding to the touch gesture, specifically: and the second processing unit redraws the user interface of the electronic equipment according to the touch gesture and the touch point coordinate data.
7. An electronic device that receives a touch operation, characterized by comprising: the touch screen comprises a first processor, a second processor and a touch screen; the touch screen is used for generating touch data according to touch operation of a user;
the first processor is used for receiving touch data reported by the touch screen, and comprises a touch type identification module and a touch gesture identification module;
the touch type identification module is used for:
identifying the type of the touch event according to the touch data;
reporting the touch data to the touch gesture recognition module under the condition that the type of the touch event is a first type event;
reporting the touch data to the touch gesture recognition module and a second processor under the condition that the type of the touch event is a second type event;
the touch gesture recognition module is used for recognizing a touch gesture corresponding to the touch data, and the second processor is used for executing an operation corresponding to the touch gesture.
8. The electronic device according to claim 7, wherein the touch data includes coordinate data of a touch point detected by the touch screen on the touch screen, and the touch type identification module is configured to identify a type of the touch event according to the touch data specifically as:
the touch type identification module is used for identifying the type of a touch event according to touch data including touch point coordinate data, wherein the touch point coordinate data are continuous coordinate data of N touch points, and N is an integer greater than or equal to 2.
9. The electronic device of claim 7,
the touch gesture recognition module is further configured to report the touch gesture recognized according to the touch data to the second processor.
10. The electronic device according to claim 8, wherein the touch type identification module is specifically configured to identify, according to the touch point coordinate data, that a touch speed of a user is greater than a preset condition, and the type of the touch event is a first type event, where the touch speed refers to a distance that a touch point continuously moves on the touch screen in a unit time.
11. The electronic device according to claim 8, wherein the second processor determines that the user interface touched by the user needs to report position information of the touch point, and the touch type identification module is specifically configured to identify, according to the coordinate data of the touch point, that a touch speed of the user is less than a preset condition, and that the type of the touch event is a second type event, where the touch speed refers to a distance that the touch point continuously moves on the touch screen in unit time.
12. The electronic device of claim 9, wherein the second processor is configured to perform the operation corresponding to the touch gesture by: and the second processor is used for redrawing the user interface of the electronic equipment according to the touch gesture and the touch point coordinate data.
13. An electronic device that receives a touch operation, characterized by comprising:
the first processing unit is used for receiving touch data reported by the touch module, and comprises a touch type recognition module and a touch gesture recognition module;
the identification unit is used for identifying the type of the touch event according to the touch data by the touch type identification module;
the first reporting unit is used for reporting the touch data to the touch gesture recognition module by the touch type recognition module if the type of the touch event is a first type event;
the second reporting unit is used for reporting the touch data to the touch gesture recognition module and the second processing unit by the touch type recognition module if the type of the touch event is a second type event;
the touch gesture recognition module is used for recognizing a touch gesture of a user, and the second processing unit is used for executing an operation corresponding to the touch gesture.
14. The electronic device according to claim 13, wherein the touch data includes coordinate data of a touch point detected by the touch module on a touch screen of the electronic device, and the recognition unit is specifically configured to:
the touch type identification module identifies the type of the touch event according to touch data including touch point coordinate data, wherein the touch point coordinate data are coordinate data of N continuous touch points, and N is an integer greater than or equal to 2.
15. The electronic device of claim 13, wherein the touch gesture recognition module is further configured to report the touch gesture recognized according to the touch data to the second processing unit.
16. The electronic device of claim 14, further comprising:
and the first judging unit is used for identifying that the touch speed of the user is greater than a preset condition according to the touch point coordinate data by the touch type identification module, and the type of the touch event is a first type event, wherein the touch speed refers to the distance of the continuous movement of the touch point on the touch screen in unit time.
17. The electronic device of claim 14, further comprising:
and the second judging unit is used for identifying that the touch speed of the user is smaller than a preset condition according to the coordinate data of the touch point by the touch type identification module, and judging that the user interface touched by the user needs to report the position information of the touch point by the second processing unit, wherein the type of the touch event is a second type event, and the touch speed refers to the continuous moving distance of the touch point on the touch screen in unit time.
18. The electronic device according to claim 15, wherein the second processing unit is configured to execute the operation corresponding to the touch gesture, specifically: and the second processing unit is used for redrawing the user interface of the electronic equipment according to the touch gesture and the touch point coordinate data.
CN201510746767.3A 2015-11-03 2015-11-03 Touch data reporting method and electronic equipment Active CN106648400B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510746767.3A CN106648400B (en) 2015-11-03 2015-11-03 Touch data reporting method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510746767.3A CN106648400B (en) 2015-11-03 2015-11-03 Touch data reporting method and electronic equipment

Publications (2)

Publication Number Publication Date
CN106648400A CN106648400A (en) 2017-05-10
CN106648400B true CN106648400B (en) 2020-04-03

Family

ID=58851194

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510746767.3A Active CN106648400B (en) 2015-11-03 2015-11-03 Touch data reporting method and electronic equipment

Country Status (1)

Country Link
CN (1) CN106648400B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108304040A (en) * 2018-04-09 2018-07-20 广州视源电子科技股份有限公司 Interactive intelligent tablet computer and touch data processing method
CN109992314B (en) * 2019-04-09 2022-03-29 Oppo广东移动通信有限公司 Data reporting method, device, terminal and storage medium
CN110362264B (en) * 2019-06-28 2022-06-10 武汉海微科技有限公司 Dynamic gesture recognition method, device and system based on touch pad
CN110502153B (en) * 2019-08-30 2022-11-11 Oppo(重庆)智能科技有限公司 Touch screen point reporting rate adjusting method, touch screen, electronic device and storage medium
CN112114666A (en) * 2020-08-25 2020-12-22 武汉海微科技有限公司 Dynamic gesture recognition algorithm based on touch panel
CN113050830B (en) * 2021-03-16 2023-03-14 上海商米科技集团股份有限公司 Anti-interference processing method for touch screen of Android desktop cash register

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1560729A (en) * 1997-09-05 2005-01-05 摩托罗拉公司 Method and apparatus for interfacing a processor to a coprocessor
CN101930319A (en) * 2010-09-08 2010-12-29 敦泰科技有限公司 Touch information reporting method of touch screen
EP2637087A2 (en) * 2012-01-26 2013-09-11 Honeywell International Inc. Adaptive gesture recognition system and method for unstable work environments
CN103294323A (en) * 2013-06-13 2013-09-11 敦泰科技有限公司 Method and device for touch detection and touch screen system
CN103529976A (en) * 2012-07-02 2014-01-22 英特尔公司 Interference elimination in gesture recognition system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1560729A (en) * 1997-09-05 2005-01-05 摩托罗拉公司 Method and apparatus for interfacing a processor to a coprocessor
CN101930319A (en) * 2010-09-08 2010-12-29 敦泰科技有限公司 Touch information reporting method of touch screen
EP2637087A2 (en) * 2012-01-26 2013-09-11 Honeywell International Inc. Adaptive gesture recognition system and method for unstable work environments
CN103529976A (en) * 2012-07-02 2014-01-22 英特尔公司 Interference elimination in gesture recognition system
CN103294323A (en) * 2013-06-13 2013-09-11 敦泰科技有限公司 Method and device for touch detection and touch screen system

Also Published As

Publication number Publication date
CN106648400A (en) 2017-05-10

Similar Documents

Publication Publication Date Title
CN106648400B (en) Touch data reporting method and electronic equipment
EP2533146B1 (en) Apparatus and method for providing web browser interface using gesture in device
AU2012348377B2 (en) Touch-sensitive button with two levels
US11003328B2 (en) Touch input method through edge screen, and electronic device
AU2016426314B2 (en) Interface display method and terminal
US9377943B2 (en) Method and apparatus for outputting display data based on a touch operation on a touch panel
WO2014071073A1 (en) Touch screen operation using additional inputs
CN102768595B (en) A kind of method and device identifying touch control operation instruction on touch-screen
AU2017203910B2 (en) Glove touch detection
US20160026843A1 (en) Driving circuit, driving method, display apparatus and electronic apparatus
CN104679485A (en) Page element control method and device
KR20170067669A (en) Method and apparatus for predicting touch location of electronic device
CN104423646A (en) Methods for interacting with an electronic device by using a stylus
TWI511030B (en) Method for user interface display and electronic device using the same
US8948514B2 (en) Electronic device and method for processing handwritten document
CN104166460B (en) Electronic equipment and information processing method
CN105549822A (en) Icon moving method and mobile terminal
TWI478017B (en) Touch panel device and method for touching the same
CN104679312A (en) Electronic device as well as touch system and touch method of electronic device
CN108595091B (en) Screen control display method and device and computer readable storage medium
CN104615342A (en) Information processing method and electronic equipment
US20160041749A1 (en) Operating method for user interface
US10430002B2 (en) Touchscreen input method and terminal
US20130300685A1 (en) Operation method of touch panel
JP2006350535A (en) Touch panel equipped with smart type autoscroll function, and its control method

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 523808 Southern Factory Building (Phase I) Project B2 Production Plant-5, New Town Avenue, Songshan Lake High-tech Industrial Development Zone, Dongguan City, Guangdong Province

Applicant after: Huawei Device Co., Ltd.

Address before: 523808 Southern Factory Building (Phase I) Project B2 Production Plant-5, New Town Avenue, Songshan Lake High-tech Industrial Development Zone, Dongguan City, Guangdong Province

Applicant before: HUAWEI terminal (Dongguan) Co., Ltd.

GR01 Patent grant
GR01 Patent grant