An intelligent gateway test system

The design of the intelligent gateway testing system solves the problems of low testing efficiency and inaccurate results caused by the inconsistency between the power distribution terminal and the intelligent gateway protocol. It achieves consistent protocol configuration between the power distribution terminal and the intelligent gateway, thereby improving testing efficiency and accuracy.

CN115695262BActive Publication Date: 2026-02-03ELECTRIC POWER RES INST CHINA SOUTHERN POWER GRID CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202211183053.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-27
Publication Date
2026-02-03
Estimated Expiration
2042-09-27

AI Technical Summary

Technical Problem

In existing technologies, inconsistencies in the protocols between power distribution terminals and smart gateways lead to problems such as low testing efficiency and inaccurate test results.

Method used

A smart gateway testing system was designed, including a protocol information acquisition module, a communication protocol test library module, a test matching module, a protocol configuration module, a main control test module, a protocol test module, and a target configuration module. Through the collaborative work of these modules, the protocol consistency configuration of the power distribution terminal and the smart gateway is achieved, thereby improving testing efficiency and accuracy.

Benefits of technology

This ensures consistency between the power distribution terminal and the smart gateway protocols, improving the accuracy and efficiency of subsequent test results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115695262B_ABST
    Figure CN115695262B_ABST
Patent Text Reader

Abstract

The application discloses a kind of intelligent gateway test systems.The application includes: protocol information acquisition module, for obtaining protocol information;Communication protocol test library module, for providing communication protocol test case;Test matching module, for obtaining target communication protocol test case according to protocol information matching;Protocol configuration module, for configuring protocol to intelligent gateway according to target communication protocol;Master control test module, for receiving test instruction, generates case message information after executing target communication protocol test case;Protocol test module, for receiving case message information, test verification is carried out according to case message information and obtains data return message;Feedback module, for sending data return message to master control test module;Target configuration module, for confirming or reconfiguring the protocol of intelligent gateway.The application effectively improves the test efficiency and test result accuracy of intelligent gateway to power distribution terminal through protocol consistency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of power distribution network testing technology, and in particular to a smart gateway testing system. Background Technology

[0002] A distribution network refers to a power grid that receives electrical energy from the transmission network or regional power plants and distributes it locally or in stages according to voltage to various users through distribution facilities. It consists of overhead lines, cables, poles, distribution transformers, disconnect switches, reactive power compensators, and some auxiliary facilities, and plays an important role in distributing electrical energy within the power grid.

[0003] To achieve real-time monitoring and information exchange in the distribution network and support the integration of distributed energy sources with varying proportions, large-scale pilot projects for distribution automation systems are being conducted. In recent years, with the rapid development of new energy technologies, distribution technologies, energy efficiency technologies, and information and communication technologies, the distribution network has evolved from a simple power grid towards intelligent energy information integration. However, distribution network construction still faces numerous challenges, including a large total number of devices, severely insufficient measurement coverage, low equipment standardization, unbalanced and insufficient development, and increasingly diversified user needs.

[0004] During the operation of a power distribution network, the distribution terminals are typically tested through smart gateways to understand their operational status. However, different communication protocols are sometimes used between the distribution terminals and the smart gateways used for testing. In such cases, testing may affect the accuracy of the final test results and also reduce testing efficiency. Summary of the Invention

[0005] This invention provides a smart gateway testing system that solves the technical problems of low testing efficiency and inaccurate test results caused by inconsistencies between the power distribution terminal and the smart gateway protocol in the prior art.

[0006] This invention provides a smart gateway testing system, comprising:

[0007] The module includes a protocol information acquisition module, a communication protocol test library module, a test matching module, a protocol configuration module, a main control test module, a protocol test module, a feedback module, and a target configuration module.

[0008] The protocol information acquisition module is electrically connected to the power distribution terminal under test and communicatively connected to the test matching module; the test matching module is communicatively connected to the communication protocol test library module, the protocol configuration module, and the main control test module; the protocol configuration module is communicatively connected to the power distribution terminal, the main control test module, and the smart gateway; the main control test module is communicatively connected to the target configuration module, the feedback module, and the protocol test module; the protocol test module is communicatively connected to the feedback module and the smart gateway; the feedback module is communicatively connected to the target configuration module; and the target configuration module is communicatively connected to the smart gateway.

