An intelligent gateway protocol analysis system

Through the design of the intelligent gateway specification analysis system, the problem of low accuracy of the intelligent gateway test results is solved, and efficient detection and management of the distribution terminal is realized.

CN115695263BActive Publication Date: 2025-08-19ELECTRIC POWER RES INST CHINA SOUTHERN POWER GRID CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211183055.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-27
Publication Date
2025-08-19
Estimated Expiration
2042-09-27

AI Technical Summary

Technical Problem

When the intelligent gateway tests the distribution terminal, the test results are low, mainly due to the reasons of the regulations themselves.

Method used

An intelligent gateway regulation analysis system is designed, including adaptation module, regulation information acquisition module, regulation confirmation module, regulation analysis module and user management module. Through parameter adaptation, preliminary regulation information acquisition, true regulation confirmation and analysis testing, the accuracy of the test results is ensured.

Benefits of technology

It improves the accuracy of the intelligent gateway's detection results for power distribution terminals, meets the testing requirements of various regulations, and facilitates the rapid search and management of test results in the subsequent rapid search and management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115695263B_ABST
    Figure CN115695263B_ABST
Patent Text Reader

Abstract

The present invention discloses an intelligent gateway protocol analysis system, which is used to solve the technical problem of low test result accuracy when the intelligent gateway tests the power distribution terminal. Before performing protocol testing on the intelligent gateway, the present invention uses an adaptation module to perform parameter adaptation on the intelligent gateway to ensure that the accuracy of the analysis result will not be affected when the protocol analysis is performed subsequently. The protocol confirmation module then further confirms the true protocol information of the intelligent gateway. Based on the true protocol information, the protocol analysis module analyzes and tests the protocol of the intelligent gateway so as to analyze and test the protocol of the intelligent gateway and meet various protocol test requirements. The user management module manages the analysis and test results and the true protocol information to facilitate subsequent rapid search.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of protocol analysis, and in particular to an intelligent gateway protocol analysis system. Background Art

[0002] A distribution network is a power grid that receives electricity from the transmission grid or regional power plants and distributes it locally or step-by-step according to voltage to various users through distribution facilities. It is composed of overhead lines, cables, towers, distribution transformers, disconnectors, VAR compensators, and other ancillary facilities, and plays a key role in distributing electricity within the power grid.

[0003] Currently, large-scale pilot projects are underway to implement distribution network automation systems to enable real-time monitoring and information exchange within distribution networks and support the integration of varying proportions of distributed energy resources. In recent years, with the rapid development of new energy technologies, power distribution technologies, energy efficiency technologies, and information and communications technologies, distribution networks have evolved from simple power networks to integrated smart energy and information systems. However, distribution network construction still faces numerous challenges, including a large equipment inventory, severely insufficient measurement coverage, low levels of facility standardization, unbalanced and insufficient development, and increasingly diverse user needs.

[0004] During the operation of the distribution network, the distribution terminals are generally tested through smart gateways to understand the operating conditions of the distribution terminals. However, when the smart gateways test the distribution terminals, the accuracy of the test results may sometimes be affected due to the protocol itself. Therefore, it is necessary to analyze and test the protocols of the smart gateways. Summary of the Invention

[0005] The present invention provides an intelligent gateway protocol analysis system for solving the technical problem of low accuracy of test results when the intelligent gateway tests a power distribution terminal.

[0006] The present invention provides an intelligent gateway protocol analysis system, comprising:

[0007] Adaptation module, protocol information acquisition module, protocol confirmation module, protocol analysis module and user management module; the adaptation module is in communication with the intelligent gateway and the protocol information acquisition module; the protocol information acquisition module is in communication with the protocol confirmation module; the protocol analysis module is in communication with the intelligent gateway, the protocol confirmation module and the user management module;

[0008] The adaptation module is used to perform parameter adaptation on the intelligent gateway to be tested;

[0009] The protocol information acquisition module is used to obtain preliminary protocol information of the intelligent gateway after the adaptation module completes parameter adaptation;

[0010] The protocol confirmation module is configured to perform a protocol test on the intelligent gateway according to the preliminary protocol information to obtain a test confirmation result, and obtain the real protocol information of the intelligent gateway according to the test confirmation result;

[0011] The protocol analysis module is used to analyze and test the intelligent gateway according to the real protocol information to obtain analysis and test results;

