CN101609319B - Circuit device for monitoring running state of programs in real time - Google Patents

Circuit device for monitoring running state of programs in real time Download PDF

Info

Publication number
CN101609319B
CN101609319B CN200910115702A CN200910115702A CN101609319B CN 101609319 B CN101609319 B CN 101609319B CN 200910115702 A CN200910115702 A CN 200910115702A CN 200910115702 A CN200910115702 A CN 200910115702A CN 101609319 B CN101609319 B CN 101609319B
Authority
CN
China
Prior art keywords
signal
pin
chip microcomputer
isolating element
optoelectronic isolating
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
CN200910115702A
Other languages
Chinese (zh)
Other versions
CN101609319A (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.)
China Banknote Printing and Minting Group Co Ltd
Original Assignee
China Banknote Printing and Minting Corp
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 China Banknote Printing and Minting Corp filed Critical China Banknote Printing and Minting Corp
Priority to CN200910115702A priority Critical patent/CN101609319B/en
Publication of CN101609319A publication Critical patent/CN101609319A/en
Application granted granted Critical
Publication of CN101609319B publication Critical patent/CN101609319B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention relates to a circuit device for monitoring the running state of programs in real time, wherein an optoelectronic isolating element A2, MAX1487ESA serial port level switching circuit 4, a UART unit 5, an ATMEGA single chip computer 6, a JTAG interface 7, an ISP programming interface 8, an optoelectronic isolating element B9, an optoelectronic isolating element C10 and an optoelectronic isolating element D11 are arranged on a PCB substrate 12. The circuit device comprises the following three parts: an application program function interface, a receiving process unit and a state or alarm output interface, and has the main functions of real-time monitoring of application programs and direct improvement of production control and the accuracy of product information feedback so as to realize the intelligent, accurate, orderly and high efficiency management of enterprises.

Description

