Joint debugging method and system for cascade computer monitoring system
By building a test environment in the cascade computer monitoring system, configuring the network and synchronizing database, checking the device signals and conducting remote control tests, the problems of cumbersome and inconsistency in the debugging methods in the existing technology are solved, and the accurate synchronization of data and signals and system are achieved. stable operation.
Patent Information
- Application Number
- CN202411044122.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2024-12-31
AI Technical Summary
The existing ladder computer monitoring system debugging methods are cumbersome and error-prone in the synchronization process of configuring network and databases. They cannot guarantee the consistency between the test environment and the actual operating environment, which affects the reliability of the debugging results.
By building a test environment, configuring the network, and synchronizing the database, the database in the test environment is consistent with the main database; checking the uplink signals of each device one by one, conducting remote control tests, and verifying whether the remote control instructions can be accurately issued and correctly executed; the implementation screen Verify to ensure that all kinds of graphical interfaces in the monitoring system can accurately reflect the equipment status and signal changes, and test the signal masking function; after all tests are completed, the system will be restored to the initial state and a test report will be generated.
Through automatic control and modification of the sub-station side and main site point tables, data consistency is ensured, and the accuracy and real-time nature of data synchronization are enhanced, errors and failures caused by data aberration are avoided, and the accuracy of signal transmission is improved. Consistency achieves comprehensive verification of signal transmission and remote control functions, ensuring the stable operation of the system.
Smart Images

