Server data simulation analysis method and system based on IEC 60870-5-101 protocol

Through the server-side data simulation and analysis system based on IEC 60870-5-101 protocol, the problem of protocol understanding inconsistency and lack of real-time analysis functions is solved, efficient data interaction and historical query are achieved, and the stability of power or communication systems is improved. and debugging efficiency.

CN119254855APending Publication Date: 2025-01-03BEIJING SIFANG JIBAO ENG TECH +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411242766.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-05
Publication Date
2025-01-03

AI Technical Summary

Technical Problem

In the prior art, there is inconsistency in the understanding and use of the IEC 60870-5-101 protocol, which leads to difficulty in handling information exceptions, affects the safe and stable operation of power or communication systems, and lacks real-time visual analysis functions and historical record query capabilities, and debugging efficiency Lower.

Method used

Provide a server-side data simulation and analysis system based on IEC 60870-5-101 protocol, including link layer, protocol analysis layer, application layer, information output layer and database layer. Through visual interface and independent thread management, protocol interaction is realized. Data parsing and storage, supporting real-time data display and query.

Benefits of technology

Improve the learning, understanding and use efficiency of IEC 60870-5-101 protocol, reduce manual simulation packets, improve work efficiency, realize real-time data interaction and historical query, and enhance the scalability and portability of the system. .

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119254855A_ABST
    Figure CN119254855A_ABST
Patent Text Reader

Abstract

The invention discloses a server data simulation analysis method and system based on an IEC (International Electrotechnical Commission) 60870-5-101 protocol. The system comprises a link layer for creating an independent communication link for each server; the protocol analysis layer is used for reading a protocol analysis file, setting a protocol analysis algorithm, analyzing and displaying message information, and reading, judging and processing data according to IEC protocol definition; the application layer is used for presenting information of data information configuration and function configuration and receiving a user command; the information output layer is used for displaying information interacted with the client; the database layer realizes data storage, query and export; and the task thread layer manages all independent threads. The method facilitates the learning and understanding of the protocol, can be used for protocol consistency verification and performance inspection, and improves the working efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of electric power and communication technology, and in particular to a server data simulation and analysis method and system based on the IEC 60870-5-101 protocol. Background Art

[0002] With the rapid development of power grids, various new demands are constantly being put forward. Power dispatching has gradually evolved from the traditional single mode to networking, intelligence, integration and integration, and the comprehensive quality requirements for dispatchers are becoming higher and higher.

[0003] After experiencing the inefficient serial communication protocol, the current mainstream communication protocol for power dispatching is mainly IEC 60870-5-104, or Ethernet 104 protocol. However, given that IEC 60870-5-101 is the predecessor of IEC60870-5-104, it is still the main backup channel in the current solution. Since different people have different understandings and masteries of this protocol, it is impossible to grasp the specific cause and deal with related defects in time after the information is abnormal, which seriously affects the safe and stable operation of the power or communication system. In addition, the existing technology does not realize the real-time visual analysis function of the protocol message, and the historical records cannot be obtained, so it can only passively wait for support, which makes the debugging efficiency low. Summary of the invention

[0004] In order to solve the deficiencies in the prior art, the present invention provides a server-side data simulation parsing method and system based on the IEC 60870-5-101 protocol to develop a humanized tool to assist in learning, understanding, using and mastering the IEC 60870-5-101 protocol.

[0005] In order to solve the above technical problems, the present invention adopts the following technical solutions.

[0006] The present invention first discloses a server data simulation and analysis system based on the IEC 60870-5-101 protocol, the system comprising:

[0007] The link layer is used to create an independent communication link for each server, which corresponds to each client for communication, and detects data loss and anomalies through hardware and software verification algorithms;

[0008] The protocol parsing layer is used to read the protocol parsing file, set the protocol parsing algorithm, parse the message information and visualize it, realize protocol interaction, read, judge and process data according to the IEC 60870-5-101 protocol definition, organize and send data, modify data-related information and feed it back to the visualization interface, modify the visualization interface information and feed it back to the message, and send data to the information output layer, receive business information from the application layer, and send business result information to the application layer;

[0009] The application layer includes a visualization interface for visually presenting the information and operations of data information configuration and function configuration and related information, and receiving commands triggered by users on the visualization interface;

[0010] Information output layer, used to display information interacting with the client in real time;

[0011] The database layer is used to realize data storage, perform query and export services according to the query conditions entered by the user, query the database using the remote signal change information and SOE information according to the user's request, store the remote control information and remote adjustment information in the database, and store the message and operation information in the file;

[0012] The task thread layer is used to manage all independent threads.

[0013] The present invention further includes the following preferred embodiments:

[0014] The visualization interface data information configuration includes: copy this item downward, add a row, add multiple rows, delete a row, import RCD, clear current table data, clear all table data of this site, search, telesignaling table, telemetering table, telepulse table, remote control table, remote adjustment table, general settings, and parameters.

[0015] The information parsed by the protocol parsing layer includes the start character, control field, address field, checksum, terminator, length, ASDU type, variable structure qualifier, transmission reason, source station address, information object address, call qualifier and five remote specific information.

[0016] The information output layer includes: a message information window, a remote signal change information window, a SOE information window, a remote control information window, a remote adjustment information window, and an operation information window, which are used to display relevant information interacting with the client in real time.

[0017] The visualization interface includes a navigation window interface, a telesignaling table interface, a telemetering table interface, a telepulse table interface, a remote control table interface, a remote adjustment table interface, a general setting interface, a parameter interface, a message interface, a telesignaling position change information interface, a SOE information interface, a telesignaling interface, a remote adjustment interface, an operation information interface and a database query interface, a general parameter setting interface, a calculator interface, a data conversion interface, a check code calculation interface, a UnicodeAsciiHex conversion interface, and a message filtering interface.

[0018] The independent threads include establishing a server thread, a server data initialization thread, a protocol parameter reading thread, a link establishment thread with a client, a thread for responding to messages from a visualization interface and performing actions, a data information modification thread, a serial port opening thread, and a link establishment thread with a client.

[0019] The user-triggered commands include query commands, general setting commands, avalanche test commands, copy machine test commands, data information real-time modification commands, column width adaptation commands, display all columns commands, column display editing commands, full split commands, full merge commands, column selection commands, column formatting commands, all valid commands, all invalid commands, all current value commands, all non-current value commands, all unreplaced commands, all replaced commands, all unblocked commands, all blocked commands, all selected, all unselected, all non-overflow, all overflow, all counters adjusted after the last reading, all counters not adjusted after the last reading, all counters overflowed within the corresponding accumulation period, and all counters did not overflow within the corresponding accumulation period.

[0020] The present invention also discloses a server data simulation and analysis method based on the IEC 60870-5-101 protocol using the aforementioned server data simulation and analysis system based on the IEC 60870-5-101 protocol, comprising:

[0021] Step 1: Modify the protocol parameters according to the negotiation information with the client, read the protocol parameter file, establish a serial port-based connection with the server, and initialize the remote signal table information, telemeter table information, telepulse table information, remote control table information and remote adjustment table information of the server;

[0022] Step 2: Use an independent thread to extract the corresponding business information from the received message, output it to the application layer, receive the user-triggered command and the relevant business execution result command of the application layer, organize and send the message, and parse and display the message;

[0023] Step 3: Store the parsed message and related operation information in a database file, and read and display the information stored in the database in response to the user's query request.

[0024] Accordingly, the present application also discloses a terminal, including a processor and a storage medium;

[0025] The storage medium is used to store instructions;

[0026] The processor is used to operate according to the instructions to execute the aforementioned IEC-based

[0027] Steps of the server-side data simulation parsing method of the 60870-5-101 protocol.

[0028] Correspondingly, the present application also discloses a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the aforementioned server-side data simulation and parsing method based on the IEC 60870-5-101 protocol.

[0029] The beneficial effect of the present invention is that, compared with the prior art, the present invention provides a method and system for simulating and parsing data on the server side based on the IEC 60870-5-101 protocol. Based on the IEC 60870-5-101 communication protocol, the server side device is simulated through the serial communication medium to perform information interaction. With a visual interface, the data source information can be modified in real time, and the client-related services can be responded to in real time, so that what you see is what you send; for the sent and received messages or manually input messages, the message parsing file is read according to the preset protocol, and the message is parsed in bytes, and the message is parsed and displayed visually; the test data can be queried; it is convenient for users to learn, understand, use and master the 101 protocol; it can also be used for verification of 101 protocol consistency, performance testing, etc.; it reduces the inefficient manual simulation message link and improves work efficiency. A lightweight database is used to store important data, such as remote signal displacement information, SOE information, remote control information, and remote adjustment information, for historical query. The IEC60870-5-101 standard information format is adopted, and data is transmitted to the 101 client in real time through a 101 client link corresponding to an independent thread mode to respond to the client business. Through visual data display, users can modify the data online in real time and control it in a timely and comprehensive manner. The data information on the interface is the information transmitted to the client, and the protocol message parsing interface allows users to learn, understand, master and diagnose the protocol in an image and in depth. The protocol parameter file and the view display file of the five remote meters can be read, including the remote signal meter, the remote measurement meter, the remote pulse meter, the remote control meter, the remote adjustment meter, and the message parsing file; a database is established, and the 101 client serial port channel and data interaction are dynamically established in real time. The data changes of the 101 server are timely transmitted to the protocol parsing layer through the signal slot mechanism, so as to be transmitted to the 101 client at the fastest speed to ensure the real-time nature of the data. The configuration information and the project can be saved and have strong readability, which reduces unnecessary repeated configuration work. The present invention has good scalability for functions and other protocols. It can run in multiple operating systems and has good portability. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Figure 1 It is an architecture diagram of the server data simulation and analysis system based on the IEC 60870-5-101 protocol in the present invention.

