CN104932343B - A kind of extension DGUS touch panel devices for realizing that touch-control is synchronous - Google Patents

A kind of extension DGUS touch panel devices for realizing that touch-control is synchronous Download PDF

Info

Publication number
CN104932343B
CN104932343B CN201510267959.6A CN201510267959A CN104932343B CN 104932343 B CN104932343 B CN 104932343B CN 201510267959 A CN201510267959 A CN 201510267959A CN 104932343 B CN104932343 B CN 104932343B
Authority
CN
China
Prior art keywords
touch
mcu
control
dgus
mcu circuits
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
CN201510267959.6A
Other languages
Chinese (zh)
Other versions
CN104932343A (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.)
SAI FU NDT EQUIPMENT MANUFACTURER Co.,Ltd.
Original Assignee
Yangcheng Institute of Technology
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 Yangcheng Institute of Technology filed Critical Yangcheng Institute of Technology
Priority to CN201510267959.6A priority Critical patent/CN104932343B/en
Publication of CN104932343A publication Critical patent/CN104932343A/en
Application granted granted Critical
Publication of CN104932343B publication Critical patent/CN104932343B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/25Pc structure of the system
    • G05B2219/25252Microprocessor
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/25Pc structure of the system
    • G05B2219/25341Single chip programmable controller

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a kind of extension DGUS touch panel devices for realizing that touch-control is synchronous, including the first MCU circuits and the 2nd MCU circuits being connected by parallel communications circuit, in addition to the power voltage step down circuit powered to each above-mentioned circuit.The first MCU circuits include first switch state detection circuit, the serial data communication interfaces of the first RS 232 and the serial data communication interfaces of the 2nd RS 232.The present invention is reduced the complexity of MCU softwares, is more reduced production cost using double MCU schemes, relatively inexpensive, preferable can realize the synchronous intelligent regulation of double DGUS touch-screens.The synchronous refresh of display and control is realized on dual touch screen, the monitoring work of industry spot can be significantly facilitated, mitigates the monitoring intensity of field personnel, the scrap build that the chemical industry of environment is polluted especially for pernicious gas is significant.

Description

