CN103713795B - A resistive touch screen calibration method of automatic correction - Google Patents

A resistive touch screen calibration method of automatic correction Download PDF

Info

Publication number
CN103713795B
CN103713795B CN 201310717103 CN201310717103A CN103713795B CN 103713795 B CN103713795 B CN 103713795B CN 201310717103 CN201310717103 CN 201310717103 CN 201310717103 A CN201310717103 A CN 201310717103A CN 103713795 B CN103713795 B CN 103713795B
Authority
CN
Grant status
Grant
Patent type
Prior art keywords
step
correction
coordinates
calibration
cursor
Prior art date
Application number
CN 201310717103
Other languages
Chinese (zh)
Other versions
CN103713795A (en )
Inventor
麻勰光
朱本强
Original Assignee
深圳市英威腾电气股份有限公司
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
Grant date

Links

Abstract

本发明公开了一种电阻式触摸屏自动纠错校正方法,该方法中,先读取产品型号参数数据,之后判断与该产品型号相对应的参考文件是否存在。 The present invention discloses a resistive touch screen calibration method of automatic correction, the process first reads the product data model parameters, and then determining whether the product corresponding to the model reference file exists. 如果不存在,则会自动生成,为以后校正做参考。 If not, it is automatically generated, the correction for future reference. 如果存在,则获取用户点击的左上角坐标,计算该左上角坐标与参考文件中左上角坐标的差值,判断该差值的绝对值是否超出预设范围,若否,则完成左上角坐标校正,以相同方式,依次完成右上角坐标、右下角坐标、左下角坐标和中心点坐标的校正。 If present, the user clicks on the acquired left corner, the upper-left coordinates and calculates a difference in the upper left corner coordinates in the reference file, it is determined whether the absolute value of the difference exceeds a preset range, if not, the top left coordinate correction is completed in the same manner, in order to complete the top right corner coordinates, the coordinates of the lower right corner correction, the lower-left corner coordinates and center point coordinates. 该方法能够避免误校正,有效防止用户误操作带来的屏幕假死,提高了校正程序的效率,同时,用户点击后触发采样间隔延迟,有效防止连击等误操作。 The error correction method to avoid, prevent user errors caused by suspended animation screen, improves the efficiency of the calibration procedure, while the user clicks the trigger sampling interval delay, prevent batter and other misuse.

Description

一种电阻式触摸屏自动纠错校正方法 A resistive touch screen calibration method of automatic correction

技术领域 FIELD

[0001]本发明涉及触摸屏校正方法,尤其涉及一种电阻式触摸屏自动纠错校正方法。 [0001] The present invention relates to a touch screen calibration method, particularly to a resistive touch screen calibration method for automatic correction.

背景技术 Background technique

[0002]采用触摸屏的移动终端中,触摸屏性能的调试是个重要问题之一,因为电磁噪声的缘故,触摸屏容易存在点击不准确、有抖动等问题。 [0002] mobile terminal with touch screen, touch-screen debugging performance is one important issue, because the sake of electromagnetic noise, there is a touch screen is easy to click inaccurate, jitter and other issues. Tslib是一个开源的程序,能够为触摸屏驱动程序获得的采样数据提供诸如滤波、去抖、校准等功能,通常作为触摸屏驱动的适配层,为上层的应用提供了一个统一的接口。 Tslib is an open source program, the sampled data can be obtained for providing a touch screen driver, such as filtering, debouncing, calibration functions, etc., usually as a touch screen driver adaptation layer provides a unified interface to an upper layer application.

[0003]现有技术中,对于电阻屏而言,需通过原始校正程序进行直接采样,以直接采样的数据作为校正标准,此种方法存在的问题在于,当用户点错地方或者由于点击采样间隔过小造成的连击等误操作之后,系统直接以采样得到的坐标值作为校正标准,造成LCD示屏与触摸感应屏坐标系偏差很大,用户进入应用程序后屏幕呈现假死状态,同时,由于Tslib为系统初始化时使用的一次性校正,当用户误操作之后,成品机无法重新校正,必须打开壳体进行软件调试后才能重新执行校正程序,造成用户使用的不方便。 [0003] In the prior art, for resistance screen, need to be sampled directly from the original calibration procedure, direct sampling of the data as the calibration standard, there is the problem that this method, when the user clicks the point to the wrong place or because the sampling interval after the batter is too small due to an erroneous operation, etc., the system directly to the coordinate value obtained as the calibration standard samples, resulting in a large LCD display screen with a touch sensitive screen coordinate system deviation, the user enters the application screen rendering state of suspended animation, at the same time, since Tslib a one-time correction used when the system initialization, when the user errors, the finished product can not be recalibrated, you must open the case after commissioning software to re-execute the calibration procedure, inconvenient users.