[0031] Figure 2 It is a flow chart of the server data simulation and parsing method based on the IEC 60870-5-101 protocol in the present invention. DETAILED DESCRIPTION

[0032] In order to make the purpose, technical solution and advantages of the present invention more clear, the technical solution of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention.

[0033] The embodiments described in this application are only some embodiments of the present invention, not all embodiments. Based on the spirit of the present invention, other embodiments obtained by ordinary technicians in this field without creative work are all within the protection scope of the present invention.

[0034] In view of the deficiencies of the prior art, the present invention proposes a server-side data simulation analysis method and system based on the IEC 60870-5-101 protocol, the system comprising: a link layer, used to create an independent communication link for each server, corresponding one-to-one with each client for communication, to ensure the accuracy of message transmission and reception based on the serial communication medium; a protocol analysis layer, used to read the protocol analysis file, set the protocol analysis algorithm, analyze the message information and visualize it. Perform protocol interaction, read, judge and process data, and organize and send data; an application layer, the application layer includes a visualization interface, which is used to visualize the information and operations of data information configuration and function configuration and related information, and receive commands triggered by the user on the visualization interface; an information output layer, which is used to display information interacting with the client in real time on demand; a database layer, which realizes data storage, performs queries and exports according to query conditions; and a task thread layer, which is used to manage all independent threads. The present invention simulates the server of the IEC 60870-5-101 protocol without an actual communication device, so as to simulate the information interaction of the device, realize a simple and informative visual interface, and is easy to use, so that users can easily learn, understand, use and master the IEC 60870-5-101 protocol, improve work and study efficiency, and can also be used for verification of the consistency of the IEC 60870-5-101 protocol, performance testing, etc., to facilitate the learning and understanding of the 101 protocol, and can be used for protocol consistency verification and performance testing, and has good expansibility and portability. The user interface design follows the following principles, placing the interface under user control, reducing the user's memory burden, maintaining the consistency of the interface, and fully considering the usage habits of users in various industries and the level of understanding of the protocol, so that users can use it easily, reduce the inefficient manual simulation message link, and improve work efficiency.

[0035] See also Figure 1 As shown, the server data simulation and analysis system based on the IEC 60870-5-101 protocol includes:

[0036] The link layer is used to create an independent communication link for each server. The communication link corresponds to each client for communication. The hardware and software verification algorithms are used to detect data loss and abnormalities to ensure the accuracy of message reception and transmission based on the serial communication medium.

[0037] The protocol parsing layer is used to read the protocol parsing file, set the protocol parsing algorithm, parse the message information and visualize it. The protocol parsing layer implements protocol interaction, reads, judges and processes data according to the IEC 60870-5-101 protocol definition, organizes and sends data, modifies data-related information and feeds it back to the visualization interface, modifies the visualization interface information and feeds it back to the message, and sends the data that meets the requirements to the information output layer, receives the business information of the application layer, the business information includes commands such as remote control, remote adjustment, time synchronization, general call, etc., sends the business result information to the application layer, the business result information includes remote control success, remote control failure, remote adjustment success, remote adjustment failure;

[0038] The application layer includes a visualization interface for visually presenting the information and operations of data information configuration and function configuration as well as related information, and receiving commands triggered by users on the visualization interface.

[0039] The visualization interface includes a navigation window interface, a telesignaling table interface, a telemetering table interface, a telepulse table interface, a remote control table interface, a remote adjustment table interface, a general setting interface, a parameter interface, a message interface, a telesignaling position change information interface, a SOE information interface, a telesignaling interface, a remote adjustment interface, an operation information interface and a database query interface, a general parameter setting interface, a calculator interface, a data conversion interface, a check code calculation interface, a UnicodeAsciiHex conversion interface, and a message filtering interface.

[0040] The information output layer is used to display the information interacted with the client in real time. The information output layer includes: message information window, remote signal change information window, SOE information window, remote control information window, remote adjustment information window, and operation information window, which are used to display the relevant information interacted with the client in real time.