A kind of extension DGUS touch panel devices for realizing that touch-control is synchronous
Technical field
The invention discloses a kind of extension DGUS touch panel devices for realizing that touch-control is synchronous, it is related to detection technique and touch-screen Technical field.
Background technology
DGUS (DWIN Graphical Utilized Software, enlightening texts and pictures shape application service software) is a kind of new Touch-screen applications technology.Different by sequential or instruction control display from traditional LCM, DGUS screens are aobvious using Direct Variable driving Show mode, the variable configuration file that all displays and operation are all based on pre-setting carrys out work.Entered using DGUS Row exploitation, can help user quickly to develop full graphics touch screen human-computer interface, touch-screen input method, popup menu, sliding block dragging, The variables such as the touch screen interaction modes such as increment regulation and variable icon, characters in a fancy style, curve are shown, time variable are shown can be by PC It is easily accomplished, it is possible to reduce the substantial amounts of programing work of engineer.
Industrial production environment is complicated, staff wish to telecommuting place also can monitoring site equipment operation feelings Condition, but do not change the control mode of field apparatus, most common scheme is that same One serial interface extends two touch-screens, but this Scheme advantage is to save cost, can realize the synchronization of display, but has the disadvantage that two touch-screens can not be solved while transmission control refers to The problem of equipment caused when making receives order error, wherein must there is a touch-screen can not realize control function, this scheme Be common in service industry computer extend liquid crystal display, seldom for industrial occasions touch-screen extension;Another traditional side Method needs to develop the software and hardware part of original equipment again, and equivalent to a system is done again, workload is larger, and cause it is secondary into This waste;Meanwhile, developed again on original equipment, there is a technical difficulty:Original system will separate the regular hour and go The display of two touch-screens of management and distribution and control data stream, the speed of service and operating efficiency on original equipment produce influence.
Therefore, the software and hardware function of original equipment is not destroyed if how to reduce the development difficulty of equipment, or during upgrading, and is solved The stationary problem of local operation and remote monitoring activities, is that the technology of those skilled in the art's urgent need to resolve is asked during certainly monitoring Topic.
The content of the invention
The technical problems to be solved by the invention are:Defect for prior art there is provided a kind of realizes that touch-control is synchronous DGUS touch panel devices are extended, the data flow of original equipment and touch-screen is monitored and managed using singlechip technology, and pass through computer Being simply provided for application software, realizes the software and hardware and mechanical realization for not changing original equipment, directly same in long-range addition one The technical scheme of the touch-screen of sample, can realize that the synchronous refresh of display and control is more convenient, more there is provided one kind on dual touch screen Low cost, the equipment interface scheme for saving technological process.
The present invention uses following technical scheme to solve above-mentioned technical problem:
A kind of extension DGUS touch panel devices for realizing that touch-control is synchronous, including first be connected by parallel communications circuit MCU circuits and the 2nd MCU circuits, in addition to the power voltage step down circuit powered to each above-mentioned circuit, wherein,
The first MCU circuits include first switch state detection circuit, the first RS-232 serial data communications interface and 2nd RS-232 serial data communication interfaces;
First switch state detection circuit is connected to complete to set with original with the first RS-232 serial data communication interfaces Standby communication;
First switch state detection circuit is connected to complete to set with original with the 2nd RS-232 serial data communication interfaces The standby DGUS touch panel communications matched somebody with somebody;
The 2nd MCU circuits include the serial data communication interface of second switch state detection circuit the 3rd;
Second switch state detection circuit is connected to complete and newly add with the 3rd serial data communication interface DGUS touch panel communications;
The RS-232 serial data communication interfaces of first MCU circuit supervisions the first, the RS-232 of the 2nd MCU circuit supervisions the 2nd strings Row data communication interface and the 3rd serial data communication interface.
Present invention further optimization scheme is done, the 3rd serial data communication interface is RS-232 or RS-485.
Do present invention further optimization scheme, the first, second MCU circuits include single-chip microcomputer, clock circuit and Reset circuit.
Present invention further optimization scheme is done, in the first MCU circuits, the single-chip microcomputer concrete model used is STC89C52RC;In the 2nd MCU circuits, the single-chip microcomputer concrete model used is STC12C5A60S2.
Present invention further optimization scheme is done, first, second switch condition detection circuit includes four groups, sets Four groups of toggle switch;First switch state detection circuit is used to set four kinds of different baud rates, second switch shape for serial communication State detection circuit is used to set corresponding limitation touch screen function.
Do in present invention further optimization scheme, device, DGUS touch-screens realize number by serial data communication interface According to display and control operation, monitor the corresponding serial data communication interface of the first, second MCU circuits, identification DGUS is touched The page turning control instruction that screen is sent is touched, the first MCU circuits or the 2nd MCU circuits are sent to the corresponding DGUS touch-screens without operation Control instruction, forces to carry out touch-screen refreshing.
Present invention further optimization scheme is done, the control instruction includes configuration file and instruction code, the configuration File and instruction code are added to the 2nd MCU circuits by way of Piece file mergence, are formed for the 2nd MCU normal operation circuits Programming file.
Do in present invention further optimization scheme, the first MCU circuits, the specific method for controlling realization is:
The first MCU circuits are initialized, initialization is interrupted and serial communication parameter, whether sets up touch-screen by the mark of touch-control Position;
The on off state of Configuration of baud rate function is detected, serial communication Transmission bit rate, and handle are set according on off state On off state sends the 2nd MCU circuits to by parallel port;
The touch-screen touch-control authority on off state sent etc. the 2nd MCU circuits to be received, sets crucial according on off state Word, represents corresponding limitation touch screen function.
In the 2nd MCU circuits, the specific method for controlling realization is:
The 2nd MCU circuits are initialized, initialization is interrupted and serial communication parameter, whether sets up touch-screen by touch-control mark Position;
Receive the on off state of the Configuration of baud rate function of the first MCU circuits transmission;
After initialization, the 2nd MCU circuits are in interrupt latency state, and number is refreshed when the 2nd MCU circuits receive touch screen data According to when, the data are sent to the first MCU circuits and long-range DGUS touch-screens simultaneously.
Using double MCU (Microcontroller Unit, one chip microcomputer or single-chip microcomputer) scheme, the first MCU prisons Control the first RS-232 serial data communication interfaces, the 2nd MCU monitors the 2nd RS-232 serial data communications interface and the 3rd serial Data communication interface (RS-232 or RS-485), double MCU work independently, and take the CPU time few;First MCU and the 2nd MCU are adopted Communicated with LPT, external interrupt INT0, INT1 is respectively adopted as handshake, fast response time, transmission data speed Degree is fast, and the transmission data baud rate size of original equipment is not reduced.
DGUS touch-screens realize display and the control operation of data, the first MCU serial ports of monitoring and the 2nd MCU strings by serial ports Mouthful, if it is determined that what is received is the control instruction with " page turning " function, the first MCU or the 2nd MCU do not have hair " page turning " to other The touch-screen of control instruction broadcasts " page turning " from write command, forces to carry out touch-screen refreshing;When original equipment matches somebody with somebody a touch-screen, Need not be sent instructions progress " page turning ", it is necessary to which simultaneous display and control, the touch-screen of no operation need after another equipment of addition Send instructions pressure " page turning ";The function button for needing " page turning " is fixed, and it is also fixed to be turned to that one page, can be used Query scheme realizes the control instruction of " page turning " action without operator control panel, the first MCU or the 2nd MCU monitoring serial ports automatically, if It is " page turning " instruction, automatically generates the touch-screen that pressure " page turning " instruction is sent to no operation.
Pressure " page turning " instruction of DGUS screens is as follows:0xAA, 0x70,0x01,0xCC, 0x33,0xC3,3C, wherein 0xAA It is instruction prefixes, 0xCC, 0x33,0xC3,0x3C is instruction suffix, and 0x70 is command function code, and 0x01, which is represented, jumps to the One page, if redirecting other page numbers, changes 0x01;It is to press " page turning " button of touch-screen to redirect codelookup method, The picture of jump page is observed, the DWIN_SET files for the SD card file root that DGUS screens are carried then is opened, finds this Picture, " picture storage location+(optional) filename .BMP " writes down storage location on picture just for being named as of DGUS screen pictures It is the page page number that " upset " will be redirected;Configuration file is made by software using " page turning " relevant information, passes through software The instruction code of single-chip microcomputer is generated, then by way of Piece file mergence, is added in the 2nd MCU original programs, is formed completely 2nd MCU programming files, it is both easy to operate, while saving an EEPROM again.
The present invention uses above technical scheme compared with prior art, with following technique effect:The present invention is using double MCU Scheme, reduces the complexity of MCU softwares, more reduces production cost, relatively inexpensive, preferable can realize double DGUS touch-screens Synchronous intelligent regulation, the economical valency of its designing technique than it is high the characteristics of, realize the software and hardware that does not change original equipment and Mechanical realization, the directly technical scheme in remotely one same touch-screen of addition.The present invention can realize aobvious on dual touch screen The synchronous refresh for showing and controlling, greatly facilitates the monitoring work of industry spot, alleviates the monitoring intensity of field personnel, The scrap build that the chemical industry of environment is polluted especially for pernicious gas is significant.
Brief description of the drawings
Fig. 1 is the construction module schematic diagram of the present invention.
Fig. 2 is the first RS-232 serial data communication Interface Electrical connection diagrams of the present invention.
Fig. 3 is the 2nd RS-232 serial data communication Interface Electrical connection diagrams of the present invention.
Fig. 4 is the 3rd serial data communication Interface Electrical connection diagram of the present invention.
Fig. 5 is that the 2nd MCU of the present invention and second switch state detection circuit are electrically connected schematic diagram.
Fig. 6 is the power voltage step down circuit electrical connection diagram of the present invention.
Fig. 7 is that the first MCU of the present invention and first switch state detection circuit are electrically connected schematic diagram.
Fig. 8 is the first MCU logic control schematic diagrames in the present invention.
Fig. 9 is the 2nd MCU logic control schematic diagrames in the present invention.
Embodiment
Embodiments of the present invention are described below in detail, the example of the embodiment is shown in the drawings, wherein from beginning Same or similar element or element with same or like function are represented to same or similar label eventually.Below by ginseng The embodiment for examining accompanying drawing description is exemplary, is only used for explaining the present invention, and is not construed as limiting the claims.
Technical scheme is described in further detail below in conjunction with the accompanying drawings:
The construction module schematic diagram of the present invention is as shown in figure 1, in one embodiment of the invention, be specifically electrically connected Schematic diagram respectively as shown in Figures 2 to 7, realizes that the synchronous extension DGUS touch panel devices of touch-control have on housing, housing and have power supply Input, 3 RS-232 serial data communications interfaces, RS-485 serial data communications interface, two groups of state selecting switch; There is circuit board in housing, circuit board has power voltage step down circuit, the first MCU circuits, the 2nd MCU circuits, parallel communications circuit, first Switch condition detection circuit, second switch state detection circuit, the first RS-232 serial data communications interface, the 2nd RS-232 strings Row data communication interface, it is possible to match the 3rd RS-232 serial data communications interface or RS-485 serial data communication interfaces; The input of power voltage step down circuit is the power supply positive voltage (being herein+12V) that original equipment is supplied to DGUS touch-screens, is connected to The pin of LM7805 voltage-stablizers 1, the pin of LM7805 voltage-stablizers 2 is connected to ground, and 3 pin connect output (being herein+5V);Electrochemical capacitor C19, ceramics Electric capacity C21 mono- terminates input voltage, one end ground connection, electrochemical capacitor C20, ceramic condenser C22 mono- termination output, one end ground connection.
First MCU circuits have model STC89C52RC single-chip microcomputer U2, and single-chip microcomputer is connected with clock circuit 1, reset circuit 2 and type Number it is MAX232 serial communication module U1, serial line interface RXD, TXD and the serial line interface of serial communication module of single-chip microcomputer R1OUT, T2IN are connected.
2nd MCU circuits have model STC12C5A60S2 single-chip microcomputer U4, and single-chip microcomputer is connected with clock circuit 3, the and of reset circuit 4 Model is MAX232 serial communication module U3, serial line interface RXD, TXD and the serial line interface of serial communication module of single-chip microcomputer R1OUT, T2IN are connected;Another model is MAX232 serial communication module U5, serial line interface RXD2, TXD2 and string of single-chip microcomputer Serial line interface R1OUT, T2IN of row communication module are connected;Parallel communications circuit is single-chip microcomputer U2 P0 mouths be direct and single-chip microcomputer U4 P0 mouths be joined directly together, carry out parallel communications;Single-chip microcomputer U2 external interrupt INT0 and single-chip microcomputer U4 external interrupt INT0 are straight Even, single-chip microcomputer U2 external interrupt INT1 and single-chip microcomputer U4 external interrupt INT1 are direct-connected, serve as the status signal of parallel communications It is that single-chip microcomputer U1 or single-chip microcomputer U2 provide interrupt source.
First switch state detection circuit has four groups, and every group has identical to connect circuit, now with first group of switch detection electricity Illustrated exemplified by road:Toggle switch S1 1 pin ground connection, 8 pin meet single-chip microcomputer U2 P1.0, and pull-up resistor R2 is grounded and connect respectively Single-chip microcomputer U2 P1.0 pin;Four groups of toggle switch, are respectively used to set four kinds of different baud rates for serial communication.
Second switch state detection circuit has four groups, and every group has identical to connect circuit, now with first group of switch detection electricity Illustrated exemplified by road:Toggle switch S2 1 pin meets single-chip microcomputer U4 P2.0, toggle switch S2 8 pin ground connection;Pull-up resistor R7 It is grounded and connects respectively single-chip microcomputer U4 P2.0 pin;Four groups of toggle switch, are respectively used to set limitation touch screen function;Selection mode Repertoire can be used in 1 dual touch screen;Selection mode 2 in a touch-screen touch control operation, can limit the behaviour of another touch-screen Make;Selection mode 3,4 can limit the control function of other touch-screen.
RS-232 serial data communication circuits have three groups, and circuit all same is now connect with the first RS-232 serial data communications It is introduced exemplified by mouthful:Electrochemical capacitor C1 direct type number is MAX232 serial communication module U1 4,5 pin, electrochemical capacitor C2 direct type Number it is MAX232 serial communication module U1 1,3 pin, electrochemical capacitor C7 direct type number is the 2 of MAX232 serial communication module U1 Pin and ground, model be MAX232 serial communication module U1 2 pin 15 pin ground connection, 16 pin connect power supply positive voltage (be here+ 5V), electrochemical capacitor C6 one end is grounded, and another terminating number is MAX232 serial communication module U1 6 pin, and model is MAX232 Serial communication module U1 7,13 pins and 2,3 pin of interface module connect;The function of this circuit is in serial communication Transistor-Transistor Logic level is converted to RS_232 level.
RS-485 serial data communications circuit mainly includes 232 level conversions, 485 circuits.232 level of this circuit turn Change circuit to employ MAX232 or can also directly use NIH232 integrated circuits, 485 circuits employ the integrated electricity of MAX485 Road.
Model is the MAX232 serial communication module U4 above-mentioned by the agency of of circuit, it is to be noted that model is MAX232 Serial communication module U1 11 and 10 pin phase short circuits, 14 pin connecting resistance R11;Another termination amplifier Q1 of R11 base stage, amplification Device Q1 grounded emitter, the pin of resistance R12 mono- connect power supply positive voltage (being herein+5V), the colelctor electrode of a termination amplifier Q1;Type Number be MAX485 serial communication module U62,3 pin and amplifier Q1 colelctor electrodes two connect, 1 pin and model are the serial logical of MAX232 Letter module U5 13 pin are connected, 4 pin and model be MAX232 serial communication module U5 7 pin be connected, 5 pin are grounded, 8 pin connect electricity Source positive pole (being+5V here), 6 pin resistance R13,7 pin meet R14, and another pins of resistance R13 connect positive source (being+5V here), electricity Hinder another pin ground connection of R14;
MAX485 is come the input and output of control data by two pin RE (2 pin) and DE (3 pin).When RE is low electricity Usually, MAX485 data inputs are effective;When DE is high level, MAX485 data outputs are effective.In half-duplex in use, generally The two pin can be joined directly together, the low and high level then exported by single-chip microcomputer U4 can just allow MAX485 receiving and sending It converted between state.Because this circuit using TXD lines and MAX232 another passage and Q1 controls MAX485 shape State switches.
Usually MAX232 14 pin output high level, after Q1 paraphase, makes MAX485 RE and DE are in for low level Data receiving state.When single-chip microcomputer machine U4 sends data, MAX232 14 pin output low level after Q1 paraphase, makes MAX485 RE and DE is in data for high level and sends state.
The first MCU logic controls schematic diagram is as shown in figure 8, the control program in the first MCU is in the present invention:
Start, initialize the first MCU, initialization is interrupted and serial communication parameter, whether sets up touch-screen by touch-control mark FLAG, FLAG=0 represent existing touch-screen by touch-control for position, and FLAG=1 represents not have touch-screen by touch-control, initializes FLAG=0; The on off state of Configuration of baud rate function is detected, serial communication Transmission bit rate is set according on off state, and on off state 2nd MCU is sent to by parallel port;The touch-screen touch-control authority on off state sent etc. the 2nd MCU to be received, according to switch shape State set keyword LOCK, LOCK=0 represent dual touch screen can synchronous touch-control, LOCK=1 represented in synchronization, only one Platform touch-screen forms touch-control interlocking, the local touch-screens of LOCK=2 can be by touch-control, and local touch-screen forbids touch-control by touch-control, LOCK=3 remote touch screen can be by touch-control, and remote touch screen forbids touch-control, and judges LOCK values, if LOCK is not 2, to 2nd MCU sends required auxiliary information when " page turning " tables look-up, and does not otherwise send;After the completion of initialization, the first MCU is in interruption etc. State is treated, if receiving the data of the 2nd MCU transmission, the highest order of data is first checked for, if 1, touch-control flag bit FLAG Negate, detect touch-control rights state LOCK, if LOCK=0, searching " page turning " data block of tabling look-up finds page turning code, and add Instruction format formation " page turning " is instructed to be sent to DGUS touch-screens, if LOCK=1, then judge touch-control flag bit FLAG, if FLAG=1, represents that touch-control allows state when touch-screen is in different, and tabled look-up and sought by touch-control currently without any DGUS touch-screens Look for " page turning " data block, find page turning code, and add instruction format formation " page turning " instruct to DGUS touch-screens send;If the The DGUS touch-screens that one MCU receives serial ports 1 send data, and touch-control flag bit FLAG is negated, and detect touch-control rights state LOCK, If LOCK=0, then judge whether it is page-turning instruction, if it is, corresponding page turning code data is inquired about, and code data most Whether high position 1, be " page turning " data for being supplied to the 2nd MCU to distinguish, send the 2nd MCU amended code data, such as Fruit is not page-turning instruction, directly send the 2nd MCU data;If LOCK=1, LOCK is judged, if FLAG=1, represent to touch Touch-control allows state when screen is in different and no DGUS touch-screens are operated, then judges whether it is page-turning instruction, if it is, looking into Corresponding page turning code data is ask, and whether is " page turning " for being supplied to the 2nd MCU to distinguish code data extreme higher position 1 Data, the 2nd MCU is sent amended code data, if not page-turning instruction, directly send the 2nd MCU data;If LOCK=2, then judge whether it is page-turning instruction, because the local DGUS touch-screens for being now connected on the first MCU allow touch-control, and connect Touch-control is not allowed in the 2nd MCU long-range DGUS touch-screens, so if not page-turning instruction, data directly send the 2nd MCU, such as Fruit is page-turning instruction, inquires about corresponding page turning code data, and code data extreme higher position 1, for being supplied to the 2nd MCU areas Whether be " page turning " data, the 2nd MCU is sent amended code data, if LOCK=3, due to being connected on the first MCU's if dividing Local DGUS touch-screens forbid touch-control, no operation.
2nd MCU logic controls schematic diagram in the present invention is as shown in figure 9, start, and the 2nd MCU of initialization, initialization is interrupted With serial communication parameter, whether touch-screen is set up by touch-control flag bit FLAG, FLAG=0 represents existing touch-screen by touch-control, FLAG=1 represents not have touch-screen by touch-control, initialization FLAG=0;Receive the Configuration of baud rate function that the first MCU is sent On off state;After initialization, the second MCU interruption wait state;If what the original equipment transmission that the 2nd MCU receives serial ports 2 came Data, this information be touch screen data refresh data, should simultaneously to the first MCU send and to serial ports 3 long-range DGUS screens send out Send;If the 2nd MCU receives the data of the first MCU transmissions, touch-control mark FLAG first is negated, and determines whether " page turning " Operation, if page turn over operation, searches the corresponding code of page turning, and adds instruction format, forms " page turning " instruction, is sent to string The long-range DGUS screens of mouth 3, are operated if not " page turning ", touch-screen touch-control authority on off state LOCK are detected, if LOCK= 0, the original equipment interface directly transmitted data to where serial ports 2, if LOCK=1, then judge touch-screen touch-control mark FLAG, If FLAG=1, the original equipment interface directly transmitted data to where serial ports 2, FLAG=0 is not operated then, if LOCK= 2, the original equipment interface directly transmitted data to where serial ports 2, if LOCK=3, is not operated.If receiving the remote of serial ports 3 Journey DGUS touch screen datas, first touch-control flag bit FLAG are negated, then judge touch-control state LOCK, if LOCK=0, are judged Whether it is " page turning " operation, if it is, extreme higher position 1, and be sent to after the first MCU, the first MCU searches page turning code, and adds Instruction format, forms the local DGUS touch-screens that a serial ports 1 is sent in " page turning " instruction, operates, directly transmit if not " page turning " The equipment interface of serial ports 2, if LOCK=1, judges touch-control mark FLAG, if FLAG=1, then would determine whether that " page turning " is grasped Make, if it is, extreme higher position 1, is sent to the first MCU, the local DGUS touch-screens of serial ports 1 are sent to by the first MCU, if Be not " page turning " operation, be sent directly to the original equipment interface of serial ports 2, if FLAG=0 and be not " page turning " instruction, directly hair The original equipment interface of serial ports 2 is sent to, if LOCK=3, and be not " page turning " instruction, it is sent directly to the original equipment of serial ports 2 Interface.
Embodiments of the present invention are explained in detail above in conjunction with accompanying drawing, but the present invention is not limited to above-mentioned implementation Mode, can also be on the premise of present inventive concept not be departed from the knowledge that those of ordinary skill in the art possess Make a variety of changes.The above described is only a preferred embodiment of the present invention, not making any formal limit to the present invention System, although the present invention is disclosed above with preferred embodiment, but is not limited to the present invention, any to be familiar with this professional skill Art personnel, without departing from the scope of the present invention, when the technology contents using the disclosure above make it is a little change or The equivalent embodiment of equivalent variations is modified to, as long as being that, without departing from technical solution of the present invention content, the technology according to the present invention is real Matter, within the spirit and principles in the present invention, modification, equivalent substitution and improvement for being made to above example etc. are still fallen within Within the protection domain of technical solution of the present invention.