[0012] The user management module is used to manage the real protocol information, the analysis and test results, and the information of the intelligent gateway.

[0013] Optionally, the protocol analysis module includes:

[0014] Main control analysis unit, character test library, format test unit, content test unit, emergency test unit and authority test unit;

[0015] The main control analysis unit is respectively connected to the format test unit, the content test unit, the emergency test unit, the authority test unit, the character test library, the protocol confirmation module, and the user management system;

[0016] The character test library is used to provide test characters;

[0017] The format testing unit is used to perform a message format simulation test on the intelligent gateway;

[0018] The content testing unit is used to perform a message content simulation test on the intelligent gateway;

[0019] The emergency test unit is used to perform an emergency test on the intelligent gateway;

[0020] The authority testing unit is used to perform a confidentiality test on the intelligent gateway.

[0021] Optionally,

[0022] The format test unit includes a frame length setting group, a character sequence configuration group, a character length setting group, a format configuration group and a first test group;

[0023] The input end of the format configuration group is communicatively connected to the main control analysis unit, and the output end of the format configuration group is communicatively connected to the frame length setting group, the character sequence configuration group, and the character length setting group respectively;

[0024] The format configuration group is used to respectively configure the frame length setting group, the character sequence configuration group, and the character length setting group according to the format configuration instruction issued by the main control analysis unit to obtain a target format test message;

[0025] The frame length setting group, the character sequence configuration group, and the character length setting group are all in communication connection with the first test group;

[0026] The first test group is used to perform a message format simulation test on the intelligent gateway according to the target format test message to obtain a format test result, and to feed back the format test result to the user management module; it is also used to send the target format test message to the intelligent gateway to obtain a first feedback message, and compare the first feedback message with the standard feedback message of the intelligent gateway to determine the format test result.

[0027] Optionally,

[0028] The main control analysis unit is further used to send a new format configuration instruction to change the frame length, character sequence, and character length of the target format test message after the first test group completes the test, and obtain the corresponding test results.

[0029] Optionally, the content test unit includes an illegal message request group, an invalid message request group, an error message request group, a normal message request group and a second test group;

[0030] The second test group is in communication with the main control analysis unit and is configured to receive content control instructions;

[0031] The output end of the second test group is respectively connected to the illegal message request group, the invalid message request group, the error message request group, and the normal message request group, for obtaining corresponding target content test messages and testing the intelligent gateway using the target content test messages;

[0032] Among them, the illegal message request group is used to provide illegal request message information; the invalid message request group is used to provide invalid request messages; the error message request group is used to provide error request message information; and the normal message request group is used to provide normal request message information.

[0033] Optionally,

[0034] The emergency test unit is used to initiate at least two emergency events on the intelligent gateway during normal communication of the intelligent gateway to obtain at least two intermediate messages, and after the emergency event ends, send each of the intermediate messages to the intelligent gateway in turn to obtain each interruption feedback information, and compare each of the interruption feedback information with the standard feedback information of the intelligent gateway under normal circumstances to determine the emergency test result.

[0035] Optionally, the permission testing unit includes an access authorization group, a first configuration group, a second configuration group, a user library, and a result comparison group;

[0036] The user database is in communication with the user management module and is used to record registered user information;

[0037] The first configuration group is used to obtain a first access user from the user database;

[0038] The second configuration group is used to obtain a second access user from the user database;

[0039] The access authorization group is respectively connected to the first configuration group and the second configuration group for granting different access rights to the first access user and the second access user and obtaining corresponding access results;

[0040] The result comparison group is in communication with the access authorization group and is used to compare the access results of the first access user and the second access user to perform a permission test.

[0041] Optionally, the adaptation module includes a power source adaptation unit, a standard table adaptation unit and a communication server adaptation unit;

[0042] The power source adaptation unit is used to adapt the power source of the intelligent gateway, the standard meter adaptation unit is used to adapt the three-phase standard meter of the intelligent gateway, and the communication server adaptation unit is used to adapt the communication server of the intelligent gateway.

[0043] Optionally, the protocol confirmation module includes a protocol testing unit, a message information acquisition unit, a format comparison unit and a protocol confirmation unit;

[0044] The protocol testing unit is configured to send a test message to the intelligent gateway according to the preliminary protocol information to obtain a test feedback message;

[0045] The message information acquisition unit is in communication with the protocol testing unit and is configured to acquire format information of the test feedback message;

