CN111522460B - Capacitance data processing method and device, electronic equipment and storage medium - Google Patents

Capacitance data processing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN111522460B
CN111522460B CN202010264526.6A CN202010264526A CN111522460B CN 111522460 B CN111522460 B CN 111522460B CN 202010264526 A CN202010264526 A CN 202010264526A CN 111522460 B CN111522460 B CN 111522460B
Authority
CN
China
Prior art keywords
capacitance data
touch screen
current
obtaining
trigger event
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010264526.6A
Other languages
Chinese (zh)
Other versions
CN111522460A (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.)
Oppo Chongqing Intelligent Technology Co Ltd
Original Assignee
Oppo Chongqing Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo Chongqing Intelligent Technology Co Ltd filed Critical Oppo Chongqing Intelligent Technology Co Ltd
Priority to CN202010264526.6A priority Critical patent/CN111522460B/en
Publication of CN111522460A publication Critical patent/CN111522460A/en
Application granted granted Critical
Publication of CN111522460B publication Critical patent/CN111522460B/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/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0416Control or interface arrangements specially adapted for digitisers
    • G06F3/0418Control or interface arrangements specially adapted for digitisers for error correction or compensation, e.g. based on parallax, calibration or alignment
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/044Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by capacitive means

Landscapes

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

Abstract

The embodiment of the application discloses a method for processing capacitance data, which comprises the following steps: acquiring a trigger event of the touch screen; determining an acquisition strategy of capacitance data corresponding to a trigger event; acquiring current capacitance data of the touch screen based on an acquisition strategy; and generating a detection result corresponding to the trigger event based on the current capacitance data. The embodiment of the application also discloses a processing device of the capacitance data, electronic equipment and a storage medium.

Description