发明内容 SUMMARY

[0004]本发明要解决的技术问题在于,针对现有技术的不足,提供一种电阻式触摸屏自动纠错校正方法,该方法将用户点击的坐标与参考文件中的坐标做比较计算差值,通过判断该差值的绝对值是否超出预设范围,对坐标进行纠错和校正,从而避免误校正,有效防止用户误操作带来的屏幕假死,提高了校正程序的效率,同时,用户点击后触发采样间隔延迟,有效防止连击等误操作。 [0004] The present invention is to solve the technical problem for the deficiencies of the prior art, to provide a resistive touch screen calibration automatic correction method of the reference coordinates clicked by the user with the calculated difference value is compared, after the absolute value of the difference exceeds a preset range by determining, for error correction and correction coordinates, so as to avoid erroneous correction, prevent user errors caused suspended animation screen, improves the efficiency of the calibration procedure, at the same time, the user clicks triggers the sampling interval delay, and the like batter prevent misuse.

[0005]为解决上述技术问题,本发明采用如下技术方案。 [0005] To solve the above problems, the present invention adopts the following technical solution.

[0006] —种电阻式触摸屏自动纠错校正方法,其包括如下步骤:步骤SI,读取产品型号参数数据;步骤S2,判断与该产品型号相对应的参考文件是否存在,若否,则执行步骤S3,若是,则执行步骤S6;步骤S3,调用原始校正程序,之后执行步骤S4;步骤S4,在预设时间内点中系统预设的校正按钮,如果在预设时间内所有校正按钮均被点中,则执行步骤S5,如果至少有一个校正按钮未被点中,则返回至步骤S3;步骤S5,创建与该产品型号对应的参考文件,之后跳转至步骤S10;步骤S6,任意一个校验点位置产生光标并开始闪烁,获取用户点击该光标的坐标,计算该坐标与参考文件中该校验点相应坐标的差值的绝对值;步骤S7,判断该差值的绝对值是否超出预设范围,若是,则执行步骤S8,若否,则执行步骤S9;步骤S8,判断校正累计时间是否超时,若是,则跳转至步骤S3,若 [0006] - species resistive touch screen calibration method for automatic correction, comprising the steps: the SI, reads the product data model parameters; step S2, it is determined with reference to the product corresponding to the model exists, if no, step S3, the if yes, performing step S6; step S3, the program calls the original calibration, after performing step S4; step S4, the system pre-correction button within a preset time point, if all the correction buttons are within a preset time is the point, perform step S5, if there is not at least one correction button point, returns to step S3; step S5, create a reference file corresponding to the product model, then jumps to step SlO; step S6, the arbitrary generating a cursor location checkpoint and begin to blink, acquiring the user clicks on the coordinates of the cursor, the absolute value of the calculated reference coordinates corresponding to the coordinates of the checkpoint difference; step S7, it is determined whether the absolute value of the difference exceeds a preset range, and if yes, performs step S8, if no, proceed to step S9; step S8, it is determined whether the corrected cumulative time expires, if so, the process advances to step S3, the if 否,则返回至步骤S6;步骤S9,根据步骤S6至步骤S8的方法,依次完成所有校验点的校正;步骤SlO,进行坐标变换运算,并在屏幕上提示校正成功。 NO, the process returns to step S6; step S9, according to method step S6 to step S8, in order to complete calibration of all check points; step SlO, a coordinate transformation operation, and prompts on the screen successfully corrected.

[0007] 优选地,步骤S4中的预设时间为至少5S。 [0007] Preferably, the predetermined time in step S4 is at least 5S.

[0008]优选地,步骤S4中系统预设的校正按钮为至少两个。 [0008] Preferably, the step S4 is preset by the system of at least two correction button.

[0009]优选地,所述步骤S4中,所述按钮为四个。 [0009] Preferably, the step S4, the four buttons.

[0010]优选地,所述步骤S8中,判断校正过程是否超时包括:判断校正累计时间是否大于 [0010] Preferably, the step S8, it is determined whether a timeout calibration procedure comprising: determining the accumulated time is greater than the correction

5s0 5s0