[0041] The database layer is used to realize data storage, perform query and export services according to the query conditions input by the user; according to the user's request, use the remote signal change information and SOE information to query the database, store the remote control information and remote adjustment information in the database, and store the message and operation information in the file;

[0042] The task thread layer is used to manage all independent threads.

[0043] The independent threads include: establishing a server thread, a server data initialization thread, a protocol parameter reading thread, a link establishment thread with the client, a thread that responds to messages from a visual interface and performs actions, a data information modification thread, a serial port opening thread, and a thread that establishes a link with the client. Among them, the threads that respond to messages from a visual interface and perform actions include an avalanche test start thread, a pause thread, a copy machine test start thread, a pause thread, etc. Through the above-mentioned independent threads, the relevant messages of the current link are obtained from the network and verified, the services involved (such as general call, time synchronization, remote control, remote adjustment, call remote pulse, etc.) are extracted from the messages, the message information is processed and fed back to the information output layer interface, the client's functions are responded to in real time according to the protocol, the relevant messages are organized and sent to the network, the messages in the control direction and the monitoring direction are parsed, and the information is stored in the database.

[0044] In a preferred embodiment, the visualization interface data information configuration includes: copying this item downward, adding a row, adding multiple rows, deleting a row, importing RCD, clearing current table data, clearing all table data of this site, searching, telesignaling table, telemetering table, telepulse table, remote control table, remote adjustment table, general settings, and parameters.

[0045] In a preferred embodiment, the information parsed by the protocol parsing layer includes the start character, control field, address field, checksum, terminator, length, ASDU type, variable structure qualifier, transmission reason, source station address, information object address, call qualifier and five remote specific information.

[0046] The commands triggered by the user include: query command, general setting command, avalanche test command, copy test command, real-time modification command of data information, column width adaptation command, display all columns command, column display editing command, full split command, full merge command, column selection command, column formatting command, all valid commands, all invalid commands, all current value commands, all non-current value commands, all unreplaced commands, all replaced commands, all unblocked commands, all blocked commands, all selected, all unselected, all non-overflow, all overflow, all counters adjusted after the last reading, all counters not adjusted after the last reading, all counters overflowed within the corresponding accumulation period, all counters did not overflow within the corresponding accumulation period.

[0047] Based on the above system, the present invention adopts the IEC 60870-5-101 protocol standard information format to simulate the server device for information interaction, and uses a visual interface to allow users to fully control the specific process of information interaction. The server data simulation and parsing method based on the IEC 60870-5-101 protocol disclosed in the present invention includes the following steps:

[0048] Step 1: Modify the protocol parameters according to the negotiation information with the client, read the protocol parameter file, establish a serial port-based connection with the server, and initialize the server's telesignaling table information, telemetering table information, telepulse table information, remote control table information, and remote adjustment table information.

[0049] The modification of the protocol parameters includes negotiating and making the protocol parameter items consistent with the client of the 101 protocol, timely updating the interface display information and class member variable information, opening the serial port, establishing the application connection, and entering the protocol interaction.

[0050] Step 2: Use an independent thread to extract the corresponding business information from the received message, such as general call, remote control, remote adjustment, etc., output it to the application layer, receive the user-triggered commands and the relevant business execution result commands of the application layer, organize and send the message, and parse and display the message.

[0051] Specifically, step 2 includes entering the interactive process and processing client services; modifying various data information online, such as ASDU type, value, quality, etc., processing user commands (query command, general setting command, avalanche test command, copy machine test command, data information real-time modification command, column width adaptive command, display all columns command, column display editing command, full split command, full combination command, column selection command, column formatting command, all valid commands, all invalid commands, all current value commands, all non-current value commands, all unreplaced commands, all replaced commands, all unblocked commands, all blocked commands, all selected, all unselected, all non-overflow, all overflow, all counters adjusted after the last reading, all counters not adjusted after the last reading, all counters overflowed within the corresponding accumulation period, all counters did not overflow within the corresponding accumulation period, etc.), reading the message parsing file for the control direction and monitoring direction messages according to the preset protocol, parsing the messages, and visually displaying them.

[0052] Step 3: Store the parsed message and related operation information in a database file, and read and display the information stored in the database in response to the user's query request.

[0053] When data is stored in the database, after passing through the data processing module, the messages and operation information that need to be stored in the database are stored in the database through the database processing module algorithm. When data is out of the database, the required information is sent to the application layer and displayed through the database query module, and relevant information is exported as needed.