Capacitance data processing method and device, electronic equipment and storage medium
Technical Field
The present application relates to, but not limited to, the technical field of processing of capacitance data, and in particular, to a method and an apparatus for processing capacitance data, an electronic device, and a storage medium.
Background
At present, in the process of detecting capacitance data of a touch screen of electronic equipment, the capacitance data can only be compensated based on a preset production test file, and compensation or uncompensation cannot be flexibly selected according to the actual situation of a test scene, so that a compatible test cannot be realized.
Content of application
The embodiment of the application is expected to provide a method and a device for processing capacitance data, electronic equipment and a storage medium, and solves the problems that in the related art, capacitance data can only be compensated based on a preset production test file, compensation or uncompensation cannot be flexibly selected according to the actual situation of a test scene, and then compatibility test cannot be realized.
The technical scheme of the application is realized as follows:
a method of processing capacitance data, the method comprising:
acquiring a trigger event of the touch screen;
determining an acquisition strategy of capacitance data corresponding to the trigger event;
acquiring current capacitance data of the touch screen based on the acquisition strategy;
and generating a detection result corresponding to the trigger event based on the current capacitance data.
Optionally, the determining an acquisition policy of capacitance data corresponding to the trigger event includes:
and when the trigger event is determined to be an event for testing the firmware of the touch screen, obtaining a first obtaining strategy, wherein the first obtaining strategy is at least used for indicating that the capacitance data compensation operation is not executed, and the obtaining strategy comprises the first obtaining strategy.
Optionally, the obtaining current capacitance data of the touch screen based on the obtaining policy includes:
obtaining current attribute data of the firmware based on the first obtaining strategy;
and when the current attribute data are determined to be different from the preset attribute data stored in the touch screen, acquiring the current capacitance data.
Optionally, the generating a detection result corresponding to the trigger event based on the current capacitance data includes:
and when the current capacitance data is determined to belong to a preset capacitance data range stored in the touch screen, generating the detection result representing that the firmware test passes.
Optionally, the generating a detection result corresponding to the trigger event based on the current capacitance data includes:
and when the current capacitance data is determined not to belong to a preset capacitance data range stored in the touch screen, generating the detection result representing that the firmware test fails.
Optionally, the obtaining the current attribute data of the firmware based on the first obtaining policy includes:
based on the first acquisition strategy, reading the current attribute data in the firmware through a two-wire serial bus interface or a serial peripheral interface.
Optionally, the determining the obtaining policy of the capacitance data corresponding to the trigger event includes:
and when the trigger event is determined to be an event for testing the touch operation received by the touch screen, obtaining a second obtaining strategy, wherein the second obtaining strategy is at least used for instructing to execute a capacitance data compensation operation, and the obtaining strategy comprises the second obtaining strategy.
Optionally, the obtaining current capacitance data of the touch screen based on the obtaining policy includes:
acquiring a first capacitance data set corresponding to each channel of the touch screen based on the second acquisition strategy;
performing capacitance data compensation processing on first capacitance data corresponding to a target channel in the first capacitance data set to obtain second capacitance data;
constructing a second capacitance data set based on the second capacitance data and data in the first capacitance data set except the first capacitance data; the current capacitance data comprises the second set of capacitance data.
A capacitance data processing apparatus, comprising:
the obtaining module is used for obtaining a trigger event of the touch screen;
the determining module is used for determining an acquisition strategy of the capacitance data corresponding to the trigger event;
the acquisition module is used for acquiring the current capacitance data of the touch screen based on the acquisition strategy;
and the processing module is used for generating a detection result corresponding to the trigger event based on the current capacitance data.
An electronic device, the electronic device comprising: a processor, a memory, and a communication bus;
the communication bus is used for realizing communication connection between the processor and the memory;
the processor is used for executing the processing program of the capacitance data stored in the memory so as to realize the steps of the processing method of the capacitance data.
A storage medium, characterized in that the storage medium stores one or more programs, which are executable by one or more processors to implement the steps of the above-mentioned capacitance data processing method.
According to the capacitance data processing method and device, the electronic equipment and the storage medium, the trigger event of the touch screen is obtained; determining an acquisition strategy of capacitance data corresponding to a trigger event; acquiring current capacitance data of the touch screen based on an acquisition strategy; generating a detection result corresponding to the trigger event based on the current capacitance data; the method and the device solve the problems that in the related art, the capacitance data can only be compensated based on preset production test files, compensation or uncompensation cannot be flexibly selected according to the actual situation of a test scene, and then compatibility test cannot be realized.
Drawings
Fig. 1 is a schematic flowchart of a method for processing capacitance data according to an embodiment of the present application;
fig. 2 is a schematic flowchart of another capacitance data processing method according to an embodiment of the present application;
fig. 3 is a schematic flowchart of another capacitance data processing method according to an embodiment of the present application;
fig. 4 is a channel schematic diagram of a capacitive touch screen of an electronic device according to an embodiment of the present application;
fig. 5 is a schematic flowchart of a method for processing capacitance data according to another embodiment of the present application;
fig. 6 is a schematic structural diagram of a capacitance data processing apparatus according to an embodiment of the present application.
Fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objectives, technical solutions and advantages of the present application clearer, the present application will be described in further detail with reference to the attached drawings, the described embodiments should not be considered as limiting the present application, and all other embodiments obtained by a person of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
In the following description, reference is made to "some embodiments" which describe a subset of all possible embodiments, but it is understood that "some embodiments" may be the same subset or different subsets of all possible embodiments, and may be combined with each other without conflict.
In the following description, references to the terms "first \ second \ third" are only to distinguish similar objects and do not denote a particular order, but rather the terms "first \ second \ third" are used to interchange specific orders or sequences, where appropriate, so as to enable the embodiments of the application described herein to be practiced in other than the order shown or described herein.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of the present application only and is not intended to be limiting of the application.
In the related art, the screen occupation ratio of the existing electronic equipment such as a mobile terminal is generally improved, and the electronic equipment can be used as a full screen, so that capacitive touch screens with different shapes appear in the market. The existing water drop corner is that the camera occupies space, so that a gap appears in a capacitive touch screen sensing material, and the acquired capacitance original data are smaller than surrounding capacitance data.
In the production line production process, two important processing flows are provided, and firstly, under the scene that the mobile terminal is not started, the detection of a pre-processed device is realized by adopting a hot plug capacitive touch screen mode. And secondly, attaching the detected device into the terminal, and upgrading the firmware of the touch screen when the assembled mobile terminal is started.
Under the condition that the mobile terminal is not started, the object of hot plug test is the firmware of the mobile terminal; and the assembled mobile terminal boot test is a firmware test by upgrading the firmware in the software to the incoming IC. After the mobile terminal leaves the factory, it is also necessary to detect whether or not the device of the mobile terminal is damaged.
At present, in the process of detecting capacitance data of a touch screen of electronic equipment, the capacitance data can only be compensated based on a preset production test file, and compensation or uncompensation cannot be flexibly selected according to the actual situation of a test scene, so that a compatible test cannot be realized.
An embodiment of the present application provides a method for processing capacitance data, which is applied to an electronic device, and as shown in fig. 1, the method includes the following steps:
step 101, obtaining a trigger event of the touch screen.
In the embodiment of the present application, the electronic device may include a mobile terminal device such as a mobile phone, a tablet computer, a notebook computer, a Personal Digital Assistant (PDA), a camera, a wearable device, and the like, and a fixed terminal device such as a desktop computer, and the electronic device is provided with a touch screen, which may be a capacitive touch screen.
In some embodiments of the present application, the trigger event is at least used to determine an acquisition policy for the capacitance data, and to acquire the current capacitance data based on the acquisition policy. Here, the types of the trigger events are different, and the corresponding acquisition policies are different.
For example, in an implementation scenario, the electronic device may obtain a trigger event of the touch screen by obtaining, by the electronic device, operation information for a display output area of the touch screen of the electronic device, where the operation information includes an operation event and an operation position, where the operation event includes a click operation on a target application icon, and the operation position includes a position where the target application icon is located. The target application comprises a first type application and a second type application, wherein the first type application has a function of testing the firmware of the touch screen, and the second type application has other functions such as real-time communication, image shooting and the like. Further, the electronic device determines that the operation information represents the starting of the target application program, and generates a trigger event. As can be seen from the above, in this implementation scenario, the type of the trigger event has an association relationship with the operation information, and it can also be considered that the type of the trigger event is related to the operation event and the operation position.
And 102, determining an acquisition strategy of capacitance data corresponding to the trigger event.
In the embodiment of the application, under the condition that the electronic device obtains the trigger event, the obtaining strategy of the capacitance data is determined based on the trigger event.
The acquisition strategy comprises a first acquisition strategy and a second acquisition strategy, wherein the first acquisition strategy is at least used for indicating not to execute the capacitance data compensation operation, and the second acquisition strategy is at least used for indicating to execute the capacitance data compensation operation. As can be seen, the acquisition strategy includes performing a capacitance data compensation operation or not performing a capacitance data compensation operation.
And 103, acquiring current capacitance data of the touch screen based on the acquisition strategy.
In the embodiment of the application, after the electronic device determines the obtaining strategy corresponding to the current trigger event, the electronic device flexibly selects to execute or not execute the capacitance data compensation operation based on the obtaining strategy to obtain the current capacitance data of the touch screen, so that the compatibility test is realized.
And 104, generating a detection result corresponding to the trigger event based on the current capacitance data.
In the embodiment of the application, after the electronic device acquires the current capacitance data of the touch screen based on the current acquisition strategy, the electronic device generates a detection result corresponding to the trigger event based on the current capacitance data. Here, the detection result includes a detection result of whether the firmware test passes or not, or a detection result of the touch operation position determination.
According to the processing method of the capacitance data, the trigger event of the touch screen is obtained; determining an acquisition strategy of capacitance data corresponding to a trigger event; acquiring current capacitance data of the touch screen based on an acquisition strategy; generating a detection result corresponding to the trigger event based on the current capacitance data; the method and the device solve the problems that in the related art, capacitance data can only be compensated based on a preset production test file, compensation or uncompensation cannot be flexibly selected according to the actual situation of a test scene, and then compatibility test cannot be achieved.
An embodiment of the present application provides a method for processing capacitance data, which is applied to an electronic device, and as shown in fig. 2, the method includes the following steps:
step 201, obtaining a trigger event of the touch screen.
Step 202, when the trigger event is determined to be an event for testing the firmware of the touch screen, a first obtaining strategy is obtained.
The first acquisition strategy is at least used for indicating that the capacitance data compensation operation is not executed, and the acquisition strategy comprises the first acquisition strategy.
Illustratively, the electronic device obtains operation information for a display output area of a touch screen of the electronic device, where the operation information includes an operation event and an operation position, the operation event includes a click operation on an icon of the first type application, and the operation position includes a position where the first type application icon is located. Further, the electronic device determines that the operation information represents the starting of the first type of application program, and generates a trigger event. Furthermore, when the electronic device determines that the trigger event is an event for testing the firmware of the touch screen, a first acquisition strategy is obtained.
Step 203, obtaining the current attribute data of the firmware based on the first obtaining strategy.
Here, after the electronic device obtains the first obtaining policy, the electronic device does not perform the capacitance data compensation operation when obtaining the current attribute data of the firmware based on the first obtaining policy, that is, when obtaining the current attribute data of the firmware.
In this embodiment of the application, step 203 obtains the current attribute data of the firmware based on the first obtaining policy, and may be implemented by the following steps: based on a first acquisition policy, current attribute data in the firmware is read through the two-wire serial bus interface or the serial peripheral interface. Here, the electronic device reads current attribute data within a particular register or a particular data packet in the firmware via the two-wire serial bus interface or the serial peripheral interface based on a first acquisition policy. In some embodiments of the present application, the current attribute data includes a current firmware version number stored by the particular register.
And 204, determining that the current attribute data are different from the preset attribute data stored in the touch screen, and acquiring current capacitance data.
In the embodiment of the present application, the preset attribute data stored in the touch screen includes a preset firmware version number stored in a specific register.
Here, after obtaining the current attribute data of the firmware, the electronic device compares the current attribute data with preset attribute data stored in the touch screen, for example, compares the current firmware version number with a preset firmware version number, determines that the current firmware version number is different from the preset firmware version number, and obtains the current capacitance data without performing the capacitance data compensation operation, so that the current capacitance data is obtained as a reference factor for the firmware test without performing the capacitance data compensation operation after the firmware is upgraded.
In other embodiments of the present application, the electronic device determines that the current attribute data is the same as the preset attribute data stored in the touch screen, and generates a detection result indicating that the firmware test passes.
Here, the electronic device determines that the current firmware version number is the same as the preset firmware version number, and generates a detection result representing that the firmware test is passed, that is, the firmware test from the electronic device in the firmware compatibility preprocessing process is passed.
Therefore, the same production test file is compatible with different firmware versions, the test of the firmware carried by the incoming material in the compatible pre-processing technology of the electronic equipment is passed, the firmware in the incoming material integrated circuit is also compatible with firmware upgrading and writing, the production efficiency is accelerated, the product quality is ensured, and the user experience is improved.
And step 205, when the current capacitance data is determined to belong to the preset capacitance data range stored in the touch screen, generating a detection result representing that the firmware test is passed.
In the embodiment of the application, after the electronic device obtains the current capacitance data, the current capacitance data is compared with a preset capacitance data range stored in the touch screen, and when the current capacitance data is determined to belong to the preset capacitance data range, a detection result indicating that the firmware test is passed is generated.
And step 206, when the current capacitance data is determined not to belong to the preset capacitance data range stored in the touch screen, generating a detection result representing that the firmware test fails.
In the embodiment of the application, when the current capacitance data is determined not to belong to the preset capacitance data range, a detection result representing that the firmware test fails is generated. Therefore, the upgraded firmware can be accurately tested, the test effect is improved, and the product quality is ensured.
It should be noted that, for the descriptions of the same steps and the same contents in this embodiment as those in other embodiments, reference may be made to the descriptions in other embodiments, which are not described herein again.
An embodiment of the present application provides a method for processing capacitance data, which is applied to an electronic device and shown in fig. 3, and the method includes the following steps:
step 301, acquiring a trigger event of the touch screen.
Step 302, when the trigger event is determined to be an event for testing the touch operation received by the touch screen, a second acquisition policy is obtained.
And the second acquisition strategy is at least used for indicating to execute the capacitance data compensation operation, and the acquisition strategies comprise the second acquisition strategy.
Illustratively, the electronic device obtains operation information for a display output area of the touch screen of the electronic device, wherein the operation information comprises an operation event and an operation position, the operation event comprises a click operation on an icon of the second type application, and the operation position comprises a position of the second type application icon. Further, the electronic device determines that the operation information represents the starting of the second type of application program, and generates a trigger event. Furthermore, when the electronic device determines that the trigger event is an event for testing touch operation received by the touch screen, a second acquisition strategy is obtained.
And 303, acquiring a first capacitance data set corresponding to each channel of the touch screen based on a second acquisition strategy.
Here, after obtaining the second obtaining policy, the electronic device performs the capacitance data compensation operation when obtaining the current attribute data of the firmware based on the second obtaining policy, that is, obtaining the current attribute data of the firmware. In the embodiment of the application, the electronic device first acquires a first capacitance data set corresponding to each channel of the touch screen. The electronic device then performs a capacitance data compensation operation to obtain a second capacitance data set by performing steps 304-305. That is to say, the second capacitance data set is a data set obtained by performing capacitance data compensation on the first capacitance data corresponding to the target channel in the first capacitance data set.
And 304, performing capacitance data compensation processing on the first capacitance data corresponding to the target channel in the first capacitance data set to obtain second capacitance data.
Step 305, constructing a second capacitance data set based on the second capacitance data and the data in the first capacitance data set except the first capacitance data.
Wherein the current capacitance data comprises a second set of capacitance data.
And step 306, generating a detection result corresponding to the trigger event based on the current capacitance data.
In this embodiment of the application, the electronic device generates a detection result corresponding to the trigger event based on the second capacitance data set, for example, determines a position of the touch operation corresponding to the trigger event.
It should be noted that, for the descriptions of the same steps and the same contents in this embodiment as those in other embodiments, reference may be made to the descriptions in other embodiments, which are not described herein again.
An embodiment of the present application provides a method for processing capacitance data, which is applied to an electronic device, and as shown in fig. 4, the method includes the following steps:
here, with reference to fig. 4, an implementation scenario is introduced, where a capacitive touch screen of an electronic device includes 15 transmit channels and 34 receive channels, and only some of the channels are exemplarily shown in fig. 4. The water drop corner of the capacitive touch screen occupies space due to the camera, so that the sensing material of the capacitive touch screen is notched, and the acquired original capacitance data is smaller than surrounding capacitance data. The capacitive touch screen firmware compensates and uncompensates the capacitance data of the specific channel, and due to the difference of firmware version numbers, some firmware has a compensation function, and some firmware does not have the compensation function, so that the capacitance reference data acquired by the same software driver is inconsistent, and the test items cannot be compatible.
In the embodiment of the present application, referring to fig. 5, a method for processing capacitance data may be implemented by the following steps to ensure compatibility testing:
and Step1, presetting a test file of limiting parameters of capacitance data which does not compensate the preset number of channels in the electronic equipment. The firmware version number of the integrated circuit which is fed in the previous processing is preset.
And Step2, acquiring the firmware version number of the current integrated circuit in the test scene of the electronic equipment.
And Step3, the electronic equipment judges whether the firmware version number of the current integrated circuit is within the preset firmware version number.
And Step4, the electronic equipment does not issue an instruction for closing the compensation capacitance data when determining that the firmware version number of the current integrated circuit is within the preset firmware version number.
And Step5, the electronic equipment determines that the firmware version number of the current integrated circuit is not within the preset firmware version number, and issues an instruction for closing the compensation capacitance data.
And Step6, under the test scene of the electronic equipment, if a processor in the integrated circuit receives an instruction of closing the compensation capacitance data, closing the function of the compensation capacitance data and acquiring the current capacitance data.
And Step7, the electronic equipment compares the preset capacitance data range with the current capacitance data.
And Step8, the electronic equipment judges whether the current capacitance data is in a preset capacitance data range.
And Step9, the electronic equipment determines that the current capacitance data is within a preset capacitance data range, and the test is passed.
And Step10, the electronic equipment determines that the current capacitance data is not in the preset capacitance data range, and the test is failed.
Step11, in a non-test scene, the electronic device performs capacitance data compensation on the preset channel to be used in other scenes, for example, to determine the position of touch operation.
Therefore, the method for processing the capacitive data provided by the embodiment of the application is a method for controlling the capacitive data compensation of the electronic equipment in different scenes, and the method is characterized in that if the current situation is the test scene, the firmware version number in the current integrated circuit is read, and whether an instruction for compensating the capacitive data is issued is determined according to the firmware version number in the integrated circuit, so that the same production test file is realized, different firmware versions are compatible, the test of the firmware from the electronic equipment in the machining process before the electronic equipment software is compatible is passed, the firmware in the electronic equipment software also needs to be compatible, upgraded and written into the firmware in the incoming integrated circuit, the production efficiency is accelerated, the product quality is ensured, and the user experience is improved.
An embodiment of the present application provides a processing apparatus for capacitance data, which can be applied to a processing method for capacitance data provided in an embodiment corresponding to fig. 1 to 3, and as shown in fig. 6, the processing apparatus 6 for capacitance data includes:
an obtaining module 61, configured to obtain a trigger event of the touch screen;
a determining module 62, configured to determine an acquisition policy of capacitance data corresponding to a trigger event;
the obtaining module 63 is configured to obtain current capacitance data of the touch screen based on an obtaining policy;
and the processing module 64 is configured to generate a detection result corresponding to the trigger event based on the current capacitance data.
In other embodiments of the present application, the determining module 62 is further configured to obtain a first obtaining policy when it is determined that the triggering event is an event for testing firmware of the touch screen, where the first obtaining policy is at least used to indicate that the capacitance data compensation operation is not performed, and the obtaining policy includes the first obtaining policy.
In other embodiments of the present application, the obtaining module 63 is further configured to obtain current attribute data of the firmware based on the first obtaining policy; and when the current attribute data are determined to be different from the preset attribute data stored in the touch screen, acquiring the current capacitance data.
In other embodiments of the present application, the processing module 64 is further configured to generate a detection result representing that the firmware test passes when it is determined that the current capacitance data belongs to a preset capacitance data range stored in the touch screen.
In other embodiments of the present application, the processing module 64 is further configured to generate a detection result indicating that the firmware test fails when it is determined that the current capacitance data does not belong to a preset capacitance data range stored in the touch screen.
In other embodiments of the present application, the obtaining module 63 is further configured to read current attribute data in the firmware through the two-wire serial bus interface or the serial peripheral interface based on the first obtaining policy.
In other embodiments of the present application, the determining module 62 is further configured to obtain a second obtaining policy when it is determined that the triggering event is an event for testing a touch operation received by the touch screen, where the second obtaining policy is at least used to instruct to perform a capacitance data compensation operation, and the obtaining policy includes the second obtaining policy.
In other embodiments of the present application, the obtaining module 63 is further configured to obtain, based on a second obtaining policy, a first capacitance data set corresponding to each channel of the touch screen; capacitance data compensation processing is carried out on first capacitance data corresponding to a target channel in the first capacitance data set to obtain second capacitance data; constructing a second capacitance data set based on the second capacitance data and data except the first capacitance data in the first capacitance data set; the current capacitance data comprises a second set of capacitance data.
It should be noted that, for a specific implementation process of the steps executed by the processor in this embodiment, reference may be made to the implementation process in the capacitance data processing method provided in the embodiments corresponding to fig. 1 to 3, and details are not described here again.
An embodiment of the present application provides an electronic device, which can be applied to the method for processing capacitance data provided in the embodiment corresponding to fig. 1 to 3, and as shown in fig. 7, the electronic device 7 (the electronic device 7 in fig. 7 corresponds to the processing apparatus 6 for capacitance data in fig. 6) includes: a processor 71, a memory 72, and a communication bus 73, wherein:
the communication bus 73 is used to realize a communication connection between the processor 71 and the memory 72.
The processor 71 is configured to execute a processing program of the capacitance data stored in the memory 72 to implement the following steps:
acquiring a trigger event of the touch screen;
determining an acquisition strategy of capacitance data corresponding to a trigger event;
acquiring current capacitance data of the touch screen based on an acquisition strategy;
and generating a detection result corresponding to the trigger event based on the current capacitance data.
In other embodiments of the present application, the processor 71 is configured to execute a processing program of the capacitance data stored in the memory 72 to implement the following steps:
when the trigger event is determined to be an event for testing the firmware of the touch screen, a first acquisition strategy is obtained, the first acquisition strategy is at least used for indicating that the capacitance data compensation operation is not executed, and the acquisition strategy comprises the first acquisition strategy.
In other embodiments of the present application, the processor 71 is configured to execute a processing program of the capacitance data stored in the memory 72 to implement the following steps:
obtaining current attribute data of the firmware based on a first obtaining strategy;
and when the current attribute data are determined to be different from the preset attribute data stored in the touch screen, acquiring current capacitance data.
In other embodiments of the present application, the processor 71 is configured to execute a processing program of the capacitance data stored in the memory 72 to implement the following steps:
and when the current capacitance data is determined to belong to a preset capacitance data range stored in the touch screen, generating a detection result representing that the firmware test passes.
In other embodiments of the present application, the processor 71 is configured to execute a processing program of the capacitance data stored in the memory 72 to implement the following steps:
and when the current capacitance data is determined not to belong to the preset capacitance data range stored in the touch screen, generating a detection result representing that the firmware test fails.
In other embodiments of the present application, the processor 71 is configured to execute a processing program of the capacitance data stored in the memory 72 to implement the following steps:
based on a first acquisition policy, current attribute data in the firmware is read through the two-wire serial bus interface or the serial peripheral interface.
In other embodiments of the present application, the processor 71 is configured to execute a processing program of the capacitance data stored in the memory 72 to implement the following steps:
and when the trigger event is determined to be an event for testing touch operation received by the touch screen, obtaining a second obtaining strategy, wherein the second obtaining strategy is at least used for instructing to execute capacitance data compensation operation and comprises a second obtaining strategy.
In other embodiments of the present application, the processor 71 is configured to execute a processing program of the capacitance data stored in the memory 72 to implement the following steps:
acquiring a first capacitance data set corresponding to each channel of the touch screen based on a second acquisition strategy;
performing capacitance data compensation processing on first capacitance data corresponding to a target channel in the first capacitance data set to obtain second capacitance data;
constructing a second capacitance data set based on the second capacitance data and data except the first capacitance data in the first capacitance data set; the current capacitance data comprises a second set of capacitance data.
By way of example, the Processor may be an integrated circuit chip having Signal processing capabilities, such as a general purpose Processor, a Digital Signal Processor (DSP), or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or the like, wherein the general purpose Processor may be a microprocessor or any conventional Processor or the like.
It should be noted that, for a specific implementation process of the steps executed by the processor in this embodiment, reference may be made to the implementation process in the capacitance data processing method provided in the embodiments corresponding to fig. 1 to 3, and details are not described here again.
Embodiments of the application provide a computer readable storage medium storing one or more programs, the one or more programs being executable by one or more processors to perform the steps of:
acquiring a trigger event of the touch screen;
determining an acquisition strategy of capacitance data corresponding to a trigger event;
acquiring current capacitance data of the touch screen based on an acquisition strategy;
and generating a detection result corresponding to the trigger event based on the current capacitance data.
In other embodiments of the present application, the one or more programs are executable by the one or more processors and further implement the steps of:
when the trigger event is determined to be an event for testing the firmware of the touch screen, obtaining a first obtaining strategy, wherein the first obtaining strategy is at least used for indicating that the capacitance data compensation operation is not executed, and the obtaining strategy comprises the first obtaining strategy.
In other embodiments of the present application, the one or more programs are executable by the one or more processors and further implement the steps of:
obtaining current attribute data of the firmware based on a first obtaining strategy;
and when the current attribute data are determined to be different from the preset attribute data stored in the touch screen, acquiring current capacitance data.
In other embodiments of the present application, the one or more programs are executable by the one or more processors and further implement the steps of:
and when the current capacitance data is determined to belong to a preset capacitance data range stored in the touch screen, generating a detection result representing that the firmware test passes.
In other embodiments of the present application, the one or more programs are executable by the one or more processors and further implement the steps of:
and when the current capacitance data is determined not to belong to the preset capacitance data range stored in the touch screen, generating a detection result representing that the firmware test fails.
In other embodiments of the present application, the one or more programs are executable by the one or more processors and further implement the steps of:
based on a first acquisition policy, current attribute data in the firmware is read through the two-wire serial bus interface or the serial peripheral interface.
In other embodiments of the present application, the one or more programs are executable by the one or more processors and further implement the steps of:
and when the trigger event is determined to be an event for testing touch operation received by the touch screen, obtaining a second obtaining strategy, wherein the second obtaining strategy is at least used for instructing to execute capacitance data compensation operation and comprises a second obtaining strategy.
In other embodiments of the present application, the one or more programs are executable by the one or more processors and further implement the steps of:
acquiring a first capacitance data set corresponding to each channel of the touch screen based on a second acquisition strategy;
performing capacitance data compensation processing on first capacitance data corresponding to a target channel in the first capacitance data set to obtain second capacitance data;
constructing a second capacitance data set based on the second capacitance data and the data except the first capacitance data in the first capacitance data set; the current capacitance data comprises a second set of capacitance data.
It should be noted that, for a specific implementation process of the steps executed by the processor in this embodiment, reference may be made to the implementation process in the capacitance data processing method provided in the embodiments corresponding to fig. 1 to 3, and details are not described here again.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only a preferred embodiment of the present application, and is not intended to limit the scope of the present application.