[0011 ]优选地,所述步骤S3中,所述原始校正程序包括如下步骤:步骤S30,获取系统中左上角坐标、右上角坐标、右下角坐标、左下角坐标和中心点坐标;步骤S31,依次在屏幕上的校验点处显示光标,并且提示用户点击该光标;步骤S32,用户依次点击上述校验点的光标。 [0011] Preferably, the step S3, the original calibration procedure includes the following steps: Step S30, the top left corner of acquiring coordinate system, the coordinates of the top right corner, bottom right coordinates, lower-left corner coordinates and center point coordinates; step S31, the at a checkpoint sequentially displays a cursor on the screen, and prompts the user clicks on the cursor; step S32, the user clicks a cursor sequentially above checkpoint.

[0012]优选地,执行步骤S9之前延时预设时长。 [0012] Preferably, the step of performing a predetermined length of delay before S9.

[0013] 优选地,延时的时长为至少500ms。 [0013] Preferably, the length of delay of at least 500ms.

[0014]优选地,所述步骤S7判断该差值的绝对值是否超出预设范围为,判断该差值的绝对值是否超出参考文件中的相应坐标的至少正负2%。 [0014] Preferably, the step S7 determines whether the absolute value of the difference exceeds a preset range, it is judged whether the absolute value of the difference exceeds at least plus or minus 2% of the corresponding coordinates of the reference file.

[0015]优选地,所述步骤S6中,获取用户点击的坐标包括如下步骤:步骤S60,屏幕校验点位置显示光标,并且提示用户点击该光标;步骤S61,获取用户点击该光标产生的坐标。 [0015] Preferably, the step S6, obtaining coordinates of the user clicks comprises the following steps: step S60, the screen displays the cursor position check, and prompts the user clicks on the cursor; step S61, the acquired coordinates of the cursor generated user clicks .

[0016]本发明公开的电阻式触摸屏自动纠错校正方法中,首先读取产品型号参数数据,判断与该产品型号相对应的参考文件是否存在,若不存在参考文件,则调用原始校正程序,之后在预设时间内点中系统预设的校正按钮,如果在预设时间内所有校正按钮均被点中,则创建与该产品型号对应的参考文件,进行坐标变换运算,并在屏幕上提示校正成功,如果预设时间之内至少有一个校正按钮未被点中,则重新调用原始校正程序并创建参考文件;若存在参考文件,则任意一个校验点位置产生光标并开始闪烁,获取用户点击该光标的坐标,计算该坐标与参考文件中该校验点相应坐标的差值的绝对值,判断该差值的绝对值是否超出预设范围,若超出预设范围,则判断校正累计时间是否超时,若超时,则调用原始校正程序,若未超时,则重新获取该光标的坐标 [0016] The present invention discloses an automatic correction resistive touch screen correction method, first reads the product model parameter data, determining whether the product corresponding to the model reference file exists, if the reference document exists, the original calibration procedure is called, after a preset time point in the system within a preset correction button, if within a preset time correction button are all points in the product model is created with corresponding reference document, coordinate transformation operation, and prompts on the screen calibration is successful, if there is at least a preset period of time to correct button is not the point, you recall the original calibration program and create a reference file; if the reference file exists, any one of the checkpoint and starts flashing cursor position to produce, acquire user click on the coordinates of the cursor, the absolute differences calculated reference coordinates corresponding coordinate in the checkpoint, it is determined whether the absolute value of the difference exceeds a preset range, if exceeding the preset range, it is determined that the accumulated time correction whether the time out, time out, then call the original calibration procedures, if not overtime, then re-obtain the coordinates of the cursor 上述差值的绝对值若未超出预设范围,则参照上述校验点的校正步骤,依次完成所有校验点的校正,之后进行坐标变换运算,并在屏幕上提示校正成功。 If no absolute value of the difference exceeds the predetermined range, the correction step is described above with reference to checkpoint, in order to complete calibration of all checkpoint, after coordinate transformation operation, and prompts on the screen successfully corrected. 该方法将用户点击的坐标与参考文件中的坐标做比较计算差值,通过判断该差值的绝对值是否超出预设范围,对坐标进行纠错和校正,从而避免误校正,有效防止用户误操作带来的屏幕假死,提高了校正程序的效率,同时,用户点击后触发采样间隔延迟,有效防止连击等误操作,此外,利用该方法可以在用户误操作之后重新对触摸屏进行校正,无需再进行软件调试等,更加便于用户使用。 The method and the reference coordinates clicked by the user to do the calculations comparing the difference, by determining whether the absolute value of the difference exceeds the predetermined range, error correction and correction coordinates, so as to avoid erroneous correction, prevent users mistakenly operation of the screen brings suspended animation, to improve the efficiency of the calibration procedure, at the same time, the user clicks the trigger sampling interval delay, prevent misuse batter, etc. in addition, this method can be re-calibration of the touch screen after the user misuse without then the software debugging and so on, more user-friendly.