[0009] The protocol information acquisition module is used to acquire the protocol information of the power distribution terminal under test;

[0010] The communication protocol test library module is used to provide test cases for different types of communication protocols;

[0011] The test matching module is used to match a target communication protocol test case in the communication protocol test library module according to the protocol information, and send test instructions according to the target communication protocol test case;

[0012] The protocol configuration module is used to determine the target communication protocol based on the target communication protocol test case, and to configure the smart gateway according to the target communication protocol.

[0013] The main control test module is used to receive the test command after the protocol configuration module completes the configuration, and execute the target communication protocol test case according to the test command to generate test case message information.

[0014] The protocol testing module is used to receive the case message information sent by the main control testing module, perform testing and verification on the smart gateway according to the case message information, and obtain a data return message;

[0015] The feedback module is used to send the data return message to the main control test module and receive the verification result returned by the main control test module after verifying the data return message;

[0016] The target configuration module is used to confirm or reconfigure the protocol of the smart gateway based on the target configuration information corresponding to the verification result.

[0017] Optionally, the specification testing module includes: a message management unit, a message execution unit, and a message feedback unit; the message execution unit is connected to the message management unit and the message feedback unit.

[0018] The message management unit is used to review and manage the input case message information, and send the case message information to the message execution unit after the case message information has passed the review.

[0019] The message execution unit is used to execute the case message information and generate an execution result;

[0020] The message feedback unit is used to generate the data return message based on the execution result.

[0021] Optionally, the message management unit is specifically used to perform input and format input review management on the case message information; when the case message information is a character input other than hexadecimal, or when the format of the case message information is incorrect or incomplete, it is determined that the case message information fails the review, a retransmission message is generated and sent to the main control test module to notify the main control test module to generate new case message information.

[0022] Optionally, the protocol configuration module includes: a configuration unit, an information confirmation unit, a first parsing unit, and a second parsing unit;

[0023] The configuration unit is electrically connected to the information confirmation unit; the information confirmation unit is communicatively connected to the first parsing unit and the second parsing unit respectively; the first parsing unit and the second parsing unit are electrically connected to the power distribution terminal under test;

[0024] The first parsing unit is used to perform fixed frame parsing on the power distribution terminal under test to determine the frame transmission direction;

[0025] The second parsing unit is used to perform variable frame analysis on the power distribution terminal under test to obtain link user data;

[0026] The information confirmation unit is used to send confirmation information to the configuration unit after determining that the frame transmission direction and the link user data are correct, so as to notify the configuration unit to perform protocol configuration on the smart gateway according to the target communication protocol.

[0027] Optionally, it also includes:

[0028] The protocol analysis module is communicatively connected to the target configuration module and the smart gateway;

[0029] The protocol analysis module is used to parse the online message information transmitted during the smart gateway detection process after the target configuration module completes the protocol configuration.

[0030] Optionally, the protocol analysis module is specifically used to complete the parsing of each frame of online message information by displaying the overall interpretation of the online message information, each type of character in the online message information, and the corresponding protocol interpretation in an independent window.

[0031] Optionally, the target configuration module includes: a configuration log unit, a protocol adjustment unit, a comparison unit, and a reconfiguration unit;

[0032] The configuration log unit is communicatively connected to the protocol adjustment unit;

[0033] The configuration log unit is used to record the historical protocol configuration information and current protocol configuration information of the smart gateway.

[0034] The protocol adjustment unit is used to adjust the protocol of the smart gateway according to the historical protocol configuration information.

[0035] The reconfiguration unit is used to reconfigure the protocol of the smart gateway;

[0036] The comparison unit is used to compare the target configuration information corresponding to the test result with the historical protocol configuration information and the current protocol configuration information to obtain the difference amount, and select the protocol adjustment unit or the reconfiguration unit to configure the protocol of the smart gateway according to the magnitude of the difference amount.

