CN107066164B - Touch screen simulation method and device - Google Patents

Touch screen simulation method and device Download PDF

Info

Publication number
CN107066164B
CN107066164B CN201710121675.5A CN201710121675A CN107066164B CN 107066164 B CN107066164 B CN 107066164B CN 201710121675 A CN201710121675 A CN 201710121675A CN 107066164 B CN107066164 B CN 107066164B
Authority
CN
China
Prior art keywords
touch screen
circuit
signal
decoder
click
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
CN201710121675.5A
Other languages
Chinese (zh)
Other versions
CN107066164A (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.)
Shenzhen Topway Technology Co Ltd
Original Assignee
Shenzhen Topway 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 Shenzhen Topway Technology Co Ltd filed Critical Shenzhen Topway Technology Co Ltd
Priority to CN201710121675.5A priority Critical patent/CN107066164B/en
Publication of CN107066164A publication Critical patent/CN107066164A/en
Application granted granted Critical
Publication of CN107066164B publication Critical patent/CN107066164B/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/045Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means using resistive elements, e.g. a single continuous surface or two parallel surfaces put in contact
    • 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

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)

Abstract

The invention relates to a simulation method and a device of a touch screen, wherein the method comprises the steps of detecting the interface state of a host touch screen controller; when the host touch screen controller interface detects a click state, an abscissa X position state and an ordinate Y position state, sequentially inputting a preset simulated click signal, an abscissa X position level signal and an ordinate Y position level signal into a level mixing circuit to obtain a simulated resistance touch screen level signal; transmitting the simulated resistance touch screen level signal to a host touch screen controller interface; the device comprises a host touch screen controller interface, a decoder, a level hybrid circuit and a simulation touch circuit, wherein the host touch screen controller and the simulation touch circuit are connected with the decoder, and the level hybrid circuit is connected with the simulation touch circuit. The invention realizes that the interface of the touch screen controller and the touch screen are not directly physically connected during testing, improves the testing efficiency and provides the opportunity of updating the touch media for the host which originally uses the resistance touch screen and has been specially certified or can not be updated and upgraded.

Description

