Gateway equipment testing method and system, computer and readable storage medium
By obtaining and analyzing historical data of gateway devices, confirming test types and conducting targeted tests, the problem of insufficient testing in the existing technology is solved, the test efficiency and network availability are improved, and the risk of failure is reduced.
Patent Information
- Application Number
- CN202410928176.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-11
- Publication Date
- 2024-10-01
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing technology lacks analysis of historical operating data of gateway equipment, resulting in a unified test type, increasing the test workload, reducing test efficiency and comprehensiveness, neglecting the linkage testing of hardware failures and software failures, and making it difficult to fully reflect the gateway equipment. The test results increase the risk of network failure.
By obtaining historical data of edge gateway devices, we evaluate fault types, confirm test types, and use intelligent inspection robots to conduct targeted tests, including hardware, software, and operational tests, analyze performance optimization, and display test results.
It reduces the workload and redundant data of gateway equipment testing, improves testing efficiency and comprehensiveness, fully reflects the test results, reduces network risks caused by gateway equipment failure, and ensures the continuous availability of the network.
Smart Images

Figure CN118740688A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of gateway equipment, and in particular to a gateway equipment testing method, system, computer and readable storage medium. Background Art
[0002] In today's digital age, the rapid development of network technology has given rise to an urgent need for efficient and stable network communications. As a key node for data transmission between different network environments, the performance and stability of gateway devices directly affect the operating efficiency and security of the entire network system. The failure of gateway devices may cause partial or even entire network paralysis. Many network failures are caused by hardware or device configuration errors, and gateway device failures account for a considerable proportion of these. Through rigorous prior testing, the risk of network interruption caused by device failure can be greatly reduced, ensuring the continuous availability of the network.
[0003] Prior art, such as the invention application patent with announcement number: CN116600000A, discloses a method and gateway device for joint debugging and testing. This invention solves the problem of low testing efficiency of the gateway device during joint debugging and testing when the business cloud platform switches the operating environment between the testing and production stages. The method includes: after the first gateway device is reset, the first gateway device establishes a connection with the access cloud platform, and the first gateway device obtains the address of the first business cloud platform corresponding to the device identifier of the first gateway device from the access cloud platform. The first gateway device establishes a connection with the first business cloud platform according to the address of the first business cloud platform. The first gateway device performs joint debugging and testing with the application of the user device through the first business cloud platform.
[0004] The prior art, such as the gateway testing method, device and computer equipment based on the direct connection test network disclosed in the invention application patent with announcement number: CN111669300B, includes: receiving a test request for a designated gateway; calling a preset simulated user end and simulated service end; building a direct connection test network structure, directly connecting to the designated switch through the first communication interface on the designated switch, connecting to the designated gateway through the second communication interface on the designated switch, and then directly connecting to the third communication interface on the designated switch through the designated gateway, and then directly connecting to the simulated service end as the end point through the fourth communication interface of the designated gateway; sending a test instruction to the simulated user end, and sending a test instruction to the simulated service end; detecting at least one designated data of the designated gateway during the test; generating a gateway test report. The test efficiency and test fluency are improved.
[0005] In combination with the above scheme, it is found that the testing of gateway devices in the prior art still has the following defects. Currently, there is rarely any advance classification of the required test types of gateway devices based on the historical operation data of gateway devices, and the same test is performed on gateway devices in a unified manner. Since the historical operation data of gateway devices are different, the test requirements are different. Therefore, there is a lack of analysis in this dimension, which increases the workload of gateway device testing, test data redundancy, and reduces the efficiency of gateway device testing and analysis. At the same time, there is a lack of linkage testing of hardware failures and software failures of gateway devices. Both hardware failures and software failures of gateway devices have a certain impact on the normal operation of gateway devices. The neglect of this level in the prior art has led to incomplete testing of gateway devices, making it difficult to fully reflect the test results of gateway devices, increasing network risks caused by gateway device failures, and reducing the continuous availability of the network. Summary of the invention
[0006] The purpose of the present invention is to provide a gateway device testing method, system, computer and readable storage medium, which solve the problems existing in the background technology.
[0007] In order to solve the above technical problems, the present invention adopts the following technical solutions: A first aspect of the present invention provides a gateway device testing method, comprising: step 1, acquiring historical data of edge gateway devices: acquiring historical data of each edge gateway device from a database;
[0008] Step 2: Edge gateway device fault assessment: Based on the historical data of each edge gateway device, locate the fault type set of each edge gateway device, where the fault type includes hardware fault, software fault, and operation fault;
[0009] Step 3: confirm the test type of the edge gateway device: locate the test gateway device group tag according to the fault type set of each edge gateway device, and confirm the test type set of the test gateway device group tag, where the test type includes hardware test, software test, and operation test;
[0010] Step 4: Edge gateway device testing: The intelligent inspection robot performs testing based on the test type set of the test gateway device group label, thereby obtaining a test data set of the test gateway device group label;
[0011] Step 5: Edge gateway device performance analysis: Based on the test data set of the test gateway device group tag, locate the performance optimization edge gateway device tag and display it.
[0012] A second aspect of the present invention provides a gateway device testing system for the gateway device testing method of the present invention, comprising: an edge gateway device historical data acquisition module, for acquiring historical data of each edge gateway device from a database;
[0013] The edge gateway device fault assessment module is used to locate the fault type set of each edge gateway device based on the historical data of each edge gateway device, where the fault type includes hardware fault, software fault, and operation fault;
[0014] The edge gateway device test type confirmation module is used to locate the test gateway device group label according to the fault type set of each edge gateway device, and confirm the test type set of the test gateway device group label, wherein the test type includes hardware test, software test, and operation test;
[0015] The edge gateway device testing module is used for the intelligent inspection robot to perform a test based on the test type set of the test gateway device group label, thereby obtaining a test data set of the test gateway device group label;
[0016] The edge gateway device performance analysis module is used to locate the performance optimization edge gateway device tag based on the test data set of the test gateway device group tag and display it.
[0017] The third aspect of the present invention provides a computer and a readable storage medium for executing the gateway device testing method described in the present invention. The computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps in the gateway device testing method described in the present invention.
[0018] The beneficial effects of the present invention are: (1) the present invention obtains historical data of each edge gateway device in step one, thereby providing data support for locating the fault type of subsequent edge gateway devices.
[0019] (2) In step 2, the present invention locates the fault type set of each edge gateway device based on the historical data of each edge gateway device, thereby laying a foundation for the classification of the required test types of subsequent gateway devices.
[0020] (3) In step three, the present invention locates the test gateway device group label according to the fault type set of each edge gateway device, and confirms the test type set of the test gateway device group label, which makes up for the defects of the prior art at this level, tests the edge gateway device in a targeted manner, reduces the workload of gateway device testing, and makes the test data more concise, thereby improving the efficiency of gateway device testing and analysis.
[0021] (4) In step 4, the present invention performs testing according to a test type set of the test gateway device group label, wherein the test types include hardware testing, software testing, and operation testing, which makes up for the deficiency of the prior art in the lack of linkage testing of hardware failures and software failures, improves the comprehensiveness of the testing of the gateway device, thereby fully reflecting the test results of the gateway device, reducing the network risks caused by gateway device failures, and ensuring the continuous availability of the network. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0023] Figure 1 The present invention is a schematic flow chart of the steps for implementing the method.
[0024] Figure 2 It is a schematic diagram of the system structure connection of the present invention. DETAILED DESCRIPTION
[0025] 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.
[0026] Reference Figure 1 As shown, the first aspect of the present invention provides a gateway device testing method, comprising: step 1, acquiring historical data of edge gateway devices: acquiring historical data of each edge gateway device from a database;
[0027] In a specific embodiment of the present invention, the historical data includes image parameters, software parameters, and operating parameters, wherein the image parameters include three-dimensional images of each detection cycle, the software parameters include response time, throughput, and concurrency of each detection cycle, and the operating parameters include operating status, temperature data, and power data of each detection cycle. The temperature data includes CPU temperature and battery temperature, and the power data includes voltage, current, and power.
[0028] It should be noted that the operating status includes power on, power off and standby.
[0029] The present invention obtains historical data of each edge gateway device in step one, thereby providing data support for locating the fault type of the subsequent edge gateway device.
[0030] Step 2: Edge gateway device fault assessment: Based on the historical data of each edge gateway device, locate the fault type set of each edge gateway device, where the fault type includes hardware fault, software fault, and operation fault;
[0031] In a specific embodiment of the present invention, the fault type set located at each edge gateway device is specifically analyzed by: evaluating the hardware constraint characteristic parameters, software constraint characteristic parameters and operation constraint characteristic parameters of each edge gateway device according to the historical data of each edge gateway device;
[0032] It should be noted that the specific analysis method of the hardware constraint characteristic parameters of each edge gateway device is as follows:
[0033] Based on the three-dimensional images of each detection cycle of each edge gateway device, the volume of each interface of each detection cycle of each edge gateway device is obtained, and the apparent defect characteristic parameters of each detection cycle of each edge gateway device are identified by image recognition technology, where the apparent defect characteristic parameters include defect type and total defect area, and the hardware constraint parameters of each detection cycle of each edge gateway device are summarized;
[0034] It should also be added that the defect types include cracking, corrosion and contamination.
[0035] It should be understood that image recognition technology is an existing conventional technical solution, and the specific recognition steps will not be repeated in this application.
[0036] Obtain a design drawing of the edge gateway device from a database, and obtain the volume of each interface of the edge gateway device therefrom, and obtain a reference defect area of each defect type of the edge gateway device, and summarize to obtain a standard hardware constraint parameter of the edge gateway device, wherein the reference defect area of each defect type of the edge gateway device is determined by a manager according to specific circumstances;
[0037] Output the hardware constraint characteristic parameters of each edge gateway device through the hardware constraint characteristic parameter model where Y i is the hardware constraint characteristic parameter of the i-th edge gateway device, V imp is the volume of the pth interface of the mth detection cycle of the ith edge gateway device, V′ p is the volume of the pth interface of the edge gateway device, Q im , Q′ imare respectively the total defect area and the reference defect area of the mth detection cycle of the i-th edge gateway device, i is the number of each edge gateway device, i=1, 2, ..., n, n is any integer greater than 2, m is the number of each detection cycle, m=1, 2, ..., l, l is any integer greater than 2, p is the number of each interface, p=1, 2, ..., q, q is any integer greater than 2, wherein is the number of detection cycles;
[0038] It should be noted that the software constraint characteristic parameters of each edge gateway device are specifically analyzed by extracting the data set of each detection cycle from the software parameters of each edge gateway device, and combining the standard software parameter data set of the edge gateway device stored in the database, and outputting the software constraint characteristic parameters of each edge gateway device in each detection cycle through the software constraint characteristic parameter model. where a imr It is represented as the rth data in the dataset of the i-th edge gateway device in the m-th detection cycle, b i is the range of the rth data in the standard software parameter data set of the edge gateway device, r is the number of each data, r∈[1,3].
[0039] The software constraint characteristic parameters of each edge gateway device in each detection cycle are removed from the extreme values and then averaged to obtain the software constraint characteristic parameters of each edge gateway device;
[0040] It should be noted that the analysis method is consistent with the software constraint characteristic parameters of each edge gateway device, and the operation constraint characteristic parameters of each edge gateway device are analyzed to obtain the operation constraint characteristic parameters of each edge gateway device.
[0041] The hardware constraint characteristic parameters, software constraint characteristic parameters and operation constraint characteristic parameters of each edge gateway device are respectively compared with the predefined hardware constraint characteristic parameter threshold, software constraint characteristic parameter threshold and operation constraint characteristic parameter threshold. If the hardware constraint characteristic parameter of an edge gateway device is greater than or equal to the hardware constraint characteristic parameter threshold, the fault type of the edge device is recorded as a hardware fault. If the software constraint characteristic parameter of an edge gateway device is greater than or equal to the software constraint characteristic parameter threshold, the fault type of the edge device is recorded as a software fault. If the operation constraint characteristic parameter of an edge gateway device is greater than or equal to the operation constraint characteristic parameter threshold, the fault type of the edge gateway device is recorded as an operation fault.
[0042] The various fault types of each edge gateway device are summarized, and statistics are obtained to obtain a set of fault types of each edge gateway device.
[0043] In step 2, the present invention locates the fault type set of each edge gateway device according to the historical data of each edge gateway device, thereby laying a foundation for the classification of the required test types of subsequent gateway devices.
[0044] Step 3: confirm the test type of the edge gateway device: locate the test gateway device group tag according to the fault type set of each edge gateway device, and confirm the test type set of the test gateway device group tag, where the test type includes hardware test, software test, and operation test;
[0045] In a specific embodiment of the present invention, the test gateway device group label is located according to the fault type set of each edge gateway device, and the specific positioning method is: according to the fault type set of each edge gateway device, each fault type of each edge gateway device is obtained, and then each test type β of each edge gateway device is matched. i , count the number of test types of each edge gateway device α i ;
[0046] If (α i =1)∧(β i is A), then the label identification number of the edge gateway device is recorded as 1A. If (α i =1)∧(β i is B), then the label identification number of the edge gateway device is recorded as 1B. If (α i =1)∧(β i C), then the label identification number of the edge gateway device is recorded as 1C, where A, B, and C represent hardware test, software test, and operation test respectively, and ∧ is a logical symbol, indicating and;
[0047] If (α i =2)∧(β i A and B), then the label identification number of the edge gateway device is recorded as 2AB. i =2)∧(β i A and C), then the label identification number of the edge gateway device is recorded as 2AC, (α i =2)∧(β i If the edge gateway device is B or C), the label identification number of the edge gateway device is recorded as 2BC;
[0048] If (α i =3)∧(β i A, B and C), the label identification number of the edge gateway device is recorded as 3;
[0049] Aggregate the edge gateway devices with 1A label identification numbers to generate a test gateway device 1A-level group sub-tag, aggregate the edge gateway devices with 1B label identification numbers to generate a test gateway device 1B-level group sub-tag, aggregate the edge gateway devices with 1C label identification numbers to generate a test gateway device 1C-level group sub-tag, aggregate the test gateway device 1A-level group sub-tag, 1B-level group sub-tag, and 1C-level group sub-tag to generate a test gateway device 1-level group tag;
[0050] In the same way, a test gateway device level 2 group label and a test gateway device level 3 group label are generated.
[0051] It should be noted that the test type set of the test gateway group label is confirmed according to the test gateway device group label. If the test gateway device group sub-label is 1A, 1B or 1C, the corresponding test types are hardware test, software test, and operation test respectively. If the test gateway device group sub-label is 2AB, 2AC, 2BC, the corresponding test types are hardware test + software test, hardware test + operation test, software test + operation test respectively. If the test gateway device group label is 3, the corresponding test type is hardware test + software test + operation test.
[0052] It should also be noted that confirming the test type set of the test gateway device group label facilitates subsequent test grouping, thereby simplifying the workflow of subsequent tests.
[0053] In step three, the present invention locates the test gateway device group label according to the fault type set of each edge gateway device, and confirms the test type set of the test gateway device group label, which makes up for the defects of the prior art at this level, tests the edge gateway devices in a targeted manner, reduces the workload of gateway device testing, and makes the test data more concise, thereby improving the efficiency of gateway device testing and analysis.
[0054] Step 4: Edge gateway device testing: The intelligent inspection robot performs testing based on the test type set of the test gateway device group label, thereby obtaining a test data set of the test gateway device group label;
[0055] It should be noted that the test data set is one or more of hardware test data, software test data, and operation test data, and the test type set of the test gateway device group label corresponds to the test data set.
[0056] In a specific embodiment, for example, if the test gateway device group sub-label is 1A, then its corresponding test data set is the hardware test data of each edge gateway device. For example, if the test gateway device group sub-label is 2AB, then its corresponding test data set is the hardware test data and software test data of each edge gateway device. If the test gateway device group label is 3, then its corresponding test data set is the hardware test data, software test data, and operation test data of each edge gateway device.
[0057] In a specific embodiment of the present invention, the intelligent inspection robot performs the test based on the test type set of the test gateway device group label, and the specific analysis method is as follows: the hardware test is specifically to scan the edge gateway device and perform modeling, thereby obtaining a three-dimensional image of the edge gateway device, and to perform a pressure test on the edge gateway device based on a preset pressure threshold, obtain a pressure test image of the edge gateway device, identify the pressure defect characteristic parameters of the edge gateway device, perform a temperature test on the edge gateway device according to a preset temperature range, and then obtain a three-dimensional image of the edge gateway device at the lowest temperature, a battery power supply status and a three-dimensional image at the highest temperature, and a battery capacity, and summarize the hardware test data;
[0058] It should be noted that the pressure defect characteristic parameters include the number of cracks and the area of the depression, and the number of cracks and the area of the depression are identified based on image recognition technology.
[0059] It should be understood that if the edge gateway device cannot withstand pressure well, it will produce dents or cracks. Testing and subsequent analysis of this aspect ensures the pressure resistance of the edge gateway device. The edge gateway device will crack at low temperatures. At the same time, low temperatures slow down the chemical reaction rate of the battery, and the battery performance is unstable, which may not be able to supply power. At high temperatures, the material expands and deforms, and is prone to deformation. At the same time, high temperatures will cause the effective capacity of the battery to decrease, affecting the endurance of the edge gateway device. Therefore, high and low temperature testing of the edge gateway device will help ensure the normal use of the edge gateway device at high and low temperatures.
[0060] The software test specifically includes sending each request to the edge gateway device and recording the time from sending the request to receiving the response, obtaining the response time of each request of the edge gateway device, and performing average processing on it to obtain the test response time of the edge gateway device, measuring the total amount of data transmitted by the edge gateway device within each preset time, processing to obtain the test throughput of the edge gateway device, and simulating multiple users to send requests to the edge gateway device at the same time and recording the number of processed requests to obtain the concurrency number of the edge gateway device, and summarizing to obtain the software test data;
[0061] The operation test specifically includes testing and running each set of preset software parameters on the edge gateway device, and monitoring the operation test data of the edge gateway device, wherein the operation test data includes the operation status, temperature data, and power data corresponding to each set of preset software parameters;
[0062] It should be noted that each set of preset software parameters is a combination of the number of sending requests, the amount of transmitted data, and the number of simultaneous users.
[0063] According to the above test method, each edge gateway device is tested in combination with the test type set of the test gateway device group label.
[0064] In step four, the present invention performs testing according to a test type set of the test gateway device group label, wherein the test types include hardware testing, software testing, and operation testing, which makes up for the lack of linkage testing of hardware failures and software failures in the prior art, improves the comprehensiveness of the testing of the gateway device, thereby fully reflecting the test results of the gateway device, reducing the network risks caused by gateway device failures, and ensuring the continuous availability of the network.
[0065] Step 5: Edge gateway device performance analysis: Based on the test data set of the test gateway device group tag, locate the performance optimization edge gateway device tag and display it.
[0066] In a specific embodiment of the present invention, the performance optimization edge gateway device tag is located according to the test data set of the test gateway device group tag, and the specific analysis method is: according to the test data set of the test gateway device group tag, the hardware test data of each edge gateway device of the 1A sub-tag in the test gateway device level 1 group tag, the software test data of each edge gateway device of the 1B sub-tag, and the operation test data of each edge gateway device of the 1C sub-tag are extracted, and then the performance optimization edge gateway device level 1 tag is analyzed;
[0067] According to the test data set of the test gateway device group label, extract the hardware test data and software test data of each edge gateway device of the 2AB sub-label in the test gateway device 2-level group label, the hardware test data and operation test data of each edge gateway device of the 2AC sub-label, and the software test data and operation test data of each edge gateway device of the 2BC sub-label, and analyze the performance optimization of the edge gateway device 2-level label;
[0068] In a specific embodiment, based on the hardware test data and software test data of each edge gateway device of the 2AB sub-tag in the test gateway device level 2 group label, the analysis method is consistent with the hardware test compliance value and software test compliance value of each first edge gateway device, and the hardware test compliance value and software test compliance value of each edge gateway device of the 2AB sub-tag in the test gateway device level 2 group label are obtained, and compared with the hardware test compliance threshold and the software test compliance threshold respectively. If the hardware test compliance value of an edge gateway device of the 2AB sub-tag in the test gateway device level 2 group label is less than the hardware test compliance threshold or the software test compliance value is less than the software test compliance threshold, then the edge gateway device of the 2AB sub-tag in the test gateway device level 2 group label is summarized into the performance optimization edge gateway device level 2 label, and so on, to obtain the performance optimization edge gateway device level 2 label.
[0069] According to the test data set of the test gateway device group tag, extract the hardware test data, software test data and operation test data of each edge gateway device in the test gateway device level 3 group tag, and analyze the performance optimization edge gateway device level 3 tag;
[0070] In a specific embodiment, according to the hardware test data, software test data and operation test data of each edge gateway device in the test gateway device level 3 group label, the analysis method is consistent with the hardware test compliance value, software test compliance value and operation test compliance value of each first edge gateway device, and the hardware test compliance value, software test compliance value and operation test compliance value of each edge gateway device in the test gateway device level 3 group label are obtained, and compared with the hardware test compliance threshold, software test compliance threshold and operation test compliance threshold respectively. If the hardware test compliance value of an edge gateway device in the test gateway device level 3 group label is less than the hardware test compliance threshold or the software test compliance value is less than the software test compliance threshold or the operation test compliance value is less than the operation test compliance threshold, then the edge gateway device is summarized into the performance optimization edge gateway device level 3 label to obtain the performance optimization edge gateway device level 3 label.
[0071] In a specific embodiment of the present invention, the performance optimization edge gateway device level 1 tag, its specific analysis method is: each edge gateway device of the level 1A sub-tag in the test gateway device level 1 group tag is recorded as each first edge gateway device, and then the three-dimensional image, pressure defect characteristic parameters, three-dimensional image at the lowest temperature, battery power supply status and three-dimensional image at the highest temperature, battery capacity are extracted from the hardware test data of each first edge gateway device, wherein the battery power supply status includes normal and interrupted, and the hardware test compliance value of each first edge gateway device is obtained through numerical processing;
[0072] Each edge gateway device with a level 1B subtag in the level 1 group tag of the test gateway device is recorded as each second edge gateway device, and then the test response time, test throughput, and concurrent number are extracted from the software test data of each second edge gateway device, and the software test compliance value of each second edge gateway device is obtained through numerical processing;
[0073] It should be noted that, consistent with the analysis method of the software constraint characteristic parameters of each edge gateway device in each detection cycle, the software test compliance value of each second edge gateway device is analyzed and inverted to obtain the software test compliance value of each second edge gateway device.
[0074] Each edge gateway device of the 1C-level sub-tag in the 1-level group tag of the test gateway device is recorded as each third edge gateway device, and then the operation status, temperature data, and power data corresponding to each set of preset software parameters are extracted from the operation test data of each third edge gateway device, and the operation test compliance value of each third edge gateway device is obtained through numerical processing;
[0075] It should be noted that, consistent with the analysis method of the software test compliance values of each second edge gateway device, the operation test compliance values of each third edge gateway device in each set of preset software parameters are analyzed and the average values are processed to obtain the operation test compliance values of each third edge gateway device.
[0076] According to the hardware test compliance value of each first edge gateway device, the software test compliance value of each second edge gateway device, and the operation test compliance value of each third edge gateway device, a performance optimized edge gateway device level 1 label is obtained.
[0077] It should be noted that the processing obtains a performance optimized edge gateway device level 1 label, and the specific analysis method is: the hardware test compliance value of each first edge gateway device, the software test compliance value of each second edge gateway device, and the operation test compliance value of each third edge gateway device are compared with the preset hardware test compliance threshold, software test compliance threshold, and operation test compliance threshold respectively. If the hardware test compliance value of a first edge gateway device is less than the hardware test compliance threshold or the software test compliance value of a second edge gateway device is less than the software test compliance threshold or the operation test compliance value of a third edge gateway device is less than the operation test compliance threshold, then the first edge gateway device or the second edge gateway device or the third edge gateway device is classified into the performance optimized edge gateway device level 1 label, and then the performance optimized edge gateway device level 1 label is obtained.
[0078] In a specific embodiment of the present invention, the hardware test compliance value of each first edge gateway device is specifically analyzed by: analyzing and obtaining the hardware constraint characteristic value of each first edge gateway device according to the three-dimensional image of each first edge gateway device;
[0079] It should be noted that the hardware constraint characteristic values of each first edge gateway device are obtained by analysis in accordance with the analysis method of the hardware constraint characteristic parameters of each edge gateway device.
[0080] Analyzing defect characteristic parameters of each first edge gateway device at the lowest temperature and deformation degree at the highest temperature according to the three-dimensional images of each first edge gateway device at the lowest temperature and the highest temperature;
[0081] It should be noted that the defect characteristic parameters at the lowest temperature include the number of cracks and the crack depth, and the number of cracks and the crack depth are identified from the three-dimensional image based on image recognition technology.
[0082] It should also be noted that the deformation degree refers to the volume change degree of the edge gateway device. The reference three-dimensional image of the edge gateway device is obtained from the database, and the reference volume of the edge gateway device is obtained. Combined with the three-dimensional image of each first edge gateway device at the highest temperature, the volume of each first edge gateway device at the highest temperature is obtained, and then the offset between the volume of each first edge gateway device at the highest temperature and the reference volume is obtained as the deformation degree of each first edge gateway device at the highest temperature.
[0083] According to the hardware constraint characteristic values, pressure defect characteristic parameters, defect characteristic parameters at the lowest temperature, battery power supply status and deformation at the highest temperature, and battery capacity of each first edge gateway device, a hardware test data set of each first edge gateway device is constructed and imported into the hardware test compliance value model. Get the hardware test compliance value X(u j ), where u jh is the hth data in the hardware test data set of the jth first edge gateway device, u′ h is the interval of the hth data in the hardware test standard data set stored in the database, j is the number of each first edge gateway device, j=1, 2, ..., k, k is any integer greater than 2, h is the number of each data in the hardware test data set, h∈[1, 6].
[0084] It should be understood that when locating the performance optimization edge gateway device tags, the importance of the performance optimization edge gateway device 1 tag is less than the importance of the performance optimization edge gateway 2 tag, and the importance of the performance optimization edge gateway device 2 tag is less than the importance of the performance optimization edge gateway 3 tag. In other words, the performance optimization edge gateway tags can be referred to for subsequent maintenance urgency or inspection frequency to ensure the rationality of subsequent personnel allocation and equipment inspection allocation.
[0085] Reference Figure 2As shown, the second aspect of the present invention provides a gateway device testing system for executing the gateway device testing method of the present invention, comprising:
[0086] The edge gateway device historical data acquisition module is used to obtain the historical data of each edge gateway device from the database;
[0087] The edge gateway device fault assessment module is used to locate the fault type set of each edge gateway device based on the historical data of each edge gateway device, where the fault type includes hardware fault, software fault, and operation fault;
[0088] The edge gateway device test type confirmation module is used to locate the test gateway device group label according to the fault type set of each edge gateway device, and confirm the test type set of the test gateway device group label, wherein the test type includes hardware test, software test, and operation test;
[0089] The edge gateway device testing module is used for the intelligent inspection robot to perform a test based on the test type set of the test gateway device group label, thereby obtaining a test data set of the test gateway device group label;
[0090] The edge gateway device performance analysis module is used to locate the performance optimization edge gateway device tag based on the test data set of the test gateway device group tag and display it.
[0091] It should be noted that the present invention also includes a database for storing historical data of each edge gateway device, standard software parameter data sets of edge gateway devices, hardware test standard data sets, design drawings of edge gateway devices, and reference three-dimensional images of edge gateway devices.
[0092] It should also be noted that the edge gateway device historical data acquisition module is connected to the edge gateway device fault assessment module, the edge gateway device fault assessment module is connected to the edge gateway device test type confirmation module, the edge gateway device test type confirmation module is connected to the edge gateway device test module, the edge gateway device test module is connected to the edge gateway device performance analysis module, and the database is respectively connected to the edge gateway device historical data acquisition module, the edge gateway device fault assessment module and the edge gateway device performance analysis module.
[0093] The third aspect of the present invention provides a computer and a readable storage medium for the gateway device testing method described in the present invention, wherein the computer readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps in the gateway device testing method described in the present invention.
[0094] The above contents are merely examples and explanations of the concept of the present invention. Those skilled in the art may make various modifications or additions to the specific embodiments described or replace them in a similar manner. As long as they do not deviate from the concept of the invention or exceed the scope defined by the present invention, they shall all fall within the protection scope of the present invention.
Claims
1. A gateway device testing method, characterized in that: include: Step 1: Obtain historical data of edge gateway devices: Obtain historical data of each edge gateway device from the database; Step 2: Edge gateway device fault assessment: Based on the historical data of each edge gateway device, locate the fault type set of each edge gateway device, where the fault type includes hardware fault, software fault, and operation fault; Step 3: confirm the test type of the edge gateway device: locate the test gateway device group tag according to the fault type set of each edge gateway device, and confirm the test type set of the test gateway device group tag, where the test type includes hardware test, software test, and operation test; Step 4: Edge gateway device testing: The intelligent inspection robot performs testing based on the test type set of the test gateway device group label, thereby obtaining a test data set of the test gateway device group label; Step 5: Edge gateway device performance analysis: Based on the test data set of the test gateway device group tag, locate the performance optimization edge gateway device tag and display it.
2. A gateway device testing method according to claim 1, characterized in that: The historical data includes image parameters, software parameters, and operating parameters, wherein the image parameters include three-dimensional images of each detection cycle, the software parameters include the response time, throughput, and concurrency of each detection cycle, and the operating parameters include the operating status, temperature data, and power data of each detection cycle. The temperature data includes CPU temperature and battery temperature, and the power data includes voltage, current, and power.
3. A gateway device testing method according to claim 1, characterized in that: The specific analysis method of the set of fault types located at each edge gateway device is as follows: According to the historical data of each edge gateway device, the hardware constraint characteristic parameters, software constraint characteristic parameters and operation constraint characteristic parameters of each edge gateway device are evaluated; The hardware constraint characteristic parameters of each edge gateway device are output through the hardware constraint characteristic parameter model. where Y i is the hardware constraint characteristic parameter of the i-th edge gateway device, V imp is the volume of the pth interface of the mth detection cycle of the ith edge gateway device, V′ p is the volume of the pth interface of the edge gateway device, Q im , Q′ im are respectively the total defect area and the reference defect area of the mth detection cycle of the i-th edge gateway device, i is the number of each edge gateway device, i=1, 2, ..., n, n is any integer greater than 2, m is the number of each detection cycle, m=1, 2, ..., l, l is any integer greater than 2, p is the number of each interface, p=1, 2, ..., q, q is any integer greater than 2, wherein is the number of detection cycles; Each fault type of each edge gateway device is evaluated, and a set of fault types of each edge gateway device is obtained by statistics.
4. A gateway device testing method according to claim 1, characterized in that: According to the fault type set of each edge gateway device, the test gateway device group label is located, and the specific location method is as follows: According to the fault type set of each edge gateway device, each fault type of each edge gateway device is obtained, and then each test type β of each edge gateway device is matched i , count the number of test types of each edge gateway device α i ; If (α i =1)∧(β i is A), then the label identification number of the edge gateway device is recorded as 1A. If (α i =1)∧(β i is B), then the label identification number of the edge gateway device is recorded as 1B. If (α i =1)∧(β i C), then the label identification number of the edge gateway device is recorded as 1C, where A, B, and C represent hardware test, software test, and operation test respectively, and ∧ is a logical symbol, indicating and; If (α i =2)∧(β i A and B), then the label identification number of the edge gateway device is recorded as 2AB. i =2)∧(β i A and C), then the label identification number of the edge gateway device is recorded as 2AC, (α i =2)∧(β i If the edge gateway device is B or C), the label identification number of the edge gateway device is recorded as 2BC; If (α i =3)∧(β i A, B and C), the label identification number of the edge gateway device is recorded as 3; Generate a level 1 group tag for the test gateway device; In the same way, a test gateway device level 2 group label and a test gateway device level 3 group label are generated.
5. A gateway device testing method according to claim 1, characterized in that: The intelligent inspection robot performs the test based on the test type set of the test gateway device group label, and the specific analysis method is as follows: The hardware test specifically includes scanning the edge gateway device and modeling it, thereby obtaining a three-dimensional image of the edge gateway device, and performing a pressure test on the edge gateway device based on a preset pressure threshold, obtaining a pressure test image of the edge gateway device, identifying pressure defect characteristic parameters of the edge gateway device, and performing a temperature test on the edge gateway device according to a preset temperature range, thereby obtaining a three-dimensional image of the edge gateway device at the lowest temperature, a battery power supply status, and a three-dimensional image at the highest temperature, and a battery capacity, and summarizing the hardware test data; The software test specifically includes sending each request to the edge gateway device and recording the time from sending the request to receiving the response, obtaining the response time of each request of the edge gateway device, and performing average processing on it to obtain the test response time of the edge gateway device, measuring the total amount of data transmitted by the edge gateway device within each preset time, processing to obtain the test throughput of the edge gateway device, and simulating multiple users to send requests to the edge gateway device at the same time and recording the number of processed requests to obtain the concurrency number of the edge gateway device, and summarizing to obtain the software test data; The operation test specifically includes testing and running each set of preset software parameters on the edge gateway device, and monitoring the operation test data of the edge gateway device, wherein the operation test data includes the operation status, temperature data, and power data corresponding to each set of preset software parameters; According to the above test method, each edge gateway device is tested in combination with the test type set of the test gateway device group label.
6. A gateway device testing method according to claim 5, characterized in that: The test data set based on the test gateway device group tag is used to locate the performance optimization edge gateway device tag, and the specific analysis method is as follows: According to the test data set of the test gateway device group label, the hardware test data of each edge gateway device of the 1A sub-label in the test gateway device level 1 group label, the software test data of each edge gateway device of the 1B sub-label, and the operation test data of each edge gateway device of the 1C sub-label are extracted, and then the performance optimization of the edge gateway device level 1 label is analyzed; According to the test data set of the test gateway device group label, extract the hardware test data and software test data of each edge gateway device of the 2AB sub-label in the test gateway device 2-level group label, the hardware test data and operation test data of each edge gateway device of the 2AC sub-label, and the software test data and operation test data of each edge gateway device of the 2BC sub-label, and analyze the performance optimization of the edge gateway device 2-level label; According to the test data set of the test gateway device group tag, the hardware test data, software test data and operation test data of each edge gateway device in the test gateway device level 3 group tag are extracted, and the performance is analyzed to optimize the edge gateway device level 3 tag.
7. A gateway device testing method according to claim 6, characterized in that: The specific analysis method of the performance optimization edge gateway device level 1 tag is as follows: Each edge gateway device with a level 1A sub-tag in the level 1 group tag of the test gateway device is recorded as each first edge gateway device, and then a three-dimensional image, pressure defect characteristic parameters, a three-dimensional image at the lowest temperature, a battery power supply state, and a three-dimensional image at the highest temperature, and a battery capacity are extracted from the hardware test data of each first edge gateway device, wherein the battery power supply state includes normal and interrupted, and the hardware test compliance value of each first edge gateway device is obtained through numerical processing; Each edge gateway device with a level 1B subtag in the level 1 group tag of the test gateway device is recorded as each second edge gateway device, and then the test response time, test throughput, and concurrent number are extracted from the software test data of each second edge gateway device, and the software test compliance value of each second edge gateway device is obtained through numerical processing; Each edge gateway device of the 1C-level sub-tag in the 1-level group tag of the test gateway device is recorded as each third edge gateway device, and then the operation status, temperature data, and power data corresponding to each set of preset software parameters are extracted from the operation test data of each third edge gateway device, and the operation test compliance value of each third edge gateway device is obtained through numerical processing; According to the hardware test compliance value of each first edge gateway device, the software test compliance value of each second edge gateway device, and the operation test compliance value of each third edge gateway device, a performance optimized edge gateway device level 1 label is obtained.
8. A gateway device testing method according to claim 7, characterized in that: The hardware test compliance value of each first edge gateway device is specifically analyzed as follows: Analyze and obtain hardware constraint feature values of each first edge gateway device according to the three-dimensional image of each first edge gateway device; Analyzing defect characteristic parameters of each first edge gateway device at the lowest temperature and deformation degree at the highest temperature according to the three-dimensional images of each first edge gateway device at the lowest temperature and the highest temperature; According to the hardware constraint characteristic values, pressure defect characteristic parameters, defect characteristic parameters at the lowest temperature, battery power supply status and deformation at the highest temperature, and battery capacity of each first edge gateway device, a hardware test data set of each first edge gateway device is constructed and imported into the hardware test compliance value model. Get the hardware test compliance value X(u j ), where u jh is the hth data in the hardware test data set of the jth first edge gateway device, u′ h is the interval of the hth data in the hardware test standard data set stored in the database, j is the number of each first edge gateway device, j=1, 2, ..., k, k is any integer greater than 2, h is the number of each data in the hardware test data set, h∈[1, 6].
9. A gateway device testing system for executing the gateway device testing method according to any one of claims 1 to 8, characterized in that: include: The edge gateway device historical data acquisition module is used to obtain the historical data of each edge gateway device from the database; The edge gateway device fault assessment module is used to locate the fault type set of each edge gateway device based on the historical data of each edge gateway device, where the fault type includes hardware fault, software fault, and operation fault; The edge gateway device test type confirmation module is used to locate the test gateway device group label according to the fault type set of each edge gateway device, and confirm the test type set of the test gateway device group label, wherein the test type includes hardware test, software test, and operation test; The edge gateway device testing module is used for the intelligent inspection robot to perform a test based on the test type set of the test gateway device group label, thereby obtaining a test data set of the test gateway device group label; The edge gateway device performance analysis module is used to locate the performance optimization edge gateway device tag based on the test data set of the test gateway device group tag and display it.
10. A computer and a readable storage medium for executing the gateway device testing method according to any one of claims 1 to 8, characterized in that: The computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps in the gateway device testing method according to any one of claims 1-8.