[0037] Optionally, the comparison unit is specifically configured to: when the difference is greater than a preset threshold, send a first signal to the reconfiguration unit, so that the reconfiguration unit, after starting based on the first signal, reconfigures the protocol of the smart gateway according to the target configuration information; and when the difference is less than the preset threshold, send a second signal to the protocol adjustment unit, so that the protocol adjustment unit, after starting based on the second signal, selects and filters protocol configuration information from the historical protocol configuration information and the current protocol configuration information, imports it into the smart gateway for preliminary configuration, and then adjusts the protocol of the smart gateway according to the target configuration information to complete the protocol configuration.

[0038] Optionally, the protocol configured by the target configuration module includes any one of the following: COAP protocol, Modbus protocol, MQTT protocol, CDT protocol, and 103 serial communication protocol.

[0039] Optionally, it also includes: a verification test module that is communicatively connected to the target configuration module and the smart gateway;

[0040] The verification test module is used to test the protocol of the smart gateway after the target configuration module has completed the configuration; the test includes at least one of the following: transmit / receive test, data transmission channel test, and application function test.

[0041] As can be seen from the above technical solution, the present invention has the following advantages: After the protocol information acquisition module obtains the protocol information of the power distribution terminal under test, the test matching module matches the target communication protocol test case in the communication protocol test library according to the protocol information, and sends the test command according to the target communication protocol test case; then the protocol configuration module determines the target communication protocol according to the target communication protocol test case, and configures the smart gateway according to the target communication protocol; then the main control test module receives the test command, executes the target communication protocol test case according to the test command and generates case message information; and the protocol test module tests and verifies the case message information and obtains the data return message until the main control test module determines that the data return message verification is successful. Then, the target configuration module confirms or reconfigures the protocol of the smart gateway, thereby completing the protocol configuration of the smart gateway according to the power distribution terminal, thereby achieving protocol consistency between the power distribution terminal and the smart gateway, so as to improve the accuracy and efficiency of the subsequent test results of the smart gateway on the power distribution terminal. Attached Figure Description

[0042] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0043] Figure 1 This is a schematic diagram of the structure of an intelligent gateway testing system provided in an embodiment of the present invention;

[0044] Figure 2 This is a schematic diagram of the structure of the specification test module provided in an embodiment of the present invention;

[0045] Figure 3 This is a schematic diagram of the structure of a specification configuration module provided in an embodiment of the present invention;

[0046] Figure 4 This is a schematic diagram of the structure of the target configuration module provided in an embodiment of the present invention. Detailed Implementation

[0047] This invention provides a smart gateway testing system that solves the technical problems of low testing efficiency and inaccurate test results caused by inconsistencies between the power distribution terminal and the smart gateway protocol in the prior art.

[0048] To make the objectives, features, and advantages of this invention more apparent and understandable, the technical solutions of the embodiments of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the embodiments described below are only some embodiments of this invention, and not all embodiments. Based on the embodiments of this invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this invention.

[0049] Please see Figure 1 , Figure 1 This is a schematic diagram of the structure of an intelligent gateway testing system provided in an embodiment of the present invention.

[0050] The present invention provides a smart gateway testing system, which may specifically include:

[0051] The module includes: protocol information acquisition module 10, communication protocol test library module 20, test matching module 30, protocol configuration module 40, main control test module 50, protocol test module 60, feedback module 70, and target configuration module 80.

[0052] The protocol information acquisition module 10 is electrically connected to the power distribution terminal under test and communicatively connected to the test matching module 30; the test matching module 30 is communicatively connected to the communication protocol test library module 20, the protocol configuration module 40, and the main control test module 50; the protocol configuration module 60 is communicatively connected to the power distribution terminal, the main control test module 50, and the smart gateway; the main control test module 50 is communicatively connected to the target configuration module 80, the feedback module 70, and the protocol test module 60; the protocol test module 60 is communicatively connected to the feedback module 70 and the smart gateway; the feedback module 70 is communicatively connected to the target configuration module 80; and the target configuration module 80 is communicatively connected to the smart gateway.

