CN103092732B - Utilize the system of the dynamic monitoring device of script - Google Patents
Utilize the system of the dynamic monitoring device of script Download PDFInfo
- Publication number
- CN103092732B CN103092732B CN201310025038.XA CN201310025038A CN103092732B CN 103092732 B CN103092732 B CN 103092732B CN 201310025038 A CN201310025038 A CN 201310025038A CN 103092732 B CN103092732 B CN 103092732B
- Authority
- CN
- China
- Prior art keywords
- script
- hardware cell
- monitoring
- module
- control
- 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
Links
Landscapes
- Debugging And Monitoring (AREA)
- Testing And Monitoring For Control Systems (AREA)
Abstract
The present invention provides a kind of system utilizing the dynamic monitoring device of script, and it at least includes: monitoring configuration module, for configuring the relevant parameter of at least one hardware cell in equipment to be monitored;Script processing module, for utilizing script to obtain the parameter value corresponding to relevant parameter of each hardware cell that described monitoring configuration module provides, and based on corresponding hardware cell is made corresponding control by the analysis of acquired parameter value;Interface module, for providing the local interface for monitoring described hardware cell for described script.The monitoring system that the present invention provides carrys out monitoring device due to employing script, therefore without script is debugged, it is possible to effectively reduce the complexity of debugging code and the maintenance cost of code, decrease the workload of commissioning staff;It addition, can change/add structure at any time, change control rule, it is effectively increased the motility monitoring each hardware cell.
Description
Technical field
The present invention relates to the system of a kind of monitoring device, particularly relate to a kind of system utilizing the dynamic monitoring device of script.
Background technology
Computer equipment generally utilizes test program to debug each hardware of computer equipment, to determine calculating in the debugging stage
Each hardware in machine equipment whether normal operation.At present, conventional means are to implant described meter after being compiled by test program
Calculate in machine equipment, then the test program after being compiled by instruction operation debugs each hardware.The shortcoming of this mode is, often
One test program can only debug a hardware, and tester needs to be compiled multiple test programs and manual implantation computer
Carry out one by one after equipment opening to debug.This mode needs tester to repeat to write test program, adds survey personnel
Workload and program maintenance difficulty.
Along with the development of monitoring of tools technology, this kind of mode is increasingly unsuitable for debugging and the monitoring of polytype computer equipment.
Accordingly, it would be desirable to existing monitor mode is optimized.
Summary of the invention
The shortcoming of prior art in view of the above, it is an object of the invention to provide a kind of utilize the dynamic monitoring device of script be
System, is used for solving the problems such as monitoring system very flexible in prior art, tester's workload are big.
For achieving the above object and other relevant purposes, the present invention provides a kind of system utilizing the dynamic monitoring device of script, and it is extremely
Include less: monitoring configuration module, for configuring the relevant parameter of at least one hardware cell in equipment to be monitored;Script processes
Module, for utilizing script to obtain the parameter value corresponding to relevant parameter of each hardware cell that described monitoring configuration module provides,
And based on corresponding hardware cell being made by the analysis of acquired parameter value corresponding control;Interface module, is used for as described script
Local interface for monitoring described hardware cell is provided.
Preferably, the relevant parameter of each hardware cell in described monitoring configuration module is configured to a structure.
Preferably, described structure is XML format.
Preferably, described monitoring configuration module also configures that the reference parameter value corresponding to described relevant parameter.
Preferably, described script processing module is additionally operable to be sent to the parameter value of acquired each hardware cell lead to described equipment
At the remote supervisory and control(ling) equipment that letter connects;For described remote supervisory and control(ling) equipment after the parameter value of described hardware cell is analyzed,
Described script processing module is sent control instruction, and described hardware cell is entered by described script processing module based on described control instruction
Row is corresponding to be controlled.
Preferably, described monitoring system also includes: XML interpreter, is used for explaining in described monitoring configuration module based on XML
The structure of form.
Preferably, described monitoring system also includes: control module, for processing based on script described in default control rule control
Each described hardware cell of module monitors.
Preferably, the control rule control institute of the described control module each hardware cell for providing based on described monitoring configuration module
State script processing module and monitor corresponding hardware cell.
As it has been described above, the system utilizing the dynamic monitoring device of script of the present invention, have the advantages that owing to using script
Carry out monitoring device, therefore without script is debugged, effectively reduce the complexity of debugging code and the maintenance cost of code, subtract
Lack the workload of commissioning staff;It addition, by hardware cell to be monitored, relevant parameter, parameter reference values, even control to advise
Then being configured to structure, the body that can restructure at any time, interpolation structure, change control rule, are effectively increased each hardware of monitoring
The motility of unit.
Accompanying drawing explanation
Fig. 1 is shown as the structural representation of the system utilizing the dynamic monitoring device of script of the present invention.
Fig. 2 is shown as the structural representation of a kind of preferred version of the system utilizing the dynamic monitoring device of script of the present invention.
Fig. 3 is shown as the structural representation of another preferred version of the system utilizing the dynamic monitoring device of script of the present invention.
Element numbers explanation
1 monitoring system
11 monitoring configuration modules
12 script processing modules
13 interface modules
14 XML interpreter
15 control modules
2 hardware cells
Detailed description of the invention
Below by way of specific instantiation, embodiments of the present invention being described, those skilled in the art can be by disclosed by this specification
Content understand other advantages and effect of the present invention easily.The present invention can also be added by the most different detailed description of the invention
To implement or application, the every details in this specification can also be based on different viewpoints and application, in the essence without departing from the present invention
Various modification or change is carried out under god.
Refer to Fig. 1 to Fig. 3.It should be noted that the diagram provided in the present embodiment illustrates the present invention the most in a schematic way
Basic conception, the most graphic in component count time only display with relevant assembly in the present invention rather than is implemented according to reality, shape
And size drafting, during its actual enforcement, the kenel of each assembly, quantity and ratio can be a kind of random change, and its assembly layout
Kenel is likely to increasingly complex.
As it is shown in figure 1, the present invention provides a kind of system 1 utilizing the dynamic monitoring device of script, for the test phase at equipment
Utilize the ruuning situation of hardware cell 2 in script test equipment, and make corresponding adjustment.Wherein, described hardware cell 2 wraps
Including any hardware in described equipment, it includes but not limited to: fan, power supply, mainboard, internal memory etc..Described system 1 is at least
Including: monitoring configuration module 11, script processing module 12 and interface module 13.
Described monitoring configuration module 11 is used for configuring the relevant parameter of at least one hardware cell 2 in equipment to be monitored.Described phase
Related parameter includes but not limited to: electric current, voltage, electric capacity, depositor, rotation speed of the fan etc..Institute in described monitoring configuration module 11
The relevant parameter of the hardware cell 2 of configuration can with the text files memory of preset format in the apparatus.Preferably, described
The relevant parameter of each hardware cell 2 in monitoring configuration module 11 is configured to a structure.Wherein, described structure
Form can be self-defined, it is preferable that described structure is XML format.Preferably, described monitoring configuration module 11 is also joined
Put the reference parameter value corresponding to described relevant parameter.Described reference parameter value can be with centralized configuration in a structure, also
Can be only fitted in the structure at relevant parameter place.
Such as, configuring hardware cell 2 to be monitored in described monitoring configuration module 11 is fan, and its relevant parameter includes: revolution,
Housing temperature and fan voltage, in the most described monitoring configuration module 11, the structure of the relevant parameter of fan is:
The relevant parameter of the described script processing module 12 each hardware cell 2 for providing according to described monitoring configuration module 11,
Utilize script to obtain current parameter value corresponding to each described relevant parameter, and based on to the analysis of acquired parameter value to accordingly
Hardware cell 2 makes corresponding control.Wherein, described script includes any script write based on Libc storehouse, such as LUA
Script.
Specifically, the described built-in script virtual machine of script processing module 12, for Run Script;Described script processing module 12
According to each structure in monitoring configuration module 11 described in the rule parsing of default structure, and according to the phase of each hardware cell 2
Related parameter obtains the parameter value of each relevant parameter from corresponding hardware cell 2, and normally transports according to each default hardware cell 2
During row, the scope of each parameter value analyzes acquired parameter value whether in respective range, as beyond respective range, then to accordingly
Hardware cell 2 sends control instruction, is adjusted according to described control instruction for described hardware cell 2.
Such as, described script processing module 12 reads the structure of power supply and described by script from monitoring configuration module 11
The output voltage parameter comprised in structure, the most described script processing module 12 obtains the defeated of power supply by described interface module 13
Go out magnitude of voltage, and acquired output voltage values is compared with the voltage reference value preset, little comparing output voltage values
When described voltage reference value, adjusted based on described instruction to the instruction of described power supply output boosting, described power supply by described interface
Whole output voltage.
Described interface module 13 for providing the local interface for monitoring described hardware cell 2 for described script.Wherein, described
Local interface can be the interface of described script virtual machine and operating system 1, it is also possible to be directly connected to described hardware cell 2
Interface.
Preferably, described script processing module 12 is additionally operable to be sent to set with described by the parameter value of acquired each hardware cell 2
At the remote supervisory and control(ling) equipment of standby communication connection;The parameter value of described hardware cell 2 is being carried out point for described remote supervisory and control(ling) equipment
After analysis, described script processing module 12 is sent control instruction, described script processing module 12 based on described control instruction to institute
State hardware cell 2 to control accordingly.Wherein, described remote supervisory and control(ling) equipment includes but not limited to: server, embedded device
Deng.
As a kind of preferred version, as in figure 2 it is shown, described monitoring system 1 also includes: XML interpreter 14.
Described XML interpreter 14 is for explaining structure based on XML format in described monitoring configuration module 11.
Such as, described script processing module 12 calls described XML interpreter 14 by script, with from monitoring configuration module 11
The structure of middle reading fan based on XML format, the relevant parameter in the structure of described fan includes: housing temperature is joined
Number and fan input voltage parameter, the parameter reference values corresponding to relevant parameter in described fan structure body is respectively: cabinet temperature
Degree reference value 60 degree and fan input voltage reference value 4.8v, the most described script processing module 12 is by script virtual machine and operation
The temperature sensor in cabinet of the interface of system 1 obtains the magnitude of voltage 3.7v of housing temperature value 55 degree and fan, the most described script
By comparing, processing module 12 determines that acquired housing temperature value less than acquired housing temperature reference value, then continues monitoring;
Determine that described fan input voltage value less than described fan input voltage reference value, then exports boosting 1.1v to the power supply of described fan
The instruction of voltage, the power supply for described fan adjusts input voltage based on described instruction.
The work process of described monitoring system 1 is as follows:
Pre-configured structure in described monitoring configuration module 11 is entered by described script processing module 12 call XML interpreter 14
Row resolves, to obtain the title of each hardware cell 2, relevant parameter and the parameter reference values etc. corresponding to each described relevant parameter,
The local interface provided by described interface module 13 again obtains the parameter value of relevant parameter in each hardware cell 2, and based on
Acquired parameter value is analyzed by corresponding parameter reference values, further according to analysis result by described local interface to accordingly
Hardware cell 2 sends control instruction, is adjusted for described hardware cell 2.
Or, described script processing module 12 utilizes XML interpreter 14 by knot pre-configured in described monitoring configuration module 11
Structure body resolves, and to obtain title and the relevant parameter etc. of each hardware cell 2, then obtains each by described interface module 13
The parameter value of relevant parameter in individual hardware cell 2, and acquired parameter value is sent to remotely prison by telecommunication submodule
Control equipment, is analyzed acquired parameter value based on default parameter reference values for described remote supervisory and control(ling) equipment, further according to
Corresponding control instruction is returned to described telecommunication submodule by analysis result, and the script in described script processing module 12 is virtual
The local interface that machine is provided by described interface module 13 sends described control instruction to corresponding hardware cell 2, for described firmly
Part unit 2 is adjusted.
As another preferred version, as it is shown on figure 3, described monitoring system 1 also includes: control module 15.
Described control module 15 is described firmly for monitoring each based on script processing module 12 described in default control rule control
Part unit 2.
Specifically, script is utilized to preset the time interval monitoring each hardware cell 2, described control mould in described control module 15
Block 15 controls described script processing module 12 according to default polling mechanism and obtains the reference value of relevant parameter in each hardware cell 2,
And one by one acquired reference value is analyzed, in order to one by one control corresponding hardware cell 2.
Preferably, the control rule of the described control module 15 each hardware cell 2 for providing based on described monitoring configuration module 11
Then control described script processing module 12 and monitor corresponding hardware cell 2.
Specifically, the described monitoring configuration pre-configured time interval of each hardware cell 2 of module 11, monitoring order, preferential
Levels etc. control rule, and described control module 15 utilizes XML interpreter 14 to read described control rule, and according to described control
Script processing module 12 described in rule control monitors corresponding hardware cell 2.
The work process of described monitoring system 1 is exemplified below:
Described script processing module 12 utilizes XML interpreter 14 by fan pre-configured in described monitoring configuration module 11, electricity
Source, the structure of depositor resolve, to obtain the title of each hardware cell 2, relevant parameter and each described relevant parameter
Corresponding parameter reference values etc.;Meanwhile, described control module 15 utilizes XML interpreter 14 by described monitoring configuration
Control rule pre-configured in module 11 is: fan, power supply, the monitoring order of depositor, time interval is 5s, the most described control
Molding block 15 first sends the instruction of monitoring fan to described script processing module 12 according to monitoring order and starts timing, then described
Script processing module 12 obtains the parameter value corresponding to the relevant parameter of fan by the local interface that described interface module 13 provides,
And based on the parameter reference values parsed, acquired parameter value is analyzed, when analyze need fan is modified time,
Control instruction is sent to described fan, in order to adjust the rotating speed of described fan, power supply etc. by described local interface;In described control
During molding block 15 timing 5 seconds, sending the instruction of monitoring power supply to described script processing module 12, the most described script processes mould
Described power supply is monitored by block 12 with reference to said fans monitoring process;Described control module 15 is now also referring to said fans control
Process processed, after timing 5 seconds, sends the instruction of control register, at described script to described script processing module 12
Reason module 12 continues control register.
In sum, the system utilizing the dynamic monitoring device of script of the present invention, owing to using script to carry out monitoring device, therefore without
Script is debugged, effectively reduces the complexity of debugging code and the maintenance cost of code, decrease the work of commissioning staff
Amount;It addition, hardware cell to be monitored, relevant parameter, parameter reference values, even control rule are configured to structure, can
Restructure body, interpolation structure, change control rule at any time, is effectively increased the motility monitoring each hardware cell;Additionally,
Telecommunication submodule is utilized to be communicatively coupled with remote supervisory and control(ling) equipment, it is possible to realize the long-range monitoring of described remote supervisory and control(ling) equipment,
It is prone to by network described equipment is monitored and debug.So, the present invention effectively overcomes various shortcoming of the prior art
And have high industrial utilization.
The principle of above-described embodiment only illustrative present invention and effect thereof, not for limiting the present invention.Any it is familiar with this skill
Above-described embodiment all can be modified under the spirit and the scope of the present invention or change by the personage of art.Therefore, such as
All that in art, tool usually intellectual is completed under without departing from disclosed spirit and technological thought etc.
Effect is modified or changes, and must be contained by the claim of the present invention.
Claims (6)
1. the system utilizing the dynamic monitoring device of script, it is characterised in that at least include:
Monitoring configuration module, for configuring the relevant parameter of at least one hardware cell in equipment to be monitored;Described monitoring is joined
The relevant parameter putting each hardware cell in module is configured to a structure;
Script processing module, for utilizing script to obtain the relevant parameter institute of each hardware cell that described monitoring configuration module provides
Corresponding parameter value, and based on corresponding hardware cell being made by the analysis of acquired parameter value corresponding control;Described script
Processing module is additionally operable to the long-range monitoring being sent to the parameter value of acquired each hardware cell communicate to connect with described equipment
At equipment;For described remote supervisory and control(ling) equipment after the parameter value of described hardware cell is analyzed, described script is processed
Module sends control instruction, and described hardware cell is controlled accordingly by described script processing module based on described control instruction;
Interface module, for providing the local interface for monitoring described hardware cell for described script.
The system utilizing the dynamic monitoring device of script the most according to claim 1, it is characterised in that described structure is XML
Form.
The system utilizing the dynamic monitoring device of script the most according to claim 1, it is characterised in that described monitoring configuration module is also
Configure the reference parameter value corresponding to described relevant parameter.
The system utilizing the dynamic monitoring device of script the most according to claim 2, it is characterised in that described monitoring system also includes:
XML interpreter, for explaining structure based on XML format in described monitoring configuration module.
The system utilizing the dynamic monitoring device of script the most according to claim 1, it is characterised in that described monitoring system also includes:
Control module, for monitoring each described hardware cell based on script processing module described in default control rule control.
The system utilizing the dynamic monitoring device of script the most according to claim 5, it is characterised in that described control module is used for base
Corresponding hard in script processing module monitoring described in the control rule control of each hardware cell of described monitoring configuration module offer
Part unit.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310025038.XA CN103092732B (en) | 2013-01-23 | 2013-01-23 | Utilize the system of the dynamic monitoring device of script |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310025038.XA CN103092732B (en) | 2013-01-23 | 2013-01-23 | Utilize the system of the dynamic monitoring device of script |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103092732A CN103092732A (en) | 2013-05-08 |
CN103092732B true CN103092732B (en) | 2016-08-17 |
Family
ID=48205336
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310025038.XA Active CN103092732B (en) | 2013-01-23 | 2013-01-23 | Utilize the system of the dynamic monitoring device of script |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103092732B (en) |
Families Citing this family (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105446850A (en) * | 2014-08-22 | 2016-03-30 | 阿里巴巴集团控股有限公司 | Monitoring method and apparatus |
CN104809045B (en) * | 2015-04-27 | 2021-01-05 | 腾讯科技(深圳)有限公司 | Running method and device of monitoring script |
CN105227347A (en) * | 2015-08-25 | 2016-01-06 | 中国联合网络通信集团有限公司 | A kind of general O&M method for supervising and O&M supervisory control system |
CN105915381B (en) * | 2016-04-21 | 2019-02-15 | 贵州电网有限责任公司信息中心 | A kind of realization monitoring system service logic online modification system |
CN105704253A (en) * | 2016-04-26 | 2016-06-22 | Tcl集团股份有限公司 | Method for acquiring host resources and device and system thereof |
CN108170607B (en) * | 2018-01-03 | 2021-05-18 | 上海传英信息技术有限公司 | Control device and control method of OTP switch |
CN108509311A (en) * | 2018-03-07 | 2018-09-07 | 青岛海尔科技有限公司 | A kind of apparatus monitoring method, device, storage medium and computer equipment |
CN109194617B (en) * | 2018-08-01 | 2021-06-15 | 杭州电子科技大学 | Automatic parsing and packaging method and device for XML (extensive markup language) message |
CN113254888B (en) * | 2021-06-11 | 2021-11-09 | 统信软件技术有限公司 | Method for acquiring hardware information, authorization control system and computing equipment |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101174169A (en) * | 2006-10-30 | 2008-05-07 | 英业达股份有限公司 | Temperature detecting system and method |
CN101789964A (en) * | 2010-01-19 | 2010-07-28 | 山东高效能服务器和存储研究院 | Remote control and data monitoring method on embedded device |
CN101833498A (en) * | 2009-07-31 | 2010-09-15 | 北京伟晨豪嘉科技有限责任公司 | Automatic detection system of embedded type system based on testing script technique |
CN101877867A (en) * | 2009-04-28 | 2010-11-03 | 深圳富泰宏精密工业有限公司 | Server and method used for mobile phone remote testing |
KR20110108143A (en) * | 2010-03-26 | 2011-10-05 | (주)이지위드 | Embeded system based on script programming language and operation method thereof |
CN102455964A (en) * | 2010-10-29 | 2012-05-16 | 英业达股份有限公司 | Remote test method |
CN102724343A (en) * | 2012-05-31 | 2012-10-10 | 青岛海信移动通信技术股份有限公司 | Mobile phone hardware module test method and test device |
CN102799508A (en) * | 2012-07-09 | 2012-11-28 | 深圳市共进电子股份有限公司 | Automatic test system and method |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6938261B2 (en) * | 2000-05-12 | 2005-08-30 | Microsoft Corporation | System and method employing script-based device drivers |
-
2013
- 2013-01-23 CN CN201310025038.XA patent/CN103092732B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101174169A (en) * | 2006-10-30 | 2008-05-07 | 英业达股份有限公司 | Temperature detecting system and method |
CN101877867A (en) * | 2009-04-28 | 2010-11-03 | 深圳富泰宏精密工业有限公司 | Server and method used for mobile phone remote testing |
CN101833498A (en) * | 2009-07-31 | 2010-09-15 | 北京伟晨豪嘉科技有限责任公司 | Automatic detection system of embedded type system based on testing script technique |
CN101789964A (en) * | 2010-01-19 | 2010-07-28 | 山东高效能服务器和存储研究院 | Remote control and data monitoring method on embedded device |
KR20110108143A (en) * | 2010-03-26 | 2011-10-05 | (주)이지위드 | Embeded system based on script programming language and operation method thereof |
CN102455964A (en) * | 2010-10-29 | 2012-05-16 | 英业达股份有限公司 | Remote test method |
CN102724343A (en) * | 2012-05-31 | 2012-10-10 | 青岛海信移动通信技术股份有限公司 | Mobile phone hardware module test method and test device |
CN102799508A (en) * | 2012-07-09 | 2012-11-28 | 深圳市共进电子股份有限公司 | Automatic test system and method |
Also Published As
Publication number | Publication date |
---|---|
CN103092732A (en) | 2013-05-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103092732B (en) | Utilize the system of the dynamic monitoring device of script | |
CN107632219B (en) | Automatic startup and shutdown test system and test method thereof | |
US20180203437A1 (en) | Containerized communications gateway | |
EP1944663A1 (en) | Systems and methods for turbine control simulation | |
CN103777526A (en) | Simulation testing system of integrated electronic system of satellite | |
US20140095931A1 (en) | Method and system for automating the process of testing a device | |
CN104518924A (en) | Automatic testing and result comparison method and system | |
CN105389242A (en) | Method for achieving batch acquisition of server information of whole cabinet | |
CN103176417A (en) | Programmable automation control method and device compatible with EPICS (experimental physics and industrial control system) | |
CN106055443A (en) | Multichannel DC circulation test system | |
CN107438091B (en) | Image management and control device, system and method for industrial embedded system | |
US20080162900A1 (en) | System, Method and Apparatus for Observing a Control Device | |
CN108696375B (en) | Industrial network information acquisition device, method, monitoring system and storage medium | |
CN107364140B (en) | Method and system for initial parameter configuration and function detection of multiple 3D printers | |
CN102915272A (en) | Software testing method, software testing system and television terminal | |
CN107269518A (en) | The trouble-shooter of gear motor | |
CN106407062B (en) | Industry control chip debugging system and adjustment method | |
CN112859637A (en) | Wind turbine generator system simulation system | |
CN203659446U (en) | Portable full-plant DCS debugging device for nuclear power plant | |
CN107966975A (en) | A kind of fan control board test system and method | |
CN103217971A (en) | Portable multi-functional electrically controlled experiment platform | |
CN107765119A (en) | A kind of automatic detection machine starts abnormal method | |
CN209446688U (en) | Automatic test device and test macro | |
Jamro et al. | Communication performance tests in distributed control systems | |
CN205959040U (en) | Intelligence touch display programmable logic controler |
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 |