A kind of circuit arrangement of monitoring running state of programs in real time
Technical field
The present invention relates to produce, the circuit arrangement of industrial control field such as manufacturing, particularly relate to a kind of circuit arrangement of monitoring running state of programs in real time.
Background technology
Along with improving constantly of industrial automation level, various Industry Control Application programs or solution emerge in an endless stream.And obtained utilization widely, and demonstrate characteristics such as accuracy, real-time, interactivity, diversity in the different field of a plurality of industries.This just more highlights importance and the urgency that its corresponding development sequence is accurately monitored.
In order to realize the management of enterprise intelligentization, accuracy, ordering and high efficiency, for reduce the serious threat that application exception brings, particularly quality control effectively, production information is lost the threat that brings, and just must application programs carry out real-time monitoring.And the circuit arrangement of monitoring running state of programs in real time is a kind of device that relies on the external unit application programs to monitor in real time and feed back.
Summary of the invention
The object of the present invention is to provide a kind of circuit arrangement of monitoring running state of programs in real time.This device can make application program obtain real-time monitoring, thereby improves the accuracy of production control and product information feedback.
Technical scheme of the present invention is:
A kind of circuit arrangement of monitoring running state of programs in real time, wherein: optoelectronic isolating element A2, MAX1487ESA serial ports level shifting circuit 4, UART unit 5, ATMEGA single-chip microcomputer 6, jtag interface 7, ISP DLL 8, light are arranged on the PCB substrate 12 at a distance from ionization element B9, optoelectronic isolating element C10, optoelectronic isolating element D11; PC is connected with pin 13, the pin 14 of MAX1487ESA serial ports level shifting circuit 4 through serial interface cable RS4853; Export PD0 signal 15, PD1 signal 16 by MAX1487ESA serial ports level shifting circuit 4; With the RXD pin of PD0 signal 15 access ATMEGA single-chip microcomputers 6, PD1 signal 16 inserts the TXD pin of ATMEGA single-chip microcomputers 6; ISP DLL 8 is connected with jtag interface 7, and jtag interface 7 links to each other with ATMEGA single-chip microcomputer 6; PC signal 1 links to each other with the IN pin of optoelectronic isolating element A2; Through exporting J1 signal 17 in the OUT pin after the isolation processing; J1 signal 17 inserts ATMEGA single-chip microcomputer 6INT0 pin; The processing back is by the XCK/TO pin output PD4 signal 18 of ATMEGA single-chip microcomputer 6, and PD4 signal 18 is exported J2 signal 19 from its OUT pin through the IN pin of light at a distance from ionization element B9 after isolation processing; By the T1 pin output PD5 signal 20 of ATMEGA single-chip microcomputer 6, PD5 signal 20 is exported J3 signal 21 from its OUT pin through the IN pin of light at a distance from ionization element C10 after isolation processing; By the AIN0 pin output PD6 signal 22 of ATMEGA single-chip microcomputer 6, PD6 signal 22 is exported J4 signal 23 from its OUT pin through the IN pin of light at a distance from ionization element D11 after isolation processing; The operation result of ATMEGA single-chip microcomputer 6 is connected with UART unit 5 through ATMEGA single-chip microcomputer 6, and feeds back to PC through serial interface cable RS4853.
A kind of circuit arrangement of monitoring running state of programs in real time comprises " application program function interface ", " reception processing unit ", " state or warning output interface " three parts, can be to the monitoring and the control of all application programs.Through exploitation initialize routine and signal output interface function, it is embedded in the application program, like this, just can export corresponding signal on request
Of the present invention three big function: PC output function switching signals are in order to change into the program run signal monolithic function identified signal; The circuit self-checking function is for error message and the adverse consequences that prevents that self circuit abnormality from bringing; Unusual output function is in order to reflect the situation of institute's monitoring facilities running status better.
Principle of work of the present invention is following: optoelectronic isolating element, MAX1487ESA serial ports level shifting circuit, UART unit, ATMEGA single-chip microcomputer, jtag interface, ISP DLL, light are arranged on the PCB substrate at a distance from ionization element, optoelectronic isolating element, optoelectronic isolating element; PC is connected with RS485A pin, the RS485B pin of MAX1487ESA serial ports level shifting circuit through serial interface cable RS485; Through the serial ports level conversion; By MAX1487ESA serial ports level shifting circuit output PD0 signal, PD1 signal; With the RXD pin of PD0 signal access ATMEGA single-chip microcomputer, the PD1 signal inserts the TXD pin of ATMEGA single-chip microcomputer, thereby realizes the communication of ATMEGA single-chip microcomputer and PC; The ISP DLL is connected with jtag interface, and jtag interface links to each other with the ATMEGA single-chip microcomputer, thereby realizes the download and the fixedly input of comparison signal of SCM program; The PC signal links to each other with the IN pin of optoelectronic isolating element, and through exporting the J1 signal in the OUT pin after the isolation processing, the J1 signal inserts ATMEGA single-chip microcomputer INT0 pin, thereby realizes the input of PC signal; By the XCK/TO pin output PD4 signal of ATMEGA single-chip microcomputer, the PD4 signal is exported J2 signal from its OUT pin through the IN pin of light at a distance from ionization element after isolation processing after comparison process; By the T1 pin output PD5 signal of ATMEGA single-chip microcomputer, the PD5 signal is exported J3 signal from its OUT pin through the IN pin of light at a distance from ionization element after isolation processing; AIN0 pin output PD6 signal by the ATMEGA single-chip microcomputer; The PD6 signal is through the IN pin of light at a distance from ionization element; From its OUT pin output J4 signal, the action of the terminal components and parts through J2 signal, J3 signal, J4 signal can reflect the state in the program operation process after isolation processing, and the operation result of ATMEGA single-chip microcomputer can be connected with the UART unit through the ATMEGA single-chip microcomputer in addition; And feed back to PC through serial interface cable RS485, so that supply host computer to use.
The present invention can make application program obtain real-time monitoring, thereby the accuracy that directly improves production control and product information feedback realizes enterprise intelligentization, accuracy, ordering and high efficiency management.
The present invention is developed as core with SCM program, is aided with the utilization of communication interface technology, and running state of programs is accurately monitored.Wherein application program can be an application program under Windows operating system, also can be the application program under DOS or the (SuSE) Linux OS.
1, output function switching signal:
The fundamental purpose of this function is that the output signal is changed into monolithic function identified signal.Through exploitation initialize routine and signal output interface function, and program singal output interface function is encapsulated as plurality of modules, makes things convenient for the user to be embedded in the PC program, call these modules during at the PC working procedure or with single chip computer AT mega8 communication.Through the conversion of function, export the easily reliable signal of identification of monolithic function on request.
2, circuit self-checking function:
The fundamental purpose of this function is to prevent self circuit abnormality.The scope of its response time and universal law when search procedure normally moves, and in circuit arrangement burned this fixing comparison signal.When circuit arrangement just often, through SCM program, comparison signal is outputed to the OUT0 output terminal, be used for the fault of real-time detection circuit own, improve the reliability of circuit.
3, state or warning output function:
The fundamental purpose of this function is the running status of monitoring PC signal.This electronic-circuit device most important function exactly with the PC signal and fixedly the internalization comparison signal do real-time comparison.When the pulse width of the PC signal pulse width less than comparison signal, and the PC signal falls within comparison signal when inner fully, and it is normal to export one group of legend application program operation, thereby reaches the purpose of the running status of monitoring application program.
Optimal case of the present invention is: at first through exploitation PC com port or USB mouth initialize routine and signal output interface function, it is embedded in the PC window application, obtain can be the PC signal of single-chip microcomputer identification.When circuit arrangement just often, through SCM program, will be solidificated in the SCM program relatively that model outputs to the OUT0 output terminal, carry out self check, judge thus whether electronic circuit exists fault on software and hardware; Then the inner comparison signal of PC signal and single-chip microcomputer is done real-time comparison, have only when the detection signal pulse width less than comparison signal and fall within fully in the comparison signal, the running state of programs decidable is normal.At last, the result is outputed to the high-speed isolated element from port carry out isolation processing, with written-out program running status result of determination and circuit self-detection result.Thereby realize the purpose of monitoring running state of programs in real time.
The invention has the advantages that: because in the PC, characteristics more humane, ease for operation that Windows operating system possesses comparatively speaking are easier to accept into numerous users.Therefore, higher relatively based on the exploitation and the utilization degree of the application software under this operating system.But the monitoring based on Windows operating system application program in this scheme also just highlights good generalization and practicality; Can reduce the serious threat that application exception brings effectively; Particularly quality control, production information are lost the threat that brings provides good basis for realizing enterprise intelligentization, accuracy, ordering and high efficiency management, has also reached the object of the invention simultaneously.
Preferred version of the present invention also has: the present invention is the circuit arrangement of monitoring running state of programs in real time; Use application program instead based on the application program of Windows operating system in the wherein said optimal case based on dos operating system; Through exploitation PC com port initialize routine and signal output interface function; Be inserted in the PC DOS application program, obtain can be the PC signal of single-chip microcomputer identification.Through carrying out the comparison of PC signal and comparison signal, realize in real time monitoring based on the running state of programs under the dos operating system.Compare through the comparison signal and the measured signal of single-chip microcomputer, and the result is outputed to the high speed optoelectronic isolated component from port carry out isolation processing, with written-out program running status result of determination and circuit self-detection result input.
The present invention is the circuit arrangement of monitoring running state of programs in real time; Use application program instead based on the application program of Windows operating system in the wherein said optimal case based on (SuSE) Linux OS; Through exploitation PC com port initialize routine and signal output interface function; Be inserted in the PC Linux application program, obtain can be the PC signal of single-chip microcomputer identification.Through carrying out the comparison of PC signal and comparison signal, realize in real time monitoring based on the running state of programs under the (SuSE) Linux OS.Compare through the comparison signal and the measured signal of single-chip microcomputer, and the result is outputed to the high speed optoelectronic isolated component from port carry out isolation processing, with written-out program running status result of determination and circuit self-detection result input.
Description of drawings
Fig. 1 is an application circuit schematic diagram of the present invention
Fig. 2 is ATmega8 pinout figure of the present invention
Fig. 3 is serial ports level shifting circuit figure of the present invention
Fig. 4, Fig. 5, Fig. 6, Fig. 7 are signal input output interface figure of the present invention.
Reference numeral: PC signal 1; Optoelectronic isolating element A2; Serial interface cable RS485-3; MAX1487ESA serial ports level shifting circuit 4; UART unit 5; ATMEGA single-chip microcomputer 6; Jtag interface 7; ISP DLL 8; Light is at a distance from ionization element B9; Optoelectronic isolating element C10; Optoelectronic isolating element D11; PCB substrate 12; Pin 13; Pin 14; PD0 signal 15; PD1 signal 16; J1 signal 17; PD4 signal 18; J2 signal 19; PD5 signal 20; J3 signal 21; PD6 signal 22; J4 signal 23.
Embodiment
The circuit arrangement of embodiment 1, a kind of monitoring running state of programs in real time; Comprise " application program function interface ", " reception processing unit ", " state or warning output interface " three parts; 1., PC exports function switching signal, in order the program run signal to be changed into monolithic function identified signal its major function is:; 2., the circuit self-checking function, for error message and the adverse consequences that prevents that self circuit abnormality from bringing; 3., unusual output function, in order to reflect the situation of institute's monitoring facilities running status better.
The circuit arrangement of embodiment 2, a kind of monitoring running state of programs in real time, comprising: PC signal 1, optoelectronic isolating element A2, serial interface cable RS485-3, MAX1487ESA serial ports level shifting circuit 4, UART unit 5, ATMEGA single-chip microcomputer 6, jtag interface 7, ISP DLL 8, light are at a distance from ionization element B9, optoelectronic isolating element C10, optoelectronic isolating element D11, PCB substrate 12, pin 13, pin 14, PD0 signal 15, PD1 signal 16, J1 signal 17, PD4 signal 18, J2 signal 19, PD5 signal 20, J3 signal 21, PD6 signal 22, J4 signal 23.All the other are with embodiment 1.
The circuit arrangement of embodiment 3, a kind of monitoring running state of programs in real time, wherein: optoelectronic isolating element A2, MAX1487ESA serial ports level shifting circuit 4, UART unit 5, ATMEGA single-chip microcomputer 6, jtag interface 7, ISP DLL 8, light are arranged on the PCB substrate 12 at a distance from ionization element B9, optoelectronic isolating element C10, optoelectronic isolating element D11; PC is connected with pin 13, the pin 14 of MAX1487ESA serial ports level shifting circuit 4 through serial interface cable RS4853; Export PD0 signal 15, PD1 signal 16 by MAX1487ESA serial ports level shifting circuit 4; With the RXD pin of PD0 signal 15 access ATMEGA single-chip microcomputers 6, PD1 signal 16 inserts the TXD pin of ATMEGA single-chip microcomputers 6; ISP DLL 8 is connected with jtag interface 7, and jtag interface 7 links to each other with ATMEGA single-chip microcomputer 6; PC signal 1 links to each other with the IN pin of optoelectronic isolating element A2; Through exporting J1 signal 17 in the OUT pin after the isolation processing; J1 signal 17 inserts ATMEGA single-chip microcomputer 6INT0 pin; The processing back is by the XCK/TO pin output PD4 signal 18 of ATMEGA single-chip microcomputer 6, and PD4 signal 18 is exported J2 signal 19 from its OUT pin through the IN pin of light at a distance from ionization element B9 after isolation processing; By the T1 pin output PD5 signal 20 of ATMEGA single-chip microcomputer 6, PD5 signal 20 is exported J3 signal 21 from its OUT pin through the IN pin of light at a distance from ionization element C10 after isolation processing; By the AIN0 pin output PD6 signal 22 of ATMEGA single-chip microcomputer 6, PD6 signal 22 is exported J4 signal 23 from its OUT pin through the IN pin of light at a distance from ionization element D11 after isolation processing; The operation result of ATMEGA single-chip microcomputer 6 is connected with UART unit 5 through ATMEGA single-chip microcomputer 6, and feeds back to PC through serial interface cable RS4853.All the other are with embodiment 1,2.

