A panoramic detection method, system, terminal device and computer-readable storage medium for power distribution gateway
By automatically verifying the sub-device registration and data categories of the distribution gateway, the problem of low efficiency of manual detection is solved, and efficient and accurate distribution gateway detection is achieved.
Patent Information
- Application Number
- CN202411366845.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-29
- Publication Date
- 2025-09-30
- Estimated Expiration
- 2044-09-29
AI Technical Summary
Currently, power distribution gateway detection mainly relies on manual operation, which has low testing efficiency and is prone to human errors.
By obtaining the product model file and matching the file name and suffix, parsing static and dynamic parameters, automatically verifying the sub-device registration and data category of the distribution gateway, generating error prompts and saving verification results, panoramic detection is achieved.
It improves detection efficiency, reduces the risk of human error, optimizes the detection process, and reduces testing workload and time.
Smart Images

Figure CN119254663B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of Internet of Things technology, 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] Currently, the innovative development of the Internet of Things (IoT) and the new industrial revolution are at a historical intersection. International competition among countries participating in the development of the IoT is becoming increasingly fierce. The global IoT industry is experiencing rapid growth, with a constant stream of new technologies and applications. The power industry is a foundational industry for the national economy and a vital piece of infrastructure for its development and people's well-being.
[0003] With the development of smart grids, distribution gateways, as key nodes in power systems, must possess a high level of intelligence and automation to enable access to and support new technologies such as distributed energy and load-side management. Therefore, distribution gateways play a vital role in power systems, and their stable operation is crucial to ensuring their stability and reliability. However, current testing of distribution gateways still relies primarily on manual operation, resulting in low testing efficiency. Summary of the Invention
[0004] 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 testing 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, export the product model file to the IoT platform. If the match fails, issue the first error prompt.
[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 passes, save the first verification result to the log. If the verification fails, issue a second error prompt.
[0010] Sending the first dynamic parameter to the power distribution gateway so that the power distribution gateway preprocesses 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 will be given the permission to perform panoramic detection of the power distribution gateway. If the verification fails, access will be denied.
[0014] Furthermore, the panoramic detection method for 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, it will prompt a command editing error. If it conforms, the command signal will be identified;
[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 identified 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] Product model file detection module, including: file format detection unit and file parsing unit;
[0023] A file format detection unit, configured 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, configured 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 is configured to receive a verification result from the power distribution gateway, save the first verification result to a log if the verification passes, and issue a second error message if the verification fails;
[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 will be given the permission to perform panoramic detection of the power distribution gateway. If the verification fails, access will be 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 will prompt a command editing error. If it conforms, it will identify 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 identified 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 embodiment, the present invention provides a corresponding terminal device 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-mentioned method embodiment, the present invention provides a corresponding computer-readable storage medium embodiment, including: a stored computer program, which controls 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 when the computer program is running.
[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 errors that may occur 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. If the verification is successful, the verification result is saved in the log; if the verification fails, an error prompt is 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, this method parses and verifies product model files, enabling automated verification. This not only improves testing efficiency but also reduces the risk of human error. Furthermore, this method only requires obtaining the product model files, eliminating the need for on-site testing of each sub-device. This significantly reduces testing workload and time, optimizing the entire testing process. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Figure 1This is a flow chart of a method for panoramic detection of a power distribution gateway provided by one embodiment of the present invention;
[0047] Figure 2 This is an application software architecture diagram of a panoramic detection method for a power distribution gateway 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 by one embodiment of the present invention. DETAILED DESCRIPTION
[0049] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making any creative efforts shall fall 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 IoT platform. If the match fails, issue a first error prompt.
[0052] For step S1, import the product model file provided by the manufacturer, simulate the access of the distribution terminal through this product model file, match the file name and suffix of the product model file of the distribution terminal with the preset data table, and 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 parameters and the first dynamic parameters of the distribution terminal are obtained, wherein the first parameters include: 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 based on 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] In step S3, based on the first static parameters obtained in step S2, a registration signal containing the sub-device information is generated. This simulates the sub-device sending registration information to the distribution gateway via a network communication protocol. After receiving the sub-device's registration signal, the distribution gateway begins the registration and verification process. First, the distribution gateway checks the completeness of the information in the sub-device's registration signal to ensure that all necessary parameters are provided. Second, the distribution gateway checks whether the sub-device's IP address overlaps with the IP addresses of other registered devices to ensure that devices on the network have unique IP addresses. Next, the distribution gateway checks whether the port number specified in the sub-device's registration signal is already occupied by other devices to prevent port conflicts. Finally, based on the verification results, the distribution gateway sends feedback back to the sub-device. In this embodiment, it is sent back to the testing system. If the verification passes, the sub-device is successfully registered with the distribution gateway and obtains a unique identifier within the network. If the verification fails, the sub-device receives an error message and can resend the registration signal after making corrections.
[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: Receive the verification result from the power distribution gateway. If the verification passes, save the first verification result to the log. If the verification fails, issue 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 relevant information such as the timestamp of successful registration 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 parameters, the distribution gateway preprocesses the first dynamic parameters, i.e., data cleaning, normalization, filtering, feature extraction and other operations to extract useful information or generate new parameters; based on the results of the preprocessing, the distribution gateway generates second dynamic parameters.
[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] In 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 information such as the timestamp of the verification, the passed fields, and the corresponding data types for subsequent reference and management. 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. The error prompt includes a corresponding error code and error message to help discover and solve the problem. At the same time, the name of the field 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, telesignaling, and sensor parameters are uploaded every 15 minutes, for a total of 96 uploads per day. Remote control and fixed-value parameters are proactively distributed via the IoT 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 a corresponding prompt, such as an error message indicating that data is being reported too quickly or too slowly, 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 will be given the permission to perform panoramic detection of the power distribution gateway. If the verification fails, access will be 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, preventing unauthorized users from obtaining and tampering with the data, and protecting 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 is successful, the user will be granted access to the power distribution gateway panoramic detection; if the identity authentication is unsuccessful, the user will be denied access. This ensures that only authorized users can access and protects the security of the system.
[0070] In a preferred embodiment, the method for panoramic detection of a power distribution gateway 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, it will prompt a command editing error. If it conforms, the command signal will be identified;
[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 identified 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 achieved 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 indicating a command editing error, 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. It adopts a master-slave, layered, and modular design approach. 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 panoramic detection system for a power distribution gateway, comprising: a product model file detection module, a device registration detection module, and a data detection module;
[0086] Product model file detection module, including: file format detection unit and file parsing unit;
[0087] A file format detection unit, configured 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, configured 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 is configured to receive a verification result from the power distribution gateway, save the first verification result to a log if the verification passes, and issue a second error message if the verification fails;
[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 will be given the permission to perform panoramic detection of the power distribution gateway. If the verification fails, access will be 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 will prompt a command editing error. If it conforms, it will identify 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 identified 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 embodiment corresponds to the method embodiment of the present invention, which can implement the distribution gateway panoramic detection method provided by any of the above-mentioned method 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 based on actual needs to achieve the objectives of the present embodiments. Furthermore, in the drawings of the system embodiments provided herein, the connection relationships between modules indicate that they have communication connections, which may be implemented as one or more communication buses or signal lines. Persons of ordinary skill in the art can understand and implement the present invention without inventive effort.
[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] For example, 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 performing specific functions, and the instruction segments 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 computer, 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, connecting various parts of the entire terminal device using various interfaces and lines.
[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 power distribution gateway panoramic detection system / terminal device, 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 process 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 when the computer program is executed by the processor, it can implement the steps of the above-mentioned various method embodiments. 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, etc. The computer-readable medium may include: any entity or device that can carry the computer program code, recording medium, U disk, mobile hard disk, magnetic 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 for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles 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 power distribution gateways, 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 passes, save the first verification result to the log. If the verification fails, issue a second error prompt. Sending the first dynamic parameter to a power distribution gateway so that the power distribution gateway preprocesses 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 will be given the permission to perform panoramic detection of the power distribution gateway. If the verification fails, access will be 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 it conforms, 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 identified 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 configured 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 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; The data verification unit is used to 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, 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 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 a command editing error; 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 identified 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: It 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, it implements the distribution gateway panoramic detection method according to any one of claims 1 to 4.
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 according to any one of claims 1 to 4.