[0053] The protocol information acquisition module 10 is used to acquire the protocol information of the power distribution terminal under test;

[0054] Communication Protocol Test Library Module 20 provides test cases for different types of communication protocols;

[0055] The test matching module 30 is used to match the target communication protocol test case in the communication protocol test library module 20 according to the protocol information, and send test instructions according to the target communication protocol test case;

[0056] The protocol configuration module 40 is used to determine the target communication protocol based on the target communication protocol test case, and to configure the smart gateway according to the target communication protocol.

[0057] The main control test module 50 is used to receive test instructions after the protocol configuration module 40 has completed the configuration, and to execute the target communication protocol test case according to the test instructions and generate case message information.

[0058] The protocol test module 60 is used to receive case message information sent by the main control test module 50, perform test verification on the smart gateway based on the case message information, and obtain data return messages;

[0059] Feedback module 70 is used to send data return messages to main control test module 50 and receive verification results returned by main control test module 50 after verifying the data return messages;

[0060] The target configuration module 80 is used to confirm or reconfigure the protocol of the smart gateway based on the target configuration information corresponding to the verification result.

[0061] In this embodiment of the invention, before testing the power distribution terminal through the smart gateway, the protocols of the smart gateway and the power distribution terminal need to be aligned to improve testing efficiency and accuracy. Specifically, the communication protocol test library module 20 provides different types of communication protocol test cases to facilitate testing and verification after configuring different communication protocols. The communication protocols corresponding to the communication protocol test cases include, but are not limited to, COAP, Modbus, MQTT, CDT, and 103 serial communication protocols. This solution does not impose any particular limitations on these protocols.

[0062] After obtaining the protocol information of the distribution terminal under test through the protocol information acquisition module 10, the test matching module matches the corresponding target communication protocol test case in the communication protocol test library module based on the protocol information. Since each communication protocol test case in the communication protocol test library module uniquely corresponds to one communication protocol, the corresponding target communication protocol test case can be determined based on the protocol information of the distribution terminal.

[0063] After determining the target communication protocol test case, the test matching module 30 sends a test command to the main control test module 50 according to the target communication protocol test case. Simultaneously, the protocol configuration module 40 determines the target communication protocol of the current power distribution terminal based on the matched target communication protocol test case and configures the smart gateway according to the current target communication protocol, thus completing the initial protocol configuration for subsequent testing and verification. Afterwards, the main control test module 50 receives the test command, executes the target communication protocol test case according to the test command, and generates case message information. The main control test module 50 can use either its built-in communication test application to test the target communication protocol test case or an external test application; no particular limitation is made here.

[0064] Then, the protocol test module 60 tests and verifies the smart gateway using the case message information obtained from the main control test module 50, and receives data return messages. Only after the main control test module 50 confirms successful verification of the data return message does the target configuration module confirm the smart gateway's protocol, thereby completing the protocol configuration of the smart gateway according to the power distribution terminal. This achieves protocol consistency between the power distribution terminal and the smart gateway, effectively improving the accuracy and efficiency of subsequent test results. If the main control test module 50 determines that the data return message verification fails, the protocol needs to be reconfigured.

[0065] Specifically, the protocol test module 60 is connected to the smart gateway. During testing, the protocol test module 60 sends the case message to the smart gateway. After the smart gateway executes the message, it sends a data return message to the protocol test module 60 so that the main control test module 50 can verify the data return message.

[0066] Please see Figure 2 , Figure 2 This is a schematic diagram of the specification test module provided in an embodiment of the present invention.

[0067] In this embodiment of the invention, the specification testing module includes: a message management unit 601, a message execution unit 602, and a message feedback unit 603; the message execution unit 602 is connected to the message management unit 601 and the message feedback unit 603.

[0068] The message management unit 601 is used to review and manage the input case message information, and send the case message information to the message execution unit 602 after the case message information has been reviewed and approved.

[0069] Message execution unit 602 is used to execute case message information and generate execution results;