[0046] The format comparison unit is in communication with the message information acquisition unit and is configured to perform matching in a network protocol library according to the format information to obtain matching protocol information;

[0047] The protocol confirmation unit is in communication with the format comparison unit and is configured to compare the matching protocol information with the preliminary protocol information and, after confirming that the matching protocol information and the preliminary protocol information are consistent, use the preliminary protocol information as the real protocol information.

[0048] Optionally, the user management module includes a cloud recording unit and a report management unit;

[0049] The cloud recording unit is used to establish a correspondence between the relevant information of the intelligent gateway, the analysis and test results, and the real protocol information, and generate a management table according to the correspondence;

[0050] The report management unit is in communication with the cloud recording unit and is configured to generate a report after sorting the management table of each intelligent gateway.

[0051] It can be seen from the above technical solution that the present invention has the following advantages: before performing a protocol test on the intelligent gateway, the present invention performs parameter adaptation on the intelligent gateway to be tested through the adaptation module to ensure that the accuracy of the analysis result will not be affected when the protocol analysis is performed subsequently, and then further confirms the true protocol information of the intelligent gateway through the protocol confirmation module, and based on the true protocol information, analyzes and tests the protocol of the intelligent gateway through the protocol analysis module, so as to analyze and test the protocol of the intelligent gateway and meet various protocol test requirements, and manages the analysis and test results and the true protocol information through the user management module for subsequent quick search. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. 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 paying any creative work.

[0053] Figure 1 A structural block diagram of an intelligent gateway protocol analysis system provided by an embodiment of the present invention;

[0054] Figure 2 A schematic structural diagram of an adapter module provided in an embodiment of the present invention;

[0055] Figure 3 A structural diagram of a format test unit provided by an embodiment of the present invention;

[0056] Figure 4 A schematic structural diagram of a content testing unit provided by an embodiment of the present invention;

[0057] Figure 5 A schematic diagram of the structure of a permission testing unit provided in an embodiment of the present invention;

[0058] Figure 6 A schematic diagram of the structure of a protocol confirmation module provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0059] An embodiment of the present invention provides an intelligent gateway protocol analysis system for solving the technical problem of low accuracy of test results when an intelligent gateway tests a power distribution terminal.

[0060] In order to make the purpose, features, and advantages of the present invention more obvious and easy to understand, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described below are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0061] See also Figure 1 , Figure 1 This is a structural block diagram of an intelligent gateway protocol analysis system provided by an embodiment of the present invention.

[0062] The present invention provides an intelligent gateway protocol analysis system, comprising:

[0063] Adaptation module 1, protocol information acquisition module 2, protocol confirmation module 3, protocol analysis module 4 and user management module 5; adaptation module 1 is in communication with the intelligent gateway and protocol information acquisition module 2; protocol information acquisition module 2 is in communication with the protocol confirmation module 3; protocol analysis module 4 is in communication with the intelligent gateway, protocol confirmation module 3 and user management module 5;

[0064] Adaptation module 1, used to perform parameter adaptation on the smart gateway to be tested;

[0065] The protocol information acquisition module 2 is used to obtain the preliminary protocol information of the intelligent gateway after the adaptation module 1 completes the parameter adaptation;

[0066] The protocol confirmation module 3 is used to perform a protocol test on the intelligent gateway according to the preliminary protocol information to obtain a test confirmation result, and obtain the real protocol information of the intelligent gateway according to the test confirmation result;

[0067] The protocol analysis module 4 is used to analyze and test the intelligent gateway according to the real protocol information to obtain the analysis and test results;

[0068] The user management module 5 is used to manage the real protocol information, analysis test results and information of the intelligent gateway.

[0069] In this embodiment of the present invention, when a protocol test is required for an intelligent gateway, adaptation module 1 first performs parameter adaptation on the intelligent gateway, ensuring that subsequent test results do not affect the accuracy of protocol analysis results due to parameter issues. Protocol information acquisition module 2 and protocol confirmation module 3 then further confirm the actual protocol information of the current intelligent gateway, facilitating subsequent testing by protocol analysis module 4. This allows the intelligent gateway to obtain the current protocol status and improves the accuracy of subsequent intelligent gateway detection results for distribution terminals.

[0070] See also Figure 2 , Figure 2 A schematic structural diagram of an adaptation module provided in an embodiment of the present invention.