Claims (11)

1. A method of processing capacitance data, the method comprising:
acquiring a trigger event of the touch screen;
determining an acquisition strategy of the capacitance data corresponding to the trigger event from a first acquisition strategy and a second acquisition strategy; wherein the first acquisition strategy is at least used for indicating not to execute the capacitance data compensation operation, and the second acquisition strategy is at least used for indicating to execute the capacitance data compensation operation; the trigger event comprises an event for testing firmware of the touch screen or an event for testing touch operation received by the touch screen;
acquiring current capacitance data of the touch screen based on the acquisition strategy;
and generating a detection result corresponding to the trigger event based on the current capacitance data.
2. The method of claim 1, wherein the determining the acquisition policy of the capacitance data corresponding to the trigger event comprises:
and when the trigger event is determined to be an event for testing the firmware of the touch screen, obtaining the first obtaining strategy.
3. The method of claim 2, wherein the obtaining current capacitance data of the touch screen based on the obtaining policy comprises:
obtaining current attribute data of the firmware based on the first obtaining strategy;
and when the current attribute data are determined to be different from the preset attribute data stored in the touch screen, acquiring the current capacitance data.
4. The method of claim 3, wherein generating the detection result corresponding to the trigger event based on the current capacitance data comprises:
and when the current capacitance data is determined to belong to a preset capacitance data range stored in the touch screen, generating the detection result representing that the firmware test passes.
5. The method of claim 3, wherein generating the detection result corresponding to the trigger event based on the current capacitance data comprises:
and when the current capacitance data is determined not to belong to a preset capacitance data range stored in the touch screen, generating the detection result representing that the firmware test fails.
6. The method of claim 3, wherein obtaining current attribute data of the firmware based on the first acquisition policy comprises:
based on the first acquisition strategy, reading the current attribute data in the firmware through a two-wire serial bus interface or a serial peripheral interface.
7. The method according to claim 1, wherein the determining the acquisition strategy of the capacitance data corresponding to the trigger event comprises:
and when the trigger event is determined to be an event for testing the touch operation received by the touch screen, obtaining the second acquisition strategy.
8. The method of claim 7, wherein the obtaining current capacitance data of the touch screen based on the obtaining policy comprises:
acquiring a first capacitance data set corresponding to each channel of the touch screen based on the second acquisition strategy;
performing capacitance data compensation processing on first capacitance data corresponding to a target channel in the first capacitance data set to obtain second capacitance data;
constructing a second capacitance data set based on the second capacitance data and data in the first capacitance data set except the first capacitance data; the current capacitance data comprises the second set of capacitance data.
9. An apparatus for processing capacitance data, the apparatus comprising:
the obtaining module is used for obtaining a trigger event of the touch screen;
the determining module is used for determining an acquisition strategy of the capacitance data corresponding to the trigger event from a first acquisition strategy and a second acquisition strategy; wherein the first acquisition strategy is at least used for indicating not to execute the capacitance data compensation operation, and the second acquisition strategy is at least used for indicating to execute the capacitance data compensation operation; the trigger event comprises an event for testing firmware of the touch screen or an event for testing touch operation received by the touch screen;
the acquisition module is used for acquiring the current capacitance data of the touch screen based on the acquisition strategy;
and the processing module is used for generating a detection result corresponding to the trigger event based on the current capacitance data.
10. An electronic device, characterized in that the electronic device comprises: a processor, a memory, and a communication bus;
the communication bus is used for realizing communication connection between the processor and the memory;
the processor is configured to execute a processing program of the capacitance data stored in the memory to implement the steps of the processing method of the capacitance data according to any one of claims 1 to 8.
11. A storage medium, characterized in that the storage medium stores one or more programs executable by one or more processors to implement the steps of the method of processing capacitance data according to any one of claims 1 to 8.
CN202010264526.6A 2020-04-07 2020-04-07 Capacitance data processing method and device, electronic equipment and storage medium Active CN111522460B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010264526.6A CN111522460B (en) 2020-04-07 2020-04-07 Capacitance data processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010264526.6A CN111522460B (en) 2020-04-07 2020-04-07 Capacitance data processing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111522460A CN111522460A (en) 2020-08-11
CN111522460B true CN111522460B (en) 2022-12-23