[0070] The message feedback unit 603 is used to generate a data return message based on the execution result.

[0071] In the specific implementation, during the testing process of the specification test module 60, the input case message is first reviewed by the message management unit 601 so that when the case message information format is incorrect, the main control test module 50 is promptly reminded to retest and generate new case message information. When the case message information format is correct, the case message information is executed by the message execution unit 602 to obtain the execution result. Then, the message feedback unit 603 organizes the parameters of the execution result to obtain the data return message and sends the data return message to the feedback module 70 for subsequent testing.

[0072] In one example, the message management unit 601 is specifically used to manage the input of case message information in terms of hexadecimal and format. When the case message information is a character input other than hexadecimal, or when the format of the case message information is incorrect or incomplete, the case message information is determined to fail the review, a resend message is generated and sent to the main control test module 50 to notify the main control test module 50 to generate new case message information.

[0073] In its implementation, the protocol message management unit 601 imposes reasonable restrictions on the input case message information based on the characteristics of the case message. It restricts the input of characters other than hexadecimal characters through a character restriction program, and performs incomplete or erroneous detection on the input message through a message format detection program. If an incomplete or erroneous message is detected, a corresponding prompt box will pop up and a retransmission message will be generated and sent to the main control test module 50 to notify the main control test module 50 to regenerate and retransmit new case message information.

[0074] Please see Figure 3 , Figure 3 This is a schematic diagram of a specification configuration module provided in an embodiment of the present invention.

[0075] In this embodiment of the invention, the protocol configuration module 40 includes: a configuration unit 401, an information confirmation unit 402, a first parsing unit 403, and a second parsing unit 404;

[0076] Configuration unit 401 is electrically connected to information confirmation unit 402; information confirmation unit 402 is communicatively connected to first parsing unit 403 and second parsing unit 404 respectively; first parsing unit 403 and second parsing unit 404 are electrically connected to the power distribution terminal under test.

[0077] The first parsing unit 403 is used to perform fixed frame parsing on the power distribution terminal under test to determine the frame transmission direction.

[0078] The second parsing unit 404 is used to perform variable frame analysis on the power distribution terminal under test to obtain link user data.

[0079] The information confirmation unit 402 is used to send confirmation information to the configuration unit 401 after determining that the frame transmission direction and the link user data are correct, so as to notify the configuration unit 401 to perform protocol configuration on the smart gateway according to the target communication protocol.

[0080] In the specific implementation, during the configuration of the smart gateway by the protocol configuration module 40, the first parsing unit 403 and the second parsing unit 404 respectively perform fixed frame parsing and variable frame parsing on the power distribution terminal to determine the frame transmission direction and link user data of the power distribution terminal. When the current frame transmission direction of the power distribution terminal is the communication direction with the smart gateway, and the link user data of the power distribution terminal is a normally registered user, it is determined that the information of the current power distribution terminal is correct. The information confirmation unit 402 then sends confirmation information to the configuration unit 401 to notify the configuration unit 401 to perform protocol configuration on the smart gateway according to the target communication protocol.

[0081] In this embodiment of the invention, the smart gateway testing system may further include: a protocol analysis module 90 that is communicatively connected to the target configuration module 80 and the smart gateway;

[0082] The protocol analysis module 90 is used to parse the online message information transmitted during the smart gateway detection process after the target configuration module 80 completes the protocol configuration.

[0083] In the specific implementation, by setting up a protocol analysis module 90, it is convenient to parse the online message information transmitted during the smart gateway detection process, so as to determine whether the smart gateway is operating normally after the protocol configuration, and further ensure the accuracy of the power distribution terminal test results.

[0084] In this embodiment of the invention, the protocol analysis module 90 is specifically used to complete the parsing of each frame of online message information by displaying the overall interpretation of the online message information, each type of character in the online message information, and the corresponding protocol interpretation in an independent window. This facilitates the user's accurate understanding of the testing process.

[0085] Please see Figure 4 , Figure 4 This is a schematic diagram of the structure of the target configuration module provided in an embodiment of the present invention.