[0054] In a further preferred embodiment, the protocol parameters include: site name, 101 protocol standard, serial port number, parity check, baud rate, data bit, stop bit, flow control bit, application layer address, transmission reason length (default 1 byte), ASDU public address length (default 1 byte), information object address length (default 2 bytes), the information body address of the first remote signal (default 1), the information body address of the first telemetry (default 16385), the information body address of the first remote pulse (default 25601), the information body address of the first remote control (default 24577), the information body address of the first remote adjustment (default 25089), the waiting time for remote control execution after successful remote control selection (seconds, default 15), the waiting time for remote adjustment execution after successful remote adjustment selection (seconds, default 15), the interface value information that needs to be refreshed during the test (avalanche or copying machine), the quality change sending the change position remote signal, the quality change sending the change telemetry, whether to send Asdu70 after sending the 0B message, and the function of the highest bit 7 of the control domain.

[0055] See also Figure 2 The following is a specific example to illustrate the server data simulation and parsing method based on the IEC 60870-5-101 protocol of the present invention.

[0056] Step A1, add or delete the corresponding 101 server in the protocol tree of the navigation window. The relevant information of the 101 simulation substation can be expanded or contracted to meet the user's visual habits.

[0057] By adding 101 servers, reaching consensus with the client, correcting relevant protocol parameters, reading protocol parameter files, initializing relevant member information of the class, allocating relevant resources, and opening up memory areas, each 101 server is stored in the corresponding memory as an instance of a class. The number of servers can be increased as needed without restriction. Each instance has a unique identifier, which is used to distinguish between various 101 servers and can be displayed as needed. The protocol parameters include site name, 101 protocol standard, serial port number, parity check, baud rate, data bit, stop bit, flow control bit, application layer address, transmission reason length (default 1 byte), ASDU public address length (default 1 byte), information object address length (default 2 bytes), the first telesignal information body address (default 1), the first telemetry information body address (default 16385), the first telepulse information body address (default 25601), the first remote control information body address (default 24577), the first remote adjustment information body address (default 25089), the remote control execution waiting time after successful remote control selection (seconds, default 15), the remote adjustment execution time after successful remote adjustment selection (seconds, default 15), the interface value information that needs to be refreshed during the test (avalanche or copying), the quality change sending the change telesignal, the quality change sending the change telemetry, whether to send Asdu70 after sending the 0B message, and the function of the highest bit 7 of the control domain.

[0058] Step A2, add or delete five remote related information. The five remote related information can be added manually or imported from the RCD file. The five remote related information includes remote signal table information, remote measurement table information, remote pulse table information, remote control table information and remote adjustment table information.

[0059] Among them, the telesignal table information includes dispatch point number (starting from 1), dispatch point number (protocol Dec), dispatch point number (protocol Hex), description, path, engineering value, ASDU type, whether valid (IV), whether current value (NT), whether replaced (SB), whether locked (BL), avalanche test, and copy machine test.

[0060] The telemetry table information includes the dispatch point number (starting from 1), dispatch point number (protocol Dec), dispatch point number (protocol Hex), description, path, engineering value, ASDU type, whether valid (IV), whether current value (NT), whether replaced (SB), whether locked (BL), whether overflow (OV), and copy test.

[0061] The remote pulse table information includes the dispatch point number (starting from 1), dispatch point number (protocol Dec), dispatch point number (protocol Hex), description, path, engineering value, ASDU type, whether valid (IV), whether adjusted (CA), whether overflowed (CY), and sequence number (SEQ).

[0062] The remote control table information includes dispatch point number (starting from 1), dispatch point number (protocol Dec), dispatch point number (protocol Hex), description, path, ASDU type, remote control mode, and remote signal local point number (from 1, 0: not involved).

[0063] The remote control table information includes the dispatching point number (from 1), dispatching point number (protocol Dec), dispatching point number (protocol Hex), description, path, ASDU type, remote control mode, and telemetry local point number (from 1, 0: not involved).

[0064] Open the serial port, establish an application link with the client, and enter the interactive process. One link corresponds to an independent thread.

[0065] Add a convenient menu in the column to facilitate users to quickly set relevant target values, such as: column width adaptive command, display all columns command, column display editing command, full split command, full merge command, column selection command, column formatting command, all valid command, all invalid command, all current value command, all non-current value command, all not replaced command, all replaced command, all not blocked command, all blocked command, select all, unselect all, all not overflow, all overflow, all counters adjusted after the last reading, all counters not adjusted after the last reading, all counters overflowed within the corresponding accumulation period, all counters did not overflow within the corresponding accumulation period.

[0066] Step A3, process client services. Receive and verify messages from the network, extract the services involved from the messages, such as general call, time synchronization, remote control, remote adjustment, call and remote pulse, etc., obtain the current corresponding information from the interface in real time, organize the messages and send them to respond to the corresponding services. Process the sudden change of telesignaling, telemetry, or periodic cyclic services of this service.