Claims (9)

1. a kind of extension DGUS touch panel devices for realizing that touch-control is synchronous, it is characterised in that:Including passing through parallel communications circuit phase The first MCU circuits and the 2nd MCU circuits of connection, in addition to the power voltage step down circuit powered to each above-mentioned circuit, wherein,
The first MCU circuits include first switch state detection circuit, the first RS-232 serial data communications interface and second RS-232 serial data communication interfaces;
First switch state detection circuit is connected to complete and original equipment with the first RS-232 serial data communication interfaces Communication;
First switch state detection circuit is connected to complete and original equipment institute with the 2nd RS-232 serial data communication interfaces The DGUS touch panel communications matched somebody with somebody;
The 2nd MCU circuits include second switch state detection circuit and the 3rd serial data communication interface;
Second switch state detection circuit is connected with the 3rd serial data communication interface to be touched with the DGUS completed with newly adding Touch screen communication;
The RS-232 serial data communication interfaces of first MCU circuit supervisions the first, the RS-232 serial numbers of the 2nd MCU circuit supervisions the 2nd According to communication interface and the 3rd serial data communication interface.
2. a kind of extension DGUS touch panel devices for realizing that touch-control is synchronous as claimed in claim 1, it is characterised in that:Described Three serial data communication interfaces are RS-232 or RS-485.
3. a kind of extension DGUS touch panel devices for realizing that touch-control is synchronous as claimed in claim 1, it is characterised in that:Described First, the 2nd MCU circuits include single-chip microcomputer, clock circuit and reset circuit.
4. a kind of extension DGUS touch panel devices for realizing that touch-control is synchronous as claimed in claim 1 or 2, it is characterised in that:Institute State in the first MCU circuits, the single-chip microcomputer concrete model used is STC89C52RC;In the 2nd MCU circuits, the list used Piece machine concrete model is STC12C5A60S2.
5. a kind of extension DGUS touch panel devices for realizing that touch-control is synchronous as claimed in claim 1, it is characterised in that:Described First, second switch state detection circuit includes four groups, sets four groups of toggle switch;First switch state detection circuit is used for Serial communication sets four kinds of different baud rates, and second switch state detection circuit is used to set corresponding limitation touch screen function.
6. a kind of extension DGUS touch panel devices for realizing that touch-control is synchronous as claimed in claim 1, it is characterised in that:Device In, DGUS touch-screens realize display and the control operation of data, monitoring described first, second by serial data communication interface The corresponding serial data communication interface of MCU circuits, the page turning control instruction that identification DGUS touch-screens are sent, the first MCU circuits or 2nd MCU circuits send control instruction to the corresponding DGUS touch-screens without operation, force to carry out touch-screen refreshing.
7. a kind of extension DGUS touch panel devices for realizing that touch-control is synchronous as claimed in claim 6, it is characterised in that:The control System instruction includes configuration file and instruction code, and the configuration file and instruction code are added to the by way of Piece file mergence Two MCU circuits, form the programming file for the 2nd MCU normal operation circuits.
8. a kind of extension DGUS touch panel devices for realizing that touch-control is synchronous as claimed in claim 1, it is characterised in that:Described In one MCU circuits, the specific method for controlling realization is:
The first MCU circuits are initialized, initialization is interrupted and serial communication parameter, whether sets up touch-screen by the flag bit of touch-control;
The on off state of Configuration of baud rate function is detected, serial communication Transmission bit rate is set according on off state, and switch State sends the 2nd MCU circuits to by parallel port;
The touch-screen touch-control authority on off state sent etc. the 2nd MCU circuits to be received, keyword, generation are set according on off state The corresponding limitation touch screen function of table.
9. a kind of extension DGUS touch panel devices for realizing that touch-control is synchronous as claimed in claim 8, it is characterised in that:Described In two MCU circuits, the specific method for controlling realization is:
The 2nd MCU circuits are initialized, initialization is interrupted and serial communication parameter, whether sets up touch-screen by touch-control flag bit;
Receive the on off state of the Configuration of baud rate function of the first MCU circuits transmission;
After initialization, the 2nd MCU circuits are in interrupt latency state, when the 2nd MCU circuits receive touch screen data refresh data, The data are sent to the first MCU circuits and long-range DGUS touch-screens simultaneously.
CN201510267959.6A 2015-05-22 2015-05-22 A kind of extension DGUS touch panel devices for realizing that touch-control is synchronous Active CN104932343B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510267959.6A CN104932343B (en) 2015-05-22 2015-05-22 A kind of extension DGUS touch panel devices for realizing that touch-control is synchronous

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510267959.6A CN104932343B (en) 2015-05-22 2015-05-22 A kind of extension DGUS touch panel devices for realizing that touch-control is synchronous