Family

ID=71901617

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010264526.6A Active CN111522460B (en) 2020-04-07 2020-04-07 Capacitance data processing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111522460B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102043691A (en) * 2009-10-19 2011-05-04 联咏科技股份有限公司 Touch device as well as controller, test method and test system thereof
CN102646048A (en) * 2012-05-03 2012-08-22 中兴通讯股份有限公司 Method for upgrading firmware of touch screen of mobile terminal and device
CN102654543A (en) * 2012-05-23 2012-09-05 东莞通华液晶有限公司 Method for testing capacitive touch screens and testing equipment thereof
CN105630254A (en) * 2014-10-28 2016-06-01 南京瀚宇彩欣科技有限责任公司 Touch pad and method for compensating induction quantities of touch sensing units of touch pad
CN107037352A (en) * 2017-04-06 2017-08-11 芯海科技(深圳)股份有限公司 A kind of capacitance type touch control keys chip detection calibration system and method
CN107621579A (en) * 2017-09-05 2018-01-23 华显光电技术(惠州)有限公司 The touch-control adjustment method of touch screen
CN108255360A (en) * 2018-01-22 2018-07-06 珠海格力电器股份有限公司 Touch screen anti-interference control method, device and system
CN108459232A (en) * 2018-03-22 2018-08-28 武汉华显光电技术有限公司 touch screen test device and method
CN109002237A (en) * 2018-09-17 2018-12-14 深圳市德名利电子有限公司 A kind of touch-control driving method, touch panel and touch control display apparatus
CN109188143A (en) * 2018-09-20 2019-01-11 新辉开科技(深圳)有限公司 A kind of method and system detecting capacitive touch screen functional sheet

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7567240B2 (en) * 2005-05-31 2009-07-28 3M Innovative Properties Company Detection of and compensation for stray capacitance in capacitive touch sensors
TWI539275B (en) * 2009-10-07 2016-06-21 聯詠科技股份有限公司 Touch control device and controller, testing method and system of the same
US20130339734A1 (en) * 2011-08-12 2013-12-19 Power-One, Inc. Secure Method and System for Remote Field Upgrade of Power Device Firmware
US20160306496A1 (en) * 2013-04-25 2016-10-20 Sharp Kabushiki Kaisha Touch panel system and electronic apparatus
CN103279247B (en) * 2013-06-06 2016-08-10 敦泰科技有限公司 A kind of capacitive touch screen
CN103488364B (en) * 2013-09-29 2017-08-25 深圳Tcl工业研究院有限公司 A kind of capacitive touch screen and its self-adapting correction method, system
KR20150121484A (en) * 2014-04-21 2015-10-29 삼성전기주식회사 Touchscreen apparatus and method for sensing touch input
US10914773B2 (en) * 2017-09-29 2021-02-09 Intel Corporation Resolution adjustment for capacitive touch sensor
US10528189B2 (en) * 2018-04-09 2020-01-07 Stmicroelectronics Design And Application S.R.O. Evaluation of touch screen display capacitance using a touch screen controller

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102043691A (en) * 2009-10-19 2011-05-04 联咏科技股份有限公司 Touch device as well as controller, test method and test system thereof
CN102646048A (en) * 2012-05-03 2012-08-22 中兴通讯股份有限公司 Method for upgrading firmware of touch screen of mobile terminal and device
CN102654543A (en) * 2012-05-23 2012-09-05 东莞通华液晶有限公司 Method for testing capacitive touch screens and testing equipment thereof
CN105630254A (en) * 2014-10-28 2016-06-01 南京瀚宇彩欣科技有限责任公司 Touch pad and method for compensating induction quantities of touch sensing units of touch pad
CN107037352A (en) * 2017-04-06 2017-08-11 芯海科技(深圳)股份有限公司 A kind of capacitance type touch control keys chip detection calibration system and method
CN107621579A (en) * 2017-09-05 2018-01-23 华显光电技术(惠州)有限公司 The touch-control adjustment method of touch screen
CN108255360A (en) * 2018-01-22 2018-07-06 珠海格力电器股份有限公司 Touch screen anti-interference control method, device and system
CN108459232A (en) * 2018-03-22 2018-08-28 武汉华显光电技术有限公司 touch screen test device and method
CN109002237A (en) * 2018-09-17 2018-12-14 深圳市德名利电子有限公司 A kind of touch-control driving method, touch panel and touch control display apparatus
CN109188143A (en) * 2018-09-20 2019-01-11 新辉开科技(深圳)有限公司 A kind of method and system detecting capacitive touch screen functional sheet