[0071] In the embodiment of the present invention, the adaptation module 1 includes a power source adaptation unit 11, a standard table adaptation unit 12 and a communication server adaptation unit 13;

[0072] The power source adaptation unit 11 is used to adapt the power source of the intelligent gateway, the standard meter adaptation unit 12 is used to adapt the three-phase standard meter of the intelligent gateway, and the communication server adaptation unit 13 is used to adapt the communication server of the intelligent gateway.

[0073] In the specific implementation, before the protocol analysis test is performed on the smart gateway, the power source of the smart gateway is adapted by the power source adaptation unit 11 to provide a suitable power source. At the same time, the standard meter adaptation unit 12 adapts the three-phase standard meter of the smart gateway so that the parameters of subsequent detection meet the standard requirements, and the communication server adaptation unit 13 adapts the communication server of the smart gateway to avoid affecting the detection results due to the incompatibility of the communication server.

[0074] After the parameter adaptation of the intelligent gateway is completed, the preliminary protocol information of the current intelligent gateway is obtained through the protocol information acquisition module 2, and the real protocol information of the intelligent gateway is obtained after confirmation through the protocol confirmation module 3, so as to facilitate the subsequent protocol analysis and detection of the intelligent gateway based on the real protocol information. The detection content includes format detection, content test, emergency test and authority test, so as to determine whether the protocol of the current intelligent gateway is normal according to the current test content.

[0075] In this embodiment of the present invention, the protocol analysis module 4 includes:

[0076] Main control analysis unit 41, character test library 42, format test unit 43, content test unit 44, emergency test unit 45 and authority test unit 46;

[0077] The main control analysis unit 41 is respectively connected to the format test unit 43, the content test unit 44, the emergency test unit 45, the authority test unit 46, the character test library 42, the protocol confirmation module 3, and the user management system 5;

[0078] The character test library 42 is used to provide test characters;

[0079] The format testing unit 43 is used to perform a message format simulation test on the intelligent gateway;

[0080] The content testing unit 44 is used to perform message content simulation testing on the intelligent gateway;

[0081] The emergency test unit 45 is used to perform emergency test on the intelligent gateway;

[0082] The authority testing unit 46 is used to perform a confidentiality test on the intelligent gateway.

[0083] In an embodiment of the present invention, when a protocol test is required for an intelligent gateway, the adaptation module 1 first performs parameter adaptation on the intelligent gateway, so that subsequent test results will not be affected by parameter issues and the accuracy of the protocol analysis test results. The protocol information acquisition module 2 and the protocol confirmation module 3 then further confirm the actual protocol information of the current intelligent gateway, allowing the protocol analysis module 4 to perform various tests through the format test unit 43, content test unit 44, emergency test unit 45, and permission test unit 46, respectively, to obtain the current protocol status of the intelligent gateway and improve the accuracy of subsequent intelligent gateway detection results for distribution terminals.

[0084] See also Figure 3 , Figure 3 A structural diagram of a format testing unit provided by an embodiment of the present invention.

[0085] In the embodiment of the present invention, the format test unit 43 includes a frame length setting group 431, a character sequence configuration group 432, a character length setting group 433, a format configuration group 434 and a first test group 435;

[0086] The input end of the format configuration group 434 is communicatively connected to the main control analysis unit 41, and the output end of the format configuration group 434 is communicatively connected to the frame length setting group 431, the character sequence configuration group 432, and the character length setting group 433 respectively;

[0087] The format configuration group 434 is used to configure the frame length setting group 431, the character sequence configuration group 432, and the character length setting group 433 according to the format configuration instruction issued by the main control analysis unit 41 to obtain a target format test message;

[0088] The frame length setting group 431, the character sequence configuration group 432, and the character length setting group 433 are all in communication connection with the first test group 435;

[0089] The first test 435 group is used to perform a message format simulation test on the intelligent gateway according to the target format test message to obtain a format test result, and feed back the format test result to the user management module 5; it is also used to send the target format test message to the intelligent gateway to obtain a first feedback message, and compare the first feedback message with the standard feedback message of the intelligent gateway to determine the format test result.