Publications (2)

Publication Number Publication Date
CN104932343A CN104932343A (en) 2015-09-23
CN104932343B true CN104932343B (en) 2017-08-25

Family

ID=54119552

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510267959.6A Active CN104932343B (en) 2015-05-22 2015-05-22 A kind of extension DGUS touch panel devices for realizing that touch-control is synchronous

Country Status (1)

Country Link
CN (1) CN104932343B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111751443A (en) * 2020-07-07 2020-10-09 盐城工学院 Development system of magnetic particle flaw detector

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08263318A (en) * 1995-03-27 1996-10-11 Nec Eng Ltd Synchronous system for diagnostic processor
CN1791103A (en) * 2005-10-20 2006-06-21 上海电器科学研究所(集团)有限公司 Field bus communication adapter with configurable characteristic
CN101533269A (en) * 2009-04-10 2009-09-16 江苏银佳企业集团有限公司 Fire-fighting link remote control device and control method
CN203966111U (en) * 2014-02-27 2014-11-26 四川长虹电器股份有限公司 Realize with I2C conversion the device that touch-screen is communicated by letter with system platform based on UART

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110162016A1 (en) * 2009-12-31 2011-06-30 Petrisor Gregory C Inflight entertainment system video display synchronization

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08263318A (en) * 1995-03-27 1996-10-11 Nec Eng Ltd Synchronous system for diagnostic processor
CN1791103A (en) * 2005-10-20 2006-06-21 上海电器科学研究所(集团)有限公司 Field bus communication adapter with configurable characteristic
CN101533269A (en) * 2009-04-10 2009-09-16 江苏银佳企业集团有限公司 Fire-fighting link remote control device and control method
CN203966111U (en) * 2014-02-27 2014-11-26 四川长虹电器股份有限公司 Realize with I2C conversion the device that touch-screen is communicated by letter with system platform based on UART