Touch screen simulation method and device
Technical Field
The invention relates to the field of automatic signal feedback processing, in particular to a simulation method and device of a touch screen.
Background
Resistive touch screens are used in many environments and devices, but because the touch screen controller interface must be physically connected to the touch screen one-to-one; a pair of direct-connected solid resistive touch screens is needed during testing and calibration, so that the problems of low testing efficiency, unrepeatability and the like are caused; for a resistive touch screen controller/input sampling device interface, the application of one touch screen to multiple hosts cannot be realized; the need to "manipulate/control/process" the touch screen signal for a particular application cannot be directly achieved.
Disclosure of Invention
The invention aims to solve the technical problem that a touch screen controller interface must be limited by a direct connection solid touch screen, and provides a touch screen simulation method and device.
The technical scheme for solving the technical problems is as follows: a simulation method of a touch screen comprises the following steps:
step 1: detecting the interface state of a host touch screen controller;
step 2: when the host touch screen controller interface detects a click state, an abscissa X position state and an ordinate Y position state, sequentially inputting a preset simulated click signal, an abscissa X position level signal and an ordinate Y position level signal into a level mixing circuit to obtain a simulated resistance touch screen level signal;
and step 3: and transmitting the simulated resistance touch screen level signal to a host touch screen controller interface.
The invention has the beneficial effects that: the invention ensures that the interface of the touch screen controller and the touch screen are not directly physically connected during testing and calibration, thereby improving the testing efficiency. The touch medium updating method provides the opportunity for updating the touch medium for some hosts which originally use the resistive touch screen and are specially authenticated or cannot be updated and upgraded, and changes to use new technologies such as a capacitive touch screen and the like under the condition of not changing the hosts, so that the friendliness of a human-computer interface is improved.
On the basis of the technical scheme, the invention can be further improved as follows.
Further, in the step 1, the decoder detects the interface state of the host touch screen controller.
Further, the simulated resistance touch screen level signal comprises a simulated resistance touch screen click signal, a resistance touch screen horizontal coordinate X position level signal and a resistance touch screen vertical coordinate Y position level signal.
Further, the step 2 comprises the following steps:
step 2.1: when the interface of the host touch screen controller detects a click state, the first decoder controls to switch on the first electronic analog switch, and a preset simulated click signal is used for generating a click signal through the first switch circuit;
step 2.2: when the host touch screen controller interface detects the X position state of the abscissa, the second decoder controls to switch on the second electronic analog switch, and the preset simulation X position level signal of the abscissa generates an X position level signal of the abscissa through the second switch circuit;
step 2.3: when the host touch screen controller interface detects the position state of the ordinate Y, the third decoder controls to switch on the third electronic analog switch, and a preset simulation ordinate Y position level signal is converted into an ordinate Y position level signal through the third switch circuit;
step 2.4: and sequentially carrying out voltage division and switch control on the click signal, the horizontal coordinate X position level signal and the vertical coordinate Y position level signal by a level mixing circuit to obtain a simulated resistance touch screen level signal.
Further, step 1 is preceded by: the touch signal collector collects and distributes at least two preset simulation click signals, position level signals of an abscissa X and position level signals of an ordinate Y, and the number of the hosts corresponds to the number of the preset simulation click signals, the position level signals of the abscissa X and the position level signals of the ordinate Y in a one-to-one manner.
The adoption of the further scheme has the beneficial effects that the touch screen controller interface and the touch screen can complete many-to-one physical connection; the touch screen can be connected in many-to-one mode during testing and calibration, and testing efficiency is improved; and completing the application of the touch screen to multiple hosts.
The other technical scheme provided by the invention is as follows: an emulation apparatus of a touch screen, the apparatus comprising: the touch screen control device comprises a host touch screen controller interface, a decoder, a level hybrid circuit and an analog touch circuit, wherein the host touch screen controller and the analog touch circuit are connected with the decoder, and the level hybrid circuit is connected with the analog touch circuit;
the host touch screen controller interface is used for detecting a click state, an X position state of an abscissa and a Y position state of an ordinate;
the decoder is used for detecting the interface state of the host touch screen controller;
the analog touch circuit is used for transmitting a preset simulation click signal, an X position level signal of an abscissa and a Y position level signal of an ordinate to the level mixing circuit;
the level mixing circuit is used for obtaining a simulated resistance touch screen level signal according to a preset simulated click signal, an abscissa X position level signal and an ordinate Y position level signal.
Further, the decoder includes a first decoder, a second decoder, and a third decoder;
the first decoder is connected with the analog touch circuit;
the second decoder is connected with the analog touch circuit;
the third decoder is connected with the analog touch circuit.
Further, the analog touch circuit includes: the first electronic analog switch, the second electronic analog switch and the third electronic analog switch;
the first electronic analog switch is connected with the level mixing circuit;
the second electronic analog switch is connected with the level mixing circuit;
and the third electronic analog switch is connected with the level mixing circuit.
The device further comprises a signal collector, the signal collector is connected with the analog touch circuit, the signal collector is used for collecting and distributing at least two preset simulation click signals, horizontal coordinate X position level signals and vertical coordinate Y position level signals, and the number of the hosts corresponds to the number of the preset simulation click signals, the horizontal coordinate X position level signals and the vertical coordinate Y position level signals in a one-to-one mode.
Further, the simulated resistance touch screen level signal comprises a simulated resistance touch screen click signal, a resistance touch screen horizontal coordinate X position level signal and a resistance touch screen vertical coordinate Y position level signal.
Drawings
FIG. 1 is a flow chart of a simulation method of a touch screen according to the present invention;
FIG. 2 is a diagram of a simulation apparatus for a touch screen according to the present invention;
FIG. 3 is a schematic circuit diagram of an emulation apparatus for a touch panel according to the present invention.
In the drawings, the components represented by the respective reference numerals are listed below:
1. the system comprises a host touch screen controller, 2, a decoder, 3, a level mixing circuit, 4, a signal collector, 5 and a touch screen.
Detailed Description
The principles and features of this invention are described below in conjunction with the following drawings, which are set forth by way of illustration only and are not intended to limit the scope of the invention.
As shown in fig. 1, a simulation method for a touch screen according to an embodiment of the present invention is characterized in that the method includes the following steps:
step 1: detecting the interface state of a host touch screen controller;
step 2: when the host touch screen controller interface detects a click state, an abscissa X position state and an ordinate Y position state, sequentially inputting a preset simulated click signal, an abscissa X position level signal and an ordinate Y position level signal into a level mixing circuit to obtain a simulated resistance touch screen level signal;
and step 3: and transmitting the simulated resistance touch screen level signal to a host touch screen controller interface.
In step 1, the decoder detects the interface state of the host touch screen controller.
The simulated resistance touch screen level signal comprises a simulated resistance touch screen click signal, a resistance touch screen horizontal coordinate X position level signal and a resistance touch screen vertical coordinate Y position level signal.
Wherein, step 2 includes the following steps:
step 2.1: when the interface of the host touch screen controller detects a click state, the first decoder controls to switch on the first electronic analog switch, and a preset simulated click signal is used for generating a click signal through the first switch circuit;
step 2.2: when the host touch screen controller interface detects the X position state of the abscissa, the second decoder controls to switch on the second electronic analog switch, and the preset simulation X position level signal of the abscissa generates an X position level signal of the abscissa through the second switch circuit;
step 2.3: when the host touch screen controller interface detects the position state of the ordinate Y, the third decoder controls to switch on the third electronic analog switch, and a preset simulation ordinate Y position level signal is converted into an ordinate Y position level signal through the third switch circuit;
step 2.4: and sequentially carrying out voltage division and switch control on the click signal, the horizontal coordinate X position level signal and the vertical coordinate Y position level signal by a level mixing circuit to obtain a simulated resistance touch screen level signal.
Wherein, step 1 also includes before: the touch signal collector collects and distributes at least two preset simulation click signals, position level signals of an abscissa X and position level signals of an ordinate Y, and the number of the hosts corresponds to the number of the preset simulation click signals, the position level signals of the abscissa X and the position level signals of the ordinate Y in a one-to-one manner.
As shown in fig. 2, for the simulation apparatus of a touch screen provided in the embodiment of the present invention, a host touch screen controller interface 1, a decoder 2, a level mixing circuit 3, and an analog touch circuit 4 are provided, where the host touch screen controller 1 and the analog touch circuit 4 are connected to the decoder 2, and the level mixing circuit 3 is connected to the analog touch circuit 4;
the host touch screen controller interface 1 is used for detecting a click state, an X position state of an abscissa and a Y position state of an ordinate;
the decoder 2 is used for detecting the interface state of the host touch screen controller by the decoder;
the analog touch circuit 4 is used for transmitting a preset simulation click signal, a horizontal coordinate X position level signal and a vertical coordinate Y position level signal to the level mixing circuit 3;
the level mixing circuit 3 is used for obtaining a simulated resistance touch screen level signal according to a preset simulated click signal, a horizontal coordinate X position level signal and a vertical coordinate Y position level signal.
Wherein the decoder 2 comprises a first decoder, a second decoder and a third decoder;
the first decoder is connected with the analog touch circuit 4;
the second decoder is connected with the analog touch circuit 4;
the third decoder is connected to the analog touch circuit 4.
The analog touch circuit 4 includes: the first electronic analog switch, the second electronic analog switch and the third electronic analog switch;
the first electronic analog switch is connected with the level mixing circuit 3;
the second electronic analog switch is connected with the level mixing circuit 3;
the third electronic analog switch is connected to the level mixing circuit 3.
The device further comprises a signal collector 5, the signal collector 5 is connected with the analog touch circuit 4, the signal collector 5 is used for collecting preset simulated click signals, horizontal coordinate X position level signals and vertical coordinate Y position level signals and distributing the collected signals into at least two parts, and the number of the hosts corresponds to the preset simulated click signals, the preset horizontal coordinate X position level signals and the preset vertical coordinate Y position level signal distribution parts in a one-to-one mode.
The simulated resistance touch screen level signal comprises a simulated resistance touch screen click signal, a resistance touch screen horizontal coordinate X position level signal and a resistance touch screen vertical coordinate Y position level signal.
Fig. 3 is a schematic circuit diagram of an emulation apparatus for a touch screen according to an embodiment of the present invention. In the figure, R1, R2, R3 and R4 are 100 ohm resistors and are used for simulating the impedance of a common touch screen, a simulated resistance touch screen level signal is generated by combining with a 10K ohm resistor R5, R5 is used for simulating the touch resistance of the common touch screen, and the resistance values of the R1-R5 resistors can be matched and changed according to actual conditions.
U2A, U2B, U2C, U5A, U5B and U5C are logical NOT gates, U3A, U3B and U3C are logical NAND gates, U4A and U4B are logical AND gates, and the circuit structure is used for decoding and logical control.
U1A, U1B and U1C are electronic analog switches belonging to the switches of the analog touch circuit 4, and are used for transmitting preset simulated click signals, horizontal coordinate X position level signals and vertical coordinate Y position level signals to the level mixing circuit 3, and the switch states of the level mixing circuit are controlled by the decoder 2.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (6)