[0090] In a specific implementation, when performing a format test on an intelligent gateway, the main control analysis unit 41 first generates a corresponding format configuration instruction to be sent to the format configuration group 434. The format configuration group 434 configures the frame length setting group 431, the character order configuration group 432, and the character length setting group 433 according to the format configuration instruction to complete the configuration of the frame length, character order, and character length. After obtaining the corresponding configuration format, the target format test message can be obtained in the character test library 42. Then, the first test group 435 sends the target format test message to the intelligent gateway and obtains the reply information of the intelligent gateway. By judging whether the intelligent gateway replies normally to determine whether the current target format test message meets the requirements, the message format test of the intelligent gateway can be completed. The first test group 435 sends the target format test message to the intelligent gateway to obtain a first feedback message, and compares the first feedback message with the standard feedback message of the intelligent gateway to determine the format test result. The message format test of the intelligent gateway can be completed through the above comparison process. When the first feedback message of the target format test message is the same as the standard feedback message format, it means that the current target format test message format is correct, and the message format corresponding to the current smart gateway protocol can be obtained.

[0091] Furthermore, in an embodiment of the present invention, the main control analysis unit 41 is also used to send a new format configuration instruction to change the frame length, character order, and character length of the target format test message after the first test group 435 completes the test, and obtain the corresponding test results.

[0092] In a specific implementation, after the first test group 435 completes the test, the main control analysis unit 41 sends a new format configuration instruction to sequentially change the frame length, character sequence, and character length of the target format test message, and obtains the corresponding test results.

[0093] In the above process, in order to further test the message format of the intelligent gateway, the main control analysis unit 41 generates different format configuration instructions to obtain different target format test messages, and thus uses different target format test messages to perform message format testing on the intelligent gateway. By obtaining feedback information from the intelligent gateway to obtain the test results of the intelligent gateway for messages of different formats, the accuracy of the message format test results can be improved.

[0094] Because the same protocol may have more than one message format, after determining a message format for the smart gateway, the smart gateway is tested by generating different format configuration instructions to generate messages of different formats, thereby meeting the message format testing requirements of different protocols. For example, CDT protocol messages typically consist of synchronization words, control words, and information words, each of which includes a different number of bytes. The IEC101 protocol has three message formats: single character, fixed frame length, and variable frame length.

[0095] See also Figure 4 , Figure 4 A structural diagram of a content testing unit provided by an embodiment of the present invention.

[0096] In the embodiment of the present invention, the content test unit 44 includes an illegal message request group 441, an invalid message request group 442, an error message request group 443, a normal message request group 444 and a second test group 445;

[0097] The second test group 445 is in communication with the main control analysis unit 41 and is used to receive content control instructions;

[0098] The output end of the second test group 445 is respectively connected to the illegal message request group 441, the invalid message request group 442, the error message request group 443, and the normal message request group 444, for obtaining the corresponding target content test message and using the target content test message to test the intelligent gateway;

[0099] Among them, the illegal message request group 441 is used to provide illegal request message information; the invalid message request group 442 is used to provide invalid request messages; the error message request group 443 is used to provide error request message information; and the normal message request group 444 is used to provide normal request message information.

[0100] In a specific implementation, in order to perform content testing on the protocol of the intelligent gateway, a content control instruction is generated by the main control analysis unit 41 and sent to the second test group 445, so that the second test group 445 obtains the illegal request message, invalid request message, error request message and normal request message corresponding to the communication connection of the illegal message request group 441, the invalid message request group 442, the error message request group 443 and the normal message request group 444 respectively, and selects one of them as the target content test message to test the intelligent gateway. By obtaining the feedback information of the intelligent gateway on different target content test messages, it is determined whether the intelligent gateway can identify messages with abnormal content, thereby completing the message content test.

[0101] Specifically, when any one of the illegal request message, invalid request message, and error request message is selected as the target content test message to be sent to the intelligent gateway, the second test group 445 obtains the feedback information of the intelligent gateway. If the feedback information of the intelligent gateway is wrong or cannot be processed, it indicates that the current protocol of the intelligent gateway is normal, otherwise there is a problem with the protocol of the intelligent gateway; similarly, if a normal request message is sent to the intelligent gateway as the target content test message for testing, and the intelligent gateway gives normal feedback, it indicates that the current protocol is normal, otherwise there is a problem with the protocol of the intelligent gateway, and the entire detection process is completed.

[0102] In an embodiment of the present invention, the emergency test unit 45 is used to initiate at least two emergency events on the intelligent gateway during normal communication of the intelligent gateway to obtain at least two intermediate messages, and after the emergency event ends, send each intermediate message to the intelligent gateway in turn to obtain each interruption feedback information, and compare each interruption feedback information with the standard feedback information of the intelligent gateway under normal circumstances to determine the emergency test result.