Claims (1)

1. the circuit arrangement of a monitoring running state of programs in real time is characterized in that: optoelectronic isolating element (A2), MAX1487ESA serial ports level shifting circuit (4), UART unit (5), ATMEGA single-chip microcomputer (6), jtag interface (7), ISP DLL (8), optoelectronic isolating element B9, optoelectronic isolating element C10, optoelectronic isolating element D11 are arranged on the PCB substrate (12); PC is connected with 13 pin, 14 pin of MAX1487ESA serial ports level shifting circuit (4) through serial interface cable RS485 (3); By MAX1487ESA serial ports level shifting circuit (4) output PDO signal (15), PD1 signal (16); With the RXD pin of PDO signal (15) access ATMEGA single-chip microcomputer (6), PD1 signal (16) inserts the TXD pin of ATMEGA single-chip microcomputer (6); ISP DLL (8) is connected with jtag interface (7), and jtag interface (7) links to each other with ATMEGA single-chip microcomputer (6); PC signal (1) links to each other with the IN pin of optoelectronic isolating element (A2); Through exporting J1 signal (17) in the OUT pin after the isolation processing; J1 signal (17) inserts ATMEGA single-chip microcomputer (6) INT0 pin; Handle the XCK/T0 pin output PD4 signal (18) of back by ATMEGA single-chip microcomputer (6), PD4 signal (18) is exported J2 signal (19) from its OUT pin through the IN pin of optoelectronic isolating element (B9) after isolation processing; By the T1 pin output PD5 signal (20) of ATMEGA single-chip microcomputer (6), PD5 signal (20) is exported J3 signal (21) from its OUT pin through the IN pin of optoelectronic isolating element (C10) after isolation processing; By the AINO pin output PD6 signal (22) of ATMEGA single-chip microcomputer (6), PD6 signal (22) is exported J4 signal (23) from its OUT pin through the IN pin of optoelectronic isolating element (D11) after isolation processing; The operation result of ATMEGA single-chip microcomputer (6) is connected with UART unit (5) through ATMEGA single-chip microcomputer (6), and feeds back to PC through serial interface cable RS485 (3).
CN200910115702A 2009-07-17 2009-07-17 Circuit device for monitoring running state of programs in real time Active CN101609319B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200910115702A CN101609319B (en) 2009-07-17 2009-07-17 Circuit device for monitoring running state of programs in real time

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910115702A CN101609319B (en) 2009-07-17 2009-07-17 Circuit device for monitoring running state of programs in real time