Figure CN119226135A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of data control, and in particular to a joint debugging method and system for a ladder computer monitoring system. Background Art
[0002] Initially, monitoring systems relied on simple electrical devices and mechanical relays for operation and monitoring. With the rapid development of information technology, computer monitoring systems have gradually evolved into complex integrated systems that cover a variety of hardware and software components.
[0003] Modern computer monitoring systems usually include sensors, controllers, communication equipment and data processing platforms, which can monitor and control the operating status of various industrial and civil equipment in real time.
[0004] Especially with the rise of the Internet of Things (IoT), big data and cloud computing technologies, the capabilities of monitoring systems in data collection, processing and remote control have been significantly improved.
[0005] However, as the complexity of monitoring systems increases, their debugging and maintenance become more and more difficult and time-consuming, especially in the joint debugging of ladder computer monitoring systems, where there are many challenges.
[0006] The existing debugging methods for ladder computer monitoring systems have exposed some significant shortcomings in practical applications, such as the cumbersome and error-prone process of configuring the network and database synchronization, the inability to ensure the consistency between the test environment and the actual operating environment, which affects the reliability of the debugging results, etc. Summary of the invention
[0007] In view of the problems existing in the above-mentioned existing ladder computer monitoring system debugging method, the present invention is proposed.
[0008] Therefore, the problem to be solved by the present invention is how to provide a method and system for achieving comprehensive debugging and verification of a ladder computer monitoring system.
[0009] In order to solve the above technical problems, the present invention provides the following technical solutions:
[0010] In the first aspect, an embodiment of the present invention provides a joint debugging method for a ladder computer monitoring system, which includes setting up a test environment and configuring a network; after the network configuration is completed, synchronizing the database to make the database in the test environment consistent with the main database; checking the uplink signal of each device one by one, and performing a remote control test to verify whether the remote control command can be accurately issued and correctly executed; performing screen verification to ensure that various graphical interfaces in the monitoring system can accurately reflect the device status and signal changes, and testing the signal shielding function; after all tests are completed, restoring the system to the initial state and generating a test report.
[0011] As a preferred solution of the joint debugging method of the ladder computer monitoring system described in the present invention, the database synchronization includes: after the communication link is established, the main station calls the point table, the substation sends the point table according to the category, and the main station automatically compares and matches according to the called measurement point description; for non-conventional description points that cannot be automatically matched, a manual matching interface is provided to synchronize the substation table description and keywords to the main station database; a general database call is executed to ensure that the data on the substation side and the main station side are consistent; a real-time point table synchronization mechanism is implemented to ensure that the point tables on both sides are continuously consistent.
[0012] As a preferred solution of the joint debugging method of the ladder computer monitoring system of the present invention, the automatic control modification of the substation side and the main station side point table includes the following contents: analyzing and numbering the database structure of the substation and the main station center, generating a database structure description set, recorded as DB Si ={T1,T2,...,Tn}, where DB Si Represents a set of structural descriptions of any database, i represents the database number, n represents the table structure number, and Tn represents the nth table structure; perform field analysis on each table structure Tn to generate a set of field descriptions, recorded as FD n ={F1,F2,...,Fm}, where FD n Represents a set of field descriptions of any table structure, n represents the table structure number, m represents the field number, and Fm represents the mth field; based on the database description document provided by the substation, a set of modification instructions is generated, denoted as MC k ={M1,M2,...,Mp}, where MC k represents the modification instruction set of the kth database, p represents the modification instruction number, and Mp represents the pth modification instruction; each modification instruction Mp is parsed to generate an operation feature description, which is expressed as: Op→AFp:(A,B,C,D), where Op represents the operation type corresponding to the pth modification instruction, AFp represents the operation feature of the pth modification instruction, and A, B, C and D represent the affected database, table, field and new value respectively; according to the operation feature description, an automated execution script set is generated, recorded as AE Si ={S1,S2,...,Sq}, where AE Si represents the set of automated execution scripts for the i-th database, q represents the script number, and Sq represents the q-th execution script.
[0013] As a preferred solution of the joint debugging method of the ladder computer monitoring system of the present invention, wherein: the execution of the database general call includes: defining a database general call operation set, denoted as DT Ri ={R1,R2,...,Rr}, where DT Rirepresents the set of general call operations for the i-th database, r represents the general call operation number, and Rr represents the r-th general call operation; parameterize each general call operation Rr to generate a general call configuration description, which is expressed as: Cr→PCr:(a,b,c,d), where Cr represents the configuration of the r-th general call operation, PCr represents the parameter characteristics of the configuration, and a, b, c, d represent the general call range, time interval, number of concurrency and timeout settings respectively; execute the general call operation and record the data transmission characteristics, which is expressed as: Tr→DTr:(e,f,g,h), where Tr represents the execution timestamp of the r-th general call operation, DTr represents the data transmission characteristics of the general call, and e, f, g, h represent the amount of transmitted data, transmission rate, error rate and completion degree respectively; analyze the general call results to generate a consistency evaluation matrix; and calculate the overall consistency index based on the consistency evaluation matrix.
[0014] As a preferred solution of the joint debugging method of the ladder computer monitoring system of the present invention, the consistency evaluation matrix is:
[0015] CM ij = {V 11 ,V 12 ,...,V uv};
[0016] Among them, CM ij represents the data consistency evaluation matrix of the slave station side i and the master station side j, u and v represent the row and column respectively, V uv represents the consistency evaluation value of the uth row and vth column; the calculation formula of the overall consistency index is:
[0017] CI=ω1.X+ω2.Y+ω3.Z
[0018] Among them, ω1, ω2 and ω3 are the weights of the complete consistency rate, partial consistency rate and inconsistency rate respectively; X represents the complete consistency rate, Y represents the partial consistency rate, and Z represents the inconsistency rate.
[0019] As a preferred scheme of the joint debugging method of the ladder computer monitoring system described in the present invention, the method of checking the uplink signal of each device one by one and performing remote control testing includes the following steps: performing automated testing on various signals, automatically generating test cases based on signal characteristics, exporting and comparing the communication point table and real-time measurement values on the substation side and the main station side; developing a visual monitoring interface to display the forced status and results in real time, forcing the control quantities one by one, verifying command issuance and alarm return, implementing command execution performance analysis, and optimizing command issuance efficiency.
[0020] As a preferred scheme of the joint debugging method of the ladder computer monitoring system described in the present invention, the comparison of the communication point table includes: exporting the communication point table from the substation side and the main station side respectively, obtaining the real-time measurement data on both sides, creating a point table mapping function, and calculating the consistency index; if the consistency index is < the preset consistency threshold, the point table synchronization process is triggered; otherwise, the point table synchronization process is not triggered, and it is confirmed that the system data consistency meets the expected standard.
[0021] In the second aspect, in order to further solve the problems existing in the existing debugging methods of ladder computer monitoring systems, the present invention provides a joint debugging method system for ladder computer monitoring systems in an embodiment, which includes: a network configuration module, which is used to build a test environment and configure the network; a database synchronization module, which is used to synchronize the database after the network configuration is completed, so that the database in the test environment is consistent with the main database; a signal verification and remote control test module, which is used to verify the uplink signal of each device one by one, and perform remote control testing to verify whether the remote control instructions can be accurately issued and correctly executed; a screen verification and signal shielding test module, which is used to perform screen verification to ensure that various graphical interfaces in the monitoring system can accurately reflect the device status and signal changes, and test the signal shielding function; a report generation module, which is used to restore the system to the initial state after all tests are completed, and generate a test report.
[0022] In a third aspect, an embodiment of the present invention provides a computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: when the computer program is executed by the processor, any step of the joint debugging method of the ladder computer monitoring system as described in the first aspect of the present invention is implemented.
[0023] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein: when the computer program is executed by a processor, any step of the joint debugging method of the ladder computer monitoring system as described in the first aspect of the present invention is implemented.
[0024] The beneficial effects of the present invention are as follows: the present invention automatically controls and modifies the point tables on the substation side and the main station side according to the database description provided by the substation, thereby ensuring the consistency of data on both sides, executing a general call of the database, ensuring the consistency of data on the substation side and the main station side, and enhancing the accuracy and real-time performance of data synchronization; and implementing a real-time point table synchronization mechanism to ensure continuous consistency of the point tables on both sides, thereby avoiding misoperation and failures caused by data asynchrony; by checking the uplink signal of each device one by one, ensuring the accuracy and consistency of signal transmission, improving the data transmission reliability of the system, realizing comprehensive verification of signal transmission and remote control functions, and ensuring the stable operation of the system; the present invention realizes comprehensive debugging and verification of the ladder computer monitoring system. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. Among them:
[0026] Figure 1 The present invention is a flow chart of a joint debugging method for a ladder computer monitoring system.
[0027] Figure 2 This is the structural diagram of the joint debugging system of the ladder computer monitoring system.
[0028] Figure 3 It is an overall schematic diagram of the joint debugging method of the ladder computer monitoring system. DETAILED DESCRIPTION
[0029] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the accompanying drawings.
[0030] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.
[0031] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The term "in one embodiment" that appears in different places in this specification does not necessarily refer to the same embodiment, nor does it refer to a separate or selective embodiment that is mutually exclusive with other embodiments.
[0032] Example 1
[0033] Reference Figure 1 to Figure 3 , which is the first embodiment of the present invention, and which provides a joint debugging method for a ladder computer monitoring system, comprising the following steps:
[0034] S1: Test environment construction and network configuration.
[0035] Specifically, the following steps are included: building a virtualization platform to simulate the substation host environment; configuring network connections, including the connection between the substation communication server and the main station center offline communication server; implementing network security measures, such as configuring firewall rules and deploying intrusion detection systems; using network analysis tools to monitor data flows to ensure normal communication; and developing automated scripts to regularly check the system connection status and report anomalies.
[0036] Furthermore, five communication links are configured, including four fiber optic channels and one satellite public network security access area, which is an expansion of the original support for up to four channels.
[0037] S2: After the network configuration is complete, synchronize the database to make the database in the test environment consistent with the main database.
[0038] Preferably, the method comprises the following steps:
[0039] After the communication link is established, the master station will first check the database. After the verification is correct, the master station will first call the point table. The substation will send the point table according to the category (telesignaling, telemetering, remote control, teleadjustment, telepulse, curve). The master station will automatically compare and match the measurement point descriptions called up. For non-conventional description points that cannot be matched automatically, a manual matching interface is provided to synchronize the substation table description and keywords to the master station database; execute a general database call to ensure that the data on the substation side and the master side are consistent; implement a real-time point table synchronization mechanism to ensure that the point tables on both sides are continuously consistent.
[0040] Specifically, the 104 master station no longer needs to establish a point table. After the 104 communication link is established, the master station will first call the point table, and the substation side will upload the point table once according to the telesignaling, telemetering, remote control, remote adjustment, remote pulse, and curve categories. Only after judging that the point table has been uploaded completely, the master station sends a general call message, and then interacts according to the conventional 104 protocol process. During the first communication, the master station will automatically compare and match the called measurement points according to the description; after the matching is completed, the synchronization measurement point and synchronization keyword operations are completed according to the needs.
[0041] Synchronous measuring point means that the called sub-station table description needs to be synchronized to the measuring point description in the master station database. Synchronous keyword means that the measuring point keyword sent by the sub-station needs to be synchronized to the measuring point table keyword in the master station database to achieve a one-to-one mapping between the measuring points of the master station and the measuring points of the sub-station.
[0042] Furthermore, the master station automatically compares and matches the following contents according to the called measurement point description:
[0043] Analyze and number the database structure of the master station and the substation to generate a database structure description set, recorded as DB Si ={T1,T2,...,Tn}, where DB Si Represents a set of structural descriptions of any database, i represents the database number, n represents the table structure number, and Tn represents the nth table structure;
[0044] Perform field analysis on each table structure Tn and generate a field description set, recorded as FD n ={F1,F2,...,Fm}, where FD nRepresents a set of field descriptions of any table structure, n represents the table structure number, m represents the field number, and Fm represents the mth field;
[0045] Generate a set of modification instructions based on the database description document provided by the master station, denoted as MC k ={M1,M2,...,Mp}, where MC k represents the modification instruction set of the k-th database, p represents the modification instruction number, and Mp represents the p-th modification instruction;
[0046] Each modification instruction Mp is parsed to generate an operation feature description, which is expressed as: Op→AFp:(A,B,C,D), where Op represents the operation type (such as add, delete, modify) corresponding to the pth modification instruction, AFp represents the operation feature of the pth modification instruction, and A, B, C, and D represent the affected database, table, field, and new value, respectively;
[0047] According to the operation feature description, generate a set of automated execution scripts, denoted as AE Si ={S1,S2,...,Sq}, where AE Si represents the set of automated execution scripts for the i-th database, q represents the script number, and Sq represents the q-th execution script.
[0048] Furthermore, a database general call is performed to ensure that the substation and master station data are consistent, including the following:
[0049] Define the database total call operation set, denoted as DT Ri ={R1,R2,...,Rr}, where DT Ri represents the total call operation set for the i-th database, r represents the total call operation number, and Rr represents the r-th total call operation;
[0050] Parameterize each general call operation Rr to generate a general call configuration description, expressed as: Cr→PCr:(a,b,c,d), where Cr represents the configuration of the rth general call operation, PCr represents the parameter characteristics of the configuration, and a, b, c, d represent the general call range, time interval, number of concurrent calls, and timeout settings, respectively;
[0051] Execute the general call operation and record the data transmission characteristics, which are expressed as: Tr→DTr:(e,f,g,h), where Tr represents the execution timestamp of the rth general call operation, and DTr represents the data transmission characteristics of this general call. e, f, g, h represent the amount of transmitted data, transmission rate, error rate and completion degree, respectively.
[0052] Analyze the results of the general call and generate a consistency evaluation matrix, which is recorded as:
[0053] CMij = {V 11 ,V 12 ,...,V uv}
[0054] Among them, CM ij represents the data consistency evaluation matrix of the slave station side (i) and the master station side (j), u and v represent the row and column respectively, V uv Represents the consistency evaluation value of the uth row and vth column.
[0055] According to the consistency evaluation matrix, the formula for calculating the overall consistency index CI is:
[0056] CI=ω1.X+ω2.Y+ω3.Z
[0057] Among them, ω1, ω2 and ω3 are the weights of the complete consistency rate, partial consistency rate and inconsistency rate respectively; X represents the complete consistency rate, Y represents the partial consistency rate, and Z represents the inconsistency rate.
[0058] If the consistency index CI does not meet the standard, manual verification will be performed.
[0059] S3: Check the uplink signals of each device one by one to ensure the accuracy and consistency of signal transmission; conduct remote control tests to verify that remote control commands can be accurately issued and correctly executed to ensure the normal control function of the system.
[0060] Conduct "back-to-back" simulated joint debugging tests, establish a communication network, and perform partial verification, including uplink signal verification, image verification, and downlink verification.
[0061] Preferably, develop sub-site table processing rules, remove non-standard characters (such as line breaks), create database measurement points for AGVC advanced operation points, and upload them uniformly; optimize sub-site table descriptions to avoid matching errors caused by repeated descriptions.
[0062] Implement load balancing strategies for point-to-table calling and total calling to avoid network load problems when 9 stations communicate simultaneously.
[0063] It also includes using scripts on the virtual host on the substation side to batch force the analog quantity, temperature quantity, switch quantity and SOE quantity on the power plant side, where the telemetry signal is forced by increasing or decreasing the measured value, and the telesignal signal is forced by 1, 0 cycle and then 0, 1 cycle. After each force is completed, the manufacturer of Nanzi will export the communication point table and real-time measured values on the communication machine on the power plant side, and export the communication point table and real-time measured values on the communication machine on the main station side, perform automated testing on various signals, automatically generate test cases based on signal characteristics, export and compare the communication point table and real-time measured values on the substation side and the main station side; develop a visual monitoring interface to display the forced status and results in real time, force the control quantities one by one, verify the command issuance and alarm return, implement command execution performance analysis, and optimize the efficiency of command issuance.
[0064] Preferably, automatically generating a test case according to the signal characteristics comprises the following steps:
[0065] Collect all signal types that need to be tested, define the signal type set ST = {analog quantity, switch quantity, calculation quantity, ...}; for each signal type s∈ST, define the attribute set AP(s) = {range, accuracy, rate of change}; create a signal characteristic database SDB = {(s,AP(s))|s∈ST}.
[0066] Based on the signal characteristic database SDB, define the normal operation scenario set NOS = {nos1, nos2, ..., nosn}; for each nosi∈NOS, define the signal set involved Generate an abnormal scene set AOS = {aos|aos = F(nos), nos∈NOS}, where F is the abnormal generation function; define the scene relationship graph SRG = (NOS∪AOS, E), where E represents the conversion relationship between scenes.
[0067] It should be noted that the anomaly generation function F uses the perturbation method to generate anomaly scenarios:
[0068] F=nos+∈
[0069] Among them, nos is the normal scene and ∈ is the random noise vector.
[0070] For each signal type s∈ST, define the basic test rule set BTR(s) = {range test, accuracy test, rate of change test}; based on the scene relationship graph SRG, define the combined test rule set CTR = {ctr1,ctr2,...,ctrm}; for each ctri∈CTR, define ctri = g(Si,Gi), where Gi is a regular function.
[0071] Furthermore, the formula of Gi is:
[0072] Gi(si)=hi*si
[0073] Where hi is the impulse response of the filter and * represents the convolution operation.
[0074] The combination function g is used to combine the subset Si and the rule function Gi into a combined test rule, which can be simply defined as a tuple.
[0075] Define the time series T = {t1, t2, ..., tk}, for each scenario sc∈(NOS∪AOS), generate the signal change function set SVF(sc) = {svf|svf:S(sc)×T→G}; construct the dynamic test sequence DTS = {(sc, SVF(sc), TR(sc))|sc∈(NOS∪AOS)}, where,
[0076] For each dts∈DTS, generate a test case set TC(dts)={tc1,tc2,...,tcl}; define a test execution function EXEC(tc)→{PASS,FAIL}; for each tc∈TC(dts), execute EXEC(tc) and record the result.
[0077] Calculate test coverage:
[0078]
[0079] Among them, ωi is the weight of the coverage rate in the i-th one; f is a smoothing function to deal with the fluctuation of coverage rate; ω(s) represents the importance of each signal s; n 0 is the coverage type; e is the indicator function, which is 1 when s is tested and 0 otherwise.
[0080] Identify the failed test case set FTC = {tc|EXEC(tc) = FAIL}, and based on the failed test case set FTC, update the anomaly generation function F and the combined test rule generation function g; if COV<threshold or |FTC|>0, return to the signal characteristic database SDB, redefine the normal operation scenario set, and perform iterative optimization again.
[0081] Furthermore, the communication point table is exported from the substation side and the main station side respectively, the real-time measurement data on both sides are obtained, the point table mapping function is created, and the consistency index is calculated. If the consistency index is < the preset consistency threshold, the point table synchronization process is triggered, otherwise, the point table synchronization process is not triggered, and it is confirmed that the system data consistency meets the expected standard.
[0082] Furthermore, the control quantities are enforced one by one, and the verification command is issued and the alarm is returned, including:
[0083] Specifically, list all controllable quantities in the system, such as switch quantities, analog quantities, etc., and determine the normal working range and limit values of each control quantity; formulate a test plan, including the mandatory value and expected response of each control quantity, ensure the safety of the test environment, and conduct risk assessment when necessary.
[0084] Perform forced operations on each control quantity in turn according to the plan. The forced values should include values within the normal range and limit values beyond the normal range; observe whether the system correctly receives and executes each forced command, record the response time and execution status of the command, monitor whether the system generates corresponding alarms for abnormal forced values, and check the accuracy, timeliness and completeness of the alarm information
[0085] Record the process, results and observed anomalies of each test in detail, analyze the data, and identify potential system defects or improvement points.
[0086] An optional, intuitively designed user interface displays key information and updates the mandatory status of each signal in real time.
[0087] S4: Check the screen to ensure that the various graphic interfaces in the monitoring system can accurately reflect the device status and signal changes, and test the signal shielding function to ensure that when shielding certain signals, the system can process and shield these signals normally to avoid false alarms and misoperation.
[0088] Screen verification includes verification of switch quantities and verification of analog quantities.
[0089] Preferably, the positions of switches, unit status, etc. displayed on the screens of the communication machine on the master station side and the communication machine on the slave station side are compared to see whether they are consistent, and whether the temperature and analog quantity displays are consistent.
[0090] When the signal quality is forced to "bad", the screen display is correct. After the detection is correct, a screenshot is saved.
[0091] Start the signal shielding function on the slave server screen, force the signal point on the virtual host, check whether the point in the slave communication machine database is synchronized, and check whether the point on the master communication machine maintains the original value.
[0092] After checking that everything is correct, exit the signal shielding function and check whether the point on the master station side communication machine is updated.
[0093] S5: After all tests are completed, the system is restored to its initial state and a test report is generated.
[0094] After the uplink signal, picture and downlink signal are checked, the error information is modified and checked; the checking process also includes operations such as sound and light alarms when major problems occur. After confirmation, internal and external communications are carried out.
[0095] Use the in-plant communication machine as the host, restore the original configuration based on the modification record, develop configuration snapshot and recovery tools, and support multiple recovery points.
[0096] Gather all test results and create comprehensive reports using the intelligent reporting system.
[0097] Implement a test result visualization platform that provides interactive data exploration capabilities, hold summary meetings to discuss issues and improvement points during the testing process, implement continuous improvement processes, and regularly evaluate and optimize debugging methods.
[0098] After the test, remote open-loop debugging is carried out with the power grid, and the communication channel is checked to ensure that there are no problems with the remote closed-loop. Then, the remote closed-loop operation test is carried out, and the equipment is debugged offline.
[0099] This embodiment also provides a joint debugging method system of a ladder computer monitoring system, including:
[0100] The network configuration module is used to build a test environment and configure the network; the database synchronization module is used to synchronize the database after the network configuration is completed, so that the database in the test environment is consistent with the main database; the signal verification and remote control test module is used to verify the uplink signal of each device one by one, and perform remote control tests to verify whether the remote control instructions can be accurately issued and correctly executed; the screen verification and signal shielding test module is used to perform screen verification to ensure that various graphical interfaces in the monitoring system can accurately reflect the device status and signal changes, and test the signal shielding function; the report generation module is used to restore the system to the initial state after all tests are completed, and generate a test report.
[0101] This embodiment also provides a computer device, which is suitable for the joint debugging method of the ladder computer monitoring system, including: a memory and a processor; the memory is used to store computer executable instructions, and the processor is used to execute computer executable instructions to implement the joint debugging method of the ladder computer monitoring system proposed in the above embodiment.
[0102] The computer device may be a terminal, and the computer device includes a processor, a memory, a communication interface, a display screen and an input device connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, an operator network, NFC (near field communication) or other technologies. The display screen of the computer device may be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device may be a touch layer covering the display screen, or a key, trackball or touchpad provided on the housing of the computer device, or an external keyboard, touchpad or mouse, etc.
[0103] This embodiment also provides a storage medium on which a computer program is stored. When the program is executed by a processor, the joint debugging method for implementing a ladder computer monitoring system as proposed in the above embodiment is implemented; the storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (Static Random Access Memory, referred to as SRAM), electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, referred to as EEPROM), erasable programmable read-only memory (Erasable Programmable Read Only Memory, referred to as EPROM), programmable read-only memory (Programmable Red-Only Memory, referred to as PROM), read-only memory (Read-Only Memory, referred to as ROM), magnetic storage, flash memory, magnetic disk or optical disk.
[0104] In summary, the present invention automatically controls and modifies the point tables on the substation side and the main station side according to the database description provided by the substation, thereby ensuring the consistency of data on both sides, executing a general call of the database to ensure the consistency of data on the substation side and the main station side, and enhancing the accuracy and real-time performance of data synchronization; and implements a real-time point table synchronization mechanism to ensure continuous consistency of the point tables on both sides, thereby avoiding misoperation and failures caused by data asynchrony; by checking the uplink signal of each device one by one, ensuring the accuracy and consistency of signal transmission, improving the data transmission reliability of the system, realizing comprehensive verification of signal transmission and remote control functions, and ensuring the stable operation of the system; the present invention realizes comprehensive debugging and verification of the ladder computer monitoring system.
[0105] Example 2
[0106] Referring to Table 1, which is the second embodiment of the present invention, in order to further verify the beneficial effects of the present invention, experimental data of the joint debugging method of the ladder computer monitoring system are provided.
[0107] In order to verify the effectiveness of a joint debugging method for ladder computer monitoring system, a systematic experiment was carried out.
[0108] The experimental steps include setting up the test environment and network configuration, database synchronization, checking the uplink signals of the devices one by one, checking the screen, restoring the system to the initial state and generating a test report.
[0109] Before the experiment started, a virtualization platform was first built to simulate the substation host environment. The platform was built using VMware ESXi, and multiple virtual machines were configured to simulate the substation communication server and the main station center offline communication server.
[0110] To ensure the security and reliability of data communication, firewall rules were configured, an intrusion detection system (IDS) was deployed, and Wireshark was used to monitor network traffic. To ensure normal communication, an automated script was developed to regularly check the system connection status and report anomalies.
[0111] After the network configuration was completed, the database was synchronized.
[0112] According to the database description provided by the substation, the point table on the substation side and the main station side is modified using an automated tool: First, the database structure is analyzed and numbered to generate a database structure description set DBSi, and then the fields of each table structure Tn are analyzed to generate a field description set FDn; according to the database description document provided by the substation, a modification instruction set MCk is generated, and each modification instruction Mp is parsed to generate an operation feature description. Based on these operation features, an automated execution script set AESi is generated.
[0113] When executing the database general call operation, the database general call operation set DTRi is defined, and each general call operation Rr is parameterized. The general call operation is executed and the data transmission characteristics are recorded. The consistency evaluation matrix is generated by analyzing the general call results, and the overall consistency index CI is calculated.
[0114] The uplink signals of each device were checked one by one: all signal types that needed to be tested were automatically tested, test cases were automatically generated according to the signal characteristics, and the communication point table and real-time measurement values on the substation side and the main station side were exported and compared; a visual monitoring interface was developed to display the forced status and results in real time, and the control quantities were forced one by one to verify the accuracy of command issuance and alarm return.
[0115] Subsequently, a screen check is performed to ensure that the various graphic interfaces in the monitoring system can accurately reflect the equipment status and signal changes. When the signal quality is forced to "bad", the correctness of the screen display is checked and a screenshot is taken and saved. The signal shielding function is started on the substation server screen, and a signal point is forced on the virtual host. Check whether the point in the substation communication machine database is synchronized, and at the same time check whether the point on the main station side communication machine maintains the original value.
[0116] Finally, the system was restored to its initial state and a test report was generated. The factory communication machine was used as the host to restore the original configuration according to the modification record. Multiple recovery points were supported, all test results were summarized, and a comprehensive report was created using the intelligent report generation system. Some of the experimental data of this experiment are as follows:
[0117] Table 1 Part of the experimental data of the present invention
[0118]
[0119]
[0120] It can be seen from the experimental data that the method of the present invention shows significant advantages in many aspects: for example, during the construction of the virtualization platform and the network configuration stage, the network delay and packet loss rate were maintained between 5-7ms and 0.2%-0.3%, respectively, ensuring low latency and high reliability of communication. This result verifies the effectiveness of using firewall rules and intrusion detection systems, ensuring the security and stability of the test environment.
[0121] In addition, during the database synchronization phase, the data synchronization time is 50-60 seconds, the uplink signal accuracy after database synchronization reaches 99.7%-99.9%, and the remote control command response time is maintained between 150-160ms. Compared with the common synchronization time of more than 100 seconds and 98% signal accuracy in the prior art, the method of the present invention significantly improves synchronization efficiency and data accuracy.
[0122] The use of automated execution scripts and parameterized settings for database call operations ensure real-time synchronization and consistency of data, significantly reducing the complexity and error rate of manual operations.
[0123] 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 preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.
Claims
1. A joint debugging method for a ladder computer monitoring system, characterized in that: include: Build a test environment and configure the network; After the network configuration is completed, database synchronization is performed to make the database in the test environment consistent with the main database; Check the uplink signals of each device one by one and conduct remote control tests to verify whether the remote control commands can be accurately issued and correctly executed; Check the screen to ensure that the various graphic interfaces in the monitoring system can accurately reflect the equipment status and signal changes, and test the signal shielding function; After all tests are completed, the system is restored to its initial state and a test report is generated.
2. The joint debugging method of the ladder computer monitoring system according to claim 1, characterized in that: The database synchronization includes: After the communication link is established, the master station calls the point table, and the slave station sends the point table by category. The master station automatically compares and matches the called measurement point description; For unconventional description points that cannot be matched automatically, a manual matching interface is provided to synchronize the sub-site table description and keywords to the main site database; Execute a general call on the database to ensure that the data on the slave station side and the master station side are consistent; Implement a real-time point-and-meter synchronization mechanism to ensure that the point-and-meters on both sides are continuously consistent.
3. The joint debugging method of the ladder computer monitoring system as claimed in claim 2, characterized in that: The automatic control modification of the substation side and the main station side point table includes the following contents: Analyze and number the database structure of the substation and the main station center to generate a database structure description set, recorded as DB Si ={T1,T2,...,Tn}, where DB Si Represents a set of structural descriptions of any database, i represents the database number, n represents the table structure number, and Tn represents the nth table structure; Perform field analysis on each table structure Tn and generate a field description set, recorded as FD n ={F1,F2,...,Fm}, where FD n Represents a set of field descriptions of any table structure, n represents the table structure number, m represents the field number, and Fm represents the mth field; Generate a set of modification instructions based on the database description document provided by the substation, denoted as MC k ={M1,M2,...,Mp}, where MC k represents the modification instruction set of the k-th database, p represents the modification instruction number, and Mp represents the p-th modification instruction; Each modification instruction Mp is parsed to generate an operation feature description, which is expressed as: Op→AFp:(A,B,C,D), where Op represents the operation type corresponding to the pth modification instruction, AFp represents the operation feature of the pth modification instruction, and A, B, C, and D represent the affected database, table, field, and new value, respectively; According to the operation feature description, a set of automated execution scripts is generated, denoted as AE Si ={S1,S2,...,Sq}, where AE Si represents the set of automated execution scripts for the i-th database, q represents the script number, and Sq represents the q-th execution script.
4. The joint debugging method of the ladder computer monitoring system as claimed in claim 3, characterized in that: The execution database call includes: Define the database total call operation set, denoted as DT Ri ={R1,R2,...,Rr}, where DT Ri represents the total call operation set for the i-th database, r represents the total call operation number, and Rr represents the r-th total call operation; Parameterize each general call operation Rr to generate a general call configuration description, expressed as: Cr→PCr:(a,b,c,d), where Cr represents the configuration of the rth general call operation, PCr represents the parameter characteristics of the configuration, and a, b, c, d represent the general call range, time interval, number of concurrent calls, and timeout settings, respectively; Execute the general call operation and record the data transmission characteristics, which are expressed as: Tr→DTr:(e,f,g,h), where Tr represents the execution timestamp of the rth general call operation, and DTr represents the data transmission characteristics of the general call. e, f, g, and h represent the amount of data transmitted, the transmission rate, the error rate, and the completion degree, respectively. Analyze the results of the general call and generate a consistency assessment matrix; And according to the consistency evaluation matrix, the overall consistency index is calculated.
5. The joint debugging method of the ladder computer monitoring system according to claim 4, characterized in that: The consistency evaluation matrix is: CM ij ={V 11 ,V 12 ,...,V uv }; Among them, CM ij represents the data consistency evaluation matrix of the slave station side i and the master station side j, u and v represent the row and column respectively, V uv represents the consistency evaluation value of the uth row and vth column; The calculation formula of the overall consistency index is: CI=ω1.X+ω2.Y+ω3.Z Among them, ω1, ω2 and ω3 are the weights of the complete consistency rate, partial consistency rate and inconsistency rate respectively; X represents the complete consistency rate, Y represents the partial consistency rate, and Z represents the inconsistency rate.
6. The joint debugging method of the ladder computer monitoring system according to claim 5, characterized in that: The step of checking the uplink signals of each device one by one and performing remote control testing comprises the following steps: Carry out automated testing on various signals, automatically generate test cases based on signal characteristics, and derive and compare the communication point table and real-time measured values on the substation side and the master station side; Develop a visual monitoring interface to display the forced status and results in real time, force the control quantities one by one, verify command issuance and alarm return, implement command execution performance analysis, and optimize command issuance efficiency.
7. The joint debugging method of the ladder computer monitoring system according to claim 6, characterized in that: The comparison of the communication point table includes: Export the communication point table from the substation side and the master station side respectively, obtain the real-time measurement data on both sides, create the point table mapping function, and calculate the consistency index; If the consistency index is less than the preset consistency threshold, the point table synchronization process is triggered; Otherwise, the point-table synchronization process is not triggered, and the system data consistency is confirmed to meet the expected standards.
8. A joint debugging method system for a ladder computer monitoring system, based on the joint debugging method for a ladder computer monitoring system according to any one of claims 1 to 7, characterized in that: include: Network configuration module, used to build the test environment and configure the network; A database synchronization module, used to synchronize the database after the network configuration is completed, so that the database in the test environment is consistent with the main database; The signal verification and remote control test module is used to verify the uplink signal of each device one by one and perform remote control tests to verify whether the remote control commands can be accurately issued and correctly executed; Screen verification and signal shielding test module, used to verify the screen, ensure that various graphic interfaces in the monitoring system can accurately reflect the device status and signal changes, and test the signal shielding function; The report generation module is used to restore the system to its initial state and generate a test report after all tests are completed.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the joint debugging method of the ladder computer monitoring system described in any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the joint debugging method of the ladder computer monitoring system described in any one of claims 1 to 7 are implemented.
