Power distribution gateway panoramic detection method and system, terminal equipment and computer readable storage medium
Through the method of automated detection of distribution gateways, the analysis and verification of product model files are used to solve the problems of low detection efficiency and human error of distribution gateways, and an efficient and accurate detection process is achieved.
Patent Information
- Application Number
- CN202411366845.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-29
- Publication Date
- 2025-01-03
- Estimated Expiration
- 2044-09-29
AI Technical Summary
Currently, the detection of distribution gateways mainly relies on manual manual operations, the test efficiency is low, and there is a risk of human error.
By obtaining product model files, matching file names and suffix names, analyzing static and dynamic parameters, generating registration signals and verification results, the automatic registration and data verification of distribution gateways can be realized, and human intervention can be reduced and detection efficiency can be improved.
The automatic detection of distribution gateways is realized, which reduces the risk of human error, improves testing efficiency, significantly reduces the testing workload and time, and optimizes the detection process.
Smart Images

Figure CN119254663A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of Internet of Things, and in particular to a method, system, terminal device and computer-readable storage medium for panoramic detection of a power distribution gateway. Background Art
[0002] At present, the innovative development of the Internet of Things and the new industrial revolution are at a historical intersection. The international competition among countries participating in the development of the Internet of Things is becoming increasingly fierce. The global Internet of Things industry is in a stage of rapid development, and related new technologies and new applications are emerging in an endless stream. The power industry is a basic industry of the national economy and one of the extremely important infrastructures for the development of the national economy and people's lives.
[0003] With the development of smart grid, distribution gateway, as a key node of power system, needs to have a high level of intelligence and automation to achieve access and support for new technologies such as distributed energy and load-side management. Therefore, distribution gateway plays an important role in power system, and its stable operation is crucial to ensure the stability and reliability of power system. However, the detection of distribution gateway still mainly relies on manual operation, and the test efficiency is low. Summary of the invention
[0004] The embodiments of the present invention provide a method, system, terminal device and computer-readable storage medium for panoramic detection of a power distribution gateway, which can improve test efficiency and reduce the risk of human error.
[0005] An embodiment of the present invention provides a method for panoramic detection of a power distribution gateway, comprising:
[0006] Obtain the product model file, and match the file name and suffix of the product model file with the preset data table. If the match is successful, the product model file is exported to the Internet of Things platform. If the match fails, the first error prompt is issued;
[0007] Performing data analysis on the successfully matched product model file to obtain a first static parameter and a first dynamic parameter;
[0008] Generate a sub-device registration signal according to the first static parameter and send it to the power distribution gateway, so that the power distribution gateway registers according to the sub-device registration signal, and verifies whether the sub-device information is complete, whether the IP address is repeated, and whether the port number is occupied;
[0009] Receive the verification result from the power distribution gateway, if the verification is successful, save the first verification result to the log, if the verification is unsuccessful, issue a second error prompt;
[0010] Sending the first dynamic parameter to the power distribution gateway so that the power distribution gateway pre-processes the first dynamic parameter to generate a second dynamic parameter;
[0011] Receive the second dynamic parameter returned by the power distribution gateway, and verify whether the data category of each field in the second dynamic parameter conforms to the preset data type. If so, save the second verification result to the log; if not, issue a third error prompt and output the non-compliant fields.
[0012] Furthermore, before obtaining the product model file, it also includes:
[0013] Obtain the user's identity information and verify the user's identity information. If the verification passes, the user is given permission to perform panoramic detection of the power distribution gateway. If the verification fails, access is denied.
[0014] Furthermore, the panoramic detection method of the power distribution gateway also includes: storing operation logs and detection records during the test process.
[0015] Furthermore, the power distribution gateway panoramic detection method further includes:
[0016] Get the command signal edited by the user and verify whether the command signal edited by the user conforms to the preset JSON format. If not, prompt the command editing error. If it conforms, identify the command signal.
[0017] If the recognized command signal is a pause signal, the current detection is stopped;
[0018] If the recognized command signal is a continue signal, the current detection is resumed;
[0019] If the recognized command signal is a restart signal, the current detection is terminated and the power distribution gateway panoramic detection method is performed again;
[0020] If the recognized command signal is a log retrieval signal, the operation log and detection record in the log are retrieved and displayed in real time.
[0021] Based on the above method embodiment, the present invention provides a corresponding system embodiment, including: a product model file detection module, a device registration detection module, and a data detection module;
[0022] The product model file detection module includes: a file format detection unit and a file parsing unit;
[0023] A file format detection unit, used to obtain a product model file, and match the file name and suffix of the product model file with a preset data table. If the match is successful, the product model file is exported to the Internet of Things platform. If the match fails, a first error prompt is issued;
[0024] A file parsing unit, used to perform data parsing on the successfully matched product model file to obtain a first static parameter and a first dynamic parameter;
[0025] The device registration detection module includes: a registration signal sending unit and a verification result confirmation unit;
[0026] A registration signal sending unit, configured to generate a sub-device registration signal according to the first static parameter and send the signal to the power distribution gateway, so that the power distribution gateway registers according to the sub-device registration signal, and verifies whether the sub-device information is complete, whether the IP address is repeated, and whether the port number is occupied;
[0027] A verification result confirmation unit, configured to receive a verification result from the power distribution gateway, and if the verification is successful, save the first verification result to a log; if the verification is unsuccessful, issue a second error prompt;
[0028] The data detection module includes: a dynamic parameter sending unit and a data verification unit;
[0029] A dynamic parameter sending unit, configured to send the first dynamic parameter to the power distribution gateway, so that the power distribution gateway pre-processes the first dynamic parameter to generate a second dynamic parameter;
[0030] The data verification unit is used to receive the second dynamic parameter returned by the distribution gateway and verify whether the data category of each field in the second dynamic parameter conforms to the preset data type. If so, the second verification result is saved to the log; if not, a third error prompt is issued and the non-compliant fields are output.
[0031] Furthermore, the power distribution gateway panoramic detection system further includes: an identity authentication module;
[0032] The identity authentication module is used to obtain the user's identity information and verify the user's identity information. If the verification is successful, the user is given the permission to perform panoramic detection of the power distribution gateway. If the verification fails, access is denied.
[0033] Furthermore, the power distribution gateway panoramic detection system further includes: a log management module;
[0034] The log management module is used to store operation logs and detection records during the test process.
[0035] Furthermore, the power distribution gateway panoramic detection system further includes: a command control module;
[0036] The command control module is used to obtain the command signal edited by the user and verify whether the command signal edited by the user conforms to the preset JSON format. If not, it prompts that the command editing is wrong. If it conforms, it identifies the command signal;
[0037] If the recognized command signal is a pause signal, the current detection is stopped;
[0038] If the recognized command signal is a continue signal, the current detection is resumed;
[0039] If the recognized command signal is a restart signal, the current detection is terminated and the power distribution gateway panoramic detection method is performed again;
[0040] If the recognized command signal is a log retrieval signal, the operation log and detection record in the log are retrieved and displayed in real time.
[0041] Based on the above-mentioned method item embodiment, the present invention provides a corresponding terminal device item embodiment, including: a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, the steps of the distribution gateway panoramic detection method as described in the present invention are implemented.
[0042] Based on the above method item embodiments, the present invention provides a corresponding computer-readable storage medium item embodiment, including: a stored computer program, when the computer program is running, controlling the device where the computer-readable storage medium is located to execute the steps of the distribution gateway panoramic detection method as described in the present invention.
[0043] Compared with the prior art, the beneficial effects of the embodiment of this solution are:
[0044] The present invention can ensure that the model file used is valid and accepted by the system by verifying the file name and suffix of the product model file, thereby reducing possible errors in subsequent steps and improving overall efficiency; if the model file is successfully matched, the system can automatically export the file and perform data analysis, eliminating the need for manual input and proofreading; the first static parameter obtained by analysis is used to verify whether the distribution gateway can normally register the sub-device, and if the verification is passed, the verification result is saved in the log, and if the verification fails, an error prompt will be issued; the first dynamic data obtained by analysis is uploaded through the forwarding of the distribution gateway to generate a second dynamic parameter, and then the data category of each field in the second dynamic parameter is verified to ensure that the data conforms to the preset data type, thereby completing the detection of the distribution gateway. In addition, saving the verification result to the log provides a basis for later tracking and troubleshooting, and also provides data support for subsequent system optimization and improvement.
[0045] In summary, the present invention can realize automated verification by parsing and verifying the product model file, which not only improves the test efficiency but also reduces the risk of human error. In addition, this method only needs to obtain the product model file, and there is no need to conduct field tests on each sub-device, which significantly reduces the test workload and time and optimizes the entire detection process. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Figure 1It is a flow chart of a method for panoramic detection of a power distribution gateway provided by an embodiment of the present invention;
[0047] Figure 2 This is an application software architecture diagram of a power distribution gateway panoramic detection method provided by an embodiment of the present invention;
[0048] Figure 3 It is a structural diagram of a panoramic detection system for a power distribution gateway provided in one embodiment of the present invention. DETAILED DESCRIPTION
[0049] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments 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 creative work are within the scope of protection of the present invention.
[0050] like Figure 1 As shown, an embodiment of the present invention provides a method for panoramic detection of a power distribution gateway, the method comprising at least the following steps:
[0051] Step S1: Obtain a product model file, and match the file name and suffix of the product model file with a preset data table. If the match is successful, export the product model file to the Internet of Things platform. If the match fails, issue a first error prompt.
[0052] For step S1, the product model file provided by the manufacturer is imported, the access of the distribution terminal is simulated through this product model file, and the file name and suffix of the product model file of the distribution terminal are matched with the preset data table to ensure that the product model file follows the standardized model format. This can simplify the parsing process and improve the accuracy of the matching. If the match is successful, the file will be uniformly named "ArmDataM.zip" and the successfully matched model will be directly exported to the Internet of Things platform to achieve plug-and-play functionality and speed up the access process. If the match fails, the user can be guided to make necessary corrections or adjustments through error prompts and suggestions.
[0053] Step S2: performing data analysis on the successfully matched product model file to obtain a first static parameter and a first dynamic parameter;
[0054] For step S2, the successfully matched product model file is read and parsed according to the file format and structure. Through data parsing, the first static parameter and the first dynamic parameter of the distribution terminal are obtained, wherein the first parameter includes: equipment type, equipment model, factory number, software and hardware version, and the IoT identifier of the superior equipment; the first dynamic data includes: telemetry type operating parameters, telesignaling type operating parameters, remote control type operating parameters, fixed value parameter type operating parameters, and sensor type operating parameters.
[0055] Step S3: Generate a sub-device registration signal according to the first static parameter and send it to the power distribution gateway, so that the power distribution gateway registers according to the sub-device registration signal and verifies whether the sub-device information is complete, whether the IP address is repeated, and whether the port number is occupied;
[0056] For step S3, according to the first static parameter obtained in step S2, a registration signal containing sub-device information is generated, and the sub-device is simulated to send registration information to the distribution gateway through the network communication protocol. After receiving the registration signal of the sub-device, the distribution gateway starts the registration and verification process. First, the distribution gateway checks whether the information in the registration signal of the sub-device is complete to ensure that all necessary parameters are provided; secondly, the distribution gateway checks whether the IP address of the sub-device is repeated with the IP address of other registered devices to ensure that the device in the network has a unique IP address; then, the distribution gateway checks whether the port number specified in the registration signal of the sub-device has been occupied by other devices to prevent port conflicts. Finally, the distribution gateway sends feedback information back to the sub-device based on the verification result. In this embodiment, it is sent back to the detection system for testing. If the verification passes, the sub-device will be successfully registered to the distribution gateway and obtain a unique identifier in the network. If the verification fails, the sub-device will receive a corresponding error prompt and can resend the registration signal after correction.
[0057] Through such a verification process, it is possible to verify whether the test distribution gateway correctly handles the registration request of the sub-device, and verify the integrity of the sub-device information, the uniqueness of the IP address, and the availability of the port number to ensure that the devices in the distribution network can communicate and operate normally.
[0058] Step S4: receiving the verification result from the power distribution gateway, and if the verification is successful, saving the first verification result to the log; if the verification is unsuccessful, issuing a second error prompt;
[0059] For step S4, after receiving the verification result from the power distribution gateway, there will be different processing procedures depending on the verification result. If the power distribution gateway verifies that the registration signal of the sub-device is passed, that is, the information of the sub-device is complete, the IP address is unique, and the port number is not occupied, the power distribution gateway will save the verification result to the log, so that the registration information and the timestamp of successful registration and other related information can be recorded as a basis for subsequent tracking and management; if the power distribution gateway verifies that the registration signal is not passed, that is, the information of the sub-device is incomplete, the IP address is repeated, or the port number is occupied, the power distribution gateway will issue a second error prompt, which may include the corresponding error code and error information to help the sub-device identify and solve the problem.
[0060] Step S5: sending the first dynamic parameter to the power distribution gateway, so that the power distribution gateway pre-processes the first dynamic parameter to generate a second dynamic parameter;
[0061] For step S5, the first dynamic data obtained in step S2 is sent to the distribution gateway through the network communication protocol. After receiving the first dynamic parameter, the distribution gateway preprocesses the first dynamic parameter, that is, data cleaning, normalization, filtering, feature extraction and other operations to extract useful information or generate new parameters; based on the preprocessing results, the distribution gateway generates a second dynamic parameter.
[0062] It should be noted that the difference between the second dynamic parameter and the first dynamic parameter is that the first dynamic parameter is original or unprocessed data, while the second dynamic parameter is new data obtained after pre-processing by the power distribution gateway.
[0063] Step S6: Receive the second dynamic parameter returned by the power distribution gateway, and verify whether the data category of each field in the second dynamic parameter conforms to the preset data type. If so, save the second verification result to the log; if not, issue a third error prompt and output the non-compliant fields.
[0064] For step S6, the second dynamic parameter sent by the power distribution gateway is received through the network communication protocol, and the received second dynamic parameter is verified, and the data type of each field is checked one by one to see if it meets the preset requirements. For each field, its data type is compared, for example, whether the operating parameter of the telemetry type is a floating point number, whether the operating parameter of the telesignaling type is a Boolean type, whether the operating parameter of the remote control type is an integer, whether the operating parameter of the fixed value parameter type is an enumeration type, and whether the operating parameter of the sensor type is a floating point number. If the data types of all fields in the second dynamic parameter meet the preset requirements, the verification result is saved to the log. The saved log can record the timestamp of the verification, the passed fields, and the corresponding data types, etc., for subsequent reference and management use; if the data type of a field in the second dynamic parameter does not meet the preset requirements, a third error prompt will be issued, and the error prompt includes the corresponding error code and error information to help discover and solve the problem. At the same time, the field name that does not meet the preset data type is output to help the user make corrections.
[0065] In addition, data upload rules are set: telemetry type operating parameters, telesignal type operating parameters and sensor type operating parameters are uploaded once every 15 minutes, 96 times a day; remote control type operating parameters and fixed value type operating parameters are actively sent through the Internet of Things platform. Subsequently, the upload frequency of each operating parameter in the second dynamic parameter is checked and compared with the preset data upload rules. If the upload frequency does not meet the preset requirements, the system will issue prompts accordingly, such as error messages for data reporting too fast or too slow, to help users adjust and optimize the data upload frequency.
[0066] Through the above detection process, it can be verified whether the distribution gateway can normally register the sub-device information and whether it can normally report the data value, thereby ensuring the normal communication between the distribution gateway and the sub-device, the accuracy and integrity of the data, and the stability and reliability of the system.
[0067] In a preferred embodiment, before obtaining the product model file, the method further includes:
[0068] Obtain the user's identity information and verify the user's identity information. If the verification passes, the user is given permission to perform panoramic detection of the power distribution gateway. If the verification fails, access is denied.
[0069] In one embodiment of the present invention, since the power distribution gateway may contain sensitive energy data and equipment information, through identity authentication and permission control, the user's access rights to the data can be controlled to prevent unauthorized users from obtaining and tampering with the data, and to protect the confidentiality and integrity of the data. Therefore, before implementing the power distribution gateway panoramic detection method, the user's identity information is first obtained and the user's identity is verified. If the identity authentication passes, the user will be granted access to the power distribution gateway panoramic detection; if the identity authentication fails, the user will be denied access, which can ensure that only authorized users can access and ensure the security of the system.
[0070] In a preferred embodiment, the power distribution gateway panoramic detection method further includes: storing operation logs and detection records during the test process.
[0071] In one embodiment of the present invention, the operation logs and detection records during the test process are stored, and when an anomaly is detected, the anomaly can be analyzed in combination with the historical detection records.
[0072] In a preferred embodiment, the power distribution gateway panoramic detection method further includes:
[0073] Get the command signal edited by the user and verify whether the command signal edited by the user conforms to the preset JSON format. If not, prompt the command editing error. If it conforms, identify the command signal.
[0074] If the recognized command signal is a pause signal, the current detection is stopped;
[0075] If the recognized command signal is a continue signal, the current detection is resumed;
[0076] If the recognized command signal is a restart signal, the current detection is terminated and the power distribution gateway panoramic detection method is performed again;
[0077] If the recognized command signal is a log retrieval signal, the operation log and detection record in the log are retrieved and displayed in real time.
[0078] In one embodiment of the present invention, different functions in the detection process can be realized by obtaining the command signal edited by the user. First, the command signal edited by the user is verified to ensure that it conforms to the preset JSON format. If the command signal does not conform to the format requirements, a prompt is given that the command editing error is made, allowing the user to correct it; if the command signal conforms to the format requirements, the content of the command signal is further identified;
[0079] If the command signal edited by the user is recognized as a pause signal, the power distribution gateway will stop the current detection operation. This can be used to temporarily pause the detection to perform other operations or handle special situations;
[0080] If the command signal edited by the user is recognized as a continue signal, the power distribution gateway will resume the current detection operation, which can be used to continue the detection after a pause;
[0081] If the command signal edited by the user is recognized as a restart signal, the power distribution gateway will end the current detection and restart the power distribution gateway panoramic detection method, which can be used to restart the detection process to ensure the latest data and status.
[0082] If the command signal edited by the user is identified as a log retrieval signal, the power distribution gateway will retrieve and display the operation log and detection record in real time, which can be used to view historical records, troubleshoot troubleshooting and system analysis.
[0083] like Figure 2 As shown, an embodiment of the present invention provides an application software architecture diagram of a panoramic detection method for a power distribution gateway. The master-slave, layered, and modular design approach is adopted. The bottom layer is the computer hardware and network device layer, followed by the operating system layer. The application software connects to the operating system by calling the application programming interface (API) to call and run the program. The access of data is called through the database interface function. Except for cached messages, all other data depends on the interaction of the database. The application software is mainly divided into four functional modules: a use case library management module, an engineering test module, a data statistical analysis module, and an auxiliary application module. Each functional module contains multiple sub-functions, and each sub-functional module completes specific operations, displays, and tasks.
[0084] like Figure 3 As shown, based on the above method embodiment, a corresponding system embodiment is provided;
[0085] An embodiment of the present invention provides a power distribution gateway panoramic detection system, including: a product model file detection module, a device registration detection module, and a data detection module;
[0086] The product model file detection module includes: a file format detection unit and a file parsing unit;
[0087] A file format detection unit, used to obtain a product model file, and match the file name and suffix of the product model file with a preset data table. If the match is successful, the product model file is exported to the Internet of Things platform. If the match fails, a first error prompt is issued;
[0088] A file parsing unit, used to perform data parsing on the successfully matched product model file to obtain a first static parameter and a first dynamic parameter;
[0089] The device registration detection module includes: a registration signal sending unit and a verification result confirmation unit;
[0090] A registration signal sending unit, configured to generate a sub-device registration signal according to the first static parameter and send the signal to the power distribution gateway, so that the power distribution gateway registers according to the sub-device registration signal, and verifies whether the sub-device information is complete, whether the IP address is repeated, and whether the port number is occupied;
[0091] A verification result confirmation unit, configured to receive a verification result from the power distribution gateway, and if the verification is successful, save the first verification result to a log; if the verification is unsuccessful, issue a second error prompt;
[0092] The data detection module includes: a dynamic parameter sending unit and a data verification unit;
[0093] A dynamic parameter sending unit, configured to send the first dynamic parameter to the power distribution gateway, so that the power distribution gateway pre-processes the first dynamic parameter to generate a second dynamic parameter;
[0094] The data verification unit is used to receive the second dynamic parameter returned by the distribution gateway and verify whether the data category of each field in the second dynamic parameter conforms to the preset data type. If so, the second verification result is saved to the log; if not, a third error prompt is issued and the non-compliant fields are output.
[0095] In a preferred embodiment, the power distribution gateway panoramic detection system further includes: an identity authentication module;
[0096] The identity authentication module is used to obtain the user's identity information and verify the user's identity information. If the verification is successful, the user is given the permission to perform panoramic detection of the power distribution gateway. If the verification fails, access is denied.
[0097] In a preferred embodiment, the power distribution gateway panoramic detection system further includes: a log management module;
[0098] The log management module is used to store operation logs and detection records during the test process.
[0099] In a preferred embodiment, the power distribution gateway panoramic detection system further includes: a command control module;
[0100] The command control module is used to obtain the command signal edited by the user and verify whether the command signal edited by the user conforms to the preset JSON format. If not, it prompts that the command editing is wrong. If it conforms, it identifies the command signal;
[0101] If the recognized command signal is a pause signal, the current detection is stopped;
[0102] If the recognized command signal is a continue signal, the current detection is resumed;
[0103] If the recognized command signal is a restart signal, the current detection is terminated and the power distribution gateway panoramic detection method is performed again;
[0104] If the recognized command signal is a log retrieval signal, the operation log and detection record in the log are retrieved and displayed in real time.
[0105] It can be understood that the above-mentioned system item embodiments correspond to the method item embodiments of the present invention, and can implement the distribution gateway panoramic detection method provided by any one of the above-mentioned method item embodiments of the present invention.
[0106] It should be noted that the system embodiments described above are merely illustrative, and some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment. In addition, in the drawings of the system embodiments provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines. A person of ordinary skill in the art may understand and implement the present invention without creative work.
[0107] Based on the above-mentioned embodiment of the panoramic detection method for the distribution gateway, another embodiment of the present invention provides a terminal device, which includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, the panoramic detection method for the distribution gateway of any embodiment of the present invention is implemented.
[0108] Exemplarily, in this embodiment, the computer program may be divided into one or more modules, which are stored in the memory and executed by the processor to implement the present invention. The one or more module elements may be a series of computer program instruction segments capable of implementing specific functions, which are used to describe the execution process of the computer program in the terminal device.
[0109] The terminal device may be a computing device such as a desktop computer, a notebook, a PDA, a cloud server, etc. The terminal device may include, but is not limited to, a processor and a memory.
[0110] The processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the terminal device, and uses various interfaces and lines to connect various parts of the entire terminal device.
[0111] Based on the above method embodiment, another embodiment is provided: another embodiment of the present invention provides a computer-readable storage medium, including a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the distribution gateway panoramic detection method described in any one of the above method embodiments of the present invention.
[0112] Among them, the module / unit integrated in the panoramic detection system / terminal device of the power distribution gateway, if implemented in the form of a software functional unit and sold or used as an independent product, can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium, etc.
[0113] The above is a preferred embodiment of the present invention. It should be pointed out that a person skilled in the art can make several improvements and modifications without departing from the principle of the present invention. These improvements and modifications are also considered to be within the scope of protection of the present invention.
Claims
1. A method for panoramic detection of a power distribution gateway, characterized in that: include: Obtain a product model file, and match the file name and suffix of the product model file with a preset data table. If the match is successful, export the product model file to the Internet of Things platform. If the match fails, issue a first error prompt. Performing data analysis on the successfully matched product model file to obtain a first static parameter and a first dynamic parameter; Generate a sub-device registration signal according to the first static parameter and send it to the power distribution gateway, so that the power distribution gateway registers according to the sub-device registration signal, and verifies whether the sub-device information is complete, whether the IP address is repeated, and whether the port number is occupied; Receive the verification result from the power distribution gateway, if the verification is successful, save the first verification result to the log, if the verification is unsuccessful, issue a second error prompt; Sending the first dynamic parameter to a power distribution gateway so that the power distribution gateway pre-processes the first dynamic parameter to generate a second dynamic parameter; Receive the second dynamic parameter returned by the power distribution gateway, and verify whether the data category of each field in the second dynamic parameter conforms to the preset data type. If so, save the second verification result to the log; if not, issue a third error prompt and output the non-compliant fields.
2. The method for panoramic detection of power distribution gateway according to claim 1, characterized in that: Before obtaining the product model file, it also includes: Obtain the user's identity information and verify the user's identity information. If the verification passes, the user is given permission to perform panoramic detection of the power distribution gateway. If the verification fails, access is denied.
3. The method for panoramic detection of power distribution gateway according to claim 2, characterized in that: Also includes: The operation logs and detection records during the test process are stored.
4. The method for panoramic detection of power distribution gateway according to claim 3, characterized in that: Also includes: Obtain the command signal edited by the user, and verify whether the command signal edited by the user conforms to the preset JSON format. If not, prompt a command editing error. If yes, identify the command signal; If the recognized command signal is a pause signal, the current detection is stopped; If the recognized command signal is a continue signal, the current detection is resumed; If the recognized command signal is a restart signal, the current detection is terminated and the power distribution gateway panoramic detection method is performed again; If the recognized command signal is a log retrieval signal, the operation log and detection record in the log are retrieved and displayed in real time.
5. A panoramic detection system for power distribution gateway, characterized in that: include: Product model file detection module, device registration detection module, and data detection module; The product model file detection module includes: a file format detection unit and a file parsing unit; The file format detection unit is used to obtain a product model file, and match the file name and suffix of the product model file with a preset data table. If the match is successful, the product model file is exported to the Internet of Things platform. If the match fails, a first error prompt is issued; The file parsing unit is used to perform data parsing on the successfully matched product model file to obtain a first static parameter and a first dynamic parameter; The device registration detection module includes: a registration signal sending unit and a verification result confirmation unit; The registration signal sending unit is used to generate a sub-device registration signal according to the first static parameter and send it to the power distribution gateway, so that the power distribution gateway registers according to the sub-device registration signal and verifies whether the sub-device information is complete, whether the IP address is repeated, and whether the port number is occupied; The verification result confirmation unit is used to receive the verification result from the power distribution gateway, and if the verification is successful, save the first verification result to the log; if the verification is unsuccessful, issue a second error prompt; The data detection module includes: a dynamic parameter sending unit and a data verification unit; The dynamic parameter sending unit is used to send the first dynamic parameter to the power distribution gateway, so that the power distribution gateway pre-processes the first dynamic parameter to generate a second dynamic parameter; The data verification unit is used to receive the second dynamic parameter returned by the distribution gateway, and verify whether the data category of each field in the second dynamic parameter conforms to the preset data type. If so, the second verification result is saved to the log; if not, a third error prompt is issued and the non-compliant fields are output.
6. The power distribution gateway panoramic detection system according to claim 5, characterized in that: Also includes: Authentication module; The identity authentication module is used to obtain the user's identity information and verify the user's identity information. If the verification is successful, the user is granted permission to perform panoramic detection of the power distribution gateway. If the verification fails, access is denied.
7. The power distribution gateway panoramic detection system according to claim 6, characterized in that: Also includes: Log management module; The log management module is used to store the operation logs and detection records during the test process.
8. The power distribution gateway panoramic detection system according to claim 7, characterized in that: Also includes: Command control module; The command control module is used to obtain the command signal edited by the user and verify whether the command signal edited by the user conforms to the preset JSON format. If not, it prompts that the command editing is wrong. If it conforms, it identifies the command signal; If the recognized command signal is a pause signal, the current detection is stopped; If the recognized command signal is a continue signal, the current detection is resumed; If the recognized command signal is a restart signal, the current detection is terminated and the power distribution gateway panoramic detection method is performed again; If the recognized command signal is a log retrieval signal, the operation log and detection record in the log are retrieved and displayed in real time.
9. A terminal device, characterized in that: The method comprises a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, the method for panoramic detection of a power distribution gateway as described in any one of claims 1 to 4 is implemented.
10. A computer-readable storage medium, characterized in that: include: A stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the distribution gateway panoramic detection method as described in any one of claims 1-4.
Citation Information
Patent Citations
Digital electric energy meter IEC61850 conformance testing method and system
CN105824001A
Intelligent gateway intercommunication and interconnection test system
CN115361323A
System and method for intelligent terminal to manage home gateway
WO2014176832A1
Method for automatically testing network element, test center, test network element, and storage medium
WO2024187877A1