Publications (2)

Publication Number Publication Date
CN101609319A CN101609319A (en) 2009-12-23
CN101609319B true CN101609319B (en) 2012-09-05

Family

ID=41483095

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910115702A Active CN101609319B (en) 2009-07-17 2009-07-17 Circuit device for monitoring running state of programs in real time

Country Status (1)

Country Link
CN (1) CN101609319B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102595735A (en) * 2012-03-02 2012-07-18 苏州奥赛医疗科技有限公司 Control system of dentistry light-emitting diode (LED) direct surgical lamp
CN104317691B (en) * 2014-10-24 2017-02-15 中国重汽集团济南动力有限公司 Simulation debugging and code downloading tool

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2356022Y (en) * 1998-11-20 1999-12-29 广东京粤电脑技术研究开发中心 Tax controller for oil feeler
CN2539984Y (en) * 2002-03-28 2003-03-12 深圳职业技术学院 Numerical control processing real-time monitor
CN1582038A (en) * 2003-08-15 2005-02-16 中兴通讯股份有限公司 System and method for intelligent monitoring message center

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2356022Y (en) * 1998-11-20 1999-12-29 广东京粤电脑技术研究开发中心 Tax controller for oil feeler
CN2539984Y (en) * 2002-03-28 2003-03-12 深圳职业技术学院 Numerical control processing real-time monitor
CN1582038A (en) * 2003-08-15 2005-02-16 中兴通讯股份有限公司 System and method for intelligent monitoring message center