附图说明 BRIEF DESCRIPTION

[0017]图1为本发明的流程图。 [0017] FIG. 1 is a flowchart of the present invention.

具体实施方式 detailed description

[0018]下面结合附图和实施例对本发明作更加详细的描述。 Drawings and embodiments of the present invention will be described in more detail [0018] below in conjunction.

[0019]本发明公开了一种电阻式触摸屏自动纠错校正方法,如图1所示,该方法包括如下步骤: [0019] The present invention discloses a resistive touch screen calibration method of automatic correction, shown in Figure 1, the method comprising the steps of:

[0020]步骤SI,读取产品型号参数数据; [0020] Step SI, reads the product data model parameters;

[0021]步骤S2,判断与该产品型号相对应的参考文件是否存在,若否,则执行步骤S3,若是,则执行步骤S6 ; [0021] In step S2, it is determined whether the product corresponding to the model reference file exists, if No, proceed to step S3, the if yes, execute step S6;

[0022] 步骤S3,调用原始校正程序,之后执行步骤S4。 [0022] In step S3, the program calls the original calibration, after performing step S4. 该步骤S3中,原始校正程序包括:步骤S30,获取系统中左上角坐标、右上角坐标、右下角坐标、左下角坐标和中心点坐标;步骤S31,依次在屏幕上的校验点处显示光标,并且提示用户点击该光标;步骤S32,用户依次点击上述校验点的光标。 In step S3, the original calibration procedure comprising: a step S30, the acquisition system left corner, upper right corner coordinates, the bottom right coordinates, lower-left corner coordinates and center point coordinates; at step S31, the sequence on the screen display cursor checkpoint and prompts the user clicks on the cursor; step S32, the user clicks a cursor sequentially above checkpoint. 上述原始校正程序可以是系统自带的校正程序,其中,依次确定左上角坐标、右上角坐标、右下角坐标、左下角坐标和中心点坐标,每个坐标的数据以X轴坐标在前、Y轴坐标在后的顺序组合,根据5组坐标数据创建与该产品型号对应的参考文件,该参考文件以文本的形式存在。 Correcting said original program may be built-in system calibration procedure wherein successively determined coordinates of the upper left corner, upper right corner coordinates, the bottom right coordinates, lower-left corner coordinates and center point coordinates, each coordinate data of the X-axis coordinate of the front, Y sequential composition after coordinate axis, with the product model to create the corresponding reference file, the reference file in the form of text data according to the five sets of coordinates.

[0023]步骤S4,在预设时间内点中系统预设的校正按钮,该预设时间为至少5S,根据实际需要,该预设时间可以设为10S、20S等,如果在该预设时间内所有校正按钮均被点中,则执行步骤S5,如果至少有一个校正按钮未被点中,则返回至步骤S3。 [0023] In step S4, the system within a preset time point preset correction button, the predetermined time is at least 5S, according to actual needs, the predetermined time can be set 10S, 20S and the like, if the predetermined time All points are the correction button, perform step S5, if there is not at least one correction button point, it returns to step S3. 作为一种优选方式,系统预设的校正按钮的数量为至少两个,最好是四个及以上,校正按钮的数量越多,生成的校正参考文件越准确。 As a preferred embodiment, the number of correction button preset by the system is at least two, and preferably four or more, the greater the number of correction button, to generate more accurate calibration reference.

[0024]步骤S5,创建与该产品型号对应的参考文件,之后跳转至步骤S10; [0024] In step S5, create a model corresponding to the reference product, then jumps to step SlO;

[0025]步骤S6,任意一个校验点位置产生光标并开始闪烁,获取用户点击该光标的坐标,计算该坐标与参考文件中该校验点相应坐标的差值的绝对值。 [0025] Step S6, the arbitrary position of a checkpoint is generated and starts flashing cursor, the user clicks the acquired coordinates of the cursor, the absolute differences calculated reference coordinates corresponding to the coordinates of the checkpoint. 上述过程中,获取用户点击的坐标进一步包括如下步骤:步骤S60,屏幕校验点位置显示光标,并且提示用户点击该光标;步骤S61,获取用户点击该光标产生的坐标。 In the above process, the user clicks the acquired coordinates further comprises the following steps: step S60, the screen displays the cursor position check, and prompts the user clicks on the cursor; step S61, the coordinates of the cursor to obtain the user clicks produced.