[0103] In a specific implementation, in order to test the response of the intelligent gateway to an emergency, at least two emergency events are triggered during the transmission of the same normal message by the intelligent gateway, and at least two corresponding intermediate messages are obtained. After the emergency ends, each intermediate message is sent to the intelligent gateway to obtain at least two interruption feedback messages. By comparing the differences between the interruption feedback messages and the differences with the standard feedback information of the intelligent gateway when corresponding to the normal message, it is determined whether the intelligent gateway has a protocol abnormality. When the interruption feedback information is the same as the standard feedback information, it indicates that the current intelligent gateway protocol is normal. When multiple interruption feedback messages are the same but different from the standard feedback information, it indicates that there is a local abnormality in the communication process of the current intelligent gateway protocol. When multiple interruption feedback messages are different from each other and different from the standard feedback information, it indicates that there is a serious abnormality in the communication process of the current intelligent gateway protocol.

[0104] See also Figure 5 , Figure 5 A schematic diagram of the structure of a permission testing unit provided by an embodiment of the present invention.

[0105] In the embodiment of the present invention, the permission testing unit 46 includes an access authorization group 461, a first configuration group 462, a second configuration group 463, a user library 464 and a result comparison group 465;

[0106] The user database 464 is in communication with the user management module 5 and is used to record registered user information;

[0107] A first configuration group 462 is used to obtain a first access user in a user library 464;

[0108] The second configuration group 463 is used to obtain a second access user in the user library 464;

[0109] The access authorization group 461 is in communication with the first configuration group 462 and the second configuration group 463, respectively, and is used to grant different access rights to the first access user and the second access user and obtain corresponding access results;

[0110] The result comparison group 465 is in communication with the access authorization group and is used to compare the access results of the first access user and the second access user to perform an authority test.

[0111] In a specific implementation, the permission test unit 46 performs a permission test on the protocol of the intelligent gateway to determine whether the permission management of the current intelligent gateway is reasonable. Specifically, during the test, the first configuration group 462 and the second configuration group 463 respectively call different user information in the user library 464, respectively recording them as the first access user and the second access user, and the access authorization group 461 grants different first access rights and second access rights to the first access user and the second access user, respectively, where the first access right is higher than the second access right. Then, the first access user and the second access user respectively access the target content of the intelligent gateway to obtain different access results, where the access right corresponding to the target content access is the first access right. Then, the result comparison group 465 obtains the access results of the first access user and the second access user and compares them. When the access result of the first access user is normal and the access result of the second access user is abnormal, the protocol permission test of the current intelligent gateway is normal; and when the access results of the first access user and the second access user are both normal or both abnormal, the protocol permission test of the intelligent gateway is abnormal.

[0112] See also Figure 6 , Figure 6 A schematic diagram of the structure of a protocol confirmation module provided by an embodiment of the present invention.

[0113] In the embodiment of the present invention, the protocol confirmation module 3 includes a protocol testing unit 31, a message information acquisition unit 32, a format comparison unit 33 and a protocol confirmation unit 34;

[0114] The protocol testing unit 31 is configured to send a test message to the intelligent gateway according to the preliminary protocol information to obtain a test feedback message;

[0115] The message information acquisition unit 32 is in communication with the protocol testing unit 31 and is used to obtain the format information of the test feedback message;

[0116] The format comparison unit 33 is in communication with the message information acquisition unit 32 and is used to match the format information in the network protocol library to obtain matching protocol information;

[0117] The protocol confirmation unit 34 is in communication with the format comparison unit 33 and is configured to compare the matching protocol information with the preliminary protocol information and, after confirming that the matching protocol information and the preliminary protocol information are consistent, use the preliminary protocol information as the real protocol information.

[0118] In a specific implementation, after the protocol information acquisition module 2 obtains the preliminary protocol information of the intelligent gateway, in order to further confirm the protocol, the protocol confirmation module 3 performs protocol confirmation. First, the protocol testing unit 31 determines the corresponding message format based on the preliminary protocol information, and sends the test message of the corresponding message format to the intelligent gateway to obtain a test feedback message. After that, the message information acquisition unit 32 obtains the format information of the test feedback message. The format comparison unit 33 matches the format information obtained by the message information acquisition unit 32 in the network protocol library to obtain the matching protocol information corresponding to the format of the test feedback message. After that, the protocol confirmation unit 34 compares the matching protocol information with the preliminary protocol information. If the two are the same, the preliminary protocol information is used as the real protocol information. If the two are different, the test is repeated or the matching protocol information is used as the real protocol information, thereby effectively ensuring the accuracy of the final obtained protocol information.