1. A simulation method of a touch screen is characterized by comprising the following steps:
step 1: detecting the interface state of a host touch screen controller;
step 2.1: when the interface of the host touch screen controller detects a click state, the first decoder controls to switch on the first electronic analog switch, and a preset simulated click signal is used for generating a click signal through the first switch circuit;
step 2.2: when the host touch screen controller interface detects the X position state of the abscissa, the second decoder controls to switch on the second electronic analog switch, and the preset simulation X position level signal of the abscissa generates an X position level signal of the abscissa through the second switch circuit;
step 2.3: when the host touch screen controller interface detects the position state of the ordinate Y, the third decoder controls to switch on the third electronic analog switch, and a preset simulation ordinate Y position level signal is converted into an ordinate Y position level signal through the third switch circuit;
step 2.4: sequentially carrying out voltage division and switch control on the click signal, the horizontal coordinate X position level signal and the vertical coordinate Y position level signal through a level mixing circuit to obtain a simulated resistance touch screen level signal;
and step 3: transmitting the simulated resistance touch screen level signal to a host touch screen controller interface;
before step 1, the method further comprises the following steps:
the touch signal collector collects and distributes at least two preset simulation click signals, position level signals of an abscissa X and position level signals of an ordinate Y, and the number of the hosts corresponds to the number of the preset simulation click signals, the position level signals of the abscissa X and the position level signals of the ordinate Y in a one-to-one manner.
2. The method for simulating the touch screen according to claim 1, wherein in step 1, the decoder detects the interface state of the host touch screen controller.
3. The method of claim 1, wherein the simulated resistive touch screen level signal comprises a simulated resistive touch screen click signal, a resistive touch screen abscissa X position level signal, and a resistive touch screen ordinate Y position level signal.
4. An apparatus for simulating a touch screen, the apparatus comprising: the touch screen control system comprises a host touch screen controller interface (1), a decoder (2), a level hybrid circuit (3) and an analog touch circuit (4), wherein the host touch screen controller (1) and the analog touch circuit (4) are connected with the decoder (2), and the level hybrid circuit (3) is connected with the analog touch circuit (4); the touch control circuit also comprises a signal collector (5), wherein the signal collector (5) is connected with the analog touch circuit (4);
the signal collector (5) is used for collecting and distributing at least two preset simulated click signals, position level signals of an abscissa X and position level signals of an ordinate Y, and the number of the hosts corresponds to the number of the preset simulated click signals, the position level signals of the abscissa X and the position level signals of the ordinate Y in a one-to-one manner;
the host touch screen controller interface (1) is used for detecting a click state, an X position state of an abscissa and a Y position state of an ordinate;
the decoder (2) is used for detecting the interface state of the host touch screen controller by the decoder;
the analog touch circuit (4) is used for transmitting a preset simulation click signal, an X position level signal of an abscissa and a Y position level signal of a ordinate to the level mixing circuit (3); the analog touch circuit (4) includes: the first electronic analog switch, the second electronic analog switch and the third electronic analog switch;
the first electronic analog switch is connected with the level mixing circuit (3);
the second electronic analog switch is connected with the level mixing circuit (3);
the third electronic analog switch is connected with the level mixing circuit (3);
the level mixing circuit (3) is used for obtaining a simulated resistance touch screen level signal according to a preset simulated click signal, a horizontal coordinate X position level signal and a vertical coordinate Y position level signal.
5. The emulation apparatus of a touch screen according to claim 4, wherein the decoder (2) comprises a first decoder, a second decoder and a third decoder;
the first decoder is connected with the analog touch circuit (4);
the second decoder is connected with the analog touch circuit (4);
the third decoder is connected with the analog touch circuit (4).
6. The touch screen simulation apparatus of claim 4 or 5, wherein the simulated resistive touch screen level signals comprise simulated resistive touch screen click signals, resistive touch screen abscissa X position level signals, and resistive touch screen ordinate Y position level signals.
CN201710121675.5A 2017-03-02 2017-03-02 Touch screen simulation method and device Active CN107066164B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710121675.5A CN107066164B (en) 2017-03-02 2017-03-02 Touch screen simulation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710121675.5A CN107066164B (en) 2017-03-02 2017-03-02 Touch screen simulation method and device

