CN114363311B - Message reporting method and system for simulation tool of intelligent operation and maintenance monitoring system of turnout - Google Patents

Message reporting method and system for simulation tool of intelligent operation and maintenance monitoring system of turnout Download PDF

Info

Publication number
CN114363311B
CN114363311B CN202111578401.1A CN202111578401A CN114363311B CN 114363311 B CN114363311 B CN 114363311B CN 202111578401 A CN202111578401 A CN 202111578401A CN 114363311 B CN114363311 B CN 114363311B
Authority
CN
China
Prior art keywords
simulation tool
cphm
message
destination
tool page
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
CN202111578401.1A
Other languages
Chinese (zh)
Other versions
CN114363311A (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.)
Guangxi Jiaokong Zhiwei Technology Development Co ltd
Original Assignee
Guangxi Jiaokong Zhiwei Technology Development 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 Guangxi Jiaokong Zhiwei Technology Development Co ltd filed Critical Guangxi Jiaokong Zhiwei Technology Development Co ltd
Priority to CN202111578401.1A priority Critical patent/CN114363311B/en
Publication of CN114363311A publication Critical patent/CN114363311A/en
Application granted granted Critical
Publication of CN114363311B publication Critical patent/CN114363311B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention provides a message reporting method and a message reporting system for a simulation tool of an intelligent operation and maintenance monitoring system of a turnout, wherein the method comprises the following steps: establishing communication connection between a source server and a destination server according to the constructed CPHM simulation tool page of the intelligent switch operation monitoring system; determining a transmission protocol followed by the report according to the CPHM simulation tool page; and sending the message from the source server to the destination server according to the transmission protocol. The system performs the method. According to the invention, the CPHM simulation tool can directly simulate and send the message data reported by the hardware, and the hardware connection can be skipped during development and test, so that the data reported by the hardware can be directly simulated, on one hand, the cost of purchasing hardware to assist in development is saved, on the other hand, the time of creating the message data by the hardware is saved, the development efficiency and the test efficiency are greatly improved, and the product quality of the CPHM is greatly improved.

Description