[0067] Step A4, the user modifies the relevant data information of telesignaling, telemetering, telepulsation, telecontrol and teleadjustment in real time online according to actual needs. The modified data information includes: modifying or setting relevant values, such as dispatching point number (starting from 1), description, engineering value, ASDU type, whether valid (IV), whether current value (NT), whether replaced (SB), whether blocked (BL), whether overflow (OV), avalanche test, copy machine test, whether adjusted (CA), whether overflow (CY), sequence number (SEQ), remote control mode, telesignaling dispatching point number (starting from 1, 0 means not involved), remote adjustment mode, telemetering dispatching point number (starting from 1, 0 means not involved), so as to achieve the relevant test purpose.

[0068] Step A5: The user sets the number of avalanche test telesignal changes according to actual needs through the general setting parameter interface, and clicks the "avalanche test" button to conduct an avalanche test.

[0069] Step A6, the user sets the relevant parameters of the stress test according to actual needs through the general setting parameter interface, such as sending a single message or sending messages simultaneously, the time interval for sending a single message, the time interval for sending messages simultaneously, the minimum telemetry value during the stress test, the maximum telemetry value during the stress test, and the telemetry step length during the stress test. Click the "Steady Test" button to conduct the stress test.

[0070] Step A7, displaying personalized information on the parameter page, specifically including displaying the specification parameter description and value in detail.

[0071] Step A8, display personalized information on the message page. The personalized information on the message page includes: the maximum number of rows displayed in this table, pause recording, pause sliding, display message parsing information, save message, import message, parse, clear, filter message, including site name, direction, channel type, length, or clear all filtering conditions.

[0072] The information in the message table includes: sequence number, local time, site name, client information (reflecting the substation IP+PORT), direction, channel type, message type, length, and message content.

[0073] You can select the required function, click the corresponding line information, parse each byte of the message, and display its specific meaning. You can also copy the relevant 101 protocol message for parsing to facilitate a full understanding of the message.

[0074] The message table adds a convenient menu in the column to facilitate users to quickly set relevant target values, such as column width adaptation command, display all columns command, and column display editing command.

[0075] Step A9, display personalized information on the telesignal position change information page and store the information. The information displayed on the telesignal position change information page includes: the maximum number of rows displayed in this table, the number of telesignal position changes, pause record, pause slide, site name, local point number, value, clear all filter conditions, save to database, query database, clear database, and clear.

[0076] The information in the telesignal change information table includes change sequence number, local time, site name, client information, dispatch point number (FROM 1), dispatch point number (protocol Dec), dispatch point number (protocol Hex), description, value, and quality, so that the telesignal change information can be quickly and clearly understood.

[0077] The remote signal change information table adds a convenient menu in the column to facilitate users to quickly set relevant target values, such as: column width adaptation command, display all columns command, and column display editing command.

[0078] Step A10, displaying personalized information on the SOE information page, and storing the information as needed.

[0079] The SOE information page displays information including: the maximum number of rows displayed in this table, the number of SOE information, pause recording, pause sliding, site name, local point number, value, clear all filter conditions, save to database, query database, clear database, and clear.

[0080] The information in the SOE information table includes the shift sequence number, local time, site name, client information, scheduling point number (starting from 1), scheduling point number (protocol Dec), scheduling point number (protocol Hex), description, SOE time, value, and quality, so that you can quickly and clearly understand the SOE information.

[0081] The SOE information table adds a convenient menu in the column to facilitate users to quickly set relevant target values, such as: column width adaptation command, display all columns command, and column display editing command.

[0082] Step A11, displaying personalized information on the remote control page and storing the information.

[0083] The remote control page displays information including: This table displays the maximum number of rows, site name, local point number, value, clear all filter conditions, query database, clear database, and clear.

[0084] The information in the remote control table includes serial number, local time, site name, client information, scheduling point number (starting from 1), scheduling point number (protocol Dec), scheduling point number (protocol Hex), description, target value, so as to quickly and clearly understand the remote control execution steps and execution results.

[0085] The remote control table adds a convenient menu in the column to facilitate users to quickly set relevant target values, such as: column width adaptation command, display all columns command, and column display editing command.

[0086] Step A12: display the personalized information on the remote control page and store the information.

[0087] The remote adjustment page displays information including: the maximum number of rows displayed in this table, site name, local point number, clear all filter conditions, query database, clear database, and clear.

[0088] The information in the remote control table includes serial number, local time, site name, client information, dispatch point number (starting from 1), dispatch point number (protocol Dec), dispatch point number (protocol Hex), description, target value, and information, so as to quickly and clearly understand the remote control execution steps and execution results.