Publications (2)

Publication Number Publication Date
CN107066164A CN107066164A (en) 2017-08-18
CN107066164B true CN107066164B (en) 2020-02-21

Family

ID=59621521

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710121675.5A Active CN107066164B (en) 2017-03-02 2017-03-02 Touch screen simulation method and device

Country Status (1)

Country Link
CN (1) CN107066164B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110737363B (en) * 2019-10-31 2023-08-04 广东晶科电子股份有限公司 Resistance type touch screen simulation control device and method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101963875A (en) * 2010-08-18 2011-02-02 惠州Tcl移动通信有限公司 Resistor type touch key device and method for realizing resistor type touch key
CN202003338U (en) * 2011-04-26 2011-10-05 福州锐达数码科技有限公司 Double-screen pressure sensitive electronic whiteboard
CN102288894A (en) * 2011-04-19 2011-12-21 青岛海信移动通信技术股份有限公司 Method and device for testing functional circuit of touch screen of motherboard
CN202093500U (en) * 2011-01-07 2011-12-28 深圳市卓讯达科技发展有限公司 Touch screen simulation device
CN203405807U (en) * 2013-04-25 2014-01-22 胡秀珍 Simulator for interface of touch screen

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101963875A (en) * 2010-08-18 2011-02-02 惠州Tcl移动通信有限公司 Resistor type touch key device and method for realizing resistor type touch key
CN202093500U (en) * 2011-01-07 2011-12-28 深圳市卓讯达科技发展有限公司 Touch screen simulation device
CN102288894A (en) * 2011-04-19 2011-12-21 青岛海信移动通信技术股份有限公司 Method and device for testing functional circuit of touch screen of motherboard
CN202003338U (en) * 2011-04-26 2011-10-05 福州锐达数码科技有限公司 Double-screen pressure sensitive electronic whiteboard
CN203405807U (en) * 2013-04-25 2014-01-22 胡秀珍 Simulator for interface of touch screen

Also Published As

Publication number Publication date
CN107066164A (en) 2017-08-18

Similar Documents

Publication Publication Date Title
CN108089754A (en) A kind of touch-control simulator
CN104461198B (en) A kind of touch base plate and terminal
JP2006513505A (en) Touch simulation system and method
CN107066164B (en) Touch screen simulation method and device
CN104345643A (en) Temperature simulating circuit and method
CN1591336B (en) Method for simulating computer keyboard or mouse operation
CN101308365A (en) Quick control prototype system and realization method
CN105457274A (en) Control device of gamepad and achievement method of control device
CN111028604A (en) Simulation training platform for electric control system of automobile engine and implementation method thereof
CN109799730A (en) A kind of electromechanical integration emulation platform and its design method
CN101727246B (en) Electronic device with infrared touch function and control method thereof
CN103853314A (en) Automatic control method and device
CN2655331Y (en) Touch-controlling input device for electronic device
CN106483410B (en) Touch screen response time testing device, system and method
CN108363542A (en) Content interaction method based on suspension touch control and device
CN110737363B (en) Resistance type touch screen simulation control device and method
CN106354400A (en) Touching operation identification method and device thereof
CN102445651A (en) Device for testing touch screen functional circuit on circuit board
CN201319183Y (en) Electronic device with the function of infrared touch
US10241618B2 (en) Touchscreen display with monitoring functions
CN203405807U (en) Simulator for interface of touch screen
CN101739179B (en) Electronic device with infrared touch function and control method thereof
CN201348775Y (en) Electronic device with infrared touch function
CN107967076A (en) The recognition methods of resistive touch screen type and device
CN106055225A (en) Method, terminal and server for control piece display

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