[0086] In this embodiment of the invention, the target configuration module 80 includes: a configuration log unit 801, a protocol adjustment unit 802, a comparison unit 803, and a reconfiguration unit 804;

[0087] Configure the log unit 801 to communicate with the protocol adjustment unit 802;

[0088] The configuration log unit 801 is used to record the historical protocol configuration information and the current protocol configuration information of the smart gateway.

[0089] Protocol adjustment unit 802; used to adjust the protocol of the smart gateway according to historical protocol configuration information;

[0090] Reconfiguration unit 804 is used to reconfigure the smart gateway's protocol;

[0091] The comparison unit 803 is used to compare the target configuration information corresponding to the test result with the historical protocol configuration information and the current protocol configuration information to obtain the difference amount, and select the protocol adjustment unit 802 or the reconfiguration unit 804 to configure the protocol of the smart gateway according to the size of the difference amount.

[0092] In the specific implementation, after the smart gateway performs protocol consistency adjustment on multiple power distribution terminals, the log unit 801 records the historical protocol configuration information and the current protocol configuration information of the smart gateway. Then, the comparison unit 803 compares the target configuration information with the historical and current protocol configuration information to determine the most suitable protocol configuration method, including the protocol adjustment unit 802 and the protocol reconfiguration unit 804, so as to achieve efficient protocol configuration.

[0093] In one example, the comparison unit 803 is specifically used to: when the difference is greater than a preset threshold, send a first signal to the reconfiguration unit 804, so that the reconfiguration unit 804, after starting based on the first signal, reconfigures the protocol of the smart gateway according to the target configuration information; and when the difference is less than the preset threshold, send a second signal to the protocol adjustment unit 802, so that the protocol adjustment unit 802, after starting based on the second signal, selects and filters protocol configuration information from historical protocol configuration information and current protocol configuration information, imports it into the smart gateway for preliminary configuration, and then adjusts the protocol of the smart gateway according to the target configuration information to complete the protocol configuration.

[0094] In specific implementation, if the difference between the target configuration information and the historical and current protocol configuration information is too large, it indicates that the target configuration information is significantly different from the current and historical protocols of the smart gateway and needs to be reconfigured. In this case, the comparison unit 803 sends a first start signal to the reconfiguration unit 804, so that the reconfiguration unit 804 can reconfigure the protocol of the smart gateway according to the target configuration information. If the difference is less than a preset threshold, it indicates that the difference between the target configuration information and the current or historical protocol of the smart gateway is small and does not require reconfiguration, but only adjustment. In this case, the comparison unit 803 sends a second signal to the protocol adjustment unit 802. After the protocol adjustment unit 802 is started based on the second signal, it selects the most matching filtered protocol configuration information from the historical and current protocol configuration information, imports it into the smart gateway for initial configuration, and then adjusts the protocol of the smart gateway according to the target configuration information to complete the protocol configuration. This makes the protocol configuration of the smart gateway by the target configuration module 80 more accurate and efficient.

[0095] It should be noted that in the process of comparing the target configuration information corresponding to the test result with the historical and current protocol configuration information to obtain the difference, the comparison unit 803 can use message format difference comparison, data structure difference comparison, or other methods. This solution does not impose any particular restrictions on this. Furthermore, the preset threshold is an empirical value and can be selected according to different scenarios.

[0096] In this embodiment of the invention, the protocol configured by the target configuration module 80 includes any one of the following: COAP protocol, Modbus protocol, MQTT protocol, CDT protocol, and 103 serial communication protocol.

[0097] In this embodiment of the invention, the smart gateway testing system may further include: a verification testing module 100 that is communicatively connected to the target configuration module 80 and the smart gateway;

[0098] The verification test module 100 is used to test the protocol of the smart gateway after the target configuration module 80 has completed the configuration; the test includes at least one of the following: transmit and receive test, data transmission channel test and application function test.

[0099] In practical implementation, after configuring the smart gateway according to the protocol, to further check the performance of the smart gateway, transmit / receive tests, data transmission channel tests, and application function tests are performed. Physical layer tests are conducted to determine information such as port number and baud rate, and to test whether the physical layer connection can correctly receive and send data. By testing the data link layer's reset link, test link, query status and data retrieval, message error control mechanism, frame format, and other information, it is determined whether the link layer can establish a reliable data transmission channel. Finally, by testing the application layer's initialization, general call, clock synchronization, telemetry, remote signaling, remote control, and fault events to ensure they meet the protocol requirements, the basic application functions of the application layer can be tested to ensure they conform to the standard protocol.

[0100] In this invention, after the protocol information acquisition module obtains the protocol information of the power distribution terminal under test, the test matching module matches the target communication protocol test case in the communication protocol test library according to the protocol information, and sends a test command according to the target communication protocol test case. Then, the protocol configuration module determines the target communication protocol according to the target communication protocol test case, and configures the smart gateway according to the target communication protocol. After that, the main control test module receives the test command, executes the target communication protocol test case according to the test command, and generates case message information. The protocol test module tests and verifies the case message information and obtains a data return message. After the main control test module confirms that the data return message verification is successful, the target configuration module confirms or reconfigures the protocol of the smart gateway, thereby completing the protocol configuration of the smart gateway according to the power distribution terminal, and thus achieving protocol consistency between the power distribution terminal and the smart gateway, so as to improve the accuracy and efficiency of subsequent test results of the smart gateway on the power distribution terminal.

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

[0102] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other.

[0103] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, apparatus, or computer program products. Therefore, embodiments of the present invention can take the form of entirely hardware embodiments, entirely software embodiments, or embodiments combining software and hardware aspects. Furthermore, embodiments of the present invention can take the form of computer program products implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0104] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing terminal device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal device, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1A device that provides the functions specified in one or more boxes.

[0105] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing terminal device to operate in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0106] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal equipment, causing a series of operational steps to be performed on the computer or other programmable terminal equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable terminal equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0107] Although preferred embodiments of the present invention have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of the embodiments of the present invention.

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

[0109] The above-described embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A smart gateway testing system, characterized in that, include: The module includes a protocol information acquisition module, a communication protocol test library module, a test matching module, a protocol configuration module, a main control test module, a protocol test module, a feedback module, and a target configuration module. The protocol information acquisition module is electrically connected to the power distribution terminal under test and communicatively connected to the test matching module; the test matching module is communicatively connected to the communication protocol test library module, the protocol configuration module, and the main control test module; the protocol configuration module is communicatively connected to the power distribution terminal, the main control test module, and the smart gateway; the main control test module is communicatively connected to the target configuration module, the feedback module, and the protocol test module; the protocol test module is communicatively connected to the feedback module and the smart gateway; the feedback module is communicatively connected to the target configuration module; and the target configuration module is communicatively connected to the smart gateway. The protocol information acquisition module is used to acquire the protocol information of the power distribution terminal under test; The communication protocol test library module is used to provide test cases for different types of communication protocols; The test matching module is used to match a target communication protocol test case in the communication protocol test library module according to the protocol information, and send test instructions according to the target communication protocol test case; The protocol configuration module is used to determine the target communication protocol based on the target communication protocol test case, and to configure the smart gateway according to the target communication protocol. The main control test module is used to receive the test command after the protocol configuration module completes the configuration, and execute the target communication protocol test case according to the test command to generate test case message information. The protocol testing module is used to receive the case message information sent by the main control testing module, perform testing and verification on the smart gateway according to the case message information, and obtain a data return message; The feedback module is used to send the data return message to the main control test module and receive the verification result returned by the main control test module after verifying the data return message; The target configuration module is used to confirm or reconfigure the protocol of the smart gateway based on the target configuration information corresponding to the verification result. The protocol configuration module includes: a configuration unit, an information confirmation unit, a first parsing unit, and a second parsing unit; The configuration unit is electrically connected to the information confirmation unit; the information confirmation unit is communicatively connected to the first parsing unit and the second parsing unit respectively; the first parsing unit and the second parsing unit are electrically connected to the power distribution terminal under test; The first parsing unit is used to perform fixed frame parsing on the power distribution terminal under test to determine the frame transmission direction; The second parsing unit is used to perform variable frame analysis on the power distribution terminal under test to obtain link user data; The information confirmation unit is used to send confirmation information to the configuration unit after determining that the frame transmission direction and the link user data are correct, so as to notify the configuration unit to perform protocol configuration on the smart gateway according to the target communication protocol.