Also Published As

Publication number Publication date
CN111522460A (en) 2020-08-11

Similar Documents

Publication Publication Date Title
US10007401B2 (en) Information processing apparatus, method, and non-transitory computer-readable medium
US9317413B2 (en) Testing device and testing method thereof
JP7315796B2 (en) Circuit principle diagram check method, device and system
CN108632533B (en) Camera control method, mobile terminal and computer readable storage medium
US11436403B2 (en) Online document commenting method and apparatus
CN109561257B (en) Picture focusing method, device, terminal and corresponding storage medium
CN105242950A (en) Display screen upgrading method and system
CN110532188B (en) Page display test method and device
CN104808959B (en) Information processing method and electronic equipment
CN109359582B (en) Information searching method, information searching device and mobile terminal
EP2911064B1 (en) Memory initializing method and electronic device supporting the same
US9560272B2 (en) Electronic device and method for image data processing
CN116265972A (en) Power consumption display method of mobile device and mobile device
CN108132864B (en) Terminal verification method, terminal device and computer readable medium
KR20200085531A (en) An electronic device, a protecting case for the electronic device, and dispalying method thereof
CN110618852B (en) View processing method, view processing device and terminal equipment
CN111522460B (en) Capacitance data processing method and device, electronic equipment and storage medium
US20150339008A1 (en) Method for controlling display and electronic device
CN111597009A (en) Application program display method and device and terminal equipment
CN107526814B (en) Mobile terminal file storage method and device
CN107589904B (en) SD card reading and writing method and device
US10372333B2 (en) Electronic device and method for storing a file in a plurality of memories
US20050086398A1 (en) Method of changing EDID of motherboard
CN114282494A (en) Information display method and device, electronic equipment and storage medium
CN110457520B (en) Audio permission acquisition method and device, computer equipment and computer storage medium

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