CN109885201B - Touch area detection method for touch screen, electronic device and computer readable storage medium - Google Patents

Touch area detection method for touch screen, electronic device and computer readable storage medium Download PDF

Info

Publication number
CN109885201B
CN109885201B CN201910122416.3A CN201910122416A CN109885201B CN 109885201 B CN109885201 B CN 109885201B CN 201910122416 A CN201910122416 A CN 201910122416A CN 109885201 B CN109885201 B CN 109885201B
Authority
CN
China
Prior art keywords
area
touch
target screen
capacitance change
change data
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
CN201910122416.3A
Other languages
Chinese (zh)
Other versions
CN109885201A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201910122416.3A priority Critical patent/CN109885201B/en
Publication of CN109885201A publication Critical patent/CN109885201A/en
Application granted granted Critical
Publication of CN109885201B publication Critical patent/CN109885201B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Position Input By Displaying (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the application provides a touch screen touch area detection method, an electronic device and a computer readable storage medium, and relates to the technical field of communication, wherein the method is applied to the electronic device with a flexible capacitive touch screen, and comprises the following steps: the upper layer processing module triggers the bottom layer driving module, and determines the touch area in the target screen area according to the capacitance change data of the flexible capacitive touch screen and the area of the target screen area of the touch area to be reported; and the bottom layer driving module obtains reported data according to a preset reporting rule and the determined touch area and reports the reported data to the upper layer processing module. This application can reduce the touch area who detects and actual touch area's error, and can realize the detection of palm touch, and the demand that adapts to the flexible screen and need judge which screen region is lighted according to the touch area that the palm pressed when folding, improves the touch-control precision of touch-sensitive screen.

Description

Touch area detection method for touch screen, electronic device and computer readable storage medium
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a method for detecting a touch area of a touch screen, an electronic device, and a computer-readable storage medium.
Background
For the current trend mobile terminal, a full-screen, a flexible screen and the like become mainstream. However, currently, mainstream manufacturers of capacitive touch screen chips adopt a technology for reporting a touchness area, namely a touchness value when a finger touches the capacitive touch screen chip, wherein the touchness value can be approximately regarded as the touchness area of the finger. On one hand, the touchmajor value is the size of the major axis of the ellipse when the touch outline of the finger on the screen is approximately regarded as the ellipse when the finger touches the screen, and the error of the major axis of the ellipse and the actual touch area of the finger is larger; on the other hand, the reporting technology is limited to reporting only by finger touch, and is not suitable for large-area palm touch. Therefore, the existing touch area reporting technology has a large error and is not suitable for palm touch, and especially when the flexible screen needs to be judged according to the touch area pressed by the palm when being folded, the existing touch area reporting technology cannot meet the judgment requirement.
Disclosure of Invention
The embodiment of the application provides a touch screen touch area detection method, an electronic device and a computer readable storage medium, which can be used for reducing the error between a detected touch area and an actual touch area and realizing palm touch detection.
An embodiment of the present application provides a method for detecting a touch area of a touch screen, which is applied to an electronic device having a flexible capacitive touch screen, and the method includes:
the upper layer processing module triggers the bottom layer driving module, and determines the touch area in the target screen area according to the capacitance change data of the flexible capacitive touch screen and the area of the target screen area of the touch area to be reported; and the bottom layer driving module obtains reported data according to a preset reporting rule and the determined touch area and reports the reported data to the upper layer processing module.
An aspect of an embodiment of the present application further provides an electronic apparatus, including: the touch area detection method comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein when the processor executes the computer program, the touch area detection method of the touch screen provided by the embodiment is realized.
An aspect of the embodiments of the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the method for detecting a touch area of a touch screen provided in the above embodiments is implemented.
In the embodiments, the bottom-layer driving module is triggered by the upper-layer processing module, the touch area in the target screen area is determined according to the capacitance change data of the flexible capacitive touch screen and the area of the target screen area of the touch area to be reported, and the reported data is obtained according to the determined touch area and reported to the upper-layer processing module according to the preset reporting rule.
Drawings
Fig. 1 is a schematic flow chart illustrating an implementation of a method for detecting a touch area of a touch screen according to an embodiment of the present application;
fig. 2 is a schematic flow chart illustrating an implementation of a method for detecting a touch area of a touch screen according to another embodiment of the present application;
FIG. 3 is a schematic diagram of a flexible capacitive touch screen in a touch area detection method of a touch screen according to another embodiment of the present application;
fig. 4 is a schematic flow chart illustrating an implementation of a method for detecting a touch area of a touch screen according to another embodiment of the present application;
fig. 5 is a schematic hardware structure diagram of an electronic device according to an embodiment of the present application;
fig. 6 is a schematic diagram of a hardware structure of an electronic device.
Detailed Description
In order to make the objects, features and advantages of the present invention more apparent and understandable, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments of the present application. 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 application.
Please refer to fig. 1, which is a schematic flow chart illustrating an implementation of a method for detecting a touch area of a touch screen according to an embodiment of the present application. The method can be applied to electronic devices with flexible capacitive touch screens, such as mobile phones, tablet computers, smart watches, smart cameras and other electronic devices with flexible capacitive touch screens, which can process data in movement. As shown in fig. 1, the method mainly includes:
s101, an upper layer processing module reads an area reporting node, and triggers a bottom layer driving module to determine a touch area in a target screen area according to capacitance change data of a flexible capacitive touch screen and the area of the target screen area of the touch area to be reported;
and S102, the bottom layer driving module obtains reported data according to the determined touch area according to a preset reporting rule and reports the reported data to the upper layer processing module.
The flexible capacitive Touch screen (TP) is a foldable screen, i.e. can be folded for use. The upper layer processing module may be, for example, an upper layer application dedicated to executing corresponding logic according to a touch area of the touch screen. The bottom layer driving module can be a hardware driver of the flexible capacitive touch screen, for example.
Specifically, after the bottom layer driving module is triggered, capacitance change data of the flexible capacitive touch screen is read from firmware of a TP IC (Integrated Circuit) chip, and then the touch area in the target screen area is determined according to the read capacitance change data and the area of the target screen area of the touch area to be reported. Or, the bottom layer driving module may also instruct the firmware to determine the touch area in the target screen area according to the currently recorded capacitance change data of the flexible capacitive touch screen and the area of the target screen area of the touch area to be reported, by using the TP IC chip. The capacitance change data (delta) refers to a change value of the self-capacitance raw data after the finger touches. The self-capacitance raw data refers to capacitance raw data between TX and RX electrodes on the touch screen.
In this embodiment, the lower layer driving module is triggered by the upper layer processing module, the touch area in the target screen region is determined according to the capacitance change data of the flexible capacitive touch screen and the area of the target screen region of the touch area to be reported, and the reported data is obtained according to the determined touch area and reported to the upper layer processing module according to the preset reporting rule.
Please refer to fig. 2, which is a schematic flow chart illustrating an implementation of a method for detecting a touch area of a touch screen according to another embodiment of the present application. The method can be applied to electronic devices with flexible capacitive touch screens, such as mobile phones, tablet computers, smart watches, smart cameras and other electronic devices with flexible capacitive touch screens, which can process data in movement. As shown in fig. 2, the method mainly includes:
s201, an upper layer processing module reads an area reporting node and triggers a bottom layer driving module to read one or more frames of capacitance change data from a firmware;
the upper layer processing module is communicated with the bottom layer driving module by reading a preset area reporting node, and triggers the bottom layer driving module to read one or more frames of capacitance change data from a firmware of a processing chip of the flexible capacitive touch screen. The capacitance change data (delta) refers to a change value of the self-capacitance raw data after the finger touches. The self-capacitance raw data refers to capacitance raw data between TX and RX electrodes on the touch screen.
Optionally, when the upper processing module detects that the form or the display state of the touch screen changes (e.g., is folded or unfolded), or detects that the touch logic of an application program running in the foreground of the screen changes (e.g., the touch position for interaction changes), or detects other preset scenes in which a screen area needs to be lighted is determined, the area reporting node is read, and the bottom driving module is triggered to read one or more frames of capacitance change data from the firmware.
S202, the bottom layer driving module judges whether the area of a target screen area is configured in the equipment tree or not;
a device tree is a data structure that describes various hardware resources in an electronic apparatus, in which description and configuration information of the various hardware resources are stored.
The flexible capacitive touch screen is a foldable touch screen, as shown in fig. 3, in practical applications, the flexible capacitive touch screen can be divided into A, B and C screen areas according to a folding manner, and only a part of the screen areas or all of the screen areas may need to be reported. It is to be understood that fig. 3 is only an example, and the number of divided screen regions may not be limited thereto in practical applications.
Specifically, the touch screen may be divided into a plurality of screen regions according to customized (custom) configuration operations of a user, the size of the area is configured for each screen region or a target screen region where a touch area needs to be reported, and the configured area is written into the device tree, so that the bottom driver module can query the area.
S203, if the area of the target screen area is configured in the equipment tree, determining the touch area in the target screen area according to one or more frames of capacitance change data and the area of the target screen area configured in the equipment tree;
s204, if the area of the target screen area is not configured in the equipment tree, determining the touch area in the target screen area according to one or more frames of capacitance change data and the default area of the target screen area configured in the bottom layer driving module;
on one hand, if the area of the target screen region is configured in the device tree, which indicates that the size of the area of the target screen region is customized, and the configuration of the device tree better meets the actual requirements of users, the bottom layer driving module determines the touch area in the target screen region according to the capacitance change data of one or more frames read from the firmware and the area of the target screen region configured in the device tree. On the other hand, if the area of the target screen region is not configured in the device tree, the bottom layer driving module determines the touch area in the target screen region according to the one or more frames of capacitance change data read from the firmware and the default area of the target screen region configured in the bottom layer driving module.
Optionally, when the bottom layer driving module reads a frame of capacitance change data from the firmware, the bottom layer driving module extracts target capacitance change data of each node in the target screen area from the read current frame of capacitance change data; and determining the touch area in the target screen area according to the position of the node corresponding to the target capacitance change data with the capacitance change value larger than the preset value in the target screen area.
It is understood that a plurality of nodes, each of which is a capacitive sensing sensor unit, are provided in the screen of the capacitive touch screen to sense a change in capacitance. Taking a projected capacitive touch screen as an example, the projected capacitive touch screen is formed by etching different ITO conductive circuit modules on two ITO (nano indium tin metal oxide) conductive glass coatings. The patterns etched on the two modules are perpendicular to each other and can be considered as slides with continuously changing X and Y directions. Since X, Y is constructed on different surfaces, their intersections form a capacitive node. One of the strips can be used as a driving line, and the other strip can be used as a detecting line. When current passes through one wire in the driving line, if a signal of capacitance change exists outside, the change of capacitance of a capacitance node on the other layer of wire is caused.
Optionally, when the bottom layer driving module reads multiple frames of capacitance change data from the firmware, the bottom layer driving module extracts target capacitance change data of each node in the target screen region from one frame of capacitance change data; determining the touch area in the target screen area according to the position of the node corresponding to the target capacitance change data with the capacitance change value larger than the preset value in the target screen area; if the size of the touch area in the target screen area does not meet the preset size condition, for example: if the difference is smaller than the preset value and the detection result has a large error, the step of extracting the target capacitance change data of each node in the target screen area from one frame of capacitance change data is executed based on the next frame of capacitance change data until the size of the touch area in the target screen area meets the preset size. In practical application, the bottom layer driving module may read the multi-frame capacitance change data finally acquired by the capacitance sensor from the firmware of the TP IC chip at one time, and determine the touch area in the target screen area according to the multi-frame capacitance change data read at one time. Or reading multiple frames of capacitance change data in a plurality of times, and determining the touch area in the target screen area according to the read frame of capacitance change data every time when reading one frame of capacitance change data.
And S205, the bottom layer driving module obtains reported data according to the determined touch area according to a preset reporting rule, and reports the reported data to the upper layer processing module.
Specifically, according to a preset reporting rule, whether the determined touch area needs to be processed is determined to obtain corresponding reporting data, and the corresponding reporting data is reported to the upper processing module.
Optionally, if the number of the target screen areas is at least two, when the reporting rule is the first reporting rule, the bottom-layer driving module reports the determined touch area of each target screen area as reporting data to the upper-layer processing module; when the reporting rule is a second reporting rule, the bottom layer driving module compares the determined touch area in each target screen area, and compares the comparison results, such as: and taking the identification information of the target screen area with the maximum or minimum touch area and/or the corresponding touch area as reported data and reporting the reported data to the upper processing module.
To further illustrate the present embodiment, taking the foldable screen shown in fig. 3 as an example, when the user folds the screen along the region C, it can be comprehensively determined which half of the screen the user needs to display at the moment according to the touch areas of the user in the region a and the region B. Obviously, when the user holds the whole mobile terminal, the touch area of the half screen required to be displayed by the user is often smaller when the mobile terminal is folded, and then the display module and other modules can be informed to display the corresponding half screen and perform other corresponding processing through the characteristic.
Under the above scenario, the upper processing module notifies the hardware driver module of the TP that the size of the touch area in the screen area to be compared needs to be calculated in a manner of reading the device file node. After the hardware driving module obtains the notification, it actively sends an instruction to the TP IC chip to read the delta value of the current frame or frames from the firmware of the TP IC chip, and at the same time, determines whether the area that needs to be reported is already custom-configured in the device tree at the time of starting up, and if the area (half-screen-rx-size) that needs to be reported is already custom-configured in the device tree, for example, the area a and the area B in fig. 3, the custom configuration is taken as the standard. And if not, selecting a default zone division configuration scheme in the hardware driving module. Then, after the area division reported by the touch area is determined, the size of the actual touch area in the corresponding areas a and B needs to be calculated. That is, the specific size of the touch area is obtained according to the delta value in the corresponding area. And finally, after the touch areas in the areas A and B are calculated, reporting the calculated touch area values to an upper layer processing module in a specific format as return values of the reading nodes according to a preset reporting rule. For example, according to a specific reporting rule, the calculated sizes of the touch areas in the regions a and B may be reported, or the sizes of the touch areas in the regions a and B may be compared first, and then the comparison result is reported to the upper processing module, so that the upper processing module performs further processing.
For details of this embodiment, reference may be made to the description of other embodiments.
In the embodiment, the area reporting node is read by the upper layer processing module, the bottom layer driving module is triggered to determine the touch area in the target screen area according to the capacitance change data of the flexible capacitive touch screen and the area of the target screen area of the touch area to be reported, and according to the preset reporting rule, according to the determined touch area, obtaining the reported data and reporting to the upper layer processing module, because the touch area in the target screen area is determined according to the original capacitance change data of each node in the target screen area of the touch area to be reported, therefore, the error between the detected touch area and the actual touch area can be reduced, the detection and the report of large-area touch such as palms can be realized, therefore, the requirement of judging which screen area is lightened according to the touch area pressed by the palm when the flexible screen is folded can be met, and the touch precision of the touch screen is improved. Furthermore, the bottom layer driving module utilizes a main control chip of the electronic device to perform data operation, so that the operation speed can be improved.
Please refer to fig. 4, which is a schematic flow chart illustrating an implementation of a method for detecting a touch area of a touch screen according to another embodiment of the present application. The method can be applied to electronic devices with flexible capacitive touch screens, such as mobile phones, tablet computers, smart watches, smart cameras and other electronic devices with flexible capacitive touch screens, which can process data in movement. As shown in fig. 4, the method mainly includes:
s401, the upper layer processing module reads an area reporting node and triggers the bottom layer driving module to determine the area of a target screen area of a touch area to be reported;
s402, the bottom layer driving module sends a reporting instruction to a firmware of a processing chip of the flexible capacitive touch screen;
s403, reading one or more frames of capacitance change data by firmware;
s404, the bottom layer driving module judges whether the area of the target screen area is configured in the device tree or not;
s405, if the area of the target screen area is configured in the equipment tree, the bottom layer driving module writes the area of the target screen area configured in the equipment tree into firmware;
s406, if the area of the target screen area is not configured in the device tree, the bottom layer driving module writes the default area of the target screen area configured in the bottom layer driving module into firmware;
s407, determining the touch area in the target screen area by the firmware according to one or more frames of capacitance change data and the written area of the bottom layer driving module;
s408, when the reporting rule is the first reporting rule, the bottom layer driving module reports each touch area determined by the firmware to the upper layer processing module as reporting data;
and S409, when the reporting rule is a second reporting rule, comparing the determined touch area in each target screen area by the bottom driving module through the firmware, taking the comparison result of the firmware as reporting data, and reporting the reporting data to the upper processing module.
Specifically, the upper layer processing module reads the area reporting node, triggers the bottom layer driving module to send a reporting instruction to the firmware, and the firmware responds to the reporting instruction to read capacitance change data of the touch screen. Meanwhile, the bottom layer driving module judges whether the area of the target screen area is configured in the device tree or not. And if the area of the target screen area is configured in the device tree, writing the area of the target screen area configured in the device tree into the firmware, and determining the touch area in the target screen area by the firmware according to the read currently recorded one or more frames of capacitance change data and the written area of the target screen area configured in the device tree. And if the area of the target screen area is not configured in the device tree, the bottom layer driving module writes the default area of the pre-configured target screen area into the firmware, and the firmware determines the touch area in the target screen area according to the read currently recorded one or more frames of capacitance change data and the written default area of the bottom layer driving module. Then, when the reporting rule is the first reporting rule, the firmware reports the determined touch areas of the target screen areas, and the bottom-layer driving module reports the touch areas reported by the firmware as reporting data to the upper-layer processing module. When the reporting rule is a second reporting rule, the firmware compares the determined touch area in each target screen area, and compares the comparison result of the firmware, such as: and reporting the identification information of the target screen area with the largest or smallest touch area and/or the corresponding touch area to the bottom layer driving module, wherein the bottom layer driving module takes the comparison result as reported data and reports the reported data to the upper layer processing module.
Optionally, the firmware extracts target capacitance change data of each node in the target screen region from one frame of capacitance change data through a processing chip of the touch screen, and determines the touch area in the target screen region according to a position of the node in the target screen region corresponding to the target capacitance change data with the capacitance change value larger than a preset value.
Optionally, the firmware extracts target capacitance change data of each node in the target screen region from one frame of capacitance change data through a processing chip of the touch screen, and determines the touch area in the target screen region according to a position of the node in the target screen region corresponding to the target capacitance change data with the capacitance change value larger than a preset value. If the size of the touch area in the target screen area does not meet the preset size condition, for example: if the difference is smaller than the preset value and the detection result has a large error, the step of extracting the target capacitance change data of each node in the target screen area from one frame of capacitance change data is executed based on the next frame of capacitance change data until the size of the touch area in the target screen area meets the preset size.
The difference between this embodiment and the embodiment shown in fig. 2 is that the specific process of determining the touch area in the target screen region and the comparison between the touch areas in the plurality of target screen regions in this embodiment are completed by firmware in a processing chip of the touch screen by using the processing chip of the touch screen, and the specific completing process may refer to the related description in the embodiment shown in fig. 2, and is not described herein again.
In the embodiment, the area reporting node is read by the upper layer processing module, the bottom layer driving module is triggered to instruct the firmware to determine the touch area in the target screen area according to the capacitance change data of the flexible capacitive touch screen and the area of the target screen area of the touch area to be reported, and according to the preset reporting rule, according to the determined touch area, obtaining the reported data and reporting to the upper layer processing module, because the touch area in the target screen area is determined according to the original capacitance change data of each node in the target screen area of the touch area to be reported, therefore, the error between the detected touch area and the actual touch area can be reduced, the detection and the report of large-area touch such as palms can be realized, therefore, the requirement of judging which screen area is lightened according to the touch area pressed by the palm when the flexible screen is folded can be met, and the touch precision of the touch screen is improved.
Referring to fig. 5, fig. 5 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present disclosure.
The electronic apparatus described in this embodiment includes:
the touch area detection method of the touch screen is implemented by the embodiments shown in fig. 1 to 4 when the processor 502 executes the computer program which is stored in the memory 501 and can be run on the processor 502.
At least one input device 503 and at least one output device 504.
The memory 501, the processor 502, the input device 503, and the output device 504 are connected by a bus 505.
The input device 503 may be a camera, a touch panel, a physical button, or the like. The output device 504 may be specifically a flexible capacitive touch screen.
The Memory 501 may be a high-speed Random Access Memory (RAM) Memory or a non-volatile Memory (non-volatile Memory), such as a disk Memory. The memory 501 is used for storing a set of executable program code, and the processor 502 is coupled to the memory 501.
Further, an embodiment of the present application further provides a computer-readable storage medium, where the computer-readable storage medium may be an electronic device configured in the foregoing embodiments, and the computer-readable storage medium may be a storage unit configured in the main control chip and the data acquisition chip in the foregoing embodiments. The computer readable storage medium has stored thereon a computer program, which when executed by a processor implements the touch area detection method of the touch screen described in the embodiments illustrated in fig. 1 to 4.
For example, the electronic device may be any of various types of computer system apparatuses that are mobile or portable with a flexible capacitive touch screen and perform wireless communication. In particular, the electronic apparatus may be a mobile phone or a smart phone (e.g., iPhone (TM) -based phone), a Portable game device (e.g., Nintendo DS (TM), PlayStation Portable (TM), Gameboy Advance (TM), iPhone (TM)), a laptop, a PDA, a Portable internet appliance, a music player and a data storage device, other handheld devices and a head-mounted device (HMD) such as a watch, a headset, a pendant, a headset, etc., and other wearable devices (e.g., electronic glasses, electronic clothes, an electronic bracelet, an electronic necklace, an electronic tattoo, an electronic device, or a smart watch).
The electronic apparatus may also be any of a number of electronic devices including, but not limited to, cellular phones, smart phones, other wireless communication devices, personal digital assistants, audio players, other media players, music recorders, video recorders, cameras, other media recorders, radios, medical devices, vehicle transportation equipment, calculators, programmable remote controllers, pagers, laptop computers, desktop computers, printers, netbook computers, Personal Digital Assistants (PDAs), Portable Multimedia Players (PMPs), moving picture experts group (MPEG-1 or MPEG-2) audio layer 3(MP3) players, portable medical devices, and digital cameras and combinations thereof.
In some cases, the electronic device may perform a variety of functions (e.g., playing music, displaying video, storing pictures, and receiving and sending telephone calls). If desired, the electronic apparatus may be a portable device such as a cellular telephone, media player, other handheld device, wristwatch device, pendant device, earpiece device, or other compact portable device.
As shown in fig. 6, the electronic device 10 may include control circuitry, which may include storage and processing circuitry 30. The storage and processing circuitry 30 may include memory, such as hard drive memory, non-volatile memory (e.g., flash memory or other electronically programmable erase limit memory used to form solid state drives, etc.), volatile memory (e.g., static or dynamic random access memory, etc.), and so forth, although the embodiments of the present application are not limited thereto. Processing circuitry in the storage and processing circuitry 30 may be used to control the operation of the electronic device 10. The processing circuitry may be implemented based on one or more microprocessors, microcontrollers, digital signal processors, baseband processors, power management units, audio codec chips, application specific integrated circuits, display driver integrated circuits, and the like.
The storage and processing circuitry 30 may be used to run software within the electronic device 10 such as, for example, an Internet browsing application, a Voice Over Internet Protocol (VOIP) telephone call application, an email application, a media playing application, operating system functions, etc. Such software may be used to perform control operations such as, for example, camera-based image capture, ambient light measurement based on an ambient light sensor, proximity sensor measurement based on a proximity sensor, information display functionality based on status indicators such as status indicator lights of light emitting diodes, touch event detection based on a touch sensor, functionality associated with displaying information on multiple (e.g., layered) displays, operations associated with performing wireless communication functions, operations associated with collecting and generating audio signals, control operations associated with collecting and processing button press event data, and other functions in the electronic device 10, and the like, without limitation of the embodiments of the present application.
The electronic device 10 may also include input-output circuitry 42. The input-output circuitry 42 may be used to enable the electronic device 10 to enable input and output of data, i.e., to allow the electronic device 10 to receive data from external devices and also to allow the electronic device 10 to output data from the electronic device 10 to external devices. The input-output circuitry 42 may further include the sensor 32. The sensors 32 may include ambient light sensors, optical and capacitive based proximity sensors, touch sensors (e.g., optical based touch sensors and/or capacitive touch sensors, where the touch sensors may be part of a touch display screen or may be used independently as a touch sensor structure), acceleration sensors, and other sensors, among others.
The input-output circuitry 42 may also include one or more displays, such as display 14. The display 14 may include one or a combination of liquid crystal displays, organic light emitting diode displays, electronic ink displays, plasma displays, displays using other display technologies. The display 14 may include an array of touch sensors (i.e., the display 14 may be a touch display screen). The touch sensor may be a capacitive touch sensor formed by a transparent touch sensor electrode (e.g., an Indium Tin Oxide (ITO) electrode) array, or may be a touch sensor formed using other touch technologies, such as acoustic wave touch, pressure sensitive touch, resistive touch, optical touch, and the like, and the embodiments of the present application are not limited thereto.
The electronic device 10 may also include an audio component 36. The audio component 36 may be used to provide audio input and output functionality for the electronic device 10. Audio components 36 in electronic device 10 may include speakers, microphones, buzzers, tone generators, and other components for generating and detecting sound.
The communication circuitry 38 may be used to provide the electronic device 10 with the ability to communicate with external devices. The communication circuit 38 may include analog and digital input-output interface circuits, and wireless communication circuits based on radio frequency signals and/or optical signals. The wireless communication circuitry in communication circuitry 38 may include radio-frequency transceiver circuitry, power amplifier circuitry, low noise amplifiers, switches, filters, and antennas. For example, the wireless Communication circuitry in Communication circuitry 38 may include circuitry to support Near Field Communication (NFC) by transmitting and receiving Near Field coupled electromagnetic signals. For example, the communication circuitry 38 may include a near field communication antenna and a near field communication transceiver. The communications circuitry 38 may also include a cellular telephone transceiver and antenna, a wireless local area network transceiver circuit and antenna, and the like.
The electronic device 10 may further include a battery, power management circuitry, and other input-output units 40. The input and output unit 40 may include buttons, joysticks, click wheels, scroll wheels, touch pads, keypads, keyboards, cameras, light emitting diodes and other status indicators, etc.
A user may input commands through the input-output circuitry 42 to control operation of the electronic device 10, and may use output data of the input-output circuitry 42 to enable receipt of status information and other outputs from the electronic device 10.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is merely a logical division, and in actual implementation, there may be other divisions, for example, multiple modules or components may be combined or integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or modules, and may be in an electrical, mechanical or other form.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
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.
The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a readable storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned readable storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
It should be noted that, for the sake of simplicity, the above-mentioned method embodiments are described as a series of acts or combinations, but those skilled in the art should understand that the present application is not limited by the described order of acts, as some steps may be performed in other orders or simultaneously according to the present application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In view of the above description of the touch area detection method of the touch screen, the electronic device and the computer readable storage medium provided by the present application, those skilled in the art will recognize that changes may be made in the embodiments and applications of the method according to the concepts of the present application.

Claims (11)

1. A touch area detection method of a touch screen is applied to an electronic device with a flexible capacitive touch screen, and is characterized by comprising the following steps:
the upper layer processing module triggers the bottom layer driving module, and determines the touch area in the target screen area according to the capacitance change data of the flexible capacitive touch screen and the area of the target screen area of the touch area to be reported;
the bottom layer driving module obtains reported data according to a preset reporting rule and a determined touch area, and reports the reported data to the upper layer processing module;
when the number of the target screen areas is at least two, the bottom driver module obtains report data according to a preset report rule and a determined touch area, and reports the report data to the upper processing module, which specifically includes:
when the reporting rule is a first reporting rule, the bottom layer driving module reports each determined touch area as reporting data to the upper layer processing module;
and when the reporting rule is a second reporting rule, the bottom-layer driving module compares the determined touch areas in the target screen areas, and reports the comparison result to the upper-layer processing module as the reporting data.
2. The method according to claim 1, wherein the upper layer processing module triggers a bottom layer driving module, and determines a touch area in a target screen area according to capacitance change data of the flexible capacitive touch screen and an area of the target screen area of the touch area to be reported, specifically comprising:
the upper layer processing module triggers the bottom layer driving module, and reads one or more frames of capacitance change data from firmware, wherein the firmware is the firmware of a processing chip of the flexible capacitive touch screen;
and the bottom layer driving module determines the area of a target screen area of the touch area to be reported, and determines the touch area in the target screen area according to the read one or more frames of capacitance change data and the determined area of the target screen area.
3. The method according to claim 2, wherein the bottom layer driver module determines an area of a target screen region of the touch area to be reported, and determines the touch area in the target screen region according to the read one or more frames of capacitance change data and the determined area of the target screen region, specifically comprising:
the bottom layer driving module judges whether the area of the target screen area is configured in the equipment tree or not;
if the area of the target screen area is configured in the device tree, determining the touch area in the target screen area according to the one or more frames of capacitance change data and the area of the target screen area configured in the device tree;
and if the area of the target screen area is not configured in the equipment tree, determining the touch area in the target screen area according to the one or more frames of capacitance change data and the default area of the target screen area configured in the bottom layer driving module.
4. The method as claimed in claim 2, wherein when the bottom layer driving module reads one frame of capacitance change data from the firmware, the determining the touch area in the target screen area according to the one or more frames of capacitance change data and the determined area of the target screen area specifically comprises:
extracting target capacitance change data of each node in the target screen area from the frame of capacitance change data;
determining a touch area in the target screen area according to the position of a node corresponding to the target capacitance change data with the capacitance change value larger than a preset value in the target screen area;
when the bottom layer driving module reads multiple frames of capacitance change data from the firmware, determining a touch area in a target screen area according to the read one or more frames of capacitance change data and the determined area of the target screen area, specifically including:
extracting target capacitance change data of each node in the target screen area from one frame of capacitance change data;
determining a touch area in the target screen area according to the position of a node corresponding to the target capacitance change data with the capacitance change value larger than a preset value in the target screen area;
and if the size of the touch area in the target screen area does not accord with a preset size condition, based on the capacitance change data of the next frame, executing the step of extracting the target capacitance change data of each node in the target screen area from the capacitance change data of the frame until the size of the touch area in the target screen area accords with the preset size.
5. The method according to claim 1, wherein the upper layer processing module triggers a bottom layer driving module, and determines a touch area in a target screen area according to capacitance change data of the flexible capacitive touch screen and an area of the target screen area of the touch area to be reported, specifically comprising:
the upper layer processing module triggers the bottom layer driving module to determine the area of a target screen area of a touch area to be reported, and instructs a firmware to determine the touch area in the target screen area according to one or more frames of capacitance change data and the determined area of the target screen area, wherein the firmware is the firmware of a processing chip of the flexible capacitive touch screen.
6. The method of claim 5, wherein the upper layer processing module triggers the bottom layer driving module to determine an area of a target screen region of the touch area to be reported, and instructs a firmware to determine the touch area in the target screen region according to one or more frames of capacitance change data and the determined area of the target screen region, specifically comprising:
the bottom layer driving module sends a reporting instruction to the firmware;
the firmware responds to the reporting instruction and reads one or more frames of the capacitance change data;
the bottom layer driving module judges whether the area of the target screen area is configured in the equipment tree or not;
if the area of the target screen area is configured in the device tree, writing the area of the target screen area configured in the device tree into the firmware;
if the area of the target screen area is not configured in the device tree, writing the default area of the target screen area configured in the bottom layer driving module into the firmware;
and the firmware determines the touch area in the target screen area according to the read one or more frames of capacitance change data and the written area.
7. The method of claim 5, wherein the firmware determines the touch area in the target screen region according to the one or more frames of capacitance change data and the determined area of the target screen region, and specifically comprises:
the firmware extracts target capacitance change data of each node in the target screen area from one frame of the capacitance change data through the processing chip, and determines the touch area in the target screen area according to the position of the node corresponding to the target capacitance change data with the capacitance change value larger than a preset value in the target screen area; or,
the firmware extracts target capacitance change data of each node in the target screen area from one frame of capacitance change data through the processing chip, determines a touch area in the target screen area according to the position of the node corresponding to the target capacitance change data with the capacitance change value larger than a preset value in the target screen area, and if the size of the touch area in the target screen area does not accord with a preset size condition, executes the step of extracting the target capacitance change data of each node in the target screen area from one frame of capacitance change data based on the next frame of capacitance change data until the size of the touch area in the target screen area accords with the preset size.
8. The method according to claim 5, wherein when the reporting rule is a first reporting rule, the bottom driver module reports each determined touch area as reporting data to the upper processing module, specifically including:
when the reporting rule is a first reporting rule, the bottom layer driving module reports each touch area determined by the firmware to the upper layer processing module as reporting data;
when the reporting rule is a second reporting rule, the bottom driver module compares the determined touch areas in the target screen areas, and reports a comparison result as the reporting data to the upper processing module, which specifically includes:
and when the reporting rule is a second reporting rule, the bottom-layer driving module compares the determined touch area in each target screen area through the firmware, and reports the comparison result of the firmware as the reporting data to the upper-layer processing module.
9. The method according to any one of claims 1 to 8, wherein the upper layer processing module triggers a bottom layer driving module, and determines a touch area in a target screen area of a touch area to be reported according to capacitance change data of the flexible capacitive touch screen and the area of the target screen area, specifically comprising:
and the upper-layer processing module reads the area reporting node, and triggers the bottom-layer driving module to determine the touch area in the target screen area according to the capacitance change data of the flexible capacitive touch screen and the area of the target screen area of the touch area to be reported.
10. An electronic device having a flexible capacitive touch screen, the electronic device comprising: memory, processor and computer program stored on the memory and executable on the processor, characterized in that the processor implements the touch screen touch area detection method according to any one of claims 1 to 9 when executing the computer program.
11. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a touch screen touch area detection method according to any one of claims 1 to 9.
CN201910122416.3A 2019-02-19 2019-02-19 Touch area detection method for touch screen, electronic device and computer readable storage medium Active CN109885201B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910122416.3A CN109885201B (en) 2019-02-19 2019-02-19 Touch area detection method for touch screen, electronic device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910122416.3A CN109885201B (en) 2019-02-19 2019-02-19 Touch area detection method for touch screen, electronic device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN109885201A CN109885201A (en) 2019-06-14
CN109885201B true CN109885201B (en) 2021-03-23

Family

ID=66928315

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910122416.3A Active CN109885201B (en) 2019-02-19 2019-02-19 Touch area detection method for touch screen, electronic device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109885201B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111182151A (en) * 2019-12-31 2020-05-19 上海摩软通讯技术有限公司 Side screen control method, electronic equipment and storage medium
CN113093930B (en) * 2020-01-08 2024-08-23 北京小米移动软件有限公司 Touch signal processing method, device and medium
CN115344187B (en) * 2022-08-12 2024-03-12 深圳康佳电子科技有限公司 Method and device for identifying painting brush style by using safety Zhuo Huatu software

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103620536A (en) * 2012-07-30 2014-03-05 华为终端有限公司 Touch event reporting method, device and mobile terminal
CN104777976A (en) * 2015-03-28 2015-07-15 深圳市金立通信设备有限公司 Interface operation method
CN107577372A (en) * 2017-09-06 2018-01-12 广东欧珀移动通信有限公司 Edge touch control method, device and mobile terminal
CN108304061A (en) * 2018-04-16 2018-07-20 维沃移动通信有限公司 A kind of display control method and terminal
CN108459815A (en) * 2018-03-16 2018-08-28 维沃移动通信有限公司 A kind of display control method and mobile terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8334849B2 (en) * 2009-08-25 2012-12-18 Pixart Imaging Inc. Firmware methods and devices for a mutual capacitance touch sensing device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103620536A (en) * 2012-07-30 2014-03-05 华为终端有限公司 Touch event reporting method, device and mobile terminal
CN104777976A (en) * 2015-03-28 2015-07-15 深圳市金立通信设备有限公司 Interface operation method
CN107577372A (en) * 2017-09-06 2018-01-12 广东欧珀移动通信有限公司 Edge touch control method, device and mobile terminal
CN108459815A (en) * 2018-03-16 2018-08-28 维沃移动通信有限公司 A kind of display control method and mobile terminal
CN108304061A (en) * 2018-04-16 2018-07-20 维沃移动通信有限公司 A kind of display control method and terminal

Also Published As

Publication number Publication date
CN109885201A (en) 2019-06-14

Similar Documents

Publication Publication Date Title
US11397501B2 (en) Coordinate measuring apparatus for measuring input position of coordinate indicating apparatus, and method of controlling the same
US20150301595A1 (en) Electronic apparatus and eye-gaze input method
CN109283996B (en) Display control method and related product
CN109885201B (en) Touch area detection method for touch screen, electronic device and computer readable storage medium
CN110109759B (en) Catton optimization method, server, electronic device and computer-readable storage medium
CN110427741B (en) Fingerprint identification method and related product
CN109150326A (en) Antenna impedance adjustment method, electronic device and computer readable storage medium
CN108983211B (en) Proximity sensor, method of controlling the same, electronic device, and computer-readable storage medium
CN109495871B (en) Bluetooth connection control method, electronic device and computer readable storage medium
CN108334303B (en) Electronic apparatus and control method thereof
CN109067984B (en) Data transmission method, electronic device and computer readable storage medium
CN108769401B (en) Signal detection method and related product
CN109165075A (en) Application display method, device, electronic equipment and storage medium
CN109375889B (en) Display control method and related product
US10101894B2 (en) Information input user interface
CN109684011B (en) Interface display control method, electronic device and computer readable storage medium
CN110058980B (en) Terminal start time early warning method, electronic device and computer readable storage medium
CN109348062B (en) Emergency call implementation method, electronic device and computer-readable storage medium
CN108920052B (en) Page display control method and related product
CN108769286B (en) DNS server configuration method and related product
CN109410846B (en) Screen backlight setting method, electronic device and computer readable storage medium
CN109782960B (en) Touch screen point reporting area switching method, electronic device and computer readable storage medium
CN109451336B (en) Video playing method and related product
CN109739577A (en) Using exempting from freezing method, electronic device and computer readable storage medium
CN109298942B (en) Picture processing method and electronic device

Legal Events

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