Also Published As

Publication number Publication date
CN101609319A (en) 2009-12-23

Similar Documents

Publication Publication Date Title
CN102103535B (en) Multicore processor, and system and method for debugging multicore processor
CN2932488Y (en) Fault detecting device
CN106094804A (en) A kind of cross-platform PLC plate level frock based on QT test system and method for testing thereof
CN108287780A (en) A kind of device and method of monitoring server CPLD states
CN101609319B (en) Circuit device for monitoring running state of programs in real time
CN101551678B (en) Rotational speed measuring device
CN201174055Y (en) Rotation speed measuring module
CN102541705B (en) Testing method for computer and tooling plate
CN201477577U (en) Circuit board based on monitoring of computer application programs
CN1913549B (en) System and method of real-time monitoring for monoboard clock signal
CN104035018A (en) Voltage self-adaptive adjustment circuit and chip
CN207732510U (en) Gentle straight communication mistake proofing system based on fall electric detection
CN211506478U (en) BMC daughter card module based on domestic MCU
CN202721686U (en) Network processing controller card with state detection
CN108490826A (en) A kind of controller and its control method for embedded control system
CN103163451A (en) Super computing system oriented self-gating boundary scan test method and device
CN203133603U (en) A building structure health monitoring system
CN208781208U (en) PCI bus test board card
CN107544011A (en) For predicting the chip built-in self-checking circuit system in chip life-span
CN111290988A (en) BMC daughter card module based on domestic MCU
CN110456206A (en) A kind of family becomes the judgment method of relationship and judges system
CN101625556B (en) Accurate monitor and circuits thereof for controller application procedure in production field
CN205263795U (en) Embedded recorder of treater machine of delaying
CN204334861U (en) Information system equipment state overhauling device
CN103235204B (en) Multi-path switching value signal jump detection and accurate timing method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP03 Change of name, title or address

Address after: Kaixuan Building, No. 143 A, Xizhimenwai Street, Xicheng District, Beijing 100032

Patentee after: China Banknote Printing and Minting Group Co.,Ltd.

Address before: 330043, Nanchang banknote printing factory, 9 East Road, Nanchang, Jiangxi, China Banknote Printing & Minting Corporation, Daishan

Patentee before: CHINA BANKNOTE PRINTING AND MINTING Corp.

CP03 Change of name, title or address