[0089] The remote control table adds a convenient menu in the column to facilitate users to quickly set relevant target values, such as: column width adaptation command, display all columns command, and column display editing command.

[0090] Step 13: Display personalized information on the operation information page.

[0091] The information displayed on the operation information page includes: pause recording, display message, save to file, and clear.

[0092] Step 14: Display various queries on the database query interface.

[0093] The database query display information includes: start time, end time, database table, substation name, dispatch point number (starting from 1), value, sorting column, sorting rule, operation waiting time, query results, total number of rows, maximum number of rows per page, number of pages, previous page, next page, query, export, clear current library table data, clear all database data.

[0094] The beneficial effect of the present invention is that, compared with the prior art, the present invention provides a method and system for simulating and parsing data on the server side based on the IEC 60870-5-101 protocol. Based on the IEC 60870-5-101 communication protocol, the server side device is simulated through the serial communication medium to perform information interaction. With a visual interface, the data source information can be modified in real time, and the client-related services can be responded to in real time, so that what you see is what you send; for the sent and received messages or manually input messages, the message parsing file is read according to the preset protocol, and the message is parsed in bytes, and the message is parsed and displayed visually; the test data can be queried; it is convenient for users to learn, understand, use and master the 101 protocol; it can also be used for verification of 101 protocol consistency, performance testing, etc.; it reduces the inefficient manual simulation message link and improves work efficiency. A lightweight database is used to store important data, such as remote signal displacement information, SOE information, remote control information, and remote adjustment information, for historical query. The IEC60870-5-101 standard information format is adopted, and data is transmitted to the 101 client in real time through a 101 client link corresponding to an independent thread mode to respond to the client business. Through visual data display, users can modify the data online in real time and control it in a timely and comprehensive manner. The data information on the interface is the information transmitted to the client, and the protocol message parsing interface allows users to learn, understand, master and diagnose the protocol in an image and in depth. The protocol parameter file and the view display file of the five remote meters can be read, including the remote signal meter, the remote measurement meter, the remote pulse meter, the remote control meter, the remote adjustment meter, and the message parsing file; a database is established, and the 101 client serial port channel and data interaction are dynamically established in real time. The data changes of the 101 server are timely transmitted to the protocol parsing layer through the signal slot mechanism, so as to be transmitted to the 101 client at the fastest speed to ensure the real-time nature of the data. The configuration information and the project can be saved and have strong readability, which reduces unnecessary repeated configuration work. The present invention has good scalability for functions and other protocols. It can run in multiple operating systems and has good portability.

[0095] Based on the spirit of the present invention, those skilled in the art can easily think of the above-mentioned IEC

[0096] The server-side data simulation and parsing method of the 60870-5-101 protocol can obtain a computer program product. The computer program product may include a computer-readable storage medium, which carries computer-readable program instructions for enabling a processor to implement various aspects of the present disclosure. That is, the present application also includes a terminal, including a processor and a storage medium; the storage medium is used to store instructions; the processor is used to operate according to the instructions to perform the steps of the server-side data simulation and parsing method based on the IEC 60870-5-101 protocol.

[0097] Computer readable storage medium can be a tangible device that can keep and store the instructions used by the instruction execution device. Computer readable storage medium can be, for example, - but not limited to - electrical storage device, magnetic storage device, optical storage device, electromagnetic storage device, semiconductor storage device or any suitable combination of the above. More specific examples (non-exhaustive list) of computer readable storage medium include: portable computer disk, hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), static random access memory (SRAM), portable compact disk read-only memory (CD-ROM), digital versatile disk (DVD), memory stick, floppy disk, mechanical encoding device, for example, punch card or groove protrusion structure with instructions stored thereon and any suitable combination of the above. Computer readable storage medium used here is not interpreted as instantaneous signal itself, such as radio wave or other free propagating electromagnetic wave, electromagnetic wave propagated by waveguide or other transmission medium (for example, light pulse by optical fiber cable) or electrical signal transmitted by wire.

[0098] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.

[0099] The computer program instructions for performing the operation of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages-such as Smalltalk, C++, etc., and conventional procedural programming languages-such as "C" language or similar programming languages. Computer-readable program instructions may be executed completely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network-including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA) may be personalized by utilizing the state information of a computer-readable program instruction, and the electronic circuit may execute a computer-readable program instruction, thereby realizing various aspects of the present disclosure.

[0100] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents, and any modifications or equivalent replacements that do not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.

Claims

