Method, system and device for calibrating touch screen
By monitoring the status of the NFC module and adjusting the radio frequency calibration value, the problem of NFC field strength interference on the touch screen is solved, and the interactive experience of the POS machine and the smoothness of the payment process are improved.
Patent Information
- Application Number
- CN202410787204.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-18
- Publication Date
- 2024-10-11
AI Technical Summary
When traditional POS machines integrate NFC technology, the NFC field strength will cause breakpoints and jumper problems on the touch screen, affecting the user interaction experience and the smoothness of the payment process.
By monitoring the working status of the NFC module, the corresponding flag bit is generated, and according to the status of the flag bit, the touch screen is controlled to update the RF calibration value, enter the NFC field strength adaptation mode, monitor the changes in the original data, and adjust the sensitivity and frequency response parameters to adapt to the NFC field strength. interference.
It reduces the breakpoints and jumpers caused by field strength on the touch screen when NFC is working, and improves the user interaction experience and the smoothness of the payment process.
Smart Images

Figure CN118760368A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of POS machine data processing, and in particular to a touch screen calibration method, system and device. Background Art
[0002] With the popularity of unattended POS machines and compact POS machines in the market, consumers' demand for convenient and efficient payment experience continues to increase. However, this type of POS machine has some challenges, especially in terms of integration with NFC (Near Field Communication) technology.
[0003] In the prior art, traditional POS machines usually include NFC antennas to support NFC payment methods, and these antennas are usually placed under the touch screen. However, when the NFC function is turned on, the NFC field strength will cause the touch screen to have probabilistic breakpoints, jumpers and other problems, thus affecting the user's interactive experience and the smooth progress of the payment process. Summary of the invention
[0004] In order to solve the above technical problems, the present application provides a touch screen calibration method, system and device for allowing the touch screen to automatically adapt to the NFC field strength.
[0005] The technical solution provided in this application is described below:
[0006] The first aspect of the present application provides a touch screen calibration method, comprising:
[0007] Monitor the working status of the NFC module, which includes normally open, polling and closed;
[0008] When the working state changes, a corresponding flag is generated according to the current working state, and the flag corresponds to the working state one by one;
[0009] Monitor the flag position through the touch screen;
[0010] The touch screen is controlled to update the radio frequency calibration value according to the state of the flag bit.
[0011] Optionally, controlling the touch screen to update the radio frequency calibration value according to the state of the flag bit includes:
[0012] When the flag bit changes, controlling the touch screen to enter an NFC field strength adaptation mode;
[0013] Controlling the touch screen to monitor changes in raw data according to the NFC field strength adaptation mode, wherein the raw data is unprocessed data acquired by the touch screen during screen interaction, the raw data will fluctuate when affected by the NFC field strength, and the raw data is a set of parameters in a non-interaction state when no operation is performed;
[0014] If the change of the original data exceeds a preset threshold, it is determined that the touch screen is interfered by the NFC field strength;
[0015] When the touch screen is interfered by the NFC field strength, adjusting the sensitivity and frequency response parameters of the touch screen according to the interference data of the NFC field strength;
[0016] A radio frequency calibration value of the touch screen is updated according to the sensitivity and the frequency response parameter.
[0017] Optionally, after controlling the touch screen to monitor changes in raw data according to the NFC field strength adaptation mode, the method further includes:
[0018] If the change of the original data does not exceed the preset threshold, it is determined to update the radio frequency calibration value according to the sensitivity and frequency response parameters in the original data.
[0019] Optionally, adjusting the sensitivity and frequency response parameters of the touch screen according to the interference data of the NFC field strength includes:
[0020] Obtain interference data of the NFC field strength from the raw data;
[0021] Determining adjustment values for sensitivity and frequency response parameters using preset rules based on the interference data;
[0022] The parameters of the sensitivity and the frequency response are adjusted according to the adjustment value.
[0023] Optionally, after monitoring the flag bit through the touch screen, the method further includes:
[0024] When the flag bit changes, the touch screen is controlled to write mode change data corresponding to the flag bit into the target register.
[0025] Optionally, when the working state changes, generating a corresponding flag bit according to the current working state includes:
[0026] When the working state changes, a flag bit of the working state after the change is written into the kernel node, and the kernel node is used to implement data interaction between the application layer and the bottom layer of the POS terminal.
[0027] Optionally, after controlling the touch screen to update the radio frequency calibration value, the method further includes:
[0028] Acquire preset coordinates, simulate a touch on the preset coordinates on the touch screen, and acquire feedback data;
[0029] Determining whether the feedback data is the same as the preset feedback data of the preset coordinates;
[0030] If not, the radio frequency calibration value is updated again.
[0031] A second aspect of the present application provides a touch screen calibration system, comprising:
[0032] A first monitoring unit, used to monitor the working state of the NFC module, where the working state includes normally open, polling and closed;
[0033] A generating unit, configured to generate a corresponding flag bit according to the current working state when the working state changes, wherein the flag bit corresponds to the working state one by one;
[0034] A second monitoring unit, used for monitoring the flag bit through a touch screen;
[0035] An updating unit is used to control the touch screen to update the radio frequency calibration value according to the state of the flag bit.
[0036] Optionally, the updating unit includes:
[0037] A mode switching module, used to control the touch screen to enter an NFC field strength adaptation mode when the flag bit changes;
[0038] A monitoring module, used to control the touch screen to monitor changes in raw data according to the NFC field strength adaptation mode, wherein the raw data is unprocessed data obtained by the touch screen during screen interaction, and the raw data will fluctuate when affected by the NFC field strength. When no operation is performed, the raw data is a set of parameters in a non-interactive state;
[0039] A determination module, determining that the touch screen is not interfered by the NFC field strength if the change of the original data does not exceed the preset threshold;
[0040] A second updating module, updating the radio frequency calibration value according to the sensitivity and frequency response parameters in the original data;
[0041] An adjustment module, configured to adjust the sensitivity and frequency response parameters of the touch screen according to the interference data of the NFC field strength;
[0042] An updating module is used to update the radio frequency calibration value of the touch screen according to the sensitivity and the frequency response parameter.
[0043] Optionally, the adjustment module is further used for:
[0044] Obtain interference data of the NFC field strength from the raw data;
[0045] Determining adjustment values for sensitivity and frequency response parameters using preset rules based on the interference data;
[0046] The parameters of the sensitivity and the frequency response are adjusted according to the adjustment value.
[0047] Optionally, the system further includes:
[0048] The writing unit is used to control the touch screen to write mode change data corresponding to the flag bit into the target register when the flag bit changes.
[0049] Optionally, the generating unit is further used for:
[0050] When the working state changes, a flag bit of the working state after the change is written into the kernel node, and the kernel node is used to implement data interaction between the application layer and the bottom layer of the POS terminal.
[0051] Optionally, the system further includes:
[0052] Acquire preset coordinates, simulate a touch on the preset coordinates on the touch screen, and acquire feedback data;
[0053] Determining whether the feedback data is the same as the preset feedback data of the preset coordinates;
[0054] If not, the radio frequency calibration value is updated again.
[0055] A third aspect of the present application provides a touch screen calibration device, the device comprising:
[0056] Processor, memory, input-output unit, and bus;
[0057] The processor is connected to the memory, the input and output unit, and the bus;
[0058] The memory stores a program, and the processor calls the program to execute the first aspect and any optional method in the first aspect.
[0059] A fourth aspect of the present application provides a computer-readable storage medium, on which a program is stored. When the program is executed on a computer, the program executes the first aspect and any optional method in the first aspect.
[0060] It can be seen from the above technical solutions that this application has the following advantages:
[0061] By controlling the touch screen to monitor the flag bit change, the touch screen can adaptively calibrate the RF value for the field strength change caused by the NFC working state change when the NFC working state changes, thereby reducing the breakpoints and jumpers caused by the field strength in the NFC working state. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] In order to more clearly illustrate the technical solution in the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0063] Figure 1 A schematic diagram of an embodiment of a touch screen calibration method in the present application;
[0064] Figure 2 This is a schematic flow chart of another embodiment of the touch screen calibration method in the present application;
[0065] Figure 3 A schematic flow chart of an embodiment of a method for calculating a radio frequency calibration value in a touch screen calibration method in the present application;
[0066] Figure 4 A schematic flow chart of an embodiment of a method for calculating sensitivity and response frequency parameters in a touch screen calibration method in the present application;
[0067] Figure 5 A schematic diagram of the structure of an embodiment of a touch screen calibration system in the present application;
[0068] Figure 6 This is a schematic structural diagram of another embodiment of a touch screen calibration system in the present application;
[0069] Figure 7 FIG. 4 is a schematic structural diagram of another embodiment of a touch screen calibration device in the present application. DETAILED DESCRIPTION
[0070] It should be noted that the touch screen calibration method provided in this application can be applied to a terminal, a system, or a server. For example, the terminal can be a smart phone or a computer, a tablet computer, a smart TV, a smart watch, a portable computer terminal, or a fixed terminal such as a desktop computer. For the convenience of explanation, this application uses a POS terminal as an example for explanation.
[0071] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0072] See also Figure 1 The present application first provides an embodiment of a touch screen calibration method, which includes:
[0073] S101, monitoring the working status of the NFC module, the working status includes normally open, polling and closed;
[0074] When the NFC working state is switched, feedback will be given to the POS terminal. In the actual working environment, the NFC working states include normally open, polling and closed. In the normally open state, the contactless system of the POS terminal is in the open state, the polling state is that the POS terminal only turns on NFC, but the contactless system is not turned on, and the closed state is the state where NFC is not activated.
[0075] After the POS device is turned on, the NFC module will enter the corresponding working state according to the startup logic of the POS device. Therefore, when the working state of NFC is converted, the relevant pins connected to the POS terminal will produce different level feedback, so that the POS terminal can obtain the working state of NFC according to the level feedback to achieve the purpose of monitoring the working state of the NFC module.
[0076] Specifically, for the main body of the POS machine equipped with the Android system, the entrance of the NFC switch is set on the AP (application processor) side. For the POS machine equipped with a dual-chip solution, the NFC switch entrance will be connected to the AP side and the security chip at the same time, so that the NFC module can directly feed back the working status changes to the underlying storage of the Android system when the POS terminal is started. The POS terminal directly obtains the working status changes of the NFC, thereby achieving the purpose of the POS terminal monitoring the working status of the NFC module.
[0077] S102, when the working state changes, a corresponding flag is generated according to the current working state, and the flag corresponds to the working state one by one;
[0078] In actual usage scenarios, the Android system used by POS terminals is an open source operating system based on the Linux kernel, which is mainly used on mobile devices. In the Linux kernel environment, when the POS terminal detects changes in the NFC working status, it can write a flag bit to the corresponding address, where the corresponding address is the kernel node, which is a specific node for storing the flag bit, and through the operation logic, other peripheral hardware connected to the POS terminal that is loaded in the control system of the Linux kernel through the main firmware can obtain the change in the NFC working status by reading the flag bit.
[0079] Generally, the storage location of the flag in the POS terminal is / sys / module / gt1x_tpd / parameters / rfmode. In the embodiment of the present application, 2 is written to rfmode when NFC is in the normally open state, 1 is written to rfmode when NFC is in the polling state, and 0 is written to rfmode when NFC is in the closed state.
[0080] S103, monitoring the flag position through the touch screen;
[0081] A task executed by the touch screen is established in the Android system. The touch screen task enables the touch screen to scan, read and monitor the flag bit of the kernel node when running the corresponding driver or related program, so as to achieve the purpose of the touch screen obtaining the NFC working status.
[0082] S104: Control the touch screen to update the radio frequency calibration value according to the status of the flag bit.
[0083] Specifically, updating the RF calibration value is a value that needs to be obtained through calculation for the touch screen itself, but the touch screen itself does not have the computing power. Therefore, after the touch screen detects the change in the flag bit, it will generate data communication with the POS terminal to obtain the command code corresponding to the NFC working state from the POS terminal. The touch screen enters the operating mode corresponding to the corresponding NFC working state according to the command code, so that the POS terminal can calculate the RF calibration value required for the current touch screen according to the feedback data generated after the touch screen enters the corresponding operating mode.
[0084] See also Figure 2 , the present application embodiment provides another embodiment of a touch screen calibration method, the embodiment comprising:
[0085] S201, monitoring the working status of the NFC module, the working status includes normally open, polling and closed;
[0086] Step 201 in this embodiment is similar to step 101 in the aforementioned embodiment, and will not be described in detail here.
[0087] S202, when the working state changes, write the flag bit corresponding to the changed working state to the kernel node, the kernel node is used to implement data interaction between the application layer and the bottom layer of the POS terminal, and the flag bit corresponds to the working state one by one;
[0088] In an embodiment of the present application, the kernel node is set in the device node path corresponding to the touch screen, and the address of the path is assigned to the touch screen, so that the touch screen does not need to go through other devices when obtaining the content of the flag bit, thereby achieving the purpose of simplifying the interaction process.
[0089] S203, monitoring the flag position through the touch screen;
[0090] Step S203 in this embodiment is similar to step S103 in the above embodiment, and will not be described in detail here;
[0091] S204, when the flag bit changes, the touch screen writes the mode change data corresponding to the flag bit to the target register;
[0092] The change of the flag bit means that the NFC working state changes, resulting in a change in the field strength. In the embodiment of the present application, NFC has three working states, and the field strength changes corresponding to the three working states are: polling mode, periodic generation of field strength; normally open mode, continuous generation of field strength; closed mode, no field strength is generated.
[0093] In actual use, the corresponding NFC working mode will activate different touch screen calibration logics. Specifically, the polling mode is the normal working mode of NFC when it is turned on, and the normally open mode is the mode entered after the contactless transaction is turned on. For the polling mode, the touch screen used on the POS device will make adaptive parameter storage for the NFC impact. The parameter mainly comes from the statistical data obtained by the touch screen manufacturer through experiments on the device, and the offset value obtained by experience, that is, when NFC is in the polling mode, the touch screen is affected by the field strength or determines that NFC enters the polling mode. After that, it can directly obtain the value adapted to the NFC polling mode and update the RF calibration value according to the value adapted to the polling mode. In the normally open mode, the impact of the field strength is continuous, resulting in the preset value of the polling mode cannot allow the touch screen to be calibrated correctly, so the RF calibration value needs to be recalculated.
[0094] In the embodiment of the present application, the POS terminal writes 0x51 0x000xAF to the touch screen 0x8040 register in polling mode; the POS terminal writes 0x52 0x000xAE to the touch screen 0x8040 register in normally open mode; and the POS terminal writes 0x53 0x00 0xAD to the touch screen 0x8040 register in closed mode.
[0095] S205, controlling the touch screen to update the radio frequency calibration value according to the status of the flag bit;
[0096] Step S205 in this embodiment is similar to step S104 in the above embodiment, and will not be described in detail here.
[0097] S206, obtaining preset coordinates, simulating a touch on the preset coordinates on the touch screen, and obtaining feedback data;
[0098] After the RF calibration value is updated, the embodiment of the present application will verify the RF calibration value. The specific verification method is to set a fixed coordinate point on the touch screen. The coordinate point is set based on the screen pixel position. A fixed feedback will be obtained when the touch feedback point is correctly triggered. For the display interface, it is a fixed point, but for the touch feedback layer, it needs to be calculated through the RF calibration value.
[0099] Specifically, the POS terminal sets a simulated touch feedback task for the touch screen. The coordinate values used in the simulated touch feedback task are mapped in the touch feedback layer. After executing the simulated touch task, the generated data will be calculated through the updated RF calibration value, and the calculation result will be fed back to the POS terminal.
[0100] S207, determining whether the feedback data is the same as the preset feedback data of the preset coordinates;
[0101] After receiving the feedback, the POS terminal compares the feedback data with the preset feedback data fixedly fed back when the trigger is correct. If the two data are the same, it means that the radio frequency calibration value can be used. If the two data are different, step S208 is executed.
[0102] S208: If not, update the radio frequency calibration value again.
[0103] If the feedback data is different from the preset feedback data, it means that the current RF calibration value still cannot meet the correct touch. At this time, it means that the RF calibration value is not suitable for the field strength generated by the current NFC. This situation also occurs when NFC is in polling mode. Therefore, the RF calibration value will be recalculated regardless of whether it is currently in polling mode or normally open mode.
[0104] In this application, when the NFC working mode is normally open mode or the fixed parameters in polling mode cannot meet the verification, the RF calibration value will be recalculated, which is described in detail below. Figure 3 , Figure 3 An embodiment of a method for calculating a radio frequency calibration value of a touch screen-based calibration method provided in the present application includes:
[0105] S301, when the flag bit changes, controlling the touch screen to enter the NFC field strength adaptation mode;
[0106] When the touch screen detects a change in the NFC state through the flag bit, for example, the NFC switch state changes from off to on, the touch screen will enter the NFC field strength adaptation mode. In this mode, the touch screen will dynamically adjust its own parameters according to the change in NFC field strength to adapt to the NFC working state.
[0107] S302, controlling the touch screen to monitor changes in raw data according to the NFC field strength adaptation mode, where the raw data is unprocessed data obtained by the touch screen during screen interaction, and the raw data will fluctuate when affected by the NFC field strength. When no operation is performed, the raw data is a set of parameters in a non-interactive state;
[0108] Specifically, the raw data is the parameter rawdata set on the touch screen, which refers to the feedback information generated by the touch screen after receiving the gesture action. The information contained in rawdata includes: coordinate information, pressure value, timestamp, number of touch points, etc., which are not limited here. Rawdata is a feedback message generated by the user's gesture action, and the purpose is to confirm the user's actual operation needs based on the message. Rawdata still exists when there is no user interaction with the touch screen. It is a variable that is constantly monitored and changed in real time. Rawdata is directly obtained through the touch feedback layer of the touch screen. The touch feedback layer is collectively referred to as the touch sensor layer. When affected by the field strength, the sensor will produce abnormalities, resulting in abnormal changes in rawdata.
[0109] S303: If the change of the original data does not exceed the preset threshold, determine to update the radio frequency calibration value according to the sensitivity and frequency response parameters in the original data.
[0110] Specifically, if the change of rawdata does not exceed the threshold, it means that the field strength at this time is in a normal state, and the touch screen updates the RF calibration value according to the data of the NFC working mode corresponding to the flag bit. Among them, the dynamic parameters that have a greater impact on the RF calibration value are the sensitivity and response frequency of the current touch screen.
[0111] In actual use, the sensitivity and frequency response of the touch screen will change according to the touch screen model or usage cycle, but the impact of sensitivity or frequency response on the data contained in rawdata is a linear offset. The RF calibration value corresponding to the rawdata can be directly calculated based on the current sensitivity and screen frequency response.
[0112] When NFC is in polling mode, the offset RF calibration value can be directly calculated through the parameters originally stored in the POS terminal and the current sensitivity and frequency response.
[0113] When the working state of NFC is switched from other states back to the off mode, it indicates that the radio frequency calibration value of the touch screen needs to be updated to the initial state, that is, the state of the initial radio frequency calibration value.
[0114] S304: If the change in the original data exceeds a preset threshold, it is determined that the touch screen is interfered by the NFC field strength;
[0115] In polling mode, because NFC is activated at a fixed period, the electric field generated is short and stable, so a relatively stable offset can be obtained to obtain the RF calibration value. However, when the change of rawdata exceeds the preset threshold, whether in normally open mode or polling mode, it means that the touch screen cannot interpret the user's gestures, so it is determined that the touch screen is interfered by the NFC field strength.
[0116] S305, when the touch screen is interfered by the NFC field strength, adjusting the sensitivity and frequency response parameters of the touch screen according to the interference data of the NFC field strength;
[0117] This situation will only occur when NFC is in the normally open mode. After determining that the touch screen is interfered with by the NFC field strength, the touch screen will obtain the current interference data through the offset of the rawdata, and then calculate the RF calibration value required for the current touch screen based on the interference data. However, in the case of field strength interference, the sensitivity and frequency response parameters of the screen will change in value, making it impossible for the calculated RF calibration value to adapt to the touch screen after the sensitivity and frequency response change. Therefore, after calculating the RF calibration value, it is still necessary to adapt the obtained RF calibration value to the current sensitivity and frequency response parameters.
[0118] S306: Update the radio frequency calibration value of the touch screen according to the sensitivity and frequency response parameters.
[0119] After the radio frequency calibration value adapted to the current sensitivity and frequency response parameters is calculated according to step S305, the obtained radio frequency calibration value is used as the radio frequency calibration value required by the touch screen at this time for updating.
[0120] In this application, in order to further obtain the RF calibration value suitable for the current touch screen, it is necessary to calculate the touch screen sensitivity and frequency response based on the field strength generated by NFC and the original data, which is described in detail below. Figure 4 , Figure 4 Another embodiment of the method for calculating sensitivity and frequency response parameters based on touch screen calibration provided by the present application includes:
[0121] S401, obtaining interference data of NFC field strength from raw data;
[0122] In actual situations, the interference data of the field strength generated by NFC cannot be obtained directly, and needs to be calculated through the change of rawdata. The change of rawdata will be recorded in the device work log. At this time, even if the rawdata before the point has been affected by the field strength, the rawdata in the initial state can be obtained through the work log. After obtaining the rawdata in the initial state and the current rawdata, the POS device can calculate the interference data based on the rawdata before and after the change. Interference data generally refers to the change value of rawdata, that is, the difference between the current rawdata and the initial rawdata.
[0123] Because rawdata contains too many parameters, the interference data used in the embodiment of the present application will sum the aforementioned differences. The field strength generated by NFC has different effects on the values contained in rawdata. Therefore, weights are set according to the deviations of the parameters in rawdata affected by the field strength, and weighted calculations are performed on the data of rawdata according to the weights to obtain a specific value, which is the value of the interference data in the embodiment of the present application.
[0124] S402, determining adjustment values of sensitivity and frequency response parameters using preset rules according to interference data;
[0125] The reason for integrating the interference data into one parameter is that in actual usage scenarios, the field strength caused by NFC is limited, that is, the field strength is within a threshold. Therefore, all field strengths contained in the threshold can be directly quantified by region, such as directly setting the sensitivity and frequency response adaptation values of the first threshold range, and the threshold range can be directly linearly corresponding to the parameters generated by the interference data, that is, the larger the value of the interference data, the larger the current field strength threshold is. Therefore, the purpose of directly obtaining the sensitivity and frequency response parameters is achieved through the interference data and the preset field strength threshold grouping.
[0126] S403: Adjust the parameters of sensitivity and frequency response according to the adjustment value.
[0127] After the field intensity threshold is determined through the interference data, the corresponding sensitivity and frequency response parameters can be obtained, so that the current sensitivity and screen response parameters of the touch screen can be adjusted according to the obtained sensitivity and frequency response parameters.
[0128] The above is a detailed description of the touch screen calibration method provided in the embodiment of the present application. The following is a detailed description of the touch screen calibration system and device.
[0129] See also Figure 5The present application provides an embodiment of a touch screen calibration system, which includes:
[0130] The first monitoring unit 501 is used to monitor the working state of the NFC module, and the working state includes normally open, polling and closed;
[0131] A generating unit 502, used for generating a corresponding flag bit according to the current working state when the working state changes, and the flag bit corresponds to the working state one by one;
[0132] The second monitoring unit 503 is used to monitor the flag position through the touch screen;
[0133] The updating unit 504 is used to control the touch screen to update the radio frequency calibration value according to the state of the flag bit.
[0134] In this embodiment, the functions of each unit are the same as those described above. Figure 1 The steps in the illustrated embodiments correspond to each other and will not be described again here.
[0135] See also Figure 6 , the present application embodiment provides another embodiment of a touch screen calibration system, the embodiment comprising:
[0136] The first monitoring unit 601 is used to monitor the working state of the NFC module, and the working state includes normally open, polling and closed;
[0137] A generating unit 602, configured to generate a corresponding flag bit according to the current working state when the working state changes, wherein the flag bit corresponds to the working state one by one;
[0138] The second monitoring unit 603 is used to monitor the flag position through the touch screen;
[0139] The writing unit 604 is used for the touch screen to write mode change data corresponding to the flag bit to the target register when the flag bit changes.
[0140] The updating unit 605 is used to control the touch screen to update the radio frequency calibration value according to the state of the flag bit.
[0141] An acquisition unit 606 is used to acquire preset coordinates, simulate a touch on the preset coordinates on the touch screen, and acquire feedback data;
[0142] A judging unit 607, used to judge whether the feedback data is the same as the preset feedback data of the preset coordinates;
[0143] The re-updating unit 608 is used to update the radio frequency calibration value again when the determination result of the determination unit is no.
[0144] The updating unit 605 includes:
[0145] The mode switching module 6051 is used to control the touch screen to enter the NFC field strength adaptation mode when the flag bit changes;
[0146] The monitoring module 6052 is used to control the touch screen to monitor the change of raw data according to the NFC field strength adaptation mode. The raw data is the unprocessed data obtained by the touch screen during screen interaction. The raw data will fluctuate when affected by the NFC field strength. The raw data is a set of parameters in a non-interaction state when no operation is performed;
[0147] The second updating module 6053 is used to update the radio frequency calibration value according to the sensitivity and frequency response parameters in the original data if the change of the original data exceeds a preset threshold;
[0148] A determination module 6054 is used to determine that the touch screen is interfered by the NFC field strength if the change of the original data exceeds a preset threshold;
[0149] The adjustment module 6055 is used to adjust the sensitivity and frequency response parameters of the touch screen according to the interference data of the NFC field strength when the touch screen is interfered by the NFC field strength;
[0150] The updating module 6056 is used to update the radio frequency calibration value of the touch screen according to the sensitivity and frequency response parameters.
[0151] Optionally, the adjustment module 6055 is further used for:
[0152] Get the interference data of NFC field strength from the raw data;
[0153] Determining adjustment values for sensitivity and frequency response parameters using preset rules based on interference data;
[0154] Adjust the parameters of sensitivity and frequency response according to the adjustment value.
[0155] The generating unit 602 is further configured to:
[0156] When the working status changes, the flag bit of the corresponding changed working status is written to the kernel node. The kernel node is used to implement data interaction between the application layer and the bottom layer of the POS terminal.
[0157] In this embodiment, the functions of each unit are the same as those described above. Figures 2 to 4 The steps in the illustrated embodiments correspond to each other and will not be described again here.
[0158] See also Figure 7 , the present application embodiment provides another embodiment of a touch screen calibration device, including:
[0159] Processor 701, memory 702, input and output unit 703, bus 704;
[0160] The processor 701 is connected to the memory 702, the input and output unit 703 and the bus 704;
[0161] Processor 701 specifically executes Figures 1 to 4 The operations corresponding to the steps in the method are not described in detail here.
[0162] The present application also relates to a computer-readable storage medium on which a program is stored, wherein when the program is run on a computer, the computer is caused to execute any of the above methods.
[0163] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0164] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0165] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0166] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0167] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, read-only memory), random access memory (RAM, random access memory), disk or optical disk, etc. Various media that can store program codes.
Claims
1. A touch screen calibration method, It is characterized in that The method comprises: Monitor the working status of the NFC module, which includes normally open, polling and closed; When the working state changes, a corresponding flag is generated according to the current working state, and the flag corresponds to the working state one by one; Monitor the flag position through the touch screen; The touch screen is controlled to update the radio frequency calibration value according to the state of the flag bit.
2. The calibration method according to claim 1, It is characterized in that Controlling the touch screen to update the radio frequency calibration value according to the state of the flag bit includes: When the flag bit changes, controlling the touch screen to enter an NFC field strength adaptation mode; Controlling the touch screen to monitor changes in raw data according to the NFC field strength adaptation mode, wherein the raw data is unprocessed data acquired by the touch screen during screen interaction, the raw data will fluctuate when affected by the NFC field strength, and the raw data is a set of parameters in a non-interaction state when no operation is performed; If the change of the original data exceeds a preset threshold, it is determined that the touch screen is interfered by the NFC field strength; Adjusting the sensitivity and frequency response parameters of the touch screen according to the interference data of the NFC field strength; A radio frequency calibration value of the touch screen is updated according to the sensitivity and the frequency response parameter.
3. The calibration method according to claim 2, It is characterized in that After controlling the touch screen to monitor changes in raw data according to the NFC field strength adaptation mode, the method further includes: If the change of the original data does not exceed the preset threshold, it is determined that the touch screen is not interfered by the NFC field strength; The radio frequency calibration value is updated according to the sensitivity and frequency response parameters in the raw data.
4. The calibration method according to claim 2, It is characterized in that The adjusting the sensitivity and frequency response parameters of the touch screen according to the interference data of the NFC field strength includes: Obtain interference data of the NFC field strength from the raw data; Determining adjustment values for sensitivity and frequency response parameters using preset rules based on the interference data; The parameters of the sensitivity and the frequency response are adjusted according to the adjustment value.
5. The calibration method according to any one of claims 1 to 4, It is characterized in that After monitoring the flag bit through the touch screen, the method further includes: When the flag bit changes, the touch screen is controlled to write mode change data corresponding to the flag bit into the target register.
6. The calibration method according to any one of claims 1 to 4, It is characterized in that When the working state changes, generating a corresponding flag bit according to the current working state includes: When the working state changes, a flag of the changed working state is written to the kernel node, and the kernel node is used to implement data interaction between the application layer and the bottom layer of the POS terminal.
7. The calibration method according to any one of claims 1 to 4, It is characterized in that After controlling the touch screen to update the radio frequency calibration value, the method further includes: Acquire preset coordinates, simulate a touch on the preset coordinates on the touch screen, and acquire feedback data; Determining whether the feedback data is the same as the preset feedback data of the preset coordinates; If not, the radio frequency calibration value is updated again.
8. A touch screen calibration system, It is characterized in that The system comprises: A first monitoring unit, used to monitor the working state of the NFC module, where the working state includes normally open, polling and closed; A generating unit, configured to generate a corresponding flag bit according to the current working state when the working state changes, wherein the flag bit corresponds to the working state one by one; A second monitoring unit, used for monitoring the flag bit through a touch screen; An updating unit is used to control the touch screen to update the radio frequency calibration value according to the state of the flag bit.
9. A touch screen calibration device, It is characterized in that The device comprises: Processor, memory, input-output unit, and bus; The processor is connected to the memory, the input and output unit, and the bus; The memory stores a program, and the processor calls the program to execute the method according to any one of claims 1 to 7.
10. A computer-readable storage medium having a program stored thereon, wherein the program, when executed on a computer, performs the method according to any one of claims 1 to 7.
Citation Information
Cited By
Processing method, device and equipment for resisting near field communication interference
CN121957383A
Processing method, device and equipment for resisting near field communication interference
CN121957383B