Message reporting method and system for simulation tool of intelligent operation and maintenance monitoring system of turnout
Technical Field
The invention relates to the technical field of computers, in particular to a message reporting method and a message reporting system for a simulation tool of an intelligent operation and maintenance monitoring system of a turnout.
Background
The current intelligent operation and maintenance monitoring system (CPHM) of the simulation turnout can only report by a hardware module, and the report contains various types of messages, the quantity is too large, the specific messages meeting the requirements cannot be reported independently, the product research and the development and the test are inconvenient, and the requirements of the current network debugging tool for reporting the messages in real time when the CPHM is tested mainly have the following defects:
the input message format is limited, and the message with the annotation, the line feed or other formats cannot be sent;
the time of the message cannot be automatically modified in real time, and the transmitted message has no real-time property;
the frame length calculation of the input message cannot be realized, and if the message length is to be modified and the frame length is to be modified, the frame length can only be calculated manually.
Disclosure of Invention
The message reporting method and system of the simulation tool of the intelligent operation and maintenance monitoring system of the turnout are used for solving at least the problems in the prior art, the CPHM simulation tool can directly simulate and send message data reported by hardware, hardware connection can be skipped during development and testing, and the data reported by hardware can be directly simulated, so that the cost of purchasing hardware to assist in development is saved, the time of creating the message data by hardware is saved, the development efficiency and the testing efficiency are greatly improved, and the product quality of CPHM is greatly improved.
The invention provides a message reporting method of a simulation tool of a switch intelligent operation and maintenance monitoring system, which comprises the following steps:
establishing communication connection between a source server and a destination server according to the constructed CPHM simulation tool page of the intelligent switch operation monitoring system;
determining a transmission protocol followed by the report according to the CPHM simulation tool page;
according to the transmission protocol, the message is sent from the source server to the destination server;
the CPHM simulation tool page is deployed on the source server;
the message is determined according to the data input by the display frame in the CPHM simulation tool page.
According to the message reporting method of the simulation tool of the intelligent operation and maintenance monitoring system of the turnout, the communication connection between the source server and the destination server is established according to the constructed CPHM simulation tool page of the intelligent operation and maintenance monitoring system of the turnout, and the method comprises the following steps:
creating a first input frame and a second input frame of the CPHM simulation tool page according to an interface management module in the CPHM simulation tool page;
determining a source address of the source server according to the source IP address and the source port of the source server input in the first input box;
determining a destination address of the destination server according to the destination IP address and the destination port of the destination server input in the second input box;
and configuring the source address and the destination address according to a configuration information management module in the CPHM simulation tool page so as to establish communication connection between the source server and the destination server.
According to the message reporting method of the simulation tool of the intelligent operation and maintenance monitoring system of the turnout, the transmission protocol followed by the message reporting is determined according to the CPHM simulation tool page, and the method comprises the following steps:
creating a transmission protocol drop-down frame of the CPHM simulation tool page according to an interface management module in the CPHM simulation tool page;
determining the transmission protocol according to the transmission protocol drop-down box;
the transport protocol drop-down box at least comprises a TcpServer transport protocol, a TcpClient transport protocol and a UDP transport protocol.
According to the message reporting method of the simulation tool of the intelligent operation and maintenance monitoring system of the turnout, the message is sent from the source server to the destination server according to the transmission protocol, and the method comprises the following steps:
creating a sending button in the CPHM simulation tool page according to an interface management module in the CPHM simulation tool page;
when a button click signal is detected to be sent, calling a configuration information management module of the CPHM simulation tool page according to the transmission protocol, the source address and the destination address in the CPHM simulation tool page, and updating a configuration file in the configuration information management module;
and reading the updated configuration file based on a business logic processing module in the CPHM simulation tool page, and sending the message from the source server to the destination server according to the transmission protocol.
According to the message reporting method of the simulation tool of the intelligent operation and maintenance monitoring system of the turnout, the message is sent from the source server to the destination server according to the transmission protocol, and the method comprises the following steps:
formatting the message according to the service logic processing module;
transmitting the formatted message from the source server to the destination server according to the transmission protocol;
wherein, the formatting the message includes:
preprocessing the message according to the service logic processing module to remove preset format data in the message;
and according to the service logic processing module, replacing the identification time in the message with the preset format data removed with the current time.
According to the message reporting method of the simulation tool of the intelligent operation and maintenance monitoring system of the turnout, the message is sent from the source server to the destination server according to the transmission protocol, and the method further comprises the following steps:
configuring the sustainable reporting of the message and the time interval of the sustainable reporting according to the target field information in the configuration file in the configuration information management module;
and sending the message from the source server to the destination server according to the transmission protocol, the sustainable reporting configuration information and the configuration information of the sustainable reporting time interval.
The invention provides a message reporting method of a simulation tool of a switch intelligent operation and maintenance monitoring system, which further comprises the following steps:
creating a frame length button in the CPHM simulation tool page according to an interface management module in the CPHM simulation tool page;
and when the frame length button click signal is detected, the business logic processing module is called to calculate the frame length of the message.
The invention also provides a message reporting system of the simulation tool of the intelligent operation and maintenance monitoring system of the turnout, which comprises: the system comprises a first determining module, a second determining module and a message reporting module;
the first determining module is used for establishing communication connection between the source server and the destination server according to the constructed CPHM simulation tool page of the turnout intelligent operation and maintenance monitoring system;
the second determining module is configured to determine, according to the CPHM simulation tool page, a transmission protocol followed by the report;
the message reporting module is used for sending the message from the source server to the destination server according to the transmission protocol;
the CPHM simulation tool page is deployed on the source server;
the message is determined according to the data input by the display frame in the CPHM simulation tool page.
The invention also provides an electronic device, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor realizes the steps of the message reporting method of the intelligent operation and maintenance monitoring system simulation tool for the turnout when executing the program.
The invention also provides a non-transitory computer readable storage medium, on which a computer program is stored, which when executed by a processor implements the steps of the method for reporting messages of the intelligent operation and maintenance monitoring system simulation tool for the turnout as described in any one of the above.
According to the message reporting method and system of the intelligent operation and maintenance monitoring system simulation tool for the turnout, the CPHM simulation tool can directly simulate and send the message data reported by the hardware, and the hardware connection can be skipped during development and testing, so that the data reporting can be directly simulated, the cost of purchasing hardware to assist in development is saved, the time of creating the message data through the hardware is saved, the development efficiency and the testing efficiency are greatly improved, and the product quality of the CPHM is greatly improved.
Drawings
In order to more clearly illustrate the invention or the technical solutions of the prior art, the following description will briefly explain the drawings used in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are some embodiments of the invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a message reporting method of a simulation tool of a switch intelligent operation and maintenance monitoring system provided by the invention;
FIG. 2 is a schematic diagram of a CPHM simulation tool page provided by the present invention;
FIG. 3 is a schematic diagram of a message processing flow provided by the present invention;
FIG. 4 is a schematic diagram of a report result provided by the present invention;
FIG. 5 is a schematic diagram of the message reporting system of the simulation tool of the intelligent operation and maintenance monitoring system for the turnout provided by the invention;
fig. 6 is a schematic diagram of the physical structure of the electronic device provided by the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The page design of the CPHM simulation tool can be realized by adopting Python programming language +Pyqt5, and the communication connection between the source server and the destination server is established by configuring the source server (local) and the destination server through the CPHM simulation tool page according to the requirements of various transmission protocol communication and various types of multi-format messages so as to realize the connection communication between different source servers and the destination server; by configuring the transmission protocol and the message types, the method can realize the transmission of various types of messages based on various transmission protocol modes; by formatting the input message, the message with various formats can be sent; by replacing the identification time in the message, the continuous sending of the real-time message can be realized, and the method is concretely realized as follows:
fig. 1 is a flow chart of a message reporting method of a simulation tool of a switch intelligent operation and maintenance monitoring system, as shown in fig. 1, the method includes:
s1, establishing communication connection between a source server and a destination server according to a CPHM simulation tool page of a constructed turnout intelligent operation and maintenance monitoring system;
s2, determining a transmission protocol followed by the report of the message according to the CPHM simulation tool page;
s3, sending the message from the source server to the destination server according to the transmission protocol;
the CPHM simulation tool page is deployed on the source server;
the message is determined according to the data input by the display box in the CPHM simulation tool page.
It should be noted that, the execution subject of the above method may be a computer device.
Optionally, the CPHM simulation tool can flexibly input messages in various formats, and continuously send and receive the messages, so that the message simulation requirement during testing the CPHM is met, and the testing efficiency is improved. The development of CPHM simulation tool pages can use Python programming language to process background business logic, and Pyqt5 framework to write front-end interfaces to develop work.
The developed CPHM simulation tool may specifically include the following modules:
interface (UI) management module: calling QtGui, qtWidgets module by using Python programming language+Pyqt5 technology, and creating text labels of the CPHM simulation tool page through a sub-module QLabel; creating an input box of the CPHM simulation tool page through a sub-module QLineEdit; the method comprises the steps of creating a drop-down frame of a CPHM simulation tool page through a submodule QComboBox, creating a button of the CPHM simulation tool page through a submodule QPushButton, creating a display frame of the CPHM simulation tool page through a submodule QTextEdit, adjusting the layout of the CPHM simulation tool page through submodules QVBoxyLayout and QHBoxyLayout, setting popup and popup display contents of the CPHM simulation tool page through a submodule QMassageBox, adjusting the position and the size of a control in the CPHM simulation tool page through setting a setFixedSize attribute of the control, and setting a prompt for control display through setting a setToolTip attribute of the control.
Configuration information management module: reading a configuration file (ini file) by using a Python programming language and ConfigParser technology and calling a read/get/item/options method of a module ConfigParser, and reading configuration information such as a source address of a source server and a destination address of a destination server of a CPHM simulation tool page, a transmission protocol followed by message reporting, a message type and the like; the read/set/write method of the call module ConfigParser realizes the update of the configuration file information.
Service logic processing module: after the configuration information is read by using a Python programming language, setting the information of the page control display configuration file by using a setPlainText, addItems method of the page control; acquiring page control input information by using a Python programming technology through a toPlainText, currentText method of the page control, and updating the information into a configuration file; by utilizing Python programming+Pyqt5 technology, custom setting is realized through a sub-module QtCore, and linkage of a page and background business is realized through a control connection method; and through a Python programming technology, the service logic processes of starting and closing a TCP server, formatting a message, calculating the frame length of the message, transmitting message data and the like are realized.
Log (log) management module, using Python programming language+logging technique, setting log record level by setLevel method of logging module, setting log display format by format method, thus realizing recording original message of sending message, processed message, received return information, error information in reporting process of recording message.
And configuring a source server and a destination server according to the CPHM simulation tool page so as to establish communication connection between the source server and the destination server, and determining a specific transmission protocol followed by the message reporting according to the transmission protocol type selected in the CPHM simulation tool page.
And determining the message to be reported according to the data input in a display frame (such as a display frame of a transmitted message) created by an interface management module in the CPHM simulation tool page, transmitting the message from the source server to the destination server according to a transmission protocol, and displaying the reporting result in the created display frame (such as a display frame of a returned message).
According to the message reporting method of the intelligent operation and maintenance monitoring system simulation tool for the turnout, the CPHM simulation tool can directly simulate and send message data reported by hardware, hardware connection can be skipped during development and testing, and the data reported by hardware can be directly simulated, so that on one hand, the cost of purchasing hardware to assist in development is saved, on the other hand, the time of creating the message data by the hardware is saved, the development efficiency and the testing efficiency are greatly improved, and the product quality of the CPHM is greatly improved.
Further, in one embodiment, step S1 may specifically include:
s11, creating a first input frame and a second input frame of the CPHM simulation tool page according to an interface management module in the CPHM simulation tool page;
s12, determining a source address of the source server according to the source IP address and the source port of the source server input in the first input box;
s13, determining a destination address of the destination server according to the destination IP address and the destination port of the destination server input in the second input box;
s14, configuring the source address and the destination address according to the configuration information management module in the CPHM simulation tool page so as to establish communication connection between the source server and the destination server.
Optionally, based on the interface management module in the CPHM simulation tool page, and by calling the submodule QLineEdit, an input box of the CPHM simulation tool page is created, see fig. 2, where the first input box includes a native IP and a source port, and the second input box includes a destination IP and a destination port.
According to the source IP address (i.e. the local IP) and the source port of the source server input in the first input box, the source address of the source server is determined, as shown in FIG. 2, and the source address is 192.168.1.84:10000.
According to the destination IP address (i.e. destination IP) and the destination port of the destination server input in the second input box, the destination address of the destination server is determined, as shown in FIG. 2, and the destination address is 192.168.1.228:10080.
According to the configuration information management module in the CPHM simulation tool page, the read/get/item/options method of the calling module ConfigParser is used for reading the configuration file (ini file), reading the source address of the source server and the destination address configuration information of the destination server of the CPHM simulation tool page, and establishing communication connection between the source server and the destination server based on the configuration information.
When the input data in the first input box and the second input box in the CPHM simulation tool page are changed, the update of the configuration file information can be realized based on a read/set/write method of a module ConfigParser in the configuration information management module.
The message reporting method of the intelligent operation and maintenance monitoring system simulation tool for the turnout establishes communication connection between the source server and the destination server based on configuration information of the configuration source server and the destination server, skips hardware connection, and lays a foundation for subsequent simulation message reporting.
Further, in one embodiment, step S2 may specifically include:
s21, creating a transmission protocol drop-down frame of the CPHM simulation tool page according to an interface management module in the CPHM simulation tool page;
s22, determining a transmission protocol according to the transmission protocol drop-down frame;
the transport protocol drop-down box at least comprises a TcpServer transport protocol, a TcpClient transport protocol and a UDP transport protocol.
Optionally, a drop-down frame of the CPHM simulation tool page, for example, a transport protocol drop-down frame and a message format drop-down frame, is created according to a sub-module qcoombobox in the interface management module, and the user can select a transport protocol to be followed when the message is to be reported by sliding a mouse button, and the message is to be reported according to the transport protocol selected by the user, see fig. 2, where the transport protocol is UDP.
It should be noted that, the transport protocol drop-down box is provided with a tcps server transport protocol option and a TcpClient transport protocol option in addition to the option of setting the UDP transport protocol.
According to the message reporting method of the simulation tool of the intelligent operation and maintenance monitoring system of the turnout, according to various transmission protocols configured by the CPHM simulation tool page, the connection communication support of multiple protocols (UDP, tcpServer and TcpClient) is realized, the debugging requirements of the various transmission protocols are met, and the message reporting of the various transmission protocols can be realized.
Further, in one embodiment, step S3 may specifically include:
s32, creating a sending button in the CPHM simulation tool page according to the interface management module in the CPHM simulation tool page;
s32, when a button click signal is detected to be sent, calling a configuration information management module of the CPHM simulation tool page according to a transmission protocol, a source address and a destination address in the CPHM simulation tool page, and updating a configuration file in the configuration information management module;
s33, based on the service logic processing module in the CPHM simulation tool page, the updated configuration file is read, and the message is sent from the source server to the destination server according to the transmission protocol.
Optionally, buttons (e.g., clear all, start, close, format, frame length, send, clear input, and clear back buttons in FIG. 2) of the CPHM simulation tool page are created from the submodule QPushButton in the interface management module in the CPHM simulation tool page.
When the transmission protocol type selected by the transmission protocol drop-down box is TcpServer, clicking a start button of the CPHM simulation tool page, transmitting a button signal to a background binding processing method (Python writing method) through a pyqt5 signal technology, starting a TCP server, receiving connection of other TCP clients after starting the TCP server, and closing the TCP server when clicking a closing button.
When the transmission protocol type selected by the transmission protocol drop-down frame selects TcpCLIent, clicking a start button of the CPHM simulation tool page, transmitting a button signal to a background binding processing method (Python writing method) through a pyqt5 signal technology, starting a TCP client, actively connecting a destination TCP server according to a destination address of a destination server of the CPHM simulation tool page, displaying received information in a returned message display frame in real time, and closing the TCP client when clicking a closing button.
When the transmission protocol type selected by the transmission protocol drop-down box selects UDP, clicking a start button of the CPHM simulation tool page, transmitting a button signal to a background binding processing method (Python writing method) through a pyqt5 signal technology, and starting a UDP client to send message data through the UDP protocol.
When the message is sent, the sending button of the CPHM simulation tool page is clicked, the sending button clicking signal is transmitted by using the pyqt5 technology, when the sending button clicking signal is detected, the sending button clicking signal is transmitted to a background binding processing method through the service logic processing module, the configuration information management module is called, the configuration file in the configuration information management module is updated (mainly, the configuration file ini file is updated by using the selected transmission protocol of the CPHM simulation tool page, the source address of the source server and the destination address of the destination server), the updated configuration file ini file is read based on the service logic processing module, the message is sent from the source server to the destination server according to the selected transmission protocol, and the message data received by the destination server is displayed according to the returned message display frame of the CPHM simulation tool page.
When the selected transmission protocols are TcpServer and TcpClient, when the TCP server or the TCP client is started by using the multi-thread technology of Python, a sub-thread automatically receives the message data returned by the connection destination server, and sends the returned message data to the "returned message" display frame of the CPHM simulation tool page through the signal processing technology of Pyqt 5.
The message reporting method of the simulation tool of the intelligent operation and maintenance monitoring system of the turnout can realize the message reporting function of various transmission protocols.
Further, in one embodiment, step S33 may specifically include:
s331, formatting the message according to a service logic processing module;
s332, sending the formatted message from the source server to the destination server according to a transmission protocol;
the method for formatting the message comprises the following steps:
preprocessing the message according to the service logic processing module to remove the preset format data in the message;
and according to the service logic processing module, replacing the identification time in the message with the removed preset format data with the current time.
Optionally, according to the service logic processing module, the message is formatted, specifically: according to the service logic processing module, preprocessing is performed on the input message to remove preset format data in the message, referring to fig. 3, judging whether preset format data of spaces, line feed symbols and notes (such as # #) exist in the input message, if so, clearing the format data of the spaces and the line feed symbols existing in the message, judging whether preset format data of # # exist in the message, and if so, clearing the data between # # exists.
According to the service logic processing module, the identification time in the message with the preset format data removed is replaced with the current time, specifically, whether the message has [ ] is judged, if yes, whether the length of the bytes in [ ] is 4 is judged, if yes, the identification time in [ ] is replaced with the real-time (namely the current time) of 4 bytes, if no, whether the length of the bytes in [ ] is 6 is judged, and if yes, the identification time in [ ] is replaced with the real-time (namely the current time) of 6 bytes; if not, judging whether the byte length in [ ] is 7, if so, replacing the identification time in [ ] with the real-time (namely the current time) of 7 bytes; if not, judging whether the byte length in [ ] is 9, if so, replacing the identification time in [ ] with the real-time (i.e. the current time) of 9 bytes, and displaying the output message in a display frame of a return message, as shown in fig. 4, wherein the current time in [ ] can be represented in a time stamp form.
The message reporting method of the intelligent operation and maintenance monitoring system simulation tool for the turnout provided by the invention removes redundant formats and data in the input message through formatting treatment of the message, can support message reporting of inputting multiple formats, and simultaneously realizes a real-time message reporting function by modifying the identification time in the message.
Further, in an embodiment, step S33 may further specifically include:
s333, configuring sustainable reporting of the message and a time interval of the sustainable reporting according to target field information in a configuration file in a configuration information management module;
and S334, sending the message from the source server to the destination server according to the transmission protocol, the sustainable reporting configuration information and the configuration information of the sustainable reporting time interval.
Optionally, the sustainable reporting of the message and the time interval of the sustainable reporting are configured by setting the target field information of the configuration file, such as the values of the fields is_cycle and cycleTime, for example, by setting is_cycle=0, which represents that the message supports sustainable reporting, is_cycle=1, which represents that the message does not support sustainable reporting; by setting cycletime=1s, the time interval representing sustainable reporting is 1s.
And sending the message from the source server to the destination server according to the transmission protocol, the sustainable reporting configuration information (value of the is_cycle) and the configuration information (value of the periodical) of the sustainable reporting time interval.
The message reporting method of the simulation tool of the intelligent operation and maintenance monitoring system of the turnout can realize the function of continuously sending messages, and the sending interval can be freely configured.
Further, in one embodiment, after step S3, the method may further specifically include:
s4, creating a frame length button in the CPHM simulation tool page according to the interface management module in the CPHM simulation tool page;
s5, when the frame length button click signal is detected, a service logic processing module is called to calculate the frame length of the message.
Optionally, a frame length button in the CPHM simulation tool page is created according to an interface management module in the CPHM simulation tool page, specifically: the method comprises the steps of creating a frame length button of a CPHM simulation tool page through a sub-module QPushButton, transmitting a frame length button click signal when clicking the frame length button of the CPHM simulation tool page by using a pyqt5 signal processing technology, and transmitting a frame length calculation button click signal to a background binding processing method through a service logic processing module when detecting a transmission button click signal, wherein the binding processing method can firstly acquire a message in a message display frame, then calculate the frame length of the message, and display the message on a popup window of the CPHM simulation tool page through an information method of QMASSAGEX.
It should be noted that, the CPHM simulation tool page is further provided with an interface clearing function, and when the clearing input button of the CPHM simulation tool page is clicked by using the signal processing technology of pyqt5, the processing method for clearing the binding of the input button signal clears the content in the display frame of the sent message;
when a clear return button of the CPHM simulation tool page is clicked by using a Pyqt5 signal processing technology, the processing method for clearing the binding of the return button signal can clear the content in a returned message display frame;
when the clear all button of the CPHM simulation tool page is clicked by using the signal processing technology of pyqt5, the processing method for clearing all button signal bindings can clear the content in the "sent message" display frame and the content in the "returned message" display frame.
The message reporting method of the intelligent operation and maintenance monitoring system simulation tool for the turnout provided by the invention realizes the calculation of the message frame length, reduces the time for modifying the message frame length after manual calculation, and saves manpower.
The message reporting system of the simulation tool of the intelligent operation and maintenance monitoring system for the turnout provided by the invention is described below, and the message reporting system of the simulation tool of the intelligent operation and maintenance monitoring system for the turnout described below and the message reporting method of the simulation tool of the intelligent operation and maintenance monitoring system for the turnout described above can be correspondingly referred to each other.
Fig. 5 is a schematic structural diagram of a message reporting system of a simulation tool of a switch intelligent operation and maintenance monitoring system provided by the invention, as shown in fig. 5, including:
the first determining module 510, the second determining module 511 and the message reporting module 512;
the first determining module 510 is configured to establish a communication connection between the source server and the destination server according to the constructed CPHM simulation tool page of the switch intelligent operation and maintenance monitoring system;
a second determining module 511, configured to determine, according to the CPHM simulation tool page, a transmission protocol to which the message is to be reported;
a message reporting module 512, configured to send a message from the source server to the destination server according to a transmission protocol;
the CPHM simulation tool page is deployed on the source server;
the message is determined according to the data input by the display box in the CPHM simulation tool page.
According to the message reporting system of the intelligent operation and maintenance monitoring system simulation tool for the turnout, the CPHM simulation tool can directly simulate and send message data reported by hardware, hardware connection can be skipped during development and testing, and the data reported by hardware can be directly simulated, so that on one hand, the cost of purchasing hardware to assist in development is saved, on the other hand, the time of creating the message data by the hardware is saved, the development efficiency and the testing efficiency are greatly improved, and the product quality of CPHM is greatly improved.
Fig. 6 is a schematic physical structure of an electronic device according to the present invention, as shown in fig. 6, the electronic device may include: a processor (processor) 610, a communication interface (communication interface) 611, a memory (memory) 612 and a bus (bus) 613, wherein the processor 610, the communication interface 611, and the memory 612 communicate with each other via the bus 613. The processor 610 may call logic instructions in the memory 612 to perform the following method:
establishing communication connection between a source server and a destination server according to the constructed CPHM simulation tool page of the intelligent switch operation monitoring system;
determining a transmission protocol followed by the report according to the CPHM simulation tool page;
according to the transmission protocol, the message is sent from the source server to the destination server;
the CPHM simulation tool page is deployed on the source server;
the message is determined according to the data input by the display box in the CPHM simulation tool page.
Further, the logic instructions in the memory described above may be implemented in the form of software functional units and stored in a computer-readable storage medium when sold or used as a stand-alone product. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer power supply screen (which may be a personal computer, a server, or a network power supply screen, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Further, the present invention discloses a computer program product, which comprises a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions, when the program instructions are executed by a computer, the computer is capable of executing the report reporting method of the intelligent operation and maintenance monitoring system simulation tool for the turnout, for example, comprising:
establishing communication connection between a source server and a destination server according to the constructed CPHM simulation tool page of the intelligent switch operation monitoring system;
determining a transmission protocol followed by the report according to the CPHM simulation tool page;
according to the transmission protocol, the message is sent from the source server to the destination server;
the CPHM simulation tool page is deployed on the source server;
the message is determined according to the data input by the display box in the CPHM simulation tool page.
In another aspect, the present invention further provides a non-transitory computer readable storage medium, on which a computer program is stored, where the computer program is implemented when executed by a processor to perform a method for reporting a message of the intelligent operation and maintenance monitoring system simulation tool for a switch provided in the foregoing embodiments, for example, includes:
establishing communication connection between a source server and a destination server according to the constructed CPHM simulation tool page of the intelligent switch operation monitoring system;
determining a transmission protocol followed by the report according to the CPHM simulation tool page;
according to the transmission protocol, the message is sent from the source server to the destination server;
the CPHM simulation tool page is deployed on the source server;
the message is determined according to the data input by the display box in the CPHM simulation tool page.
The system embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer power screen (which may be a personal computer, a server, or a network power screen, etc.) to perform the method described in the various embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (9)

1. A message reporting method of a simulation tool of an intelligent operation and maintenance monitoring system for a turnout is characterized by comprising the following steps:
establishing communication connection between a source server and a destination server according to the constructed CPHM simulation tool page of the intelligent switch operation monitoring system;
determining a transmission protocol followed by the report according to the CPHM simulation tool page;
according to the transmission protocol, the message is sent from the source server to the destination server;
the CPHM simulation tool page is deployed on the source server;
the message is determined according to the data input by the display frame in the CPHM simulation tool page;
the method for establishing the communication connection between the source server and the destination server according to the CPHM simulation tool page of the intelligent operation and maintenance monitoring system of the constructed turnout comprises the following steps:
creating a first input frame and a second input frame of the CPHM simulation tool page according to an interface management module in the CPHM simulation tool page;
determining a source address of the source server according to the source IP address and the source port of the source server input in the first input box;
determining a destination address of the destination server according to the destination IP address and the destination port of the destination server input in the second input box;
and configuring the source address and the destination address according to a configuration information management module in the CPHM simulation tool page so as to establish communication connection between the source server and the destination server.
2. The method for reporting the message of the simulation tool of the intelligent operation and maintenance monitoring system for the turnout according to claim 1, wherein the determining the transmission protocol followed by the message reporting according to the CPHM simulation tool page comprises the following steps:
creating a transmission protocol drop-down frame of the CPHM simulation tool page according to an interface management module in the CPHM simulation tool page;
determining the transmission protocol according to the transmission protocol drop-down box;
the transport protocol drop-down box at least comprises a TcpServer transport protocol, a TcpClient transport protocol and a UDP transport protocol.
3. The method for reporting the message of the simulation tool of the intelligent operation and maintenance monitoring system for the turnout according to claim 1, wherein the step of sending the message from the source server to the destination server according to the transmission protocol comprises the following steps:
creating a sending button in the CPHM simulation tool page according to an interface management module in the CPHM simulation tool page;
when a button click signal is detected to be sent, calling a configuration information management module of the CPHM simulation tool page according to the transmission protocol, the source address and the destination address in the CPHM simulation tool page, and updating a configuration file in the configuration information management module;
and reading the updated configuration file based on a business logic processing module in the CPHM simulation tool page, and sending the message from the source server to the destination server according to the transmission protocol.
4. The method for reporting messages of a simulation tool of a switch intelligent operation and maintenance monitoring system according to claim 3, wherein the step of transmitting the messages from the source server to the destination server according to the transmission protocol comprises the steps of:
formatting the message according to the service logic processing module;
transmitting the formatted message from the source server to the destination server according to the transmission protocol;
wherein, the formatting the message includes:
preprocessing the message according to the service logic processing module to remove preset format data in the message;
and according to the service logic processing module, replacing the identification time in the message with the preset format data removed with the current time.
5. The method for reporting messages of a simulation tool of a switch intelligent operation and maintenance monitoring system according to claim 3, wherein the sending the messages from the source server to the destination server according to the transmission protocol further comprises:
configuring the sustainable reporting of the message and the time interval of the sustainable reporting according to the target field information in the configuration file in the configuration information management module;
and sending the message from the source server to the destination server according to the transmission protocol, the sustainable reporting configuration information and the configuration information of the sustainable reporting time interval.
6. The method for reporting messages of a simulation tool of a switch intelligent operation and maintenance monitoring system according to claim 1, further comprising:
creating a frame length button in the CPHM simulation tool page according to an interface management module in the CPHM simulation tool page;
and when the frame length button click signal is detected, a service logic processing module is called to calculate the frame length of the message.
7. The utility model provides a switch intelligence fortune dimension monitoring system simulation tool's message reporting system which characterized in that includes: the system comprises a first determining module, a second determining module and a message reporting module;
the first determining module is used for establishing communication connection between the source server and the destination server according to the constructed CPHM simulation tool page of the turnout intelligent operation and maintenance monitoring system;
the second determining module is configured to determine, according to the CPHM simulation tool page, a transmission protocol followed by the report;
the message reporting module is used for sending the message from the source server to the destination server according to the transmission protocol;
the CPHM simulation tool page is deployed on the source server;
the message is determined according to the data input by the display frame in the CPHM simulation tool page;
the method for establishing the communication connection between the source server and the destination server according to the CPHM simulation tool page of the intelligent operation and maintenance monitoring system of the constructed turnout comprises the following steps:
creating a first input frame and a second input frame of the CPHM simulation tool page according to an interface management module in the CPHM simulation tool page;
determining a source address of the source server according to the source IP address and the source port of the source server input in the first input box;
determining a destination address of the destination server according to the destination IP address and the destination port of the destination server input in the second input box;
and configuring the source address and the destination address according to a configuration information management module in the CPHM simulation tool page so as to establish communication connection between the source server and the destination server.
8. An electronic device comprising a processor and a memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method for reporting messages of the intelligent switch operation and maintenance monitoring system simulation tool according to any one of claims 1 to 6.
9. A non-transitory computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when executed by a processor, implements the steps of the method for reporting messages of the intelligent operation and maintenance monitoring system simulation tool for a switch according to any one of claims 1 to 6.
CN202111578401.1A 2021-12-22 2021-12-22 Message reporting method and system for simulation tool of intelligent operation and maintenance monitoring system of turnout Active CN114363311B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111578401.1A CN114363311B (en) 2021-12-22 2021-12-22 Message reporting method and system for simulation tool of intelligent operation and maintenance monitoring system of turnout

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111578401.1A CN114363311B (en) 2021-12-22 2021-12-22 Message reporting method and system for simulation tool of intelligent operation and maintenance monitoring system of turnout

Publications (2)

Publication Number Publication Date
CN114363311A CN114363311A (en) 2022-04-15
CN114363311B true CN114363311B (en) 2024-04-12

Family

ID=81101518

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111578401.1A Active CN114363311B (en) 2021-12-22 2021-12-22 Message reporting method and system for simulation tool of intelligent operation and maintenance monitoring system of turnout

Country Status (1)

Country Link
CN (1) CN114363311B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107360205A (en) * 2016-05-09 2017-11-17 阿里巴巴集团控股有限公司 The transmission method and device of data message, system
CN108306934A (en) * 2017-12-28 2018-07-20 北京天元创新科技有限公司 A kind of cross-server document transmission method and system
WO2020233249A1 (en) * 2019-05-23 2020-11-26 华为技术有限公司 Packet transmission method and related apparatus
CN113726904A (en) * 2021-09-03 2021-11-30 杭州安恒信息技术股份有限公司 Server proxy method, device, equipment and computer readable storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6311213B2 (en) * 1998-10-27 2001-10-30 International Business Machines Corporation System and method for server-to-server data storage in a network environment
US10205801B2 (en) * 2016-01-12 2019-02-12 International Business Machines Corporation Data transfer policies between source and target servers in a wide area network

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107360205A (en) * 2016-05-09 2017-11-17 阿里巴巴集团控股有限公司 The transmission method and device of data message, system
CN108306934A (en) * 2017-12-28 2018-07-20 北京天元创新科技有限公司 A kind of cross-server document transmission method and system
WO2020233249A1 (en) * 2019-05-23 2020-11-26 华为技术有限公司 Packet transmission method and related apparatus
CN113726904A (en) * 2021-09-03 2021-11-30 杭州安恒信息技术股份有限公司 Server proxy method, device, equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN114363311A (en) 2022-04-15

Similar Documents

Publication Publication Date Title
CN109344170B (en) Stream data processing method, system, electronic device and readable storage medium
CN107957940B (en) Test log processing method, system and terminal
CN106407078B (en) Client performance monitoring device and method based on information exchange
CN111190596A (en) Joint debugging method and device, computer equipment and readable storage medium
CN104199879A (en) Data processing method and device
CN111898023A (en) Message pushing method and device, readable storage medium and computing equipment
CN111190755B (en) Application program function exception handling method and device
CN111949607B (en) Method, system and device for monitoring UDT file
CN114594984A (en) Inspection method, inspection device, computer equipment and storage medium
CN113760730A (en) Automatic testing method and device
CN113312260B (en) Interface test method, device, equipment and storage medium
CN114338364B (en) Business process management system, method and electronic equipment
CN105224420B (en) A kind of analysis method and system of automatic parsing terminal abnormal
CN114363311B (en) Message reporting method and system for simulation tool of intelligent operation and maintenance monitoring system of turnout
CN110688827A (en) Data processing method and device, electronic equipment and storage medium
CN111966600B (en) Webpage testing method, webpage testing device, computer equipment and computer readable storage medium
CN116662204A (en) Method, device, system and storage medium for generating code-free test cases
CN115509637A (en) Form-based intelligent filling method, system, equipment and medium
CN113590124B (en) Target object processing method and device
CN114444447A (en) Card processing method and device
CN111882419B (en) Method and device for quality inspection of files and server
CN114492358A (en) RPA and AI-based method, device, equipment and medium for processing pre-family notification document
CN113077288A (en) Message pushing method and device, computer equipment and computer readable storage medium
CN112307106A (en) Data preprocessing method and device
CN111931465A (en) Method and system for automatically generating user manual based on user operation

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