Novel edge gateway and cloud platform joint debugging test method and system, terminal equipment and computer readable storage medium
The local mutual transmission between the edge gateway and the tester is achieved through the edge layer portable tester, which solves the problem of inefficiency in the test process in the existing technology, improves the testing efficiency and intelligent capabilities of the edge gateway, and adapts to the new energy scenarios Rapid development.
Patent Information
- Application Number
- CN202411239934.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-05
- Publication Date
- 2024-12-24
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In the environment of new power system, the existing on-site operation and maintenance joint commissioning method relies on cloud platform editing test cases and forwarding test data, resulting in inefficient testing process and unable to meet the digitalization of edge gateways in new energy consumption and flexible mutual assistance scenarios and intelligent needs.
The edge layer portable tester realizes local mutual transmission between the edge tester and the edge gateway, reducing the complexity of the test process and improving the testing efficiency. The cloud platform is only responsible for issuing test files and receiving reports, avoiding data processing transfer .
The testing process is simplified, the testing efficiency is improved, the digital and intelligent capabilities of edge gateways are enhanced, and the rapid development needs of new energy scenarios are adapted to the needs of rapid development of new energy scenarios.
Smart Images

Figure CN119182689A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a novel joint debugging test method, system, terminal device and computer-readable storage medium for an edge gateway and a cloud platform. Background Art
[0002] With the introduction of the "dual carbon" strategy, new power systems have developed rapidly, and the power grid has accelerated its upgrade towards an energy Internet with higher levels of intelligence and interactivity, stronger resource allocation and creativity. The new power system carries the historical mission of energy transformation and is an important strategic support and systematic solution for a clean, low-carbon, safe and efficient energy system. It is a power system with new energy as the main supply, a strong smart grid as the hub platform, and supported by source-grid-load-storage interaction and multi-energy complementarity.
[0003] In the process of building new power systems, the access of large-scale distributed renewable energy has changed the form of distribution networks. Traditional edge gateways focus on real-time collection and data distribution of environmental quantities, state quantities and low-voltage electrical quantities in various distribution scenarios. However, in the new power system environment, the distribution network is facing the rapid development of new energy scenario businesses such as new energy consumption and flexible mutual assistance between stations, which requires the digitalization and intelligent capabilities of edge gateways to be continuously improved. However, the existing on-site operation and maintenance joint debugging methods still rely on the cloud platform to edit test cases and forward test data, resulting in inefficient testing. Summary of the invention
[0004] The embodiments of the present invention provide a new joint debugging test method, system, terminal device and computer-readable storage medium for an edge gateway and a cloud platform. Local transmission between an edge tester and an edge gateway is achieved through an edge layer portable tester without the need for transit processing through a cloud platform, thereby reducing the complexity of the test process and improving the test efficiency.
[0005] An embodiment of the present invention provides a novel joint debugging and testing method of an edge gateway and a cloud platform, which is applicable to an edge layer portable tester, including:
[0006] Receive test files sent by the cloud platform;
[0007] Generate a test plan based on the test file and the device information of the device under test;
[0008] Send the analog quantity in the test plan to the perception layer end device, so that the perception layer end device generates the corresponding actual output quantity according to the analog quantity and sends the actual output quantity to the edge gateway;
[0009] Receive the actual output volume forwarded by the edge gateway;
[0010] Generate a first test report according to the simulated quantity and the actual output quantity;
[0011] The first test report is sent to the cloud platform.
[0012] Furthermore, a test plan is generated according to the test file and the device information of the device under test, including:
[0013] Get the device information of the device under test;
[0014] Search the database to see if the device information of the device under test exists. If yes, match the analog quantity required by the device under test according to the database; if not, send a matching error signal;
[0015] Integrate the test file, device information of the device under test, and the analog quantity to obtain a test plan.
[0016] Further, a first test report is generated according to the simulated quantity and the actual output quantity, including:
[0017] Compare and analyze the simulated quantity and the actual output quantity to obtain the test result data;
[0018] The test result data is compared with the test standard to generate a first test report.
[0019] Furthermore, the cloud platform is also used to: store the received test reports; and display the stored test reports.
[0020] Furthermore, the joint debugging and testing method of the new edge gateway and cloud platform also includes:
[0021] Perform internal simulation of the edge layer portable tester according to the simulated quantity to obtain simulation test data;
[0022] Generate a second test report based on the simulation quantity and the simulation test data;
[0023] The second test report is sent to the cloud platform.
[0024] Based on the above method embodiment, the present invention provides a corresponding system embodiment, including: a cloud platform, an edge layer portable tester, an edge gateway, and a perception layer terminal device;
[0025] A cloud platform for sending test files to the edge layer portable tester;
[0026] The edge layer portable tester is used to generate a test plan based on the test file and the device information of the device under test; and send the analog quantity in the test plan to the perception layer end device;
[0027] The perception layer device is used to generate the corresponding actual output quantity according to the analog quantity and send the actual output quantity to the edge gateway;
[0028] Edge gateway, used to forward the actual output quantity to the edge layer portable tester;
[0029] The edge layer portable tester is also used to generate a first test report based on the simulated quantity and the actual output quantity, and send the first test report to the cloud platform.
[0030] Furthermore, the cloud platform is also used to store the received test reports and display the stored test reports.
[0031] Furthermore, the edge layer portable tester is also used to perform internal simulation of the edge layer portable tester according to the simulation quantity to obtain simulation test data; generate a second test report according to the simulation quantity and the simulation test data; and send the second test report to the cloud platform.
[0032] 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 joint debugging and testing method of the new edge gateway and cloud platform as described in the present invention are implemented.
[0033] 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 joint debugging and testing method of the new edge gateway and cloud platform as described in the present invention when the computer program is running.
[0034] Compared with the prior art, the beneficial effects of the embodiment of this solution are:
[0035] The present invention receives the test file sent from the cloud platform through the edge layer portable tester, and then generates a corresponding test plan according to the test file and the device information of the device under test, sends the analog quantity in the test plan to the perception layer end device, so that the perception layer end device executes the test plan, generates the corresponding actual output quantity according to the analog quantity in the test plan, and transmits the actual output quantity back to the edge layer portable tester through the edge gateway, so that the edge layer portable tester can generate a test report according to the analog quantity and the actual output quantity, and finally uploads the test report to the cloud platform. During the entire test process, the cloud platform only participates in issuing test files and receiving test reports, and does not participate in the test data processing process. The test data is processed by the edge layer portable tester, and the local mutual transmission between the edge tester and the edge gateway is realized through the edge layer portable tester, without the need for transit processing through the cloud platform, which reduces the complexity of the test process and improves the test efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1 It is a flow chart of a joint debugging and testing method of a novel edge gateway and a cloud platform provided by an embodiment of the present invention;
[0037] Figure 2 It is a structural diagram of a joint debugging and testing system of a novel edge gateway and a cloud platform provided in one embodiment of the present invention. DETAILED DESCRIPTION
[0038] 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.
[0039] In the description of the present invention, it should be understood that the terms "first" and "second" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features.
[0040] like Figure 1 As shown, an embodiment of the present invention provides a new joint debugging test method of an edge gateway and a cloud platform, and the method includes at least the following steps:
[0041] Step S1: receiving a test file sent by a cloud platform;
[0042] In this embodiment, the accuracy of testing a temperature sensor is taken as an example for description.
[0043] For step S1, when performing a test task, the cloud platform will send the corresponding test files to the edge layer portable tester. The edge layer portable tester will receive these test files from the cloud platform to perform subsequent testing work.
[0044] It should be noted that the test file has already made blank definitions of the test point name, ID, test items, and test data volume. This information has not yet been specifically defined or filled in, but has been left blank and needs to be filled in with specific values or content based on the device under test.
[0045] Step S2: Generate a test plan based on the test file and the device information of the device under test;
[0046] In a preferred embodiment, a test plan is generated according to the test file and the device information of the device under test, including:
[0047] Get the device information of the device under test;
[0048] Search the database to see if the device information of the device under test exists. If yes, match the analog quantity required by the device under test according to the database; if not, send a matching error signal;
[0049] Integrate the test file, device information of the device under test, and the analog quantity to obtain a test plan.
[0050] For step S2, first, obtain the device information of the temperature sensor to be tested, such as the device name, device type and device ID, and then search in the database for matching device information based on the obtained device information. If matching device information is successfully found in the database, it means that the amount of data used for testing this type of device, that is, the analog amount has been pre-defined. In this case, the relevant parameters and information stored in the database can be directly used to integrate the test file and automatically generate a test plan. If matching device information is not found in the database, it means that the test device is a new device and the amount of data used for the test cannot be obtained through automatic matching in the database. A matching error signal can be sent to notify technicians or engineers to intervene and add the relevant information of the new device to the database.
[0051] For better explanation, the information in the database is shown in the form of Table 1, including but not limited to the following end devices:
[0052] Table 1 Information of each terminal device in the database
[0053]
[0054] When the database is successfully matched, the information obtained from the database is integrated into the test file to generate a test plan for the temperature sensor under test, such as device name: temperature sensor / device ID: TS001 / test item: ambient temperature / test data volume: three remote parameters, where the remote control data in the three remote parameters can be used as the analog quantity of the device under test to simulate the test scenario. In this embodiment, the values of the analog quantity are +88.7°C and -29.8°C, indicating that the signal when the temperature environment is +88.7°C and the signal when the ambient temperature is -29.8°C are simulated by the three remote data.
[0055] Step S3: Send the analog quantity in the test scheme to the perception layer end device, so that the perception layer end device generates the corresponding actual output quantity according to the analog quantity and sends the actual output quantity to the edge gateway;
[0056] For step S3, the analog data obtained in step S2 is transmitted from the portable tester at the edge layer to the terminal device at the perception layer. The terminal device at the perception layer is actually the device to be tested. The terminal device at the perception layer converts these analog signals into digital signals or other forms of electrical signals through its internal acquisition module, thereby completing the collection of analog data emitted by the tester. Through the acquisition module, the terminal device can accurately capture various analog signals emitted by the tester, thereby obtaining the actual output of the device to be tested. In this embodiment, the temperature sensor to be tested collects the analog signals emitted by the portable tester at the edge layer one by one, and the actual output values measured are +88.67°C and -29.76°C.
[0057] In order to ensure the accuracy and reliability of data transmission, the actual output is transmitted through specific protocols, including but not limited to DLT645, Modbus, MQTT, and 104 / 101. Through these protocols, the integrity and consistency of the data can be ensured during the transmission process, thereby ensuring that the data finally transmitted to the edge gateway is accurate. In this way, the actual output of the device under test can be effectively and accurately transmitted to the edge gateway.
[0058] Step S4: receiving the actual output forwarded by the edge gateway;
[0059] For step S4, after the actual output quantity generated by the perception layer end device in step S3 is transmitted to the edge gateway through the protocol, the edge gateway will forward the actual output quantity to the edge layer portable tester, and the edge layer portable tester will receive the actual output quantity forwarded by the edge gateway.
[0060] By forwarding the actual output generated by the perception layer device through the edge gateway, some simple data processing and analysis can be performed on the received actual output data. For example, the data can be aggregated, denoised, filtered, compressed or normalized to transmit and process the data more efficiently.
[0061] Step S5: Generate a first test report according to the simulated value and the actual output value;
[0062] In a preferred embodiment, a first test report is generated according to the simulated quantity and the actual output quantity, including:
[0063] Compare and analyze the simulated quantity and the actual output quantity to obtain the test result data;
[0064] The test result data is compared with the test standard to generate a first test report.
[0065] For step S5, first, the obtained simulation data and actual output data are compared and analyzed in detail, the simulation data are compared with the actual output data item by item, and the difference between the two is calculated. Based on these difference values, the error range and accuracy index are further calculated. Through these analyses, a series of test result data are obtained.
[0066] Next, the test standards for the temperature sensor device under test are extracted from the database. These test standards usually include a series of specific technical parameters and performance indicators to guide the test process and evaluate the test results. For example, the test standard for the temperature sensor under test is: measurement error ≤ 0.05℃, the test is qualified.
[0067] Then, the analyzed test result data is compared with the test standard, and according to the requirements of the test standard, it is evaluated whether the test result data meets the prescribed standard.
[0068] Finally, use the existing programming language to operate the COM interface (such as _application, _document, _table, _worksheet, and _workbook, etc.), and fill the test data, analysis results, and related parameters into the pre-designed report template by controlling the table in the WPS application. After completing the processing and improvement of the test report, export the test report file and save it. The report can be saved in an editable document format, such as Word document or PDF format, for subsequent reference and sharing.
[0069] Step S6: Send the first test report to the cloud platform.
[0070] In a preferred embodiment, the cloud platform is also used to: store the received test report; and display the stored test report.
[0071] For step S6, the edge layer portable tester uploads the test report obtained in step S5 to the cloud platform. In addition, the cloud platform is not only responsible for receiving these test reports, but also has the function of storing and viewing the received test reports, so that users can conveniently view and analyze these reports.
[0072] In a preferred embodiment, the joint debugging test method of the new edge gateway and the cloud platform also includes:
[0073] Perform internal simulation of the edge layer portable tester according to the simulated quantity to obtain simulation test data;
[0074] Generate a second test report based on the simulation quantity and the simulation test data;
[0075] The second test report is sent to the cloud platform.
[0076] In one embodiment of the present invention, after the edge layer portable tester generates a test scheme for testing the temperature sensor in step S2, the edge layer portable tester will also perform simulation inside it according to the analog quantity parameters in the test scheme. Through simulation, the response and output of the temperature sensor under different conditions can be simulated. These data cover the correspondence between the analog quantity input and the simulation output, and can be used to evaluate the performance and accuracy of the temperature sensor. Based on the analog quantity and simulation test data, the edge layer portable tester generates a second test report, which includes comparative analysis of the analog quantity input and simulation output, performance evaluation, etc., to show the test results and analysis of the temperature sensor. Finally, the generated second test report will be uploaded to the cloud platform.
[0077] Physical testing of sensors may require the use of specialized equipment and consume a lot of time and resources. By simulating inside the edge layer portable tester, the response of the sensor can be simulated inside the edge layer portable tester, effectively avoiding the cost and resource consumption of actual testing.
[0078] In addition, the simulation process can significantly improve the efficiency and speed of testing, thereby evaluating the performance and accuracy of the sensor more quickly.
[0079] like Figure 2 As shown, based on the above method embodiment, a corresponding system embodiment is provided;
[0080] An embodiment of the present invention provides a novel joint debugging and testing system of an edge gateway and a cloud platform, including: a cloud platform, an edge layer portable tester, an edge gateway, and a perception layer terminal device;
[0081] A cloud platform for sending test files to the edge layer portable tester;
[0082] The edge layer portable tester is used to generate a test plan based on the test file and the device information of the device under test; and send the analog quantity in the test plan to the perception layer end device;
[0083] The perception layer end device is used to generate the corresponding actual output quantity according to the analog quantity and send the actual output quantity to the edge gateway;
[0084] Edge gateway, used to forward the actual output quantity to the edge layer portable tester;
[0085] The edge layer portable tester is also used to generate a first test report based on the simulated quantity and the actual output quantity, and send the first test report to the cloud platform.
[0086] It should be noted that the traditional edge gateway is a device located at the edge of the edge computing network, which is used to connect the end device and the cloud platform, act as a bridge for data exchange and protocol conversion, transmit data from the end device to the cloud platform, and can also transmit the instructions and data of the cloud platform back to the end device. Therefore, in the traditional edge computing architecture, the cloud needs to provide functions such as monitoring, data analysis, and remote control. In the present invention, the cloud platform no longer directly participates in data processing and instruction issuance, but only issues test file templates and receives test reports, avoiding security risks caused by excessive participation of the cloud platform.
[0087] In a preferred embodiment, the cloud platform is also used to store the received test reports and display the stored test reports.
[0088] In a preferred embodiment, the edge layer portable tester is also used to perform internal simulation of the edge layer portable tester according to the simulation quantity to obtain simulation test data; generate a second test report according to the simulation quantity and the simulation test data; and send the second test report to the cloud platform.
[0089] It can be understood that the above-mentioned system item embodiments correspond to the method item embodiments of the present invention, which can implement the joint debugging and testing method of the new edge gateway and cloud platform provided by any one of the above-mentioned method item embodiments of the present invention.
[0090] 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.
[0091] Based on the above-mentioned embodiment of the joint debugging and testing method of the new edge gateway and the cloud platform, 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 joint debugging and testing method of the new edge gateway and the cloud platform of any embodiment of the present invention is implemented.
[0092] 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.
[0093] 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.
[0094] 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.
[0095] 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 joint debugging and testing method of the new edge gateway and cloud platform described in any one of the above method embodiments of the present invention.
[0096] Among them, the module / unit integrated by the joint debugging and testing system / terminal device of the new edge gateway and cloud platform, 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 such an 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.
[0097] 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 new joint debugging test method for edge gateway and cloud platform, suitable for edge layer portable tester, characterized in that: include: Receive test files sent by the cloud platform; Generate a test plan according to the test file and device information of the device under test; Sending the analog quantity in the test scheme to the perception layer end device, so that the perception layer end device generates a corresponding actual output quantity according to the analog quantity and sends the actual output quantity to the edge gateway; Receive the actual output volume forwarded by the edge gateway; Generate a first test report according to the simulated quantity and the actual output quantity; The first test report is sent to the cloud platform.
2. The joint debugging and testing method of the new edge gateway and cloud platform according to claim 1 is characterized in that: Generate a test plan based on the test file and the device information of the device under test, including: Get the device information of the device under test; Searching the database to see whether the device information of the device under test exists, if yes, matching the analog quantity required by the device under test according to the database; if no, issuing a matching error signal; Integrate the test file, device information of the device under test, and the analog quantity to obtain a test plan.
3. The joint debugging and testing method of the new edge gateway and cloud platform according to claim 2 is characterized in that: Generate a first test report according to the simulated quantity and the actual output quantity, including: Compare and analyze the simulated quantity and the actual output quantity to obtain test result data; The test result data is compared with the test standard to generate a first test report.
4. The joint debugging and testing method of the new edge gateway and cloud platform according to claim 1 is characterized in that: The cloud platform is also used to: store the received test reports; and display the stored test reports.
5. The joint debugging and testing method of the new edge gateway and cloud platform according to claim 4 is characterized in that: Also includes: Perform internal simulation of the edge layer portable tester according to the simulated quantity to obtain simulation test data; Generate a second test report according to the simulation quantity and the simulation test data; The second test report is sent to the cloud platform.
6. A new type of joint debugging and testing system for edge gateway and cloud platform, characterized in that: include: Cloud platform, edge layer portable tester, edge gateway and perception layer end equipment; The cloud platform is used to send the test file to the edge layer portable tester; The edge layer portable tester is used to generate a test plan according to the test file and the device information of the device under test; Sending the analog quantity in the test scheme to the perception layer end device; The perception layer terminal device is used to generate a corresponding actual output quantity according to the analog quantity, and send the actual output quantity to the edge gateway; The edge gateway is used to forward the actual output to the edge layer portable tester; The edge layer portable tester is also used to generate a first test report according to the simulated quantity and the actual output quantity, and send the first test report to the cloud platform.
7. The novel edge gateway and cloud platform joint debugging and testing system according to claim 6 is characterized in that: The cloud platform is also used to store the received test reports and display the stored test reports.
8. The novel edge gateway and cloud platform joint debugging and testing system according to claim 7 is characterized in that: The portable edge layer tester is also used for: Perform internal simulation of the edge layer portable tester according to the simulated quantity to obtain simulation test data; Generate a second test report according to the simulation quantity and the simulation test data; The second test report is sent to the cloud platform.
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 joint debugging and testing method of the new edge gateway and cloud platform as described in any one of claims 1 to 5.
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 joint debugging and testing method of the new edge gateway and cloud platform as described in any one of claims 1-5.
Citation Information
Patent Citations
Power distribution automation terminal detection and monitoring system
CN110988543A
Internet of Things testing method and device, central control equipment and computer equipment
CN114172832A
Signal system digital intelligent test method based on edge computing platform
CN115086209A
System, method and device for situation awareness of Internet of Things and medium
CN115134386A
Internet of vehicles simulation test method and device, electronic equipment and storage medium
CN116300833A