1. A server data simulation and analysis system based on IEC 60870-5-101 protocol, characterized in that: include: The link layer is used to create an independent communication link for each server, which corresponds to each client for communication, and detects data loss and anomalies through hardware and software verification algorithms; The protocol parsing layer is used to read the protocol parsing file, set the protocol parsing algorithm, parse the message information and visualize it, realize protocol interaction, read, judge and process data according to the IEC 60870-5-101 protocol definition, organize and send data, modify data-related information and feed it back to the visualization interface, modify the visualization interface information and feed it back to the message, and send data to the information output layer, receive business information from the application layer, and send business result information to the application layer; The application layer includes a visualization interface for visually presenting the information and operations of data information configuration and function configuration and related information, and receiving commands triggered by users on the visualization interface; Information output layer, used to display information interacting with the client in real time; The database layer is used to realize data storage, perform query and export services according to the query conditions entered by the user, query the database using the remote signal change information and SOE information according to the user's request, store the remote control information and remote adjustment information in the database, and store the message and operation information in the file; The task thread layer is used to manage all independent threads.

2. The server data simulation and analysis system based on the IEC 60870-5-101 protocol according to claim 1, characterized in that: The visualization interface data information configuration includes: copy this item downward, add a row, add multiple rows, delete a row, import RCD, clear current table data, clear all table data of this site, search, telesignaling table, telemetering table, telepulse table, remote control table, remote adjustment table, general settings, and parameters.

3. The server data simulation and analysis system based on the IEC 60870-5-101 protocol according to claim 2, characterized in that: The information parsed by the protocol parsing layer includes the start character, control field, address field, checksum, terminator, length, ASDU type, variable structure qualifier, transmission reason, source station address, information object address, call qualifier, and telesignaling table information, telemetering table information, telepulse table information, remote control table information and remote adjustment table information.

4. The server data simulation and analysis system based on the IEC 60870-5-101 protocol according to claim 3 is characterized in that: The information output layer includes: a message information window, a remote signal change information window, a SOE information window, a remote control information window, a remote adjustment information window, and an operation information window, which are used to display relevant information interacting with the client in real time.

5. The server data simulation and analysis system based on the IEC 60870-5-101 protocol according to claim 4 is characterized in that: The visualization interface includes a navigation window interface, a telesignaling table interface, a telemetering table interface, a telepulse table interface, a remote control table interface, a remote adjustment table interface, a general setting interface, a parameter interface, a message interface, a telesignaling position change information interface, a SOE information interface, a telesignaling interface, a remote adjustment interface, an operation information interface and a database query interface, a general parameter setting interface, a calculator interface, a data conversion interface, a check code calculation interface, a UnicodeAsciiHex conversion interface, and a message filtering interface.

6. The server data simulation and analysis system based on the IEC 60870-5-101 protocol according to claim 5, characterized in that: The independent threads include establishing a server thread, a server data initialization thread, a protocol parameter reading thread, a link establishment thread with a client, a thread for responding to messages from a visualization interface and performing actions, a data information modification thread, a serial port opening thread, and a link establishment thread with a client.

7. The server data simulation and analysis system based on the IEC 60870-5-101 protocol according to claim 6, characterized in that: The user-triggered commands include query commands, general setting commands, avalanche test commands, copy machine test commands, data information real-time modification commands, column width adaptation commands, display all columns commands, column display editing commands, full split commands, full merge commands, column selection commands, column formatting commands, all valid commands, all invalid commands, all current value commands, all non-current value commands, all unreplaced commands, all replaced commands, all unblocked commands, all blocked commands, all selected, all unselected, all non-overflow, all overflow, all counters adjusted after the last reading, all counters not adjusted after the last reading, all counters overflowed within the corresponding accumulation period, and all counters did not overflow within the corresponding accumulation period.

8. A method for simulating and parsing server data based on the IEC 60870-5-101 protocol using the server data simulation and parsing system based on the IEC 60870-5-101 protocol as described in any one of claims 1 to 7, comprising the following steps: Step 1: Modify the protocol parameters according to the negotiation information with the client, read the protocol parameter file, establish a serial port-based connection with the server, and initialize the remote signal table information, telemeter table information, telepulse table information, remote control table information and remote adjustment table information of the server; Step 2: Use an independent thread to extract the corresponding business information from the received message, output it to the application layer, receive the user-triggered command and the relevant business execution result command of the application layer, organize and send the message, and parse and display the message; Step 3: Store the parsed message and related operation information in a database file, and read and display the information stored in the database in response to the user's query request.

9. A terminal comprising a processor and a storage medium; characterized in that: The storage medium is used to store instructions; The processor is used to operate according to the instruction to execute the steps of the server data simulation and parsing method based on the IEC 60870-5-101 protocol according to claim 8.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the server data simulation and parsing method based on the IEC 60870-5-101 protocol described in claim 8 are implemented.