CN110244638A - Data monitoring device and method - Google Patents
Data monitoring device and method Download PDFInfo
- Publication number
- CN110244638A CN110244638A CN201910569069.9A CN201910569069A CN110244638A CN 110244638 A CN110244638 A CN 110244638A CN 201910569069 A CN201910569069 A CN 201910569069A CN 110244638 A CN110244638 A CN 110244638A
- Authority
- CN
- China
- Prior art keywords
- module
- data information
- information
- peripheral interface
- console
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
- G05B19/042—Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
- G05B19/0428—Safety, monitoring
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/20—Pc systems
- G05B2219/24—Pc safety
- G05B2219/24024—Safety, surveillance
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Debugging And Monitoring (AREA)
Abstract
The embodiment of the invention provides a kind of data monitoring device and methods, described device includes: console module, multiple Peripheral Interfaces and multiple application modules, console module is connect with multiple application modules, and console module is connect with multiple Peripheral Interfaces by multiple interactive maintenance modules.Peripheral Interface is used to obtain the data information of terminal to be measured, and data information is sent to interactive maintenance module.Interactive maintenance module is used to for data information being forwarded to console module, configuration Peripheral Interface and multiple application module communication connections.Application module is used to carry out data communication with Peripheral Interface, data information corresponding with preset operation information is obtained from console module, so that monitoring data information.Solve it is existing in the prior art can not by multichannel simultaneously tune-up data information, lead to the technical problem that electric power acquisition terminal is low to the monitoring efficiency of the data information of acquisition.
Description
Technical field
Electronic information process field of the present invention, in particular to a kind of data monitoring device and method.
Background technique
Electric power acquisition terminal generallys use the mode of the development and application program in embedded system at present, by standard output stream
As the information output channel of application program, this mode information can only be tied to single-port exported it is (such as universal
For the RS232 serial ports in electric power acquisition terminal), when data information amount is big, once data information is accessed simultaneously by multichannel,
The case where causing information multiplexing, thus electric power acquisition terminal can not be caused to adopting by multichannel tune-up data information simultaneously
The monitoring efficiency of the data information of collection is low.
Summary of the invention
The purpose of the present invention is to provide a kind of data monitoring device and methods, are intended to improve existing in the prior art
Above-mentioned deficiency.
In a first aspect, the embodiment of the invention provides a kind of data monitoring device, described device includes:
Console module, multiple Peripheral Interfaces and multiple application modules;The console module applies mould with the multiple
Block connection;The console module is connect with the multiple Peripheral Interface by multiple interactive maintenance modules, the Peripheral Interface
It is connect with main website;
The Peripheral Interface is used to obtain the data information of main website, and the data information is sent to the interactive maintenance mould
Block;
The interactive maintenance module is used to the data information being forwarded to the console module, configures the peripheral hardware and connects
Mouth and the multiple application module communication connection;
The application module is used to carry out data communication with the Peripheral Interface, obtains from the console module and pre-
If the corresponding data information of operation information, so as to monitor the data information;Wherein, described in the operation information characterization
The operation that application module is monitored the data information.
Optionally, the Peripheral Interface includes RS232 serial ports;
The interactive maintenance module is also used to,
The data information is judged whether from the RS232 serial ports, if so, according to data information judgement
Whether RS232 serial ports, which is used for, communicates;
If the RS232 serial ports configures the RS232 serial ports and the multiple application module communication connection for communicating;
If the RS232 serial ports is not intended to communicate or the data information is not from the RS232 serial ports,
The data information is sent to interactive maintenance module.
Optionally, the console module is also used to, and the amr message that the application module is sent passes through the interaction
Management module is forwarded to the Peripheral Interface.
Optionally, the console module includes that cache unit, storage unit, the first monitoring unit and the second monitoring are single
Member, first monitoring unit and second monitoring unit are connect with the cache unit and the cache unit;
Whether first monitoring unit is used for, monitor and receive from the data information with the interactive maintenance module,
When receiving the data information, the data information is sent to the storage unit and is stored;It monitors and whether receives institute
The solicited message for stating application module transmission takes out the data information when receiving the solicited message from the storage unit,
The data information is sent to the cache unit, so that the application module obtains the data from the cache unit
Information;
Second monitoring unit is used for the information for whether receiving and sending from the needs of the application module to be monitored,
The information sent is needed to be forwarded to the interactive maintenance module by described, with send the needs by the Peripheral Interface
Information is sent to the main website.
Optionally, the console module is connect with the interactive maintenance module by TCP interface;The console module
It connect with the multiple application module and is connected by I/O interface;
When configuring the Peripheral Interface and the multiple application module communication connection, the Peripheral Interface with it is the multiple
Application module is connected by the I/O interface.
Second aspect, the present invention, which implements, provides a kind of data monitoring method, adopts applied to the electric power connecting with main website
Collect terminal, which comprises
The data information that main website is obtained by Peripheral Interface, is sent to interactive maintenance module for the data information;
The data information is forwarded to console module by the interactive maintenance module, or the configuration Peripheral Interface with
Multiple application module communication connections;
The application module obtains the data information corresponding with preset operation information from the console module,
So as to monitor the data information;Wherein, the operation information characterizes the application module and is monitored to the data information
Operation.
Optionally, the Peripheral Interface includes RS232 serial ports;
It is described that the data information is forwarded to the console module, or the configuration Peripheral Interface and multiple applications
Module communication connection, comprising:
The data information is judged whether from the RS232 serial ports, if so, according to data information judgement
Whether RS232 serial ports, which is used for, communicates;
If the RS232 serial ports configures the RS232 serial ports and the multiple application module communication connection for communicating;
If the RS232 serial ports is not intended to communicate or the data information is not from the RS232 serial ports,
The data information is sent to interactive maintenance module.
Optionally, the method also includes:
The amr message that the console module sends the main website is managed by the console module and the interaction
Module forwards are managed to the Peripheral Interface.
Optionally, the console module includes that cache unit, storage unit, the first monitoring unit and the second monitoring are single
Member, first monitoring unit and second monitoring unit are connect with the cache unit and the cache unit;
The method also includes:
Whether the first monitoring unit monitoring receives from the data information with the interactive maintenance module, works as reception
The data information is sent to the storage unit and stored by the data information;It monitors and whether receives the application
The solicited message that module is sent takes out the data information from the storage unit, by the number when receiving the solicited message
It is believed that breath is sent to the cache unit, so that the application module obtains the data information from the cache unit;
Whether the second monitoring unit monitoring receives the information sent from the needs of the application module, by institute
It states and the information sent is needed to be forwarded to the interactive maintenance module, with the information for being sent the needs by the Peripheral Interface
It is sent to the main website.
Optionally, the console module is connect with the interactive maintenance module by TCP interface;The console module
It connect with the multiple application module and is connected by I/O interface;
When configuring the Peripheral Interface and the multiple application module communication connection, the Peripheral Interface with it is the multiple
Application module is connected by I/O interface.
Compared with the prior art, the invention has the following advantages:
The embodiment of the invention provides a kind of data monitoring device and method, described device includes: console module, multiple
Peripheral Interface and multiple application modules, console module are connect with multiple application modules, console module and multiple Peripheral Interfaces
It is connected by multiple interactive maintenance modules, Peripheral Interface is connect with main website.Peripheral Interface is used to obtain the data letter of terminal to be measured
Breath, is sent to interactive maintenance module for data information.Interactive maintenance module is used to data information being forwarded to console module, matches
Set Peripheral Interface and multiple application module communication connections.Application module is used to carry out data communication with Peripheral Interface, from console
Data information corresponding with preset operation information is obtained in module, so that monitoring data information.Wherein, operation information characterization is answered
The operation that data information is monitored with module.Data information is obtained by Peripheral Interface, data information is sent to interaction
Data information is forwarded to console module or configuration Peripheral Interface and multiple applications by interactive maintenance module by management module
Module communication connection, data information corresponding with preset operation information is obtained by application module from console module, with
Make monitoring data information.The data interaction for realizing multiple application modules Yu multiple Peripheral Interfaces realizes multichannel monitoring electric power
The data information of acquisition terminal, and then improve the efficiency of electric power acquisition terminal data monitoring.It is deposited in the prior art in this way, solving
Can not by multichannel simultaneously tune-up data information, cause electric power acquisition terminal to the monitoring efficiency of the data information of acquisition
Low technical problem has reached the technical effect for improving the efficiency of electric power acquisition terminal data monitoring.
Other feature and advantage of the embodiment of the present invention will illustrate in subsequent specification, also, partly from specification
In become apparent, or by implement understanding of the embodiment of the present invention.The objectives and other advantages of the invention can be by institute
Specifically noted structure is achieved and obtained in specification, claims and the attached drawing write.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached
Figure is briefly described, it should be understood that the following drawings illustrates only certain embodiments of the present invention, therefore is not construed as pair
The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this
A little attached drawings obtain other relevant attached drawings.
Fig. 1 shows a kind of structural schematic diagram of data monitoring device provided in an embodiment of the present invention.
Fig. 2 shows a kind of flow charts of data monitoring method provided in an embodiment of the present invention.
Fig. 3 shows a kind of flow chart of S102 in Fig. 1.
Icon: 100- data monitoring device;110- console module;120- Peripheral Interface;130- application module;140- is handed over
Mutual management module;150-I/O interface;160-TCP interface.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here
It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure
It is fully disclosed to those skilled in the art.
In the prior art, a Peripheral Interface connects an application module, when sending data in Peripheral Interface, creation one
A application module window.Because being that an interface carries out data acquisition, an application module carries out data monitoring, when terminal to be measured
When quantity is more, because cannot be by multichannel access and monitoring data, data acquisition be low with monitoring efficiency.
In order to realize multichannel while monitor electric power terminal Debugging message, need to be arranged multiple application modules with and meanwhile monitor
Different types of data (data type of each application module monitoring may be different).In order to which acquisition speed can be improved,
Need to be arranged multiple Peripheral Interfaces to expand the data volume of unit time acquisition.
In order to realize above-mentioned technical effect, the embodiment of the invention provides a kind of data monitoring device and methods, to solve
It is certainly existing in the prior art electric power acquisition terminal to be caused to the data of acquisition by multichannel while tune-up data information
The low technical problem of the monitoring efficiency of information.
Embodiment
Referring to Fig. 1, Fig. 1 shows a kind of frame structure signal of data monitoring device 100100 provided by the invention
Figure.Data monitoring device 100 is applied to electric power acquisition terminal, for monitoring the data of electric power acquisition terminal acquisition.Specifically, number
It include: console module 110, multiple Peripheral Interfaces 120 and multiple application modules 130 according to monitoring device 100.
Console module 110 is connect with multiple application modules 130, and console module 110 passes through with multiple Peripheral Interfaces 120
Multiple interactive maintenance modules 140 connect, and Peripheral Interface 120 is connect with the host of main website.Multiple Peripheral Interfaces 120 and multiple interactions
Management module 140 connects one by one, and multiple interactive maintenance modules 140 are connect with console module 110.
Wherein, main website is the host or server for issuing command information or data information.Peripheral Interface 120 is used
In the data information for obtaining terminal to be measured, data information is sent to interactive maintenance module 140.Interactive maintenance module 140 is used for
Data information is forwarded to console module 110, configuration Peripheral Interface 120 and multiple 130 communication connections of application module.Using mould
Block 130 is used to carry out data communication with Peripheral Interface 120, obtains from console module 110 corresponding with preset operation information
Data information so that monitoring data information.Wherein, operation information characterization application module 130 is monitored data information
Operation.The corresponding preset operation information of each application module 130.
By using above scheme, each Peripheral Interface 120 receives data information, data information is sent to outer with this
If data information is sent to console module by the interactive maintenance module 140 that interface 120 connects, the interactive maintenance module 140
110, each application module 130 is corresponding with preset operation information from obtaining from console module 110 in console module 110
Data information so that monitoring data information.Realize the data interaction of multiple application modules 130 and multiple Peripheral Interfaces 120, it is real
Show the data information of multichannel monitoring electric power acquisition terminal, and then improves the efficiency of electric power acquisition terminal data monitoring.In this way,
Solve it is existing in the prior art can not by multichannel simultaneously tune-up data information, cause electric power acquisition terminal to acquisition
The low technical problem of the monitoring efficiency of data information has reached the technology effect for the efficiency for improving the monitoring of electric power acquisition terminal data
Fruit.
In embodiments of the present invention, Peripheral Interface 120 can be RS232 serial ports, TELENT interface, SSH interface etc..At certain
In power grid, defining RS232 serial ports can be used for communicating or debugging.In embodiments of the present invention, when RS232 serial ports is in communication
When mode, configuration RS232 serial ports directly can carry out data interaction with application module 130, and RS232 serial ports is in debugging mode
When, the data information configured in RS232 serial ports is directed toward console module 110, by data information memory and console module 110,
So that multiple application modules 130 access data information.And for TELENT interface, SSH interface etc., it is used only for debugging.But
The interactive maintenance module 140 connecting with Peripheral Interface 120 is not aware that the Peripheral Interface 120 is which type of Peripheral Interface
120, therefore, in order to improve the monitoring efficiency to data, interactive maintenance module 140 is also used to, and judges whether data information comes from
In RS232 serial ports, if so, judging whether the RS232 serial ports is used to communicate according to data information.If RS232 serial ports is for leading to
News, configure the RS232 serial ports and multiple 130 communication connections of application module.If RS232 serial ports is not intended to communicate, or number
It is believed that breath is not from RS232 serial ports, data information is sent to interactive maintenance module 140.If that is, being directed to Peripheral Interface
120 be TELENT interface, SSH interface etc., then the data information received is directly sent to console by interactive maintenance module 140
Module 110.
The embodiment of the present invention does not limit the quantity of application module 130 and interactive maintenance module 140 and Peripheral Interface 120,
It is only provided in Fig. 1 comprising three application modules 130, the example of three interactive maintenance modules 140 and three Peripheral Interfaces 120.
In order to realize that multiple Peripheral Interfaces 120 and multiple application processes carry out data interaction, console module 110 is also used
In, the amr message that application module 130 is sent is forwarded to Peripheral Interface 120 by mutual management module 140, with realize with it is outer
If the main website that interface 120 connects carries out data interaction.
In order to improve the safety of data interaction, console module 110 and interactive maintenance module 140 by passing transport control protocol
View, the connection of (Transmission Control Protocol, TCP) interface, console module 110 and multiple application modules 130
Connection is connected by input/output (Input/Output, I/O) interface.When configuration Peripheral Interface 120 and multiple application modules
When 130 communication connection, Peripheral Interface 120 is connect with multiple application modules 130 by I/O interface 150.
In embodiments of the present invention, multiple application modules 130 share an I/O interface 150, by the I/O interface 150 with
Console module 110 carries out data interaction.Multiple interactive maintenance modules 140 share a TCP interface 160, pass through the TCP interface
160 carry out data interaction with console module 110.
As an alternative embodiment, TCP interface 160 is arranged in TCP server, console module 110 and friendship
Mutual management module 140 accesses TCP server, to realize that the data between console module 110 and interactive maintenance module 140 are handed over
Mutually.
In order to improve information response's speed of console module 110 Yu interactive maintenance process and application module 130, console
Module 110 includes cache unit, storage unit, the first monitoring unit and the second monitoring unit, and the first monitoring unit and second supervise
Unit is listened to connect with cache unit and cache unit.
Wherein, the first monitoring unit is used for, and monitors the data letter whether received from the interactive maintenance module 140
Data information is sent to storage unit and stored by breath when receiving data information;It monitors and whether receives application module 130
The solicited message of transmission takes out data information when receiving solicited message from storage unit, and it is single that data information is sent to caching
Member, so that application module 130 obtains data information from cache unit.Whether the second monitoring unit comes from for monitoring to receive
In the information that the needs of application module 130 are sent, the information sent will be needed to be forwarded to interactive maintenance module 140, by outer
If interface 120 will need the information sent to be sent to main website.
As an alternative embodiment, interactive maintenance module 140, console module 110, application module 130 with into
The form of journey exists, i.e. interactive maintenance process, console process, application process.First monitoring unit and the second monitoring unit with
The form of thread exists.
In embodiments of the present invention, the request for often receiving a Peripheral Interface 120 is created that an interactive maintenance process
It is connect with the Peripheral Interface 120.
Based on above-mentioned data monitoring device 100, correspondence of the embodiment of the present invention provides a kind of data monitoring method, data
Monitoring method is applied to above-mentioned data monitoring device 100.Referring to Fig. 2, data monitoring method include S101 in Fig. 2~
S103。
S101: the data information of main website is obtained by Peripheral Interface, data information is sent to interactive maintenance module.
S102: data information is forwarded to console module by interactive maintenance module, or configuration Peripheral Interface is answered with multiple
It is connected with module communication.
S103: application module obtains data information corresponding with operation information from console module, so that monitoring data
Information.
As an alternative embodiment, data information may include the multiple application modules of different types of data to not
The data of same type are monitored, and so improve the efficiency and accuracy being monitored to data information.
As an alternative embodiment, being directed to S102, S201~S204 specially shown in Fig. 3.
S201: judge data information whether from RS232 serial ports.
S202: if data information judges whether RS232 serial ports is used to communicate from RS232 serial ports, according to data information.
S203: if RS232 serial ports configures RS232 serial ports and multiple application module communication connections for communicating.
S204: if RS232 serial ports is not intended to communicate or data information is not from RS232 serial ports, data are believed
Breath is sent to interactive maintenance module.
As an alternative embodiment, based on above-mentioned data monitoring method further include: console module will be applied
The amr message that module main website is sent passes through interactive maintenance module forwards to Peripheral Interface.
In order to realize the data information in multiple application process access control platform processes, as a kind of optional embodiment party
Formula, data monitoring method further include: whether the monitoring of the first monitoring unit receives from the data information with interactive maintenance module,
When receiving the data information, data information is sent to storage unit and is stored;It monitors and whether receives application module hair
The solicited message sent takes out data information from storage unit, data information is sent to cache unit when receiving solicited message,
So that application module obtains data information from cache unit.Whether the monitoring of the second monitoring unit receives from application module
The information that sends of needs, the information sent will be needed to be forwarded to interactive maintenance module, will need to send by Peripheral Interface
Information be sent to main website.
By using above scheme, by one console process of setting and multiple interactive maintenance processes, console into
In journey in two file pipes of creation (storage unit and cache unit), by standard inlet flow and the output stream (number in I/O interface
According to stream) it is redirected to this even file pipes respectively, to read the data information in console process or write data into control
In platform process processed.By building a TCP server port, other terminals from this terminal or in local area network are monitored
Request, and then monitor the data interaction of interactive maintenance process and console process.And interactive maintenance process is as data relay station,
Input information (data information) from host computer (measured terminal, Peripheral Interface) is transmitted to console process, and will be come from
The Debugging message of console process prints in hyper terminal.
Meanwhile interactive maintenance process carries out the management of RS232 serial ports mode, if it is communication mode, by standard inlet flow
And output stream redirection value RS232 serial ports, to realize application process and RS232 serial ports process communication;If RS232 serial ports is to adjust
Standard inlet flow and output stream are then redirected in file pipes (storage unit) by die trial formula again.Then application process then only
Standard inlet flow and output stream operation need to be can be realized and be monitored to the data information in multiple Peripheral Interfaces.
In this way, without opening multiple application processes, can be achieved with more it is only necessary to open multiple interactive maintenance processes
Channel monitors the data information in Peripheral Interface simultaneously, and the process of avoiding, which reruns, leads to operation irregularity.It also meets simultaneously
The monitoring information forwarding of measured terminal in local area network, i.e. host computer by one terminal of RS232 serial monitoring, in local area network other
Terminal application is forwarded to data monitoring device, that is, realizes a host computer and monitor in local area network in such a way that information forwards
Multiple terminals.
As an alternative embodiment, above-mentioned data monitoring method further includes building data monitoring device, build
The method of data monitoring device includes:
A) console process is built, setting console process will create input file pipeline and output file pipeline, and will
Standard inlet flow and standard output stream are redirected to respectively in input file pipeline and output file pipeline.
B) console process builds TCP server, and create thread specially monitor forwarded by interactive maintenance process it is upper
Machine inputs information, and the input file pipeline in a) is written.Console process is periodically detected output file duct size information, will believe
Breath is transmitted to interactive maintenance process.
C) interactive maintenance process is built, which builds TCP client machine, and checks whether setting information forwarding object
IP address and port, if there is the object of then preferential attachment setting, the TCP server being otherwise connected in b).
D) host computer input information is forwarded to TCP server by setting interactive maintenance process, and print from console into
The information of journey.
E) interactive maintenance process carries out the management of RS232 mode, if it is communication mode by standard inlet flow and output stream
RS232 equipment is redirected, is then redirected to standard inlet flow and output stream in file pipes again if it is debugging mode.Its
Remaining application process operates standard inlet flow and output stream.
As an alternative embodiment, the file pipes in console process include input file pipeline and output text
Part pipeline.Console process will need standard inlet flow and standard output stream being redirected to input file pipeline and output respectively
On file pipes.
As an alternative embodiment, in above-mentioned b) in, console process builds a TCP on winding network interface card
Server.
As an alternative embodiment, in order to ring console process and the good information of interactive maintenance process
Speed is answered, console process need to create a thread again, and it is defeated which specially monitors the host computer forwarded by interactive maintenance process
Enter information, reading data is started the cycle over after monitoring successfully, and the input file pipeline in data write-in a) will be read.
As an alternative embodiment, console process is also used to periodically detect output file duct size information,
And judge whether TCP server has client computer connection, if there is information is then transmitted to client computer by TCP server.
As an alternative embodiment, building interactive maintenance process in c), which builds TCP client machine mode,
And check whether otherwise the IP address of setting information forwarding object and port connect if there is the object of then preferential attachment setting
The TCP server being connected in b), and progress heartbeat maintenance in every 30 seconds.
Wherein, heartbeat safeguard specifically: console process detection whether be more than preset duration not with interactive maintenance process into
Row data interaction, if it exceeds preset duration does not carry out data interaction with interactive maintenance process, deleting from port maintenance table should
The information of interactive maintenance process.Preset duration can be 30 seconds.
As an alternative embodiment, the input information from host computer is forwarded to by the interactive maintenance process in c)
TCP server, and the information from console process is printed to host computer, it is forwarded if it is information, also needs addition terminal
Address is for distinguishing.
Since RS232 serial ports has communication mode and debugging mode both of which, if it is RS232 serial ports connect, it is described d)
Middle interactive maintenance process also needs to be managed RS232 serial ports, resets standard inlet flow and output stream if it is communication mode
To the corresponding equipment under test of RS232 serial ports (equipment under test and terminal to be measured can be replaced mutually), then will if it is debugging mode
Standard inlet flow and output stream are redirected in file pipes again.Remaining application process is only needed to standard inlet flow and output stream
It is operated.
By using above scheme, multichannel may be implemented while monitoring Debugging message (the data letter of electric power acquisition terminal
Breath), while it is only necessary to open multiple interactive maintenance processes, without opening multiple application processes, avoid process repetition
Operation leads to operation irregularity.Meanwhile in the insufficient situation of Serial Port Line, it is only necessary to by one terminal of RS232 serial monitoring,
Remaining terminal setting monitoring information forwards IP and port, and the information monitoring in local area network can be realized.
Algorithm and display are not inherently related to any particular computer, virtual system, or other device provided herein.
Various general-purpose systems can also be used together with teachings based herein.As described above, it constructs required by this kind of system
Structure be obvious.In addition, the present invention is also not directed to any particular programming language.It should be understood that can use various
Programming language realizes summary of the invention described herein, and the description done above to language-specific is to disclose this hair
Bright preferred forms.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention
Example can be practiced without these specific details.In some instances, well known method, structure is not been shown in detail
And technology, so as not to obscure the understanding of this specification.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of the various inventive aspects,
Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes
In example, figure or descriptions thereof.However, the disclosed method should not be interpreted as reflecting the following intention: i.e. required to protect
Shield the present invention claims features more more than feature expressly recited in each claim.More precisely, as following
Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore,
Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, wherein each claim itself
All as a separate embodiment of the present invention.
Those skilled in the art will understand that can be carried out adaptively to the module in the equipment in embodiment
Change and they are arranged in one or more devices different from this embodiment.It can be the module or list in embodiment
Member or component are combined into a module or unit or component, and furthermore they can be divided into multiple submodule or subelement or
Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it can use any
Combination is to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosed
All process or units of what method or apparatus are combined.Unless expressly stated otherwise, this specification is (including adjoint power
Benefit require, abstract and attached drawing) disclosed in each feature can carry out generation with an alternative feature that provides the same, equivalent, or similar purpose
It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments in this include institute in other embodiments
Including certain features rather than other feature, but the combination of the feature of different embodiment means in the scope of the present invention
Within and form different embodiments.For example, in the following claims, embodiment claimed it is any it
One can in any combination mode come using.
Various component embodiments of the invention can be implemented in hardware, or to run on one or more processors
Software module realize, or be implemented in a combination thereof.It will be understood by those of skill in the art that can be used in practice
Microprocessor or digital signal processor (DSP) realize some or all portions in device according to an embodiment of the present invention
The some or all functions of part.The present invention is also implemented as a part or complete for executing method as described herein
The device or device program (for example, computer program and computer program product) in portion.It is such to realize program of the invention
It can store on a computer-readable medium, or may be in the form of one or more signals.Such signal can be with
It downloads from internet website, is perhaps provided on the carrier signal or is provided in any other form.
Claims (10)
1. a kind of data monitoring device, which is characterized in that described device includes:
Console module, multiple Peripheral Interfaces and multiple application modules;The console module and the multiple application module connect
It connects;The console module is connect with the multiple Peripheral Interface by multiple interactive maintenance modules, the Peripheral Interface and master
It stands connection;
The Peripheral Interface is used to obtain the data information of main website, and the data information is sent to the interactive maintenance module;
The interactive maintenance module is used to the data information being forwarded to the console module, configure the Peripheral Interface with
The multiple application module communication connection;
The application module be used for the Peripheral Interface carry out data communication, from the console module obtain with it is preset
The corresponding data information of operation information, so as to monitor the data information;Wherein, the operation information characterizes the application
The operation that module is monitored the data information.
2. the apparatus according to claim 1, which is characterized in that the Peripheral Interface includes RS232 serial ports;
The interactive maintenance module is also used to,
The data information is judged whether from the RS232 serial ports, if so, according to data information judgement
Whether RS232 serial ports, which is used for, communicates;
If the RS232 serial ports configures the RS232 serial ports and the multiple application module communication connection for communicating;
If the RS232 serial ports is not intended to communicate or the data information is not from the RS232 serial ports, by institute
It states data information and is sent to interactive maintenance module.
3. the apparatus of claim 2, which is characterized in that the console module is also used to, by the application module
The amr message of transmission passes through the interactive maintenance module forwards to the Peripheral Interface.
4. device according to claim 3, which is characterized in that the console module include cache unit, storage unit,
First monitoring unit and the second monitoring unit, first monitoring unit and second monitoring unit and the cache unit and
The cache unit connection;
Whether first monitoring unit is used for, monitor and receive from the data information with the interactive maintenance module, when connecing
The data information is received, the data information is sent to the storage unit and is stored;It monitors and whether receives described answer
The data information is taken out from the storage unit when receiving the solicited message with the solicited message that module is sent, by institute
It states data information and is sent to the cache unit, so that the application module obtains the data letter from the cache unit
Breath;
Second monitoring unit is for the information for whether receiving and sending from the needs of the application module to be monitored, by institute
It states and the information sent is needed to be forwarded to the interactive maintenance module, with the information for being sent the needs by the Peripheral Interface
It is sent to the main website.
5. device according to claim 1-4, which is characterized in that the console module and the interactive maintenance
Module is connected by TCP interface;The console module connect with the multiple application module and is connected by I/O interface;
When configuring the Peripheral Interface and the multiple application module communication connection, the Peripheral Interface and the multiple application
Module is connected by the I/O interface.
6. a kind of data monitoring method, applied to the electric power acquisition terminal being connect with main website, which is characterized in that the method packet
It includes:
The data information that main website is obtained by Peripheral Interface, is sent to interactive maintenance module for the data information;
The data information is forwarded to console module by the interactive maintenance module, or the configuration Peripheral Interface with it is multiple
Application module communication connection;
The application module obtains the data information corresponding with preset operation information from the console module, so that
Monitor the data information;Wherein, the operation information characterizes the behaviour that the application module is monitored the data information
Make.
7. according to the method described in claim 6, it is characterized in that, the Peripheral Interface includes RS232 serial ports;
It is described that the data information is forwarded to the console module, or the configuration Peripheral Interface and multiple application modules
Communication connection, comprising:
The data information is judged whether from the RS232 serial ports, if so, according to data information judgement
Whether RS232 serial ports, which is used for, communicates;
If the RS232 serial ports configures the RS232 serial ports and the multiple application module communication connection for communicating;
If the RS232 serial ports is not intended to communicate or the data information is not from the RS232 serial ports, by institute
It states data information and is sent to interactive maintenance module.
8. the method according to the description of claim 7 is characterized in that the method also includes:
The amr message that the console module sends the application module is by the interactive maintenance module forwards to described
Peripheral Interface.
9. according to the method described in claim 8, it is characterized in that, the console module include cache unit, storage unit,
First monitoring unit and the second monitoring unit, first monitoring unit and second monitoring unit and the cache unit and
The cache unit connection;
The method also includes:
Whether the first monitoring unit monitoring receives from the data information with the interactive maintenance module, described in reception
The data information is sent to the storage unit and stored by data information;It monitors and whether receives the application module
The solicited message of transmission takes out the data information from the storage unit, the data is believed when receiving the solicited message
Breath is sent to the cache unit, so that the application module obtains the data information from the cache unit;
Whether the second monitoring unit monitoring receives the information sent from the needs of the application module, by the need
The information to be sent is forwarded to the interactive maintenance module, to be sent the information for needing to send by the Peripheral Interface
To the main website.
10. according to the described in any item methods of claim 6-8, which is characterized in that the console module interacts pipe with described
Reason module is connected by TCP interface;The console module connect with the multiple application module and is connected by I/O interface;
When configuring the Peripheral Interface and the multiple application module communication connection, the Peripheral Interface and the multiple application
Module is connected by I/O interface.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910569069.9A CN110244638B (en) | 2019-06-27 | 2019-06-27 | Data monitoring device and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910569069.9A CN110244638B (en) | 2019-06-27 | 2019-06-27 | Data monitoring device and method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110244638A true CN110244638A (en) | 2019-09-17 |
CN110244638B CN110244638B (en) | 2021-03-19 |
Family
ID=67889924
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910569069.9A Active CN110244638B (en) | 2019-06-27 | 2019-06-27 | Data monitoring device and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110244638B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111475318A (en) * | 2020-04-29 | 2020-07-31 | 中国人民解放军军事科学院国防科技创新研究院 | Serial port communication device, method and system supporting multi-user access |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5862391A (en) * | 1996-04-03 | 1999-01-19 | General Electric Company | Power management control system |
CN101149425A (en) * | 2007-10-29 | 2008-03-26 | 哈尔滨电工仪表研究所 | Electronic electric energy meter debugging, checkout automated system |
US20110091205A1 (en) * | 2007-09-28 | 2011-04-21 | Verizon Patent And Licensing Inc. | Multi-interface protocol analysis system |
CN103152115A (en) * | 2013-03-07 | 2013-06-12 | 重庆市电力公司电力科学研究院 | Full-channel data acquirer |
CN103326466A (en) * | 2013-05-30 | 2013-09-25 | 国家电网公司 | Wireless public network communication data transmission system based on multiple key stations |
CN203616863U (en) * | 2013-10-26 | 2014-05-28 | 新天科技股份有限公司 | Multichannel data concentrator |
US20140159891A1 (en) * | 2009-09-25 | 2014-06-12 | Intel Corporation | Methods and arrangements for sensors |
CN104460589A (en) * | 2014-10-23 | 2015-03-25 | 国家电网公司 | Mobile debugging system with simulation dispatching master station |
CN107290586A (en) * | 2017-06-09 | 2017-10-24 | 河南工业贸易职业学院 | Acquiring electric energy information debugger |
CN107728080A (en) * | 2017-09-30 | 2018-02-23 | 海鹰企业集团有限责任公司 | The detection circuit detected to the voltage of multiple power supplies module output |
CN108139741A (en) * | 2015-10-12 | 2018-06-08 | 费希尔-罗斯蒙特系统公司 | The field device configuration that I/O is abstracted |
-
2019
- 2019-06-27 CN CN201910569069.9A patent/CN110244638B/en active Active
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5862391A (en) * | 1996-04-03 | 1999-01-19 | General Electric Company | Power management control system |
US20110091205A1 (en) * | 2007-09-28 | 2011-04-21 | Verizon Patent And Licensing Inc. | Multi-interface protocol analysis system |
CN101149425A (en) * | 2007-10-29 | 2008-03-26 | 哈尔滨电工仪表研究所 | Electronic electric energy meter debugging, checkout automated system |
US20140159891A1 (en) * | 2009-09-25 | 2014-06-12 | Intel Corporation | Methods and arrangements for sensors |
CN103152115A (en) * | 2013-03-07 | 2013-06-12 | 重庆市电力公司电力科学研究院 | Full-channel data acquirer |
CN103326466A (en) * | 2013-05-30 | 2013-09-25 | 国家电网公司 | Wireless public network communication data transmission system based on multiple key stations |
CN203616863U (en) * | 2013-10-26 | 2014-05-28 | 新天科技股份有限公司 | Multichannel data concentrator |
CN104460589A (en) * | 2014-10-23 | 2015-03-25 | 国家电网公司 | Mobile debugging system with simulation dispatching master station |
CN108139741A (en) * | 2015-10-12 | 2018-06-08 | 费希尔-罗斯蒙特系统公司 | The field device configuration that I/O is abstracted |
CN107290586A (en) * | 2017-06-09 | 2017-10-24 | 河南工业贸易职业学院 | Acquiring electric energy information debugger |
CN107728080A (en) * | 2017-09-30 | 2018-02-23 | 海鹰企业集团有限责任公司 | The detection circuit detected to the voltage of multiple power supplies module output |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111475318A (en) * | 2020-04-29 | 2020-07-31 | 中国人民解放军军事科学院国防科技创新研究院 | Serial port communication device, method and system supporting multi-user access |
Also Published As
Publication number | Publication date |
---|---|
CN110244638B (en) | 2021-03-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9424221B2 (en) | Automated cabling process for a complex environment | |
CN108322351A (en) | Generate method and apparatus, fault determination method and the device of topological diagram | |
CN108363662A (en) | A kind of applied program testing method, storage medium and terminal device | |
CN103634165B (en) | Method, terminal device and system for realizing network testing based on reverse proxy | |
CN107026764A (en) | A kind of remote debugging method, equipment, server and system | |
CN107122224A (en) | A kind of data transmission method, virtual machine and host | |
CN112333044B (en) | Shunting equipment performance test method, device and system, electronic equipment and medium | |
CN104360921A (en) | Method, device and system for monitoring performance of mobile terminal | |
CN109873735A (en) | Performance test methods, device and the computer equipment of the H5 page | |
CN106790291A (en) | A kind of intrusion detection reminding method and device | |
CN104639555B (en) | request processing method, system and device | |
CN106568168A (en) | Debugging method, debugger and system | |
CN103595591A (en) | Method and system for monitoring board cards of multi-board-card equipment | |
CN108111367A (en) | Performance test methods and device | |
US20150032232A1 (en) | System and method for server redundancy | |
CN110244638A (en) | Data monitoring device and method | |
CN114338493A (en) | NCSI test method, system, device and storage medium based on network protocol stack | |
CN110913362A (en) | Method and device for realizing wireless signal test through client and test equipment | |
CN110971482A (en) | Back-end server detection method and device based on ebpf and electronic equipment | |
CN110471852A (en) | Online test method, system and electronic equipment | |
CN106657076A (en) | TCP service implementation method and device of network namespace | |
CN106789449A (en) | A kind of CAN exploitation and method of testing and system | |
CN105721231A (en) | Service quality sensing detection method and service quality sensing detection device | |
CN105352112B (en) | A kind of transmission method and system of the service data of air-conditioner set | |
CN107102874B (en) | Application concurrent installation method and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |