CN110244638B - Data monitoring device and method - Google Patents

Data monitoring device and method Download PDF

Info

Publication number
CN110244638B
CN110244638B CN201910569069.9A CN201910569069A CN110244638B CN 110244638 B CN110244638 B CN 110244638B CN 201910569069 A CN201910569069 A CN 201910569069A CN 110244638 B CN110244638 B CN 110244638B
Authority
CN
China
Prior art keywords
data information
module
information
application
data
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
CN201910569069.9A
Other languages
Chinese (zh)
Other versions
CN110244638A (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.)
Ningbo Sanxing Electric Co Ltd
Original Assignee
Ningbo Sanxing Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ningbo Sanxing Electric Co Ltd filed Critical Ningbo Sanxing Electric Co Ltd
Priority to CN201910569069.9A priority Critical patent/CN110244638B/en
Publication of CN110244638A publication Critical patent/CN110244638A/en
Application granted granted Critical
Publication of CN110244638B publication Critical patent/CN110244638B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0428Safety, monitoring
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/24Pc safety
    • G05B2219/24024Safety, 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 data monitoring device and a method, wherein the device comprises: the system comprises a console module, a plurality of peripheral interfaces and a plurality of application modules, wherein the console module is connected with the plurality of application modules, and the console module is connected with the plurality of peripheral interfaces through a plurality of interaction management modules. The peripheral interface is used for acquiring data information of the terminal to be tested and sending the data information to the interaction management module. The interaction management module is used for forwarding the data information to the console module and configuring the peripheral interface to be in communication connection with the plurality of application modules. The application module is used for carrying out data communication with the peripheral interface and acquiring data information corresponding to preset operation information from the console module so as to monitor the data information. The technical problem that the monitoring efficiency of the power acquisition terminal on the acquired data information is low due to the fact that the data information cannot be debugged through multiple channels in the prior art is solved.

Description

Data monitoring device and method
Technical Field
The invention belongs to the field of electronic information processing, and particularly relates to a data monitoring device and a data monitoring method.
Background
At present, an electric power acquisition terminal generally adopts a mode of developing an application program on an embedded system, a standard output stream is used as an information output channel of the application program, the mode can only bind information to a single port for outputting (for example, the information is generally an RS232 serial port on the electric power acquisition terminal), when the amount of data information is large, once the data information is accessed through multiple channels, the condition of information multiplexing is caused, therefore, the data information cannot be debugged through the multiple channels simultaneously, and the monitoring efficiency of the electric power acquisition terminal on the acquired data information is low.
Disclosure of Invention
The present invention is directed to a data monitoring apparatus and method, which are used to overcome the above-mentioned shortcomings in the prior art.
In a first aspect, an embodiment of the present invention provides a data monitoring apparatus, where the apparatus includes:
the system comprises a console module, a plurality of peripheral interfaces and a plurality of application modules; the console module is connected with the plurality of application modules; the console module is connected with the plurality of peripheral interfaces through a plurality of interactive management modules, and the peripheral interfaces are connected with the master station;
the peripheral interface is used for acquiring data information of a master station and sending the data information to the interaction management module;
the interaction management module is used for forwarding the data information to the console module and configuring the peripheral interface to be in communication connection with the plurality of application modules;
the application module is used for carrying out data communication with the peripheral interface and acquiring the data information corresponding to preset operation information from the console module so as to monitor the data information; the operation information represents the operation of the application module for monitoring the data information;
the console module comprises a cache unit, a storage unit and a first monitoring unit, and the first monitoring unit is connected with the cache unit and the storage unit;
the first monitoring unit is used for monitoring whether data information from the interaction management module is received or not, and when the data information is received, the first monitoring unit sends the data information to the storage unit for storage; monitoring whether request information sent by the application module is received, when the request information is received, taking the data information out of the storage unit, and sending the data information to the cache unit so that the application module can obtain the data information from the cache unit.
Optionally, the peripheral interface includes an RS232 serial port;
the interaction management module is further configured to,
judging whether the data information comes from the RS232 serial port, if so, judging whether the RS232 serial port is used for communication according to the data information;
if the RS232 serial port is used for communication, configuring the RS232 serial port to be in communication connection with the plurality of application modules;
and if the RS232 serial port is not used for communication or the data information is not from the RS232 serial port, sending the data information to an interaction management module.
Optionally, the console module is further configured to forward the meter reading information sent by the application module to the peripheral interface through the interaction management module.
Optionally, the console module further includes a second monitoring unit;
the second monitoring unit is configured to monitor whether information to be sent from the application module is received, and forward the information to be sent to the interaction management module, so as to send the information to be sent to the master station through the peripheral interface.
Optionally, the console module is connected to the interaction management module through a TCP interface; the console module is connected with the plurality of application modules through I/O interfaces;
when the peripheral interface is configured to be in communication connection with the plurality of application modules, the peripheral interface is connected with the plurality of application modules through the I/O interface.
In a second aspect, the present invention provides a data monitoring method, which is applied to an electric power acquisition terminal connected to a master station, and the method includes:
acquiring data information of a master station through a peripheral interface, and sending the data information to an interaction management module;
the interaction management module forwards the data information to a console module, or configures the peripheral interface to be in communication connection with a plurality of application modules;
the application module acquires the data information corresponding to preset operation information from the console module so as to monitor the data information; the operation information represents the operation of the application module for monitoring the data information; the console module comprises a cache unit, a storage unit and a first monitoring unit, and the first monitoring unit is connected with the cache unit and the storage unit;
the method further comprises the following steps:
the first monitoring unit monitors whether data information from the interaction management module is received or not, and when the data information is received, the data information is sent to the storage unit for storage; monitoring whether request information sent by the application module is received, taking out the data information from the storage unit when the request information is received, and sending the data information to the cache unit so that the application module can obtain the data information from the cache unit.
Optionally, the peripheral interface includes an RS232 serial port;
the forwarding the data information to the console module or configuring the peripheral interface to be in communication connection with a plurality of application modules includes:
judging whether the data information comes from the RS232 serial port, if so, judging whether the RS232 serial port is used for communication according to the data information;
if the RS232 serial port is used for communication, configuring the RS232 serial port to be in communication connection with the plurality of application modules;
and if the RS232 serial port is not used for communication or the data information is not from the RS232 serial port, sending the data information to an interaction management module.
Optionally, the method further includes:
and the console module forwards the meter reading information sent by the master station to the peripheral interface through the console module and the interaction management module.
Optionally, the console module further includes a second monitoring unit;
the method further comprises the following steps:
the second monitoring unit monitors whether the information needing to be sent from the application module is received or not, and forwards the information needing to be sent to the interaction management module so as to send the information needing to be sent to the master station through the peripheral interface.
Optionally, the console module is connected to the interaction management module through a TCP interface; the console module is connected with the plurality of application modules through I/O interfaces;
and when the peripheral interface is configured to be in communication connection with the plurality of application modules, the peripheral interface is connected with the plurality of application modules through the I/O interface.
Compared with the prior art, the invention has the following beneficial effects:
the embodiment of the invention provides a data monitoring device and a method, wherein the device comprises: the system comprises a console module, a plurality of peripheral interfaces and a plurality of application modules, wherein the console module is connected with the plurality of application modules, the console module is connected with the plurality of peripheral interfaces through a plurality of interactive management modules, and the peripheral interfaces are connected with a master station. The peripheral interface is used for acquiring data information of the terminal to be tested and sending the data information to the interaction management module. The interaction management module is used for forwarding the data information to the console module and configuring the peripheral interface to be in communication connection with the plurality of application modules. The application module is used for carrying out data communication with the peripheral interface and acquiring data information corresponding to preset operation information from the console module so as to monitor the data information. The operation information represents the operation of monitoring the data information by the application module. The data information is acquired through the peripheral interface, sent to the interaction management module, forwarded to the console module through the interaction management module or configured to be in communication connection with the plurality of application modules through the peripheral interface, and acquired from the console module through the application modules, so that the data information is monitored. The data interaction between the application modules and the peripheral interfaces is realized, the data information of the multi-channel monitoring power acquisition terminal is realized, and the data monitoring efficiency of the power acquisition terminal is improved. Therefore, the technical problem that the monitoring efficiency of the electric power acquisition terminal on the acquired data information is low due to the fact that the data information cannot be debugged simultaneously through multiple channels in the prior art is solved, and the technical effect of improving the data monitoring efficiency of the electric power acquisition terminal is achieved.
Additional features and advantages of embodiments of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of embodiments of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 shows a schematic structural diagram of a data monitoring apparatus according to an embodiment of the present invention.
Fig. 2 shows a flowchart of a data monitoring method according to an embodiment of the present invention.
Fig. 3 shows a flowchart of S102 in fig. 1.
Icon: 100-a data monitoring device; 110-a console module; 120-peripheral interfaces; 130-application modules; 140-interaction management module; 150-I/O interface; 160-TCP interface.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
In the prior art, a peripheral interface is connected to an application module, and when data is sent in the peripheral interface, an application module window is created. Because one interface is used for data acquisition and one application module is used for data monitoring, when the number of terminals to be tested is large, data cannot be accessed and monitored through multiple channels, and the data acquisition and monitoring efficiency is low.
In order to realize multi-channel simultaneous monitoring of power terminal debugging information, a plurality of application modules need to be arranged to monitor different types of data simultaneously (the type of data monitored by each application module may be different). In order to increase the data collection speed, a plurality of peripheral interfaces are required to increase the amount of data collected per unit time.
In order to achieve the technical effects, embodiments of the present invention provide a data monitoring apparatus and method, so as to solve the technical problem that in the prior art, data information cannot be debugged simultaneously through multiple channels, which results in low monitoring efficiency of an electric power acquisition terminal on the acquired data information.
Examples
Referring to fig. 1, fig. 1 is a block diagram illustrating a data monitoring apparatus 100 according to the present invention. The data monitoring device 100 is applied to a power acquisition terminal and is used for monitoring data acquired by the power acquisition terminal. Specifically, the data monitoring apparatus 100 includes: a console module 110, a plurality of peripheral interfaces 120, and a plurality of application modules 130.
The console module 110 is connected to a plurality of application modules 130, the console module 110 is connected to a plurality of peripheral interfaces 120 through a plurality of interaction management modules 140, and the peripheral interfaces 120 are connected to a host of a master station. The plurality of peripheral interfaces 120 are connected to the plurality of interaction management modules 140 one by one, and the plurality of interaction management modules 140 are connected to the console module 110.
The master station is a host or a server for issuing instruction information or data information. The peripheral interface 120 is configured to obtain data information of the terminal to be tested, and send the data information to the interaction management module 140. The interaction management module 140 is configured to forward the data information to the console module 110, and configure the peripheral interface 120 to be communicatively connected to the plurality of application modules 130. The application module 130 is configured to perform data communication with the peripheral interface 120, and acquire data information corresponding to preset operation information from the console module 110, so as to monitor the data information. The operation information represents an operation of the application module 130 for monitoring the data information. Each application module 130 corresponds to a preset operation information.
By adopting the above scheme, each peripheral interface 120 receives the data information, and sends the data information to the interaction management module 140 connected to the peripheral interface 120, the interaction management module 140 sends the data information to the console module 110, and each application module 130 acquires the data information corresponding to the preset operation information from the console module 110, so as to monitor the data information. The data interaction between the application modules 130 and the peripheral interfaces 120 is realized, the data information of the multi-channel monitoring power acquisition terminal is realized, and the data monitoring efficiency of the power acquisition terminal is further improved. Therefore, the technical problem that the monitoring efficiency of the electric power acquisition terminal on the acquired data information is low due to the fact that the data information cannot be debugged simultaneously through multiple channels in the prior art is solved, and the technical effect of improving the data monitoring efficiency of the electric power acquisition terminal is achieved.
In the embodiment of the present invention, the peripheral interface 120 may be an RS232 serial port, a TELENT interface, an SSH interface, or the like. In a certain power grid, an RS232 serial port is defined to be used for communication or debugging. In the embodiment of the present invention, when the RS232 serial port is in the communication mode, the RS232 serial port is configured to directly perform data interaction with the application module 130, and when the RS232 serial port is in the debugging mode, the data information in the RS232 serial port is configured to point to the console module 110, and the data information is stored in the console module 110, so that the plurality of application modules 130 can access the data information. Whereas for the TELENT interface, SSH interface, etc., only for debugging. However, the interaction management module 140 connected to the peripheral interface 120 does not know what type of peripheral interface 120 the peripheral interface 120 is, and therefore, in order to improve the efficiency of monitoring data, the interaction management module 140 is further configured to determine whether the data information is from an RS232 serial port, and if so, determine whether the RS232 serial port is used for communication according to the data information. And if the RS232 serial port is used for communication, configuring the RS232 serial port to be in communication connection with the plurality of application modules 130. And if the RS232 serial port is not used for communication or the data information is not from the RS232 serial port, sending the data information to the interaction management module 140. That is, for the case where the peripheral interface 120 is a tele interface, an SSH interface, or the like, the interaction management module 140 directly transmits the received data information to the console module 110.
The embodiment of the present invention does not limit the number of the application modules 130, the interaction management modules 140 and the peripheral interfaces 120, and fig. 1 only shows an example including three application modules 130, three interaction management modules 140 and three peripheral interfaces 120.
In order to implement data interaction between the multiple peripheral interfaces 120 and multiple application processes, the console module 110 is further configured to forward the meter reading information sent by the application module 130 to the peripheral interfaces 120 through the mutual management module 140, so as to implement data interaction with the master station connected to the peripheral interfaces 120.
In order to improve the security of data interaction, the console module 110 and the interaction management module 140 are connected through a Transmission Control Protocol (TCP) interface, and the console module 110 and the plurality of application modules 130 are connected through an Input/Output (I/O) interface. When the peripheral interface 120 is configured to communicatively couple with the plurality of application modules 130, the peripheral interface 120 couples with the plurality of application modules 130 via the I/O interface 150.
In the embodiment of the present invention, the plurality of application modules 130 share one I/O interface 150, and data interaction is performed with the console module 110 through the I/O interface 150. The plurality of interaction management modules 140 share one TCP interface 160, and perform data interaction with the console module 110 through the TCP interface 160.
As an alternative embodiment, the TCP interface 160 is disposed on a TCP server, and both the console module 110 and the interaction management module 140 access the TCP server to implement data interaction between the console module 110 and the interaction management module 140.
In order to improve the information response speed of the console module 110 and the interaction management process and application module 130, the console module 110 includes a cache unit, a storage unit, a first monitoring unit and a second monitoring unit, and the first monitoring unit is connected to the cache unit and the storage unit.
The first monitoring unit is configured to monitor whether data information from the interaction management module 140 is received, and when the data information is received, send the data information to the storage unit for storage; and monitoring whether the request information sent by the application module 130 is received, when the request information is received, taking the data information out of the storage unit, and sending the data information to the cache unit so that the application module 130 can obtain the data information from the cache unit. The second monitoring unit is configured to monitor whether the information to be sent is received from the application module 130, and forward the information to be sent to the interaction management module 140, so as to send the information to be sent to the master station through the peripheral interface 120.
As an alternative embodiment, the interaction management module 140, the console module 110, and the application module 130 exist in the form of processes, i.e., an interaction management process, a console process, and an application process. The first and second snoop units exist in the form of threads.
In the embodiment of the present invention, each time a request for a peripheral interface 120 is received, an interaction management process is created to interface with the peripheral interface 120.
Based on the data monitoring apparatus 100, an embodiment of the present invention correspondingly provides a data monitoring method, and the data monitoring method is applied to the data monitoring apparatus 100. Referring to fig. 2, the data monitoring method includes S101 to S103 in fig. 2.
S101: and acquiring data information of the master station through the peripheral interface, and sending the data information to the interaction management module.
S102: the interaction management module forwards the data information to the console module, or configures an external interface to be in communication connection with the plurality of application modules.
S103: the application module acquires data information corresponding to the operation information from the console module so as to monitor the data information.
As an optional implementation manner, the data information may include different types of data, and the multiple application modules monitor the different types of data, so that efficiency and accuracy of monitoring the data information are improved.
As an alternative embodiment, S102 is specifically S201 to S204 shown in fig. 3.
S201: and judging whether the data information comes from the RS232 serial port.
S202: and if the data information comes from the RS232 serial port, judging whether the RS232 serial port is used for communication or not according to the data information.
S203: and if the RS232 serial port is used for communication, configuring the RS232 serial port to be in communication connection with the plurality of application modules.
S204: and if the RS232 serial port is not used for communication or the data information is not from the RS232 serial port, sending the data information to the interaction management module.
As an optional implementation manner, the data monitoring method based on the foregoing further includes: and the console module forwards the meter reading information sent by the application module main station to the peripheral interface through the interactive management module.
In order to implement that a plurality of application processes access data information in a console process, as an optional implementation manner, the data monitoring method further includes: the first monitoring unit monitors whether data information from the interaction management module is received or not, and when the data information is received, the data information is sent to the storage unit to be stored; monitoring whether request information sent by the application module is received, when the request information is received, taking out the data information from the storage unit, and sending the data information to the cache unit so that the application module can obtain the data information from the cache unit. The second monitoring unit monitors whether the information needing to be sent from the application module is received or not, and forwards the information needing to be sent to the interaction management module so as to send the information needing to be sent to the master station through the peripheral interface.
By adopting the scheme, two file pipelines (a storage unit and a cache unit) are created in the console process by setting the console process and the plurality of interactive management processes, and the standard input stream and the standard output stream (data stream in the I/O interface) are respectively redirected to the file pipelines so as to read data information in the console process or write data in the console process. A TCP server port is built, so that requests from the terminal or other terminals in a local area network are monitored, and data interaction of an interaction management process and a console process is further monitored. The interactive management process is used as a data transfer station, input information (data information) from an upper computer (a tested terminal and an external interface) is transferred to the console process, and debugging information from the console process is printed on the super terminal.
Meanwhile, the interactive management process manages the RS232 serial port mode, and if the communication mode is adopted, the standard input stream and the output stream are redirected to the RS232 serial port, so that the communication between the application process and the RS232 serial port process is realized; if the RS232 serial port is in a debugging mode, the standard input stream and the standard output stream are redirected to a file pipeline (a storage unit). The application process can monitor the data information in the plurality of peripheral interfaces only by operating the standard input stream and the standard output stream.
Therefore, data information in the peripheral interface can be monitored simultaneously by multiple channels only by starting multiple interactive management processes without opening multiple application processes, and abnormal work caused by repeated running of the processes is avoided. Meanwhile, the monitoring information forwarding of the tested terminal in the local area network is met, namely the upper computer monitors one terminal through an RS232 serial port, and other terminals in the local area network apply for forwarding to the data monitoring device, so that the condition that one upper computer monitors a plurality of terminals in the local area network in an information forwarding mode is realized.
As an optional implementation, the data monitoring method further includes building a data monitoring device, and the method for building the data monitoring device includes:
a) and (3) building a console process, setting the console process to create an input file pipeline and an output file pipeline, and respectively redirecting the standard input stream and the standard output stream into the input file pipeline and the output file pipeline.
b) The console process builds a TCP server, creates a thread to specially monitor the upper computer input information forwarded by the interactive management process, and writes the upper computer input information into the input file pipeline in a). The console process periodically detects the pipeline information of the output file and forwards the information to the interaction management process.
c) And (b) establishing an interactive management process, establishing a TCP client by the process, checking whether the IP address and the port of the set information forwarding object exist or not, preferentially connecting the set object if the IP address and the port of the set information forwarding object exist, and otherwise, connecting the set object to the TCP server in the b).
d) And setting an interactive management process to forward the input information of the upper computer to the TCP server and printing the information from the console process.
e) And the interaction management process manages the RS232 mode, redirects the standard input stream and the standard output stream to the RS232 equipment if the communication mode is adopted, and redirects the standard input stream and the standard output stream to the file pipeline if the communication mode is adopted. And other application processes operate on the standard input stream and the standard output stream.
As an optional implementation mode, the file pipeline in the console process comprises an input file pipeline and an output file pipeline. The console process will need to redirect the standard input stream and the standard output stream to the input file pipe and the output file pipe, respectively.
As an optional implementation manner, in the above b), the console process builds a TCP server on the loopback network card.
As an optional implementation manner, in order to enable the console process and the interaction management process to have good information response speed, the console process needs to create a thread, where the thread specially monitors the upper computer input information forwarded by the interaction management process, starts to read data circularly after the monitoring is successful, and writes the read data into the input file pipeline in a).
As an optional implementation mode, the console process is further used for periodically detecting output file pipeline information, judging whether a client is connected with the TCP server, and if so, forwarding the information to the client through the TCP server.
As an optional implementation manner, an interaction management process is set up in c), the process sets up a TCP client mode, and checks whether there is an IP address and a port for setting an information forwarding object, if there is an IP address and a port for setting an information forwarding object, the set object is preferentially connected, otherwise, the process is connected to the TCP server in b), and heartbeat maintenance is performed every 30 seconds.
The heartbeat maintenance specifically comprises the following steps: and the console process detects whether the preset time length is exceeded or not and the data interaction is not carried out with the interaction management process, and if the preset time length is exceeded and the data interaction is not carried out with the interaction management process, the information of the interaction management process is deleted from the port maintenance table. The preset time period may be 30 seconds.
As an optional implementation manner, the interactive management process in c) forwards the input information from the upper computer to the TCP server, and prints the information from the console process to the upper computer, and if the information is forwarded, a communication address of the terminal needs to be added for distinguishing.
Because the RS232 serial port has two modes of a communication mode and a debugging mode, if the RS232 serial port is connected, the interaction management process in the step d) also needs to manage the RS232 serial port, if the standard input stream and the output stream are redirected to the tested equipment corresponding to the RS232 serial port in the communication mode (the tested equipment and the terminal to be tested can be replaced mutually), and if the standard input stream and the output stream are redirected to the file pipeline in the debugging mode. The rest of the application processes only need to operate on the standard input stream and the output stream.
By adopting the scheme, debugging information (data information) of the power acquisition terminal can be monitored by multiple channels simultaneously, and meanwhile, only multiple interactive management processes need to be started without opening multiple application processes, so that abnormal work caused by repeated operation of the processes is avoided. Meanwhile, under the condition that the serial port line is insufficient, information monitoring in the local area network can be realized only by monitoring one terminal through the RS232 serial port and setting monitoring information forwarding IP and ports on other terminals.
The algorithms and displays presented herein are not inherently related to any particular computer, virtual machine, or other apparatus. Various general purpose systems may also be used with the teachings herein. The required structure for constructing such a system will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functionality of some or all of the components in an apparatus according to an embodiment of the invention. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.

Claims (10)

1. A data monitoring apparatus, the apparatus comprising:
the system comprises a console module, a plurality of peripheral interfaces and a plurality of application modules; the console module is connected with the plurality of application modules; the console module is connected with the plurality of peripheral interfaces through a plurality of interactive management modules, and the peripheral interfaces are connected with the master station;
the peripheral interface is used for acquiring data information of a master station and sending the data information to the interaction management module;
the interaction management module is used for forwarding the data information to the console module and configuring the peripheral interface to be in communication connection with the plurality of application modules;
the application module is used for carrying out data communication with the peripheral interface and acquiring the data information corresponding to preset operation information from the console module so as to monitor the data information; the operation information represents the operation of the application module for monitoring the data information;
the console module comprises a cache unit, a storage unit and a first monitoring unit, and the first monitoring unit is connected with the cache unit and the storage unit;
the first monitoring unit is used for monitoring whether data information from the interaction management module is received or not, and when the data information is received, the first monitoring unit sends the data information to the storage unit for storage; monitoring whether request information sent by the application module is received, when the request information is received, taking the data information out of the storage unit, and sending the data information to the cache unit so that the application module can obtain the data information from the cache unit.
2. The apparatus of claim 1, wherein the peripheral interface comprises an RS232 serial port;
the interaction management module is further configured to,
judging whether the data information comes from the RS232 serial port, if so, judging whether the RS232 serial port is used for communication according to the data information;
if the RS232 serial port is used for communication, configuring the RS232 serial port to be in communication connection with the plurality of application modules;
and if the RS232 serial port is not used for communication or the data information is not from the RS232 serial port, sending the data information to an interaction management module.
3. The device of claim 2, wherein the console module is further configured to forward meter reading information sent by the application module to the peripheral interface through the interaction management module.
4. The apparatus of claim 3, wherein the console module further comprises a second listening unit;
the second monitoring unit is configured to monitor whether information to be sent from the application module is received, and forward the information to be sent to the interaction management module, so as to send the information to be sent to the master station through the peripheral interface.
5. The apparatus according to any one of claims 1-4, wherein the console module and the interaction management module are connected via a TCP interface; the console module is connected with the plurality of application modules through I/O interfaces;
when the peripheral interface is configured to be in communication connection with the plurality of application modules, the peripheral interface is connected with the plurality of application modules through the I/O interface.
6. A data monitoring method is applied to an electric power acquisition terminal connected with a main station, and is characterized by comprising the following steps:
acquiring data information of a master station through a peripheral interface, and sending the data information to an interaction management module;
the interaction management module forwards the data information to a console module, or configures the peripheral interface to be in communication connection with a plurality of application modules;
the application module acquires the data information corresponding to preset operation information from the console module so as to monitor the data information; the operation information represents the operation of the application module for monitoring the data information;
the console module comprises a cache unit, a storage unit and a first monitoring unit, and the first monitoring unit is connected with the cache unit and the storage unit;
the method further comprises the following steps:
the first monitoring unit monitors whether data information from the interaction management module is received or not, and when the data information is received, the data information is sent to the storage unit for storage; monitoring whether request information sent by the application module is received, taking out the data information from the storage unit when the request information is received, and sending the data information to the cache unit so that the application module can obtain the data information from the cache unit.
7. The method of claim 6, wherein the peripheral interface comprises an RS232 serial port;
the forwarding the data information to the console module or configuring the peripheral interface to be in communication connection with a plurality of application modules includes:
judging whether the data information comes from the RS232 serial port, if so, judging whether the RS232 serial port is used for communication according to the data information;
if the RS232 serial port is used for communication, configuring the RS232 serial port to be in communication connection with the plurality of application modules;
and if the RS232 serial port is not used for communication or the data information is not from the RS232 serial port, sending the data information to an interaction management module.
8. The method of claim 7, further comprising:
and the console module forwards the meter reading information sent by the application module to the peripheral interface through the interaction management module.
9. The method of claim 8, wherein the console module further comprises a second listening unit;
the method further comprises the following steps:
the second monitoring unit monitors whether the information needing to be sent from the application module is received or not, and forwards the information needing to be sent to the interaction management module so as to send the information needing to be sent to the master station through the peripheral interface.
10. The method according to any of claims 6-8, wherein the console module and the interaction management module are connected via a TCP interface; the console module is connected with the plurality of application modules through I/O interfaces;
and when the peripheral interface is configured to be in communication connection with the plurality of application modules, the peripheral interface is connected with the plurality of application modules through the I/O interface.
CN201910569069.9A 2019-06-27 2019-06-27 Data monitoring device and method Active CN110244638B (en)

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 CN110244638A (en) 2019-09-17
CN110244638B true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111475318B (en) * 2020-04-29 2021-02-23 中国人民解放军军事科学院国防科技创新研究院 Serial port communication device, method and system supporting multi-user access

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108139741A (en) * 2015-10-12 2018-06-08 费希尔-罗斯蒙特系统公司 The field device configuration that I/O is abstracted

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5862391A (en) * 1996-04-03 1999-01-19 General Electric Company Power management control system
US7899323B2 (en) * 2007-09-28 2011-03-01 Verizon Patent And Licensing Inc. Multi-interface protocol analysis system
CN101149425B (en) * 2007-10-29 2010-06-02 哈尔滨电工仪表研究所 Electronic electric energy meter debugging, checkout automated system
US8471707B2 (en) * 2009-09-25 2013-06-25 Intel Corporation Methods and arrangements for smart sensors
CN103152115B (en) * 2013-03-07 2015-04-15 重庆市电力公司电力科学研究院 Full-channel data acquirer
CN103326466B (en) * 2013-05-30 2014-12-10 国家电网公司 Wireless public network communication data transmission system based on multiple key stations
CN203616863U (en) * 2013-10-26 2014-05-28 新天科技股份有限公司 Multichannel data concentrator
CN104460589B (en) * 2014-10-23 2017-04-26 国家电网公司 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

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108139741A (en) * 2015-10-12 2018-06-08 费希尔-罗斯蒙特系统公司 The field device configuration that I/O is abstracted

Also Published As

Publication number Publication date
CN110244638A (en) 2019-09-17

Similar Documents

Publication Publication Date Title
US11509505B2 (en) Method and apparatus for operating smart network interface card
US7966402B2 (en) Switch to selectively couple any of a plurality of video modules to any of a plurality of blades
CA2931150C (en) Automatic inspection and monitoring method based on time domain slotting control
CN105446657B (en) Method for monitoring RAID card
CN112333044B (en) Shunting equipment performance test method, device and system, electronic equipment and medium
CN111901164B (en) Adaptive control method, device, equipment and system of OCP NIC network card
CN103198007A (en) Multi-process log output method and system
CN112039722A (en) MQTT protocol simulation method and simulation equipment
CN103595591A (en) Method and system for monitoring board cards of multi-board-card equipment
US20090144479A1 (en) Computer switcher and method for matching with a plurality of servers
TW201423413A (en) Apparatus and method for monitoring signals transmitted in bus
CN116723198A (en) Multi-node server host control method, device, equipment and storage medium
CN110244638B (en) Data monitoring device and method
CN115858221A (en) Management method and device of storage equipment, storage medium and electronic equipment
CN103179162B (en) A kind of method and system of output journal
CN110995538B (en) Network data acquisition method, device, system, equipment and storage medium
CN107357698A (en) A kind of method and device of acquisition BMC Serial Port Informations
CN111522726A (en) Method, system, electronic equipment and storage medium for realizing multi-virtual machine operation real-time screen recording and auditing
CN112688835B (en) Signal real-time monitoring method, system, electronic equipment and storage medium
CN112463083B (en) Remote collection method and system for information of substrate control manager
CN1609819B (en) Test method for computer external equipment interface
CN112950447B (en) Resource scheduling method, device, server and storage medium
CN108429741A (en) A kind of method and system for realizing NCSI agreements
CN103326897A (en) Distributed computing environment general monitoring device and failure detection method
CN102096617B (en) Detection device and detection method

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