[0026]步骤S7,判断该差值的绝对值是否超出预设范围,若是,则执行步骤S8,若否,则执行步骤S9。 [0026] step S7, it is determined whether the absolute value of the difference exceeds a preset range, and if yes, performs step S8, if no, proceed to step S9. 本实施例中,判断该差值的绝对值是否超出预设范围为,判断该差值的绝对值是否超出参考文件中的相应坐标的至少正负2%,预设范围越小,校正越精确,该校正范围还可以为正负5%。 In this embodiment, it is determined whether the absolute value of the difference exceeds a preset range, it is judged whether the absolute value of the difference exceeds at least plus or minus 2% of the corresponding coordinates of the reference file, the smaller the predetermined range, the more accurate correction the correction range may also be plus or minus 5%.

[0027] 步骤S8,判断校正累计时间是否超时,若是,则跳转至步骤S3,若否,则返回至步骤S6。 [0027] Step S8, the total correction is determined whether a timeout period, and if so, the process advances to step S3, the if not, the process returns to step S6. 该步骤中,判断校正过程是否超时包括:判断校正累计时间是否大于5s,如可取10S,20S等。 In this step, the timeout is determined whether the correction procedure comprising: determining a correction accumulated time is greater than 5s, preferably such as 10S, 20S and the like.

[0028]步骤S9,根据步骤S6至步骤S8的方法,依次完成所有校验点的校正。 [0028] Step S9, the process according to step S6 to step S8, in order to complete calibration of all checkpoint. 执行该步骤之前可以延时预设时长,该延时的时长为至少500ms,使得用户点击后触发采样间隔延迟,有效防止连击等误操作,之后根据步骤S6至步骤S8的方法,依次完成所有校验点的校正;其中,由于加入了参考文件作比较,尤其当用户点错地方或者由于点击采样间隔过小造成的连击等误操作之后,系统以参考文件中的坐标值作为校正标准,有效降低LED显示屏坐标系与触摸感应屏坐标系的偏差,避免用户进入应用程序后屏幕呈现假死状态。 This step may be performed before the predetermined delay duration, the delay of at least 500ms duration, such that a user click-triggered sampling interval delay, prevent malfunction and the like batter, after the method according to steps S6 to step S8, in order to complete all the calibration check points; wherein, due to the addition of the reference for comparison, especially when the user clicks the point to the wrong place or because the sampling interval is too small due to an erroneous operation and the like batter after the value of the reference coordinate system as the calibration standard in the document, reduce the deviation LED display coordinate system and the coordinate system of a touch sensitive screen, to avoid the user into the application screen rendering state of suspended animation.

[0029]步骤S10,进行坐标变换运算,并在屏幕上提示校正成功。 [0029] Step S10, the coordinate transformation operation, and prompts on the screen successfully corrected.