[0119] In the embodiment of the present invention, the user management module 5 includes a cloud recording unit 51 and a report management unit 52;

[0120] The cloud recording unit 51 is used to establish a correspondence between the relevant information of the intelligent gateway, the analysis and test results, and the real protocol information, and generate a management table based on the correspondence;

[0121] The report management unit 52 is in communication with the cloud recording unit 51 and is used to generate a report after sorting the management table of each intelligent gateway.

[0122] In the specific implementation, after the test is completed, the cloud recording unit 51 establishes a correspondence between the relevant information of the smart gateway, the results of various analysis tests and the actual protocol information, and generates a management table to record them for subsequent search. After the entire system completes the test on multiple smart gateways, the report management unit 52 generates a report for the management table of the smart gateway to accurately understand the test status of each smart gateway.

[0123] Before performing a protocol test on an intelligent gateway, the present invention performs parameter adaptation on the intelligent gateway to be tested through an adaptation module to ensure that the accuracy of the analysis result will not be affected when the protocol analysis is performed subsequently. Thereafter, the true protocol information of the intelligent gateway is further confirmed through the protocol confirmation module. Based on the true protocol information, the protocol analysis module analyzes and tests the protocol of the intelligent gateway so as to analyze and test the protocol of the intelligent gateway and meet various protocol test requirements. The user management module manages the analysis and test results and the true protocol information for subsequent quick search.

[0124] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0125] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0126] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, apparatus, or computer program products. Thus, embodiments of the present invention may take the form of a fully hardware embodiment, a fully software embodiment, or an embodiment combining software and hardware. Furthermore, embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0127] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0128] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.

[0129] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 a process or multiple processes and / or boxes Figure 1 The steps for the function specified in one or more boxes.

[0130] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they are aware of the basic creative concepts. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.

[0131] Finally, it should be noted that, in this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or terminal device that includes a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or terminal device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article, or terminal device that includes the element.

[0132] As described above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that the technical solutions described in the above embodiments can still be modified, or some of the technical features thereof can be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. An intelligent gateway protocol analysis system, characterized in that: include: Adaptation module, protocol information acquisition module, protocol confirmation module, protocol analysis module and user management module; The adaptation module is in communication with the intelligent gateway and the protocol information acquisition module; the protocol information acquisition module is in communication with the protocol confirmation module; the protocol analysis module is in communication with the intelligent gateway, the protocol confirmation module and the user management module; The adaptation module is used to perform parameter adaptation on the intelligent gateway to be tested; The protocol information acquisition module is used to obtain preliminary protocol information of the intelligent gateway after the adaptation module completes parameter adaptation; The protocol confirmation module is configured to perform a protocol test on the intelligent gateway according to the preliminary protocol information to obtain a test confirmation result, and obtain the real protocol information of the intelligent gateway according to the test confirmation result; The protocol analysis module is used to analyze and test the intelligent gateway according to the real protocol information to obtain analysis and test results; The user management module is used to manage the real protocol information, the analysis and test results, and the information of the smart gateway; Wherein, the adaptation module includes a power source adaptation unit, a standard table adaptation unit and a communication server adaptation unit; The power source adaptation unit is used to adapt the power source of the intelligent gateway, the standard meter adaptation unit is used to adapt the three-phase standard meter of the intelligent gateway, and the communication server adaptation unit is used to adapt the communication server of the intelligent gateway; The protocol confirmation module includes a protocol testing unit, a message information acquisition unit, a format comparison unit and a protocol confirmation unit; The protocol testing unit is configured to send a test message to the intelligent gateway according to the preliminary protocol information to obtain a test feedback message; The message information acquisition unit is in communication with the protocol testing unit and is configured to acquire format information of the test feedback message; The format comparison unit is in communication with the message information acquisition unit and is configured to perform matching in a network protocol library according to the format information to obtain matching protocol information; The protocol confirmation unit is in communication with the format comparison unit and is configured to compare the matching protocol information with the preliminary protocol information and, after confirming that the matching protocol information and the preliminary protocol information are consistent, use the preliminary protocol information as the real protocol information.