Also Published As

Publication number Publication date
CN104932343A (en) 2015-09-23

Similar Documents

Publication Publication Date Title
CN103558473B (en) Based on frequency converter field debugging system and the method thereof of human-computer interaction interface
CN102156515A (en) Embedded developing board having strong expansibility
EP0649744A1 (en) System for controlling printing press and accessories and auxiliaries therefor
CN1932128A (en) Double-control single-wire communication washing machine control system
CN104932343B (en) A kind of extension DGUS touch panel devices for realizing that touch-control is synchronous
CN202351406U (en) Novel power cell detection control system
CN202196324U (en) Intelligent area controller
CN210666692U (en) Display page turning system based on infrared gesture control
TWM382509U (en) Monitoring recorder for micro computer programmable controller
CN100533424C (en) Single line transmission interface and single byte operational keyboard display module
CN200972506Y (en) Secondary battery testing controller based on build-in technology
CN202694024U (en) Intelligent simulation instrument
CN202995829U (en) Road side unit monitoring equipment, road side unit and monitoring system
CN202306827U (en) Traffic signal controller
CN108845613A (en) Interactive intelligent tablet computer and its data processing side and device
CN102622937A (en) Robot demonstrator
CN204856474U (en) General man -machine interface device based on FPGA
CN201281815Y (en) Device for setting handpiece board address of multiheaded computer controlled embroidery machine
CN202093349U (en) Energy-efficient type energy on-line monitoring system
CN2872491Y (en) Special wireless remote controller for projecting PowerPoint
CN212752686U (en) Hidden icon control circuit
CN200983162Y (en) An electronic menu
He et al. Design of Intelligent Parking Control System
CN211554932U (en) USB debugging interface
CN201532752U (en) Nixie tube display device based on Ethernet

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20200401

Address after: 224300, Jiangsu, Yancheng City province Sheyang County town of high tech Innovation Park, No. 5 West Third Ring Road

Patentee after: SAI FU NDT EQUIPMENT MANUFACTURER Co.,Ltd.

Address before: 224051 Yancheng City hope road, Jiangsu, No. 9

Patentee before: YANCHENG INSTITUTE OF TECHNOLOGY

TR01 Transfer of patent right