[0030]本发明公开的电阻式触摸屏自动纠错校正方法中,首先读取产品型号参数数据,判断与该产品型号相对应的参考文件是否存在,若不存在参考文件,则调用原始校正程序,之后在预设时间内点中系统预设的校正按钮,如果在预设时间内所有校正按钮均被点中,则创建与该产品型号对应的参考文件,进行坐标变换运算,并在屏幕上提示校正成功,如果预设时间之内至少有一个校正按钮未被点中,则重新调用原始校正程序并创建参考文件;若存在参考文件,则任意一个校验点位置产生光标并开始闪烁,获取用户点击该光标的坐标,计算该坐标与参考文件中该校验点相应坐标的差值的绝对值,判断该差值的绝对值是否超出预设范围,若超出预设范围,则判断校正累计时间是否超时,若超时,则调用原始校正程序,若未超时,则重新获取该光标的坐标 [0030] The present invention discloses an automatic correction resistive touch screen correction method, first reads the product model parameter data, determining whether the product corresponding to the model reference file exists, if the reference document exists, the original calibration procedure is called, after a preset time point in the system within a preset correction button, if within a preset time correction button are all points in the product model is created with corresponding reference document, coordinate transformation operation, and prompts on the screen calibration is successful, if there is at least a preset period of time to correct button is not the point, you recall the original calibration program and create a reference file; if the reference file exists, any one of the checkpoint and starts flashing cursor position to produce, acquire user click on the coordinates of the cursor, the absolute differences calculated reference coordinates corresponding coordinate in the checkpoint, it is determined whether the absolute value of the difference exceeds a preset range, if exceeding the preset range, it is determined that the accumulated time correction whether the time out, time out, then call the original calibration procedures, if not overtime, then re-obtain the coordinates of the cursor 继续校正,上述差值的绝对值若未超出预设范围,则参照上述校验点的校正步骤,依次完成所有校验点的校正,之后进行坐标变换运算,并在屏幕上提示校正成功。 Continued correction, if not the absolute value of the difference exceeds the predetermined range, the correction step is described above with reference to checkpoint, in order to complete calibration of all checkpoint, after coordinate transformation operation, and prompts on the screen successfully corrected. 原始校正程序中屏幕上依次在检验点显示光标,用户根据提示点击依次光标即可实现校正。 Original calibration procedure in order to display the cursor at a checkpoint on the screen, the user can be realized in order to correct the prompts cursor clicks. 由于此校正方法比较简单,用户只需根据光标的个数点击屏幕同样多次数即完成校验,当用户未点中光标或出现连击情况时,校验仍会通过,如此则会造成校验不准确的情况。 Because of this calibration method is relatively simple, the user simply clicks the screen according to the number of the cursor as many times to complete the check, when the user points the cursor does not appear or batter, the check will pass, so the checksum will result inaccurate. 本发明提供的方法将用户点击每一个校验点的坐标与参考文件中的坐标做比较计算差值,通过判断该差值的绝对值是否超出预设范围,对坐标进行纠错和校正,只有在一个检验点通过后才校验下一校验点,从而避免误校正,有效防止用户误操作带来的屏幕假死,提高了校正程序的效率。 The method of the present invention provides the user clicks on the coordinates of each checkpoint file reference coordinates do comparing the difference calculated, by determining whether the absolute value of the difference exceeds the predetermined range, error correction and correction coordinates, only after a check the next checkpoint by checkpoint, in order to avoid false correction, effectively prevent user errors caused by suspended animation screen, improves the efficiency of the correction program. 此外本发明不仅适用于存在与触摸屏产品型号相对应的参考文件的情况,还适用于不存在与触摸屏产品型号相对应的参考文件或者参考文件损坏的情况,在后一种情况下通过本发明能自行生成相应的参考文件,便于今后屏幕的校验。 Furthermore, the present invention is applicable not only to the presence of the touch screen product model corresponding to the reference file, is also applicable to reference touchscreen product corresponding to the model does not exist or where the reference file is damaged, and in the latter case the present invention can be generating a corresponding self-reference files facilitate future verification screen. 同时,在一个校验点校正通过后延时预设时长后再校验下一点,能有效防止连击等误操作,并且利用该方法可以在用户误操作之后重新对触摸屏进行校正,无需再进行软件调试等,更加便于用户使用。 At the same time, that can effectively prevent a preset time delay after the checkpoint and then corrected by the length and the like check erroneous batter, and may be re-correcting the touchscreen after the user erroneous operation using this method, without further software debugging and so on, more user-friendly.

[0031]以上只是本发明较佳的实施例,并不用于限制本发明,凡在本发明的技术范围内所做的修改、等同替换或者改进等,均应包含在本发明所保护的范围内。 [0031] The above is only preferred embodiments of the present invention, examples, not intended to limit the present invention, any modifications within the scope of the invention is made, equivalent replacement or improvement should be included within the scope of protection of the present invention .