2. The intelligent gateway protocol analysis system according to claim 1, characterized in that: The protocol analysis module includes: Main control analysis unit, character test library, format test unit, content test unit, emergency test unit and authority test unit; The main control analysis unit is respectively connected to the format test unit, the content test unit, the emergency test unit, the authority test unit, the character test library, the protocol confirmation module, and the user management module; The character test library is used to provide test characters; The format testing unit is used to perform a message format simulation test on the intelligent gateway; The content testing unit is used to perform a message content simulation test on the intelligent gateway; The emergency test unit is used to perform an emergency test on the intelligent gateway; The authority testing unit is used to perform a confidentiality test on the intelligent gateway.

3. The intelligent gateway protocol analysis system according to claim 2, characterized in that: The format test unit includes a frame length setting group, a character sequence configuration group, a character length setting group, a format configuration group and a first test group; The input end of the format configuration group is communicatively connected to the main control analysis unit, and the output end of the format configuration group is communicatively connected to the frame length setting group, the character sequence configuration group, and the character length setting group respectively; The format configuration group is used to respectively configure the frame length setting group, the character sequence configuration group, and the character length setting group according to the format configuration instruction issued by the main control analysis unit to obtain a target format test message; The frame length setting group, the character sequence configuration group, and the character length setting group are all in communication connection with the first test group; The first test group is used to perform a message format simulation test on the intelligent gateway according to the target format test message to obtain a format test result, and feed the format test result back to the user management module; A message format simulation test is performed on the intelligent gateway according to the target format test message to obtain a format test result, including sending the target format test message to the intelligent gateway to obtain a first feedback message, and comparing the first feedback message with the standard feedback message of the intelligent gateway to determine the format test result.

4. The intelligent gateway protocol analysis system according to claim 3, characterized in that: The main control analysis unit is further used to send a new format configuration instruction to change the frame length, character sequence, and character length of the target format test message after the first test group completes the test, and obtain the corresponding test results.

5. The intelligent gateway protocol analysis system according to claim 2, characterized in that: The content test unit includes an illegal message request group, an invalid message request group, an error message request group, a normal message request group and a second test group; The second test group is in communication with the main control analysis unit and is configured to receive content control instructions; The output end of the second test group is respectively connected to the illegal message request group, the invalid message request group, the error message request group, and the normal message request group, for obtaining corresponding target content test messages and testing the intelligent gateway using the target content test messages; Among them, the illegal message request group is used to provide illegal request message information; the invalid message request group is used to provide invalid request messages; the error message request group is used to provide error request message information; and the normal message request group is used to provide normal request message information.

6. The intelligent gateway protocol analysis system according to claim 2, characterized in that: The emergency test unit is used to initiate at least two emergency events on the intelligent gateway during normal communication of the intelligent gateway to obtain at least two intermediate messages, and after the emergency event ends, send each of the intermediate messages to the intelligent gateway in turn to obtain each interruption feedback information, and compare each of the interruption feedback information with the standard feedback information of the intelligent gateway under normal circumstances to determine the emergency test result.

7. The intelligent gateway protocol analysis system according to claim 2, characterized in that: The permission testing unit includes an access authorization group, a first configuration group, a second configuration group, a user library and a result comparison group; The user database is in communication with the user management module and is used to record registered user information; The first configuration group is used to obtain a first access user from the user database; The second configuration group is used to obtain a second access user from the user database; The access authorization group is respectively connected to the first configuration group and the second configuration group for granting different access rights to the first access user and the second access user and obtaining corresponding access results; The result comparison group is in communication with the access authorization group and is used to compare the access results of the first access user and the second access user to perform a permission test.

8. The intelligent gateway protocol analysis system according to claim 1, characterized in that: The user management module includes a cloud recording unit and a report management unit; The cloud recording unit is used to establish a correspondence between the relevant information of the intelligent gateway, the analysis and test results, and the real protocol information, and generate a management table according to the correspondence; The report management unit is in communication with the cloud recording unit and is configured to generate a report after sorting the management table of each intelligent gateway.

Citation Information

Patent Citations

  • Method for testing communication protocols of power distribution network equipment

    CN103730959A

  • Charging equipment communication protocol consistency testing device and method of electric automobile

    CN106100935A