CN111294255A - Gateway testing method and storage medium - Google Patents

Gateway testing method and storage medium Download PDF

Info

Publication number
CN111294255A
CN111294255A CN202010075234.8A CN202010075234A CN111294255A CN 111294255 A CN111294255 A CN 111294255A CN 202010075234 A CN202010075234 A CN 202010075234A CN 111294255 A CN111294255 A CN 111294255A
Authority
CN
China
Prior art keywords
test
judging
testing
gateway
reading
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010075234.8A
Other languages
Chinese (zh)
Other versions
CN111294255B (en
Inventor
李世武
刘锐
孙东来
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Jientropy Data Technology Co ltd
Original Assignee
Shanghai Maxtropy Data Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Maxtropy Data Technology Co ltd filed Critical Shanghai Maxtropy Data Technology Co ltd
Priority to CN202010075234.8A priority Critical patent/CN111294255B/en
Publication of CN111294255A publication Critical patent/CN111294255A/en
Application granted granted Critical
Publication of CN111294255B publication Critical patent/CN111294255B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways

Abstract

The invention provides a testing method and a storage medium of a gateway, wherein the testing method of the gateway comprises the following steps: the method comprises the steps of testing a network interface, reading and testing a local communication interface, writing and testing the local communication interface, reading and testing a storage unit, writing and testing the storage unit, testing power supply and testing display. Through carrying out data acquisition with communication line connection gateway, judge test data through the treater to judge the demonstration of result at test terminal, can greatly promote efficiency of software testing and help carrying out the batched test to a plurality of gateways. And simultaneously, the result is displayed on the local terminal, so that the display interface on the gateway can be saved, the intelligent gateway can be designed in a more miniaturized manner, and the problem that the test cannot be carried out due to the bad display interface of the gateway is solved.

Description

Gateway testing method and storage medium
Technical Field
The present invention relates to the field of testing, and in particular, to a gateway testing method and a storage medium.
Background
Most of the existing gateway testing methods use the application in the intelligent gateway to perform testing, and finally display the testing data and results through the display interface of the intelligent gateway.
With the higher customization degree of the user to the intelligent gateway, the interface types are generally deleted or added; if the display interface is removed, the means of testing at the intelligent gateway end and displaying the result by matching with the display interface cannot be realized. The test of the intelligent gateway end in the prior art is also limited by the type of the display interface, different displays and connecting lines need to be prepared for different display interfaces, and the test cannot be performed through the intelligent gateway end without the display interface. Meanwhile, the management of the test data is increasingly refined and standardized along with enterprises and the like. The storage space occupied by the test data is larger and larger, and if the test data is stored in a gateway terminal only, a large amount of storage space is occupied; the test data is generally uploaded to the backend server, which is limited by whether the network unit test of the intelligent gateway is available, and additional traffic cost is incurred if the network unit test is transmitted by using a mobile network.
In addition, the enterprise has higher and higher requirements for testing the efficiency of the intelligent gateway, so that a method for testing the intelligent gateway, which can be convenient, automatic and unified, is urgently needed.
Disclosure of Invention
The invention aims to provide a gateway testing method which can be convenient, automatic and unified.
In order to achieve the above object, the present invention provides a gateway testing method, which comprises the following steps: a network interface testing step, namely comparing the file downloading speed of a network interface unit of at least one intelligent gateway with the network speed of the network interface unit to obtain a first difference value, judging whether the first difference value is smaller than a first preset threshold value, if so, judging that the network interface meets the testing requirement, and if not, judging that the network interface does not meet the testing requirement; a local communication interface reading test step, namely comparing the reading speed of a local communication interface unit of the intelligent gateway with a standard reading speed to obtain a second difference value, judging whether the second difference value is smaller than a second preset threshold value, if so, judging that the local communication interface meets the reading test requirement, and if not, judging that the local communication interface does not meet the reading test requirement; a local communication interface write-in test step, namely comparing the write-in speed of a local communication interface unit of the intelligent gateway with a standard write-in speed to obtain a third difference value, judging whether the third difference value is smaller than a third preset threshold value, if so, judging that the local communication interface meets the write-in test requirement, and if not, judging that the local communication interface does not meet the write-in test requirement; a storage unit reading test step, namely comparing the reading speed of the storage unit of the intelligent gateway with a standard reading speed to obtain a fourth difference value, judging whether the fourth difference value is smaller than a fourth preset threshold value, if so, judging that the storage unit meets the reading test requirement, and if not, judging that the storage unit does not meet the reading test requirement; a storage unit write-in test step, namely comparing the write-in speed of the storage unit of the intelligent gateway with a standard write-in speed to obtain a fifth difference value, judging whether the fifth difference value is smaller than a fifth preset threshold value, if so, judging that the storage unit meets the write-in test requirement, and if not, judging that the storage unit does not meet the write-in test requirement; a power supply test step, namely acquiring power utilization information of the intelligent gateway, and judging whether a main control unit of the intelligent gateway normally works or not, if so, judging that the power supply test requirement is met, otherwise, judging that the power supply test requirement is not met; a state lamp testing step, wherein when the intelligent gateway is tested, whether current passes through the state lamp of the intelligent gateway is judged, and if so, the state lamp is judged to meet the power supply testing requirement; if not, the status light is judged not to be in accordance with the power supply test requirement
Further, still include: and an output step, wherein the test results of all the test steps are output to a display device.
Further, the display device comprises at least one signal lamp group, and each signal lamp group comprises at least one signal lamp with the same or different color; each signal lamp group is used for displaying a judgment result of a test step; the camera faces the signal lamp group; the camera is used for collecting at least one real-time picture, and each real-time picture comprises a real-time image of the signal lamp group.
Further, still include: a database pre-storing step, wherein a picture database is pre-stored and comprises at least one signal lamp group picture, and each signal lamp group picture corresponds to a group of test results; a picture taking step of taking and storing a real-time picture of the signal lamp group after the outputting step is executed; a gateway number recording step, recording the number of the tested intelligent gateway; and a picture comparison step, comparing the real-time picture of the signal lamp group with the picture database, wherein if the real-time picture of the signal lamp group is the same as a picture in the picture database, the test result corresponding to the picture is the test result of the tested intelligent gateway.
Further, the database pre-storing step includes a first feature point extracting step, in which at least one first feature point is extracted from each signal lamp group picture in the picture database to obtain feature parameters of the first feature point, and each first feature point corresponds to an image of at least one signal lamp; a first feature point storage step of storing a feature parameter of the first feature point; the photo comparison step comprises: a second characteristic point extraction step, namely extracting at least one second characteristic point from a real-time picture of the signal light group to obtain characteristic parameters of the second characteristic point, wherein each second characteristic point corresponds to an image of a signal light; and a parameter comparison step, comparing the characteristic parameters of the second characteristic points of the real-time photos with the characteristic parameters of the first characteristic points of each signal lamp group picture in the picture database; and when the characteristic parameters of the second characteristic point are the same as those of the first characteristic point of a signal lamp group picture, judging that the real-time picture is the same as the signal lamp group picture.
Further, the network interface testing step specifically includes: a first connection step of connecting the network interface unit for performing an IP address connectivity test; testing, namely testing the network rate and the packet drop condition of the intelligent gateway by using a PING command in a network test; a first acquisition step of acquiring the file downloading speed and the network rate of a network interface unit of the intelligent gateway; a first calculation step of calculating a difference value between the file downloading speed of a network interface unit of the intelligent gateway and the network rate and taking an absolute value to obtain a first difference value; a first judgment step, namely judging whether the first difference value is smaller than a first preset threshold value, if so, judging that the network interface meets the test requirement, and if not, judging that the network interface does not meet the test requirement; and a statistical step, wherein statistical analysis is carried out on the consistency of the network performance of the intelligent gateways.
Further, the step of reading and testing the local communication interface specifically includes: a second connection step, connecting the local communication interface unit for data exchange test; a second acquisition step of acquiring the reading speed of the local communication interface unit; a second calculation step of calculating the reading speed of the local communication interface unit and a standard reading speed and taking an absolute value to obtain a second difference value; a second judgment step, namely judging whether the second difference value is smaller than a second preset threshold value, if so, judging that the local communication interface meets the reading test requirement, and if not, judging that the local communication interface does not meet the reading test requirement; the step of the local communication interface write test specifically comprises the following steps: a third obtaining step of obtaining the writing speed of the local communication interface unit; a third calculation step, calculating the writing speed of the local communication interface unit and the standard reading and writing speed and taking an absolute value to obtain a third difference value; and a third judgment step of judging whether the third difference is smaller than a third preset threshold value, if so, judging that the local communication interface meets the writing test requirement, and if not, judging that the local communication interface does not meet the writing test requirement.
Further, the step of reading and testing the memory cell specifically includes: a third connection step of connecting the storage unit for data exchange test; a fourth acquisition step of acquiring a reading speed of the storage unit; a fourth calculation step of calculating the reading speed of the storage unit and a standard reading speed and taking an absolute value to obtain a fourth difference value; a fourth judgment step of judging whether the fourth difference is smaller than a fourth preset threshold value, if so, judging that the storage unit meets the reading test requirement, and if not, judging that the storage unit does not meet the reading test requirement; the step of testing the writing of the memory cell specifically comprises the following steps: a fifth acquiring step of acquiring a writing speed of the storage unit; a fifth calculation step of calculating the writing speed of the storage unit and a standard writing speed and taking an absolute value to obtain a fourth difference value; and a fifth judgment step of judging whether the fourth difference is smaller than a fourth preset threshold value, if so, judging that the storage unit meets the reading test requirement, and if not, judging that the storage unit does not meet the reading test requirement.
Further, the power supply testing step specifically includes: a sixth acquisition step of acquiring state information of the main control unit for testing the power supply unit; a sixth judgment step of judging whether the main control unit of the intelligent gateway normally works, if so, judging that the power supply unit meets the test requirement, and if not, judging that the power supply unit does not meet the test requirement, wherein the state information comprises: the power supply unit comprises power supply on-off state information, power supply unit charging state information and main control unit voltage information.
The present invention provides a storage medium having stored thereon a computer program which, when executed by a processor, is operable to carry out the method as described above.
The invention has the beneficial effects that: the gateway testing method and the storage medium are executed by a processor of a testing terminal, are connected with the gateway through a communication line for data acquisition, judge the testing data through the processor, display the judging result on the testing terminal, and can greatly improve the testing efficiency. And simultaneously, the result is displayed on the local terminal, so that the display interface on the gateway can be saved, the intelligent gateway can be designed in a more miniaturized manner, and the problem that the test cannot be carried out due to the bad display interface of the gateway is solved. Meanwhile, a plurality of gateways can also be tested, so that the efficiency of gateway testing is improved, the performance of the testing terminal can be maximally used, and the waste of testing resources is reduced.
Drawings
The invention is further described below with reference to the figures and examples.
Fig. 1 is a flowchart of a method for testing a gateway according to embodiment 1 of the present invention;
fig. 2 is a flowchart of the network interface testing procedure provided in embodiment 1 of the present invention;
fig. 3 is a flowchart of the local communication interface reading test procedure according to embodiment 1 of the present invention;
fig. 4 is a flowchart of the local communication interface write test procedure according to embodiment 1 of the present invention;
FIG. 5 is a flowchart illustrating the steps of the memory cell read test according to embodiment 1 of the present invention;
fig. 6 is a flowchart of the step of the memory cell write test according to embodiment 1 of the present invention;
FIG. 7 is a flowchart of the power supply test procedure provided in embodiment 2 of the present invention;
fig. 8 is a flowchart of a method for testing a gateway according to embodiment 2 of the present invention;
fig. 9 is a flowchart of the database pre-storing step according to embodiment 2 of the present invention;
FIG. 10 is a flowchart of the photo comparison step provided in example 2 of the present invention;
fig. 11 is a schematic diagram of an application scenario of the testing method for an intelligent gateway provided in the present invention;
FIG. 12 is a functional block diagram of a test terminal provided in the present invention;
FIG. 13 is a functional block diagram of an intelligent gateway provided by the present invention;
fig. 14 is a working state diagram of the intelligent gateway and the test terminal provided by the present invention.
Detailed Description
The following description of the embodiments refers to the accompanying drawings for illustrating the specific embodiments in which the invention may be practiced. The names of the elements, such as the first, the second, etc., mentioned in the present invention are only used for distinguishing different elements and can be better expressed. In the drawings, like parts are designated by like reference numerals and adjacent or similar parts are designated by like reference numerals.
Embodiments of the present invention will be described in detail herein with reference to the accompanying drawings. This invention may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. These embodiments are provided to explain the practical application of the invention and to enable others skilled in the art to understand the invention for various embodiments and with various modifications as are suited to the particular use contemplated.
Example 1
Embodiment 1 provides a test terminal, preferably a PC, connected to at least one intelligent gateway, starting the intelligent gateway and the test terminal, and using the test terminal to sequentially test each intelligent gateway or synchronously test each intelligent gateway.
As shown in FIG. 1, the present embodiment 1 provides a gateway testing method executed by a testing terminal, which includes the following steps S1-S9. The gateway testing method is executed by a processor of the testing terminal, various data acquisition is carried out by connecting the gateway through a communication line, the testing data is contrasted, analyzed and judged by the processor, and the judgment result is displayed on a display device of the testing terminal, so that the testing efficiency can be greatly improved.
S1, a network interface testing step, namely comparing the file downloading speed of the network interface unit of at least one intelligent gateway with the network speed of the network interface unit to obtain a first difference value, judging whether the first difference value is smaller than a first preset threshold value, if so, judging that the network interface meets the testing requirement, and if not, judging that the network interface does not meet the testing requirement. The number of the intelligent gateways is not limited in the invention, and the testing method of the invention can be executed by a plurality of gateways in parallel.
The network interface unit comprises a wired network unit and/or a wireless network unit. The wired network unit comprises an Ethernet communication unit; the wireless network unit comprises at least one of a Bluetooth communication unit, a near field communication unit, a WiFi communication unit, a Zigbee communication unit and a 2G/3G/4G mobile communication unit.
As shown in FIG. 2, the network interface testing step specifically includes S101-S106. In the network interface testing step, the network rate of the intelligent gateway is tested by using a PING command in the network test, and the obtained file downloading speed of the network interface unit is compared with the network rate to obtain a test result.
S101, a first connection step, connecting the network interface unit, for carrying out IP address connection test.
S102, testing, namely testing the network speed and the packet drop condition of the intelligent gateway by using a PING command in the network test.
S103, a first obtaining step, namely obtaining the file downloading speed and the network rate of the network interface unit of the intelligent gateway.
S104, a first calculation step, namely calculating the difference value between the file downloading speed of the network interface unit of the intelligent gateway and the network speed and taking an absolute value to obtain a first difference value.
S105, a first judgment step, namely judging whether the first difference value is smaller than a first preset threshold value, if so, judging that the network interface meets the test requirement, and if not, judging that the network interface does not meet the test requirement.
And S106, a statistical step, namely performing statistical analysis on the consistency of the network performance of the intelligent gateways.
S2, a local communication interface reading test step, namely comparing the reading speed of a local communication interface unit of the intelligent gateway with a standard reading speed to obtain a second difference value, judging whether the second difference value is smaller than a second preset threshold value, if so, judging that the local communication interface meets the reading test requirement, and if not, judging that the local communication interface does not meet the reading test requirement.
The local communication interface unit comprises a debugging interface unit, a USB interface unit and a key interface unit, wherein the debugging interface unit comprises at least one debugging interface used for connecting an external test terminal; the USB interface unit comprises at least one USB interface; the key interface unit comprises at least one key interface for connecting with external input equipment.
The USB interface unit of the local communication interface unit may be connected to a USB device such as a USB disk or an external storage device, and the central control unit 27 identifies the VID and PID of the USB device, and further, the central control unit 27 reads or writes content from or to a storage medium on the USB device at a reading or writing speed.
As shown in FIG. 3, the reading test step of the local communication interface specifically includes S201 to S204. In the step of reading and testing the local communication interface, the reading speed of the local communication interface unit is obtained through data exchange testing, and then the reading speed is compared with the standard speed to obtain a test result.
S201, a second connection step, connecting the local communication interface unit for data exchange test.
S202, a second obtaining step, namely obtaining the reading speed of the local communication interface unit.
S203, a second calculation step, namely calculating the reading speed of the local communication interface unit and the standard reading speed and taking an absolute value to obtain a second difference value.
And S204, a second judgment step, namely judging whether the second difference is smaller than a second preset threshold value, if so, judging that the local communication interface meets the reading test requirement, and if not, judging that the local communication interface does not meet the reading test requirement.
S3, a local communication interface writing test step, namely comparing the writing speed of a local communication interface unit of the intelligent gateway with a standard writing speed to obtain a third difference value, judging whether the third difference value is smaller than a third preset threshold value, if so, judging that the local communication interface meets the writing test requirement, and if not, judging that the local communication interface does not meet the writing test requirement.
As shown in FIG. 4, the local communication interface write test step specifically includes S301 to S303. In the step of the local communication interface write-in test, the write-in speed of the local communication interface unit is obtained through data exchange test, and then the write-in speed is compared with the standard speed to obtain a test result.
S301, a third obtaining step, namely obtaining the writing speed of the local communication interface unit.
S302, a third calculation step, namely calculating the writing speed of the local communication interface unit and the standard reading and writing speed and taking an absolute value to obtain a third difference value.
And S303, a third judgment step of judging whether the third difference is smaller than a third preset threshold value, if so, judging that the local communication interface meets the writing test requirement, and if not, judging that the local communication interface does not meet the writing test requirement.
S4, a storage unit reading test step, namely comparing the reading speed of the storage unit of the intelligent gateway with a standard reading speed to obtain a fourth difference value, judging whether the fourth difference value is smaller than a fourth preset threshold value, if so, judging that the storage unit meets the reading test requirement, and if not, judging that the storage unit does not meet the reading test requirement.
The storage unit comprises a hard disk interface unit and/or a memory card interface unit, and the hard disk interface unit comprises a mini PCI-E interface used for connecting with an external storage medium; the memory card interface unit comprises an SD interface and a miniSD interface and is used for connecting an external storage medium.
As shown in FIG. 5, the step of reading and testing the memory cell specifically includes S401 to S404. In the step of reading and testing the storage unit, the reading speed of the local communication interface unit is obtained through data exchange testing, and then the reading speed is compared with the standard speed, so that a test result is obtained.
S401, a third connection step, connecting the storage unit for data exchange test.
S402, a fourth obtaining step, namely obtaining the reading speed of the storage unit.
S403, a fourth calculation step of calculating the reading speed of the storage unit and the standard reading speed and taking an absolute value to obtain a fourth difference value.
S404, a fourth judgment step of judging whether the fourth difference value is smaller than a fourth preset threshold value, if so, judging that the storage unit meets the reading test requirement, and if not, judging that the storage unit does not meet the reading test requirement.
S5, a storage unit writing test step, namely comparing the writing speed of the storage unit of the intelligent gateway with a standard writing speed to obtain a fifth difference value, judging whether the fifth difference value is smaller than a fifth preset threshold value, if so, judging that the storage unit meets the writing test requirement, and if not, judging that the storage unit does not meet the writing test requirement.
As shown in FIG. 6, the step of testing the memory cell writing specifically includes S501-S503. In the step of the local communication interface write-in test, the write-in speed of the storage unit is obtained through data exchange test, and then the write-in speed is compared with the standard speed to obtain a test result.
S501, a fifth obtaining step, obtaining the writing speed of the storage unit.
S502, a fifth calculation step, namely calculating the writing speed of the storage unit and the standard writing speed and taking an absolute value to obtain a fourth difference value.
S503, a fifth judgment step, namely judging whether the fourth difference is smaller than a fourth preset threshold value, if so, judging that the storage unit meets the reading test requirement, and if not, judging that the storage unit does not meet the reading test requirement.
S6, a power supply test step, namely acquiring power utilization information of the intelligent gateway, and judging whether a main control unit of the intelligent gateway works normally, if so, judging that the power supply test requirement is met, and if not, judging that the power supply test requirement is not met.
The power supply unit comprises a reverse connection protection circuit, an overvoltage protection circuit and an overcurrent protection circuit. The display unit comprises a status light indicating unit and/or an external display interface unit, and the status light indicating unit comprises at least one status light.
The power supply unit comprises an external power supply unit and/or a standby power supply unit, and the standby power supply unit comprises one or more of a lithium ion battery, a lithium polymer battery, a super capacitor and a lithium manganese battery.
As shown in FIG. 7, the power supply testing step specifically includes S601-S602. In the power supply testing step, whether a main control unit of the intelligent gateway works normally is judged by acquiring state information tested by a power supply unit, if so, the power supply unit is judged to meet the testing requirement, and if not, the power supply unit is judged to not meet the testing requirement.
S601, a sixth acquisition step, namely acquiring the state information of the test of the main control unit to the power supply unit. The state information comprises the on-off state information of the power supply, the charging state information of the power supply unit and the voltage information of the main control unit.
S602, a sixth judgment step, namely judging whether the main control unit of the intelligent gateway works normally, if so, judging that the power supply unit meets the test requirement, and if not, judging that the power supply unit does not meet the test requirement.
S7, a state lamp testing step, wherein when the intelligent gateway is tested, whether current passes through the state lamp of the intelligent gateway is judged, and if yes, the state lamp is judged to meet the power supply testing requirement; if not, the status light is judged not to meet the power supply test requirement.
Each intelligent gateway is provided with at least one status lamp, and the status lamps comprise single-color or multi-color LED lamps. Alternatively, a plurality of status lights are arranged in a line or array. When the intelligent gateway normally works, the state lamp can display the working state of the gateway, such as a normal state, a fault state and the like.
And S8, an output step, namely outputting the test results of all the test steps to a display device, preferably a liquid crystal display screen in the embodiment, and displaying the test results on the display screen.
S9, summarizing, wherein in the process of testing the intelligent gateway, if the judgment results of all the testing steps are yes, the intelligent gateway passes the test; if the judgment result of any test step is negative, the test step is repeated for 1-5 times.
The embodiment 1 of the present invention provides a gateway testing method, which is executed by a processor of a testing terminal, and is connected to a gateway through a communication line to perform data acquisition, and the processor determines testing data and displays a determination result on the testing terminal, so as to greatly improve testing efficiency. And simultaneously, the result is displayed on the local terminal, so that the display interface on the gateway can be saved, the intelligent gateway can be designed in a more miniaturized manner, and the problem that the test cannot be carried out due to the bad display interface of the gateway is solved.
Meanwhile, the invention can also test the gateways in batches, has removed the dependence of the display interface and restriction of storing the test data on the gateway, have brought the great convenience for the test of the gateway, extend and explore in this test method, the single gateway can carry on the automatic test through the debug interface of the gateway, a plurality of gateways can also test at the same time, thus has already raised the efficiency of the gateway test, can maximize the performance of the test terminal at the same time and use, reduce the waste of the test resource.
Example 2
Embodiment 2 provides a data processing apparatus, which is a portable terminal apparatus, including a processor, a memory, a display device, and the like. This equipment convenient to carry, plug-and-play is connected to an at least intelligent gateway after, can utilize test terminal to test each intelligent gateway in proper order, perhaps tests in step.
The portable terminal device is a small-sized data processing device and can be connected to the intelligent gateway in a wired or wireless mode, for example, the portable terminal device is connected to the intelligent gateway through a mini-USB interface or a WIFI interface or a cellular communication module. The PC of embodiment 1 is higher in cost, and further cost reduction can be achieved by using a more miniaturized portable terminal. The display device comprises a display screen to display the test result. Furthermore, the display device can also comprise at least one signal lamp group and at least one camera. The signal lamp set is arranged on the portable terminal device and connected with a processor of the portable terminal device, and the processor is used for executing the gateway testing method in the embodiment 2.
Each signal lamp group comprises at least one signal lamp with the same or different colors; each signal lamp group is used for displaying the judgment result of a test step. The camera faces the signal lamp group; the camera is used for collecting at least one real-time picture, and each real-time picture comprises a real-time image of the signal lamp group.
The signal lamp group comprises red signal lamps, green signal lamps and blue signal lamps, and each red signal lamp, each green signal lamp and each blue signal lamp corresponds to one test step.
Further, in this embodiment, the signal lamp may also be used as a display device to display the test result of each test step, and the indicator lamps with different colors are used to represent different test results, for example, a green light indicates that the test result meets the test requirement, and a red light indicates that the test result does not meet the test requirement, so that the hardware cost of the test terminal can be greatly reduced. When the judgment result of any test step is yes, the green signal lamp in the signal lamp group corresponding to the test step is turned on; and when the judgment result of any test step is negative, the red signal lamp in the signal lamp group corresponding to the test step is lighted. Under some special scenes, a tester can see the signal lamp more conveniently than a display screen and can obtain a test result more easily.
If the red signal lamp is not changed when being lighted in a time period, judging that the testing step is failed; if the green signal lamp is not changed in lighting within a time period, judging that the test step is passed; if the blue signal lamp is lightened up and does not change in a time period, the detection is not finished, and a period of observation result is waited.
However, in the testing process, if the tester needs to leave in case, the testing result may not be observed, and to solve this problem, at least one camera may be mounted on the portable terminal device and faces the signal lamp.
When the signal lamp is on, the camera timely acquires the image of the signal lamp and stores the image in the memory. The memory is also stored with a picture database which comprises at least one signal lamp group picture, and each signal lamp group picture corresponds to a group of test results. The pictures stored in the picture database are pictures corresponding to the test results, and can be compared with the pictures of each signal lamp group, so that the test results can be judged.
As shown in FIG. 8, embodiment 2 provides a gateway testing method executed by a portable testing terminal, comprising steps S11-S23.
The steps S11 to S18 are the same as the steps S1 to S8 in embodiment 1, and are not described herein again. The following steps S19 to S23 are also included after the step S18.
S19, a database pre-storing step, pre-storing a picture database, including at least one signal light group picture, each signal light group picture corresponding to a group of test results. The pictures stored in the picture database are pictures corresponding to a plurality of test results, each test result corresponds to one signal lamp group picture, and the pictures are used for comparing the shot pictures in the following steps so as to judge the test results. As shown in FIG. 9, the database pre-storing step S19 includes S1901-S1902. The characteristic points of the signal lamp group pictures are collected, and the collection points are areas corresponding to signal lamps with different colors. S1901, a first feature point extraction step, namely extracting at least one first feature point from each signal lamp group picture in the picture database to obtain feature parameters of the first feature point, wherein each first feature point corresponds to an image of at least one signal lamp; the characteristic parameters include a color parameter and a position parameter. S1902, a first feature point storing step of storing a feature parameter of the first feature point.
And S20, a picture shooting step, wherein after the output step is executed, a real-time picture of the signal lamp group is shot and stored. The inspector can call the view photo stored in the photo taking step S20 at any time to know the test result of each step.
And S21, a gateway number recording step, wherein the number of the tested intelligent gateway and the tested item are recorded.
And S22, a photo comparison step, namely comparing the real-time photo of the signal lamp group with the picture database, and if the real-time photo of the signal lamp group is the same as a picture in the picture database, determining the test result corresponding to the picture as the test result of the tested intelligent gateway. As shown in FIG. 10, the photo comparison step S22 includes S2201 to S2202. By collecting the characteristics of the shot photos, the characteristics can be compared with the characteristic data in the database, and the test results of the shot photos can be judged. S2201, a second feature point extracting step, namely extracting at least one second feature point from a real-time picture of the signal lamp group to obtain feature parameters of the second feature point, wherein each second feature point corresponds to an image of a signal lamp; the characteristic parameters include a color parameter and a position parameter. S2202, a parameter comparison step, namely comparing the characteristic parameters of the second characteristic points of the real-time photos with the characteristic parameters of the first characteristic points of each signal lamp group picture in the picture database; when the characteristic parameters of the second characteristic point are the same as those of the first characteristic point of a signal lamp group picture, the real-time picture is judged to be the same as the signal lamp group picture, and then a test result of the shot picture can be judged, the test result can be stored in a memory, and a tester can call the test result at any time.
S23, summarizing, wherein in the process of testing the intelligent gateway, if the judgment results of all the testing steps are yes, the intelligent gateway passes the test; if the judgment result of any test step is negative, the test step is repeated for 1-5 times. The photographs are compared with the test result of step S22,
in embodiment 2, the display device may adopt a display screen with a lower resolution as long as the color of the signal lamp can be displayed, so that the cost can be further reduced. If only the signal lamp is used as a display device, a tester has to stare at the state of the signal lamp in real time in the test process, and if the tester needs to leave in a certain time, the test result of the tester cannot be observed.
The invention also provides a storage medium, wherein the medium is stored with a computer program, and the testing method of the intelligent gateway can be realized when a processor executes the computer program.
As shown in fig. 11, in an application scenario of the testing method for an intelligent gateway provided by the present invention, the testing terminal 10 is connected to the intelligent gateway 20 through a communication line. And the communication line is used for connecting the local terminal and the intelligent gateway.
As shown in fig. 12, the testing terminal 10 includes a memory 11 and the storage medium 12, and the processor 11 is configured to implement the testing method of the intelligent gateway when executing the computer program.
The test terminal 10 further includes a terminal interface unit 13, a terminal network unit 14, and a terminal display unit 15. The terminal interface unit 13 is used for connecting the communication line, receiving data and sending commands, and the processor 11 determines the test result. The terminal network unit 14 is used for performing communication test with the intelligent gateway and uploading test data to a server.
As shown in fig. 13, the intelligent gateway 20 receives a test instruction and provides test data to the test terminal 10, and the intelligent gateway 20 includes an acquisition interface unit 21, a network interface unit 22, a local communication interface unit 23, a storage unit 24, a power supply unit 25, a display unit 26, and a main control unit 27.
As shown in fig. 14, the terminal interface unit 13 signals to the local communication interface unit 23, and the local communication interface unit 23 sends the test data to the test terminal 10.
The acquisition interface unit 21 comprises one or more of an RS485 acquisition unit, an RS232 acquisition unit, a Lora acquisition unit and a GPIO acquisition unit.
In practical application, for example, two RS485 acquisition units can perform testing by mutually receiving and sending data through the two 485 acquisition units, so that the increase of external testing equipment can be avoided, and the testing process is simplified.
The display unit 26 comprises a status light indicating unit and/or an external display interface unit, wherein the status light indicating unit comprises at least one status light; the external display interface unit comprises one or more of a VGA interface, an HDMI interface and a DVI interface. The external display interface unit comprises one or more of a VGA interface, an HDMI interface and a DVI interface. The master unit includes a core unit based on a SODIMM interface.
In another application scenario, a batch of gateways need to be tested, the use of the testing method of the gateway of the invention removes the dependence on a display interface and the limitation of storing test data on the gateway, brings great convenience to the testing of the gateway, a plurality of gateways can also be simultaneously accessed into a testing terminal, can be connected in an extended manner through USB interfaces or other communication interfaces of the testing terminal, and can be distinguished among the gateways through the burnt serial numbers on the internal memories of the gateways.
The gateway testing method can support hundreds of gateways to be tested at most, so that the gateway testing efficiency is improved, the performance of the testing terminal can be used to the maximum, the waste of testing resources is reduced, and great assistance is provided when enterprises need to perform rapid batch production.
It should be noted that many variations and modifications of the embodiments of the present invention fully described are possible and are not to be considered as limited to the specific examples of the above embodiments. The above examples are intended to be illustrative of the invention and are not intended to be limiting. In conclusion, the scope of the present invention should include those changes or substitutions and modifications which are obvious to those of ordinary skill in the art.

Claims (10)

1. A gateway testing method is characterized by comprising the following steps:
a network interface testing step, namely comparing the file downloading speed of a network interface unit of at least one intelligent gateway with the network speed of the network interface unit to obtain a first difference value, judging whether the first difference value is smaller than a first preset threshold value, if so, judging that the network interface meets the testing requirement, and if not, judging that the network interface does not meet the testing requirement;
a local communication interface reading test step, namely comparing the reading speed of a local communication interface unit of the intelligent gateway with a standard reading speed to obtain a second difference value, judging whether the second difference value is smaller than a second preset threshold value, if so, judging that the local communication interface meets the reading test requirement, and if not, judging that the local communication interface does not meet the reading test requirement;
a local communication interface write-in test step, namely comparing the write-in speed of a local communication interface unit of the intelligent gateway with a standard write-in speed to obtain a third difference value, judging whether the third difference value is smaller than a third preset threshold value, if so, judging that the local communication interface meets the write-in test requirement, and if not, judging that the local communication interface does not meet the write-in test requirement;
a storage unit reading test step, namely comparing the reading speed of the storage unit of the intelligent gateway with a standard reading speed to obtain a fourth difference value, judging whether the fourth difference value is smaller than a fourth preset threshold value, if so, judging that the storage unit meets the reading test requirement, and if not, judging that the storage unit does not meet the reading test requirement;
a storage unit write-in test step, namely comparing the write-in speed of the storage unit of the intelligent gateway with a standard write-in speed to obtain a fifth difference value, judging whether the fifth difference value is smaller than a fifth preset threshold value, if so, judging that the storage unit meets the write-in test requirement, and if not, judging that the storage unit does not meet the write-in test requirement;
a power supply test step, namely acquiring power utilization information of the intelligent gateway, and judging whether a main control unit of the intelligent gateway normally works or not, if so, judging that the power supply test requirement is met, otherwise, judging that the power supply test requirement is not met;
a state lamp testing step, wherein when the intelligent gateway is tested, whether current passes through the state lamp of the intelligent gateway is judged, and if so, the state lamp is judged to meet the power supply testing requirement; if not, the status light is judged not to meet the power supply test requirement.
2. The gateway testing method of claim 1, further comprising:
and an output step, outputting the test results of all the test steps to a display device.
3. The gateway testing method of claim 2,
the display device comprises
Each signal lamp group comprises at least one signal lamp with the same or different colors; each signal lamp group is used for displaying a judgment result of a test step; and
the camera faces the signal lamp group; the camera is used for collecting at least one real-time picture, and each real-time picture comprises a real-time image of the signal lamp group.
4. The gateway testing method of claim 3, further comprising:
a database pre-storing step, wherein a picture database is pre-stored and comprises at least one signal lamp group picture, and each signal lamp group picture corresponds to a group of test results;
a picture taking step of taking and storing a real-time picture of the signal lamp group after the outputting step is executed;
a gateway number recording step, recording the number of the tested intelligent gateway; and
and a picture comparison step, comparing the real-time picture of the signal lamp group with the picture database, and if the real-time picture of the signal lamp group is the same as a picture in the picture database, determining the test result corresponding to the picture as the test result of the tested intelligent gateway.
5. The gateway testing method of claim 4,
the database pre-storing step comprises
A first characteristic point extraction step, namely extracting at least one first characteristic point from each signal lamp group picture in the picture database to obtain characteristic parameters of the first characteristic point, wherein each first characteristic point corresponds to an image of at least one signal lamp; and
a first feature point storage step of storing a feature parameter of the first feature point;
the photo comparison step comprises:
a second characteristic point extraction step, namely extracting at least one second characteristic point from a real-time picture of the signal light group to obtain characteristic parameters of the second characteristic point, wherein each second characteristic point corresponds to an image of a signal light; and
a parameter comparison step, namely comparing the characteristic parameters of the second characteristic points of the real-time photos with the characteristic parameters of the first characteristic points of each signal lamp group picture in the picture database; and when the characteristic parameters of the second characteristic point are the same as those of the first characteristic point of a signal lamp group picture, judging that the real-time picture is the same as the signal lamp group picture.
6. The gateway testing method of claim 1,
the network interface testing step specifically comprises:
a first connection step of connecting the network interface unit for performing an IP address connectivity test;
testing, namely testing the network rate and the packet drop condition of the intelligent gateway by using a PING command in a network test;
a first acquisition step of acquiring the file downloading speed and the network rate of a network interface unit of the intelligent gateway;
a first calculation step of calculating a difference value between the file downloading speed of a network interface unit of the intelligent gateway and the network rate and taking an absolute value to obtain a first difference value;
a first judgment step, namely judging whether the first difference value is smaller than a first preset threshold value, if so, judging that the network interface meets the test requirement, and if not, judging that the network interface does not meet the test requirement; and
and a statistical step, wherein statistical analysis is carried out on the consistency of the network performance of the intelligent gateways.
7. The gateway testing method of claim 1,
the step of reading and testing the local communication interface specifically comprises the following steps:
a second connection step, connecting the local communication interface unit for data exchange test;
a second acquisition step of acquiring the reading speed of the local communication interface unit;
a second calculation step of calculating the reading speed of the local communication interface unit and a standard reading speed and taking an absolute value to obtain a second difference value;
a second judgment step, namely judging whether the second difference value is smaller than a second preset threshold value, if so, judging that the local communication interface meets the reading test requirement, and if not, judging that the local communication interface does not meet the reading test requirement;
the step of the local communication interface write test specifically comprises the following steps:
a third obtaining step of obtaining the writing speed of the local communication interface unit;
a third calculation step, calculating the writing speed of the local communication interface unit and the standard reading and writing speed and taking an absolute value to obtain a third difference value;
and a third judgment step of judging whether the third difference is smaller than a third preset threshold value, if so, judging that the local communication interface meets the writing test requirement, and if not, judging that the local communication interface does not meet the writing test requirement.
8. The gateway testing method of claim 1,
the step of reading and testing the memory cell specifically comprises the following steps:
a third connection step of connecting the storage unit for data exchange test;
a fourth acquisition step of acquiring a reading speed of the storage unit;
a fourth calculation step of calculating the reading speed of the storage unit and a standard reading speed and taking an absolute value to obtain a fourth difference value;
a fourth judgment step of judging whether the fourth difference is smaller than a fourth preset threshold value, if so, judging that the storage unit meets the reading test requirement, and if not, judging that the storage unit does not meet the reading test requirement;
the step of testing the writing of the memory cell specifically comprises the following steps:
a fifth acquiring step of acquiring a writing speed of the storage unit;
a fifth calculation step of calculating the writing speed of the storage unit and a standard writing speed and taking an absolute value to obtain a fourth difference value;
and a fifth judgment step of judging whether the fourth difference is smaller than a fourth preset threshold value, if so, judging that the storage unit meets the reading test requirement, and if not, judging that the storage unit does not meet the reading test requirement.
9. The gateway testing method of claim 1,
the power supply testing step specifically comprises:
a sixth acquisition step of acquiring state information of the main control unit for testing the power supply unit;
and a sixth judgment step of judging whether the main control unit of the intelligent gateway works normally, if so, judging that the power supply unit meets the test requirement, and if not, judging that the power supply unit does not meet the test requirement.
10. A storage medium having stored thereon a computer program enabling the method of any one of claims 1-9 to be performed when the computer program is executed by a processor.
CN202010075234.8A 2020-01-22 2020-01-22 Gateway testing method and storage medium Active CN111294255B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010075234.8A CN111294255B (en) 2020-01-22 2020-01-22 Gateway testing method and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010075234.8A CN111294255B (en) 2020-01-22 2020-01-22 Gateway testing method and storage medium

Publications (2)

Publication Number Publication Date
CN111294255A true CN111294255A (en) 2020-06-16
CN111294255B CN111294255B (en) 2022-12-27

Family

ID=71029213

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010075234.8A Active CN111294255B (en) 2020-01-22 2020-01-22 Gateway testing method and storage medium

Country Status (1)

Country Link
CN (1) CN111294255B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113630289A (en) * 2021-07-15 2021-11-09 深圳市亿联无限科技有限公司 Test system and test method for improving production efficiency of gateway equipment
CN114710418A (en) * 2021-12-24 2022-07-05 深圳供电局有限公司 Test system architecture for intercommunication and interconnection of multiple types of terminals

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108564985A (en) * 2018-03-16 2018-09-21 广州视源电子科技股份有限公司 EMMC test methods, device, mobile terminal and storage medium
US20190121343A1 (en) * 2016-05-09 2019-04-25 Strong Force Iot Portfolio 2016, Llc Systems and methods of data collection and analysis of data from a plurality of monitoring devices
CN109951506A (en) * 2017-12-20 2019-06-28 中移(苏州)软件技术有限公司 A kind of appraisal procedure and equipment of storage cluster performance
CN110311954A (en) * 2019-05-31 2019-10-08 上海赫千电子科技有限公司 The data reading system and its read method of automobile sensor

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190121343A1 (en) * 2016-05-09 2019-04-25 Strong Force Iot Portfolio 2016, Llc Systems and methods of data collection and analysis of data from a plurality of monitoring devices
US20190137987A1 (en) * 2016-05-09 2019-05-09 Strong Force Iot Portfolio 2016, Llc Methods and systems for intelligent management of data collection bands in a high volume industrial environment
CN109951506A (en) * 2017-12-20 2019-06-28 中移(苏州)软件技术有限公司 A kind of appraisal procedure and equipment of storage cluster performance
CN108564985A (en) * 2018-03-16 2018-09-21 广州视源电子科技股份有限公司 EMMC test methods, device, mobile terminal and storage medium
CN110311954A (en) * 2019-05-31 2019-10-08 上海赫千电子科技有限公司 The data reading system and its read method of automobile sensor

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113630289A (en) * 2021-07-15 2021-11-09 深圳市亿联无限科技有限公司 Test system and test method for improving production efficiency of gateway equipment
CN114710418A (en) * 2021-12-24 2022-07-05 深圳供电局有限公司 Test system architecture for intercommunication and interconnection of multiple types of terminals

Also Published As

Publication number Publication date
CN111294255B (en) 2022-12-27

Similar Documents

Publication Publication Date Title
CN111294255B (en) Gateway testing method and storage medium
CN103246586B (en) Method for utilizing USB (universal serial bus) storage equipment for ADB (android debug bridge) debugging on android platform
CN107273280A (en) A kind of log processing method, device, electronic equipment and storage medium
CN106776294B (en) Automatic android mobile phone testing method and system
CN107148009B (en) Multi-standard mobile communication network internet data flow measuring device and method thereof
CN103577309A (en) Automatic test method and device
CN104360921A (en) Method, device and system for monitoring performance of mobile terminal
CN112231163A (en) Multifunctional computer detection equipment and operation method thereof
CN111866500B (en) Image testing device based on FPGA, CPU and WIFI6
CN110209605A (en) The register reading/writing method and calculating equipment of PCIE Cardbus NIC Cardbus
CN201654765U (en) Testing device
CN116467110B (en) Method and system for detecting damage of tablet personal computer
CN112822073A (en) Test method, device, system, electronic equipment and readable storage medium
WO2020114008A1 (en) Device and method for measuring electromagnetic wave signal strength
CN110597685A (en) Tool and method for collecting Log files of server system
CN102932620B (en) Television set and the method automatically identifying MHL signal thereof
CN110996032B (en) Data recording and playback method based on Ethernet and SRIO
CN111262871B (en) Data processing method and device and storage medium
CN208999571U (en) A kind of communication system based on GEM-90F magnetometer
CN113709155B (en) Battery module daisy chain communication conversion method, system and terminal
CN106771738A (en) A kind of equipment for testing electronic card performance
CN112084077A (en) Aging test method, device and medium of USB (Universal Serial bus) equipment and USB equipment
CN110996031B (en) Data recording and playback device based on Ethernet and SRIO
CN114595147B (en) Intelligent screen-based debugging system and testing method thereof
CN104572450A (en) Method and device for detecting resource allocation

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20231130

Address after: 201108 3 / F and 4 / F, building 2, 598 Guanghua Road, Minhang District, Shanghai

Patentee after: Shanghai Jientropy Data Technology Co.,Ltd.

Address before: 201108 room D62, 1st floor, building 6, 4299 Jindu Road, Minhang District, Shanghai

Patentee before: SHANGHAI MAXTROPY DATA TECHNOLOGY Co.,Ltd.