2. The intelligent gateway testing system according to claim 1, characterized in that, The specification testing module includes: a message management unit, a message execution unit, and a message feedback unit; the message execution unit is connected to the message management unit and the message feedback unit. The message management unit is used to review and manage the input case message information, and send the case message information to the message execution unit after the case message information has passed the review. The message execution unit is used to execute the case message information and generate an execution result; The message feedback unit is used to generate the data return message based on the execution result.

3. The intelligent gateway testing system according to claim 2, characterized in that, The message management unit is specifically used to manage the input of case message information in terms of hexadecimal and format. When the case message information is input as a character other than hexadecimal, or when the format of the case message information is incorrect or incomplete, the unit determines that the case message information fails the review, generates a retransmission message and sends it to the main control test module to notify the main control test module to generate new case message information.

4. The intelligent gateway testing system according to claim 1, characterized in that, Also includes: The protocol analysis module is communicatively connected to the target configuration module and the smart gateway; The protocol analysis module is used to parse the online message information transmitted during the smart gateway detection process after the target configuration module completes the protocol configuration.

5. The intelligent gateway testing system according to claim 4, characterized in that, The protocol analysis module is specifically used to complete the parsing of each frame of online message information by displaying the overall interpretation of the online message information, each type of character in the online message information, and the corresponding protocol interpretation in an independent window.

6. The intelligent gateway testing system according to claim 1, characterized in that, The target configuration module includes: a configuration log unit, a protocol adjustment unit, a comparison unit, and a reconfiguration unit; The configuration log unit is communicatively connected to the protocol adjustment unit; The configuration log unit is used to record the historical protocol configuration information and current protocol configuration information of the smart gateway. The protocol adjustment unit is used to adjust the protocol of the smart gateway according to the historical protocol configuration information. The reconfiguration unit is used to reconfigure the protocol of the smart gateway; The comparison unit is used to compare the target configuration information corresponding to the verification result with the historical protocol configuration information and the current protocol configuration information to obtain the difference amount, and select the protocol adjustment unit or the reconfiguration unit to configure the protocol of the smart gateway according to the magnitude of the difference amount.

7. The intelligent gateway testing system according to claim 6, characterized in that, The comparison unit is specifically used to: when the difference is greater than a preset threshold, send a first signal to the reconfiguration unit, so that the reconfiguration unit, after starting based on the first signal, reconfigures the protocol of the smart gateway according to the target configuration information; and when the difference is less than the preset threshold, send a second signal to the protocol adjustment unit, so that the protocol adjustment unit, after starting based on the second signal, selects and filters protocol configuration information from the historical protocol configuration information and the current protocol configuration information, imports it into the smart gateway for preliminary configuration, and then adjusts the protocol of the smart gateway according to the target configuration information to complete the protocol configuration.

8. The intelligent gateway testing system according to claim 1, characterized in that, The protocol configured by the target configuration module includes any one of the following: COAP protocol, Modbus protocol, MQTT protocol, CDT protocol, and 103 serial communication protocol.

9. The intelligent gateway testing system according to any one of claims 1-8, characterized in that, Also includes: The verification and testing module is communicatively connected to the target configuration module and the smart gateway; The verification test module is used to test the protocol of the smart gateway after the target configuration module has completed the configuration; the test includes at least one of the following: transmit / receive test, data transmission channel test, and application function test.

Citation Information

Patent Citations

  • A wireless remote communication protocol automatic test system and a method of a vehicle-mounted terminal

    CN109039824A

  • Method and system for equipment adaptation based on MQTT (Message Queuing Telemetry Transport) gateway

    CN109561096A

  • Intelligent gateway protocol analysis system

    CN115695263A