Claims (10)

  1. 1.一种电阻式触摸屏自动纠错校正方法,其特征在于,包括如下步骤: 步骤SI,读取产品型号参数数据; 步骤S2,判断与该产品型号相对应的参考文件是否存在,若否,则执行步骤S3,若是,则执行步骤S6 ; 步骤S3,调用原始校正程序,之后执行步骤S4; 步骤S4,在预设时间内点中系统预设的校正按钮,如果在预设时间内所有校正按钮均被点中,则执行步骤S5,如果至少有一个校正按钮未被点中,则返回至步骤S3; 步骤S5,创建与该产品型号对应的参考文件,之后跳转至步骤SlO ; 步骤S6,任意一个校验点位置产生光标并开始闪烁,获取用户点击该光标的坐标,计算该坐标与参考文件中该校验点相应坐标的差值的绝对值; 步骤S7,判断该差值的绝对值是否超出预设范围,若是,则执行步骤S8,若否,则执行步骤S9; 步骤S8,判断校正累计时间是否超时,若是, A resistive touch screen calibration automatic correction method comprising the following steps: Step the SI, reads the product data model parameters; step S2, it is determined with the product corresponding to the model reference file exists, if not, performing the step S3, the if yes, execute step S6; step S3, the program calls the original calibration, after performing step S4; step S4, the system pre-correction button within a preset time point, if all the correction within a preset time buttons are points, perform step S5, if there is not at least one correction button point, returns to step S3; step S5, create a reference file corresponding to the product model, then jumps to step SlO; step S6 , any checkpoint generates cursor position and begin to blink, acquiring user clicks on the coordinates of the cursor, the absolute differences calculated coordinates in the reference coordinates corresponding checkpoint; step S7, it is determined that the absolute difference value exceeds a predetermined range, and if yes, performs step S8, if no, proceed to step S9; step S8, it is determined whether the corrected cumulative time expires, if yes, 则跳转至步骤S3,若否,则返回至步骤S6; 步骤S9,根据步骤S6至步骤S8的方法,依次完成所有校验点的校正; 步骤SlO,进行坐标变换运算,并在屏幕上提示校正成功。 The process advances to step S3, the if not, returns to step S6; step S9, according to method step S6 to step S8, in order to complete calibration of all check points; step SlO, a coordinate transformation operation, and prompts on the screen correction success.
  2. 2.如权利要求1所述的电阻式触摸屏自动纠错校正方法,其特征在于,步骤S4中的预设时间为至少5S。 2. The resistive touch panel according to claim 1, automatic correction calibration method, wherein the predetermined time in step S4 is at least 5S.
  3. 3.如权利要求1所述的电阻式触摸屏自动纠错校正方法,其特征在于,所述步骤S4中系统预设的校正按钮为至少两个。 The resistive claim 1, the automatic touch screen calibration correction method, wherein, in the step S4, the predetermined correction button system of at least two.
  4. 4.如权利要求3所述的电阻式触摸屏自动纠错校正方法,其特征在于,所述步骤S4中,所述按钮为四个。 4. The resistive touch screen of claim 3 automatic calibration correction method, wherein the step S4, the four buttons.
  5. 5.如权利要求1所述的电阻式触摸屏自动纠错校正方法,其特征在于,所述步骤S8中,判断校正过程是否超时包括:判断校正累计时间是否大于5s。 5. The resistive touch panel according to claim 1, automatic correction calibration method, wherein the step S8, the timeout is determined whether the correction procedure comprising: determining a correction accumulated time is greater than 5s.
  6. 6.如权利要求1所述的电阻式触摸屏自动纠错校正方法,其特征在于, 所述步骤S3中,所述原始校正程序包括如下步骤: 步骤S30,获取系统中左上角坐标、右上角坐标、右下角坐标、左下角坐标和中心点坐标; 步骤S31,依次在屏幕上的校验点处显示光标,并且提示用户点击该光标; 步骤S32,用户依次点击上述校验点的光标。 6. A resistive touch screen according to claim 1 automatic correction calibration method, wherein the step S3, the original calibration procedure includes the following steps: Step S30, the acquisition system left corner, upper right corner coordinates , the coordinates of the lower right corner, lower left corner coordinates and center point coordinates; step S31, the sequence at a checkpoint displays a cursor on the screen, and prompts the user clicks on the cursor; step S32, the user clicks a cursor sequentially above checkpoint.
  7. 7.如权利要求1所述的电阻式触摸屏自动纠错校正方法,其特征在于,执行步骤S9之前延时预设时长。 7. The resistive touch panel according to claim 1, automatic calibration correction method, characterized in that the predetermined length of delay before the step S9.
  8. 8.如权利要求7所述的电阻式触摸屏自动纠错校正方法,其特征在于,延时的时长为至少500ms。 8. The resistive touch screen of claim 7 automatic correction calibration method, wherein, when the length of delay of at least 500ms.
  9. 9.如权利要求1所述的电阻式触摸屏自动纠错校正方法,其特征在于,所述步骤S7判断该差值的绝对值是否超出预设范围为,判断该差值的绝对值是否超出参考文件中的相应坐标的至少正负2 %。 Resistive touch screen according to claim 1, said automatic correction calibration method, wherein the step S7, the absolute value of the difference exceeds a predetermined range, it is judged whether the absolute value of the difference exceeds a reference corresponding coordinate file plus or minus at least 2%.
  10. 10.如权利要求1所述的电阻式触摸屏自动纠错校正方法,其特征在于, 所述步骤S6中,获取用户点击的坐标包括如下步骤: 步骤S60,屏幕校验点位置显示光标,并且提示用户点击该光标;步骤S61,获取用户点击该光标产生的坐标。 10. The resistive touch screen according to claim 1 automatic correction calibration method, wherein the step S6, the user clicks the acquired coordinates comprises the following steps: step S60, the screen displays the cursor position check, and prompts user clicks on the cursor; step S61, the coordinates of the cursor to obtain the user clicks produced.
CN 201310717103 2013-12-20 2013-12-20 A resistive touch screen calibration method of automatic correction CN103713795B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201310717103 CN103713795B (en) 2013-12-20 2013-12-20 A resistive touch screen calibration method of automatic correction

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201310717103 CN103713795B (en) 2013-12-20 2013-12-20 A resistive touch screen calibration method of automatic correction

Publications (2)

Publication Number Publication Date
CN103713795A true CN103713795A (en) 2014-04-09
CN103713795B true CN103713795B (en) 2016-06-15

Family

ID=50406822

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201310717103 CN103713795B (en) 2013-12-20 2013-12-20 A resistive touch screen calibration method of automatic correction

Country Status (1)

Country Link
CN (1) CN103713795B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104267866B (en) * 2014-09-15 2017-04-12 福建升腾资讯有限公司 An asymmetric method and system calibration touchscreen
CN104331190A (en) * 2014-11-27 2015-02-04 天津天地伟业数码科技有限公司 Method and device applied to calibration of touch screens of embedded devices

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101201713A (en) * 2006-12-13 2008-06-18 株式会社和冠 Coordinate input apparatus
CN102736816A (en) * 2012-07-06 2012-10-17 青岛海信移动通信技术股份有限公司 Resistive touch screen calibration method and mobile terminal
CN102819475A (en) * 2011-06-08 2012-12-12 鸿富锦精密工业(深圳)有限公司 System and method for calibrating touch screen of electronic device
US8355009B2 (en) * 2007-04-25 2013-01-15 Mcdermid William J Method and apparatus for determining coordinates of simultaneous touches on a touch sensor pad

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8403203B2 (en) * 2002-12-10 2013-03-26 Neonoda Inc. Component bonding using a capillary effect

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101201713A (en) * 2006-12-13 2008-06-18 株式会社和冠 Coordinate input apparatus
US8355009B2 (en) * 2007-04-25 2013-01-15 Mcdermid William J Method and apparatus for determining coordinates of simultaneous touches on a touch sensor pad
CN102819475A (en) * 2011-06-08 2012-12-12 鸿富锦精密工业(深圳)有限公司 System and method for calibrating touch screen of electronic device
CN102736816A (en) * 2012-07-06 2012-10-17 青岛海信移动通信技术股份有限公司 Resistive touch screen calibration method and mobile terminal

Also Published As

Publication number Publication date Type
CN103713795A (en) 2014-04-09 application

Similar Documents

Publication Publication Date Title
CN101882046A (en) Touch screen unlocking method and system thereof and touch screen device
CN101546233A (en) Identification and operation method of touch screen interface gestures
CN102221932A (en) Touch screen command input method and user equipment
CN102402369A (en) Electronic equipment and method for moving operation prompt identifier thereof
CN103324340A (en) Touch screen one-handed operation method based on mobile terminal and mobile terminal thereof
CN101630224A (en) Method and system for processing control icons on interface and touch terminal
CN101661375A (en) Touch control method, system and display terminal
CN103458122A (en) Quick and convenient gesture screen capture method and device
CN103309616A (en) Soft keyboard display method and a terminal
CN103605739A (en) Method and device for displaying thermodynamic diagrams
CN103677452A (en) Capacitive touch screen calibration method and capacitive touch device
CN104360734A (en) Terminal operating method
CN102270197A (en) Touch translation system and method
CN102637118A (en) Method and device for inserting or deleting cells or rows and lines in spreadsheet
CN103246449A (en) Mobile terminal and screen unlocking method of same
CN103870156A (en) Method and device for processing object
CN103164115A (en) Method and terminal for moving application icon to document folder
US20120127105A1 (en) Apparatus and method for controlling operation of mobile terminal
CN103577029A (en) Application program control system and application program control method
CN102915151A (en) Method for adjusting sensitivity of touch screen and portable electronic device
CN104063086A (en) Mobile device and method for entering application programs based on pressure sensing
CN102043581A (en) Method for processing control button on touch screen interface of medical equipment
CN103272382A (en) Method and device for using Bluetooth gamepad to simulate intelligent terminal touch screen to control game
CN103927119A (en) Method and system for switching to account interface
CN103186333A (en) System and method for unlocking electronic equipment

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
C14 Grant of patent or utility model