CN111162966A - Method and device for testing network interface hardware of receiving card, storage medium and processor - Google Patents
Method and device for testing network interface hardware of receiving card, storage medium and processor Download PDFInfo
- Publication number
- CN111162966A CN111162966A CN201911341058.1A CN201911341058A CN111162966A CN 111162966 A CN111162966 A CN 111162966A CN 201911341058 A CN201911341058 A CN 201911341058A CN 111162966 A CN111162966 A CN 111162966A
- Authority
- CN
- China
- Prior art keywords
- data
- receiving card
- receiving
- network port
- port
- 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.)
- Pending
Links
- 238000012360 testing method Methods 0.000 title claims description 123
- 238000000034 method Methods 0.000 title claims description 26
- 238000010998 test method Methods 0.000 claims abstract description 32
- 238000004891 communication Methods 0.000 claims abstract description 29
- 230000002950 deficient Effects 0.000 claims description 9
- 230000008054 signal transmission Effects 0.000 claims description 4
- 230000005540 biological transmission Effects 0.000 abstract description 21
- 238000010586 diagram Methods 0.000 description 15
- 230000006870 function Effects 0.000 description 14
- 238000004590 computer program Methods 0.000 description 8
- 230000002159 abnormal effect Effects 0.000 description 6
- 230000008569 process Effects 0.000 description 6
- 238000012545 processing Methods 0.000 description 6
- 238000004519 manufacturing process Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 239000000463 material Substances 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- ATJFFYVFTNAWJD-UHFFFAOYSA-N Tin Chemical compound [Sn] ATJFFYVFTNAWJD-UHFFFAOYSA-N 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 239000003086 colorant Substances 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 239000000758 substrate Substances 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0805—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
- H04L43/0817—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking functioning
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2205—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
- G06F11/221—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test buses, lines or interfaces, e.g. stuck-at or open line faults
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Environmental & Geological Engineering (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The application provides a test method, a device, a storage medium and a processor for receiving card network port hardware, wherein the test method comprises the steps of controlling the communication connection of a signal sending network port and a signal receiving network port; controlling a signal sending port to send first data to a signal receiving port; the test method comprises the steps of controlling data transmission between a signal sending network port and a signal receiving network port to be tested through a control chip of the receiving card, avoiding the problem of complex wiring caused by connection of external equipment, controlling the signal sending network port to send first data to the signal receiving network port by establishing direct communication between the signal sending network port and the signal receiving network port of the receiving card, and detecting whether second data received by the signal receiving network port is consistent with the first data or not, so that whether the receiving card is a qualified product or not is determined, and the efficiency of the test method of the network port hardware of the receiving card is greatly improved.
Description
Technical Field
The present application relates to the field of communications, and in particular, to a method and an apparatus for testing network interface hardware of a receiving card, a storage medium, and a processor.
Background
After the receiving card is produced by the board card production and processing plant, the network port hardware of the produced receiving card, including the network port interface and the hardware circuit related to the network port, needs to be tested to find the production process problems, including whether the original circuit devices of each part have the problems of tin connection, material error, material leakage and the like, so that the integrity and the correctness of the produced product are ensured, and the production yield is improved.
The test principle of the existing receiving card is shown in fig. 1, and during testing, a receiving network port signal is transmitted through a network cable through a sending card, and the sending network port signal is connected with an external device. The scheme requires more external equipment for testing, has complex wiring, needs an independent control interface and has low testing efficiency.
The above information disclosed in this background section is only for enhancement of understanding of the background of the technology described herein and, therefore, certain information may be included in the background that does not form the prior art that is already known in this country to a person of ordinary skill in the art.
Disclosure of Invention
The present application mainly aims to provide a method and an apparatus for testing a hardware of a network port of a receiving card, a storage medium, and a processor, so as to solve the problem of low efficiency of the method for testing the hardware of the network port of the receiving card in the prior art.
In order to achieve the above object, according to an aspect of the present application, there is provided a method for testing network interface hardware of a receiving card, including: controlling the communication connection of the signal sending network port and the signal receiving network port; controlling the signal sending port to send first data to the signal receiving port; and determining whether the receiving card is a qualified product according to whether the first data is consistent with the second data received by the signal receiving network port, firstly controlling the signal sending network port to be in communication connection with the signal receiving network port, then controlling the signal sending network port to send the first data to the signal receiving network port by the receiving card to enter a test mode, comparing whether the first data is consistent with the second data received by the signal receiving network port, and determining whether the receiving card is a qualified product according to a comparison result. The test method controls the transmission data between the signal sending network port and the signal receiving network port to carry out the test through the control chip of the receiving card, does not need to send test data to the receiving card through external equipment, and then the receiving card sends the test data to the external equipment to test whether the receiving card is a qualified product or not, does not need an independent control interface, avoids the problem of complex wiring caused by connection of the external equipment, controls the signal sending network port to send first data to the signal receiving network port through establishing direct communication of the signal sending network port and the signal receiving network port of the receiving card, detects whether second data received by the signal receiving network port is consistent with the first data or not, determines whether the receiving card is a qualified product or not, and greatly improves the efficiency of the test method of the hardware of the network port of the receiving card.
Further, determining whether the receiving card is a qualified product according to whether the first data and the second data are consistent comprises: determining that the receiving card is a qualified product if the second data and the first data are consistent; and determining that the receiving card is a non-conforming product when the second data is not consistent with the first data, specifically, the first data is encrypted test data, the second data is encrypted test data received by the signal receiving network port, and when the second data is consistent with the first data, the data transmission function of the signal sending network port and the signal receiving network port of the receiving card is normal and the transmission data is accurate, that is, the receiving card is a conforming product.
Further, before controlling the communication connection between the signal sending port and the signal receiving port, the testing method further includes: and an external power supply is adopted to supply power to the receiving card, the receiving card is connected with a power line, the receiving card is electrified, and then the network port hardware of the receiving card is tested.
Further, before controlling the signal sending port to send the first data to the signal receiving port, the testing method further includes: and determining that the receiving card can enter a test mode, and performing pretest on the receiving card before entering the test mode so as to screen out the receiving card with abnormal data transmission function, thereby further improving the test efficiency.
Further, determining that the receiving card can enter a test mode includes: controlling the signal sending network port to send third data, wherein the third data are short test data; judging whether the signal receiving network port receives data or not; under the condition that the signal receiving network port receives data, judging whether the data is consistent with the third data; and under the condition that the data is consistent with the third data, determining that the receiving card can enter a test mode, and adopting short test data to perform pretest so as to quickly screen out the receiving card with abnormal data transmission function, thereby reducing the test time and improving the test efficiency.
Further, in a case where the second data and the first data are identical, determining that the receiving card is a good product includes: under the condition that the second data is consistent with the first data, controlling an indicator lamp on the receiving card to display green; according to the fact that the indicator light is displayed in green, the receiving card is determined to be qualified, the display color and the display mode of the indicator light are not limited to the above, and a person skilled in the art can select the display color according to actual conditions, for example, the receiving card is displayed in a multi-color alternating mode.
Further, in the case where the second data and the first data are inconsistent, determining that the receiving card is a reject includes: under the condition that the second data is inconsistent with the first data, controlling an indicator lamp on the receiving card to display in red; the receiving card is determined to be a defective product according to the fact that the indicator light is displayed in red, the display color and the display mode of the indicator light are not limited to the above, and a person skilled in the art can select the display color according to actual situations, for example, the display color is alternately displayed in multiple colors.
According to another aspect of the present application, there is provided a test apparatus for receiving card socket hardware, including: the first control unit is used for controlling the communication connection between the signal sending network port and the signal receiving network port; the second control unit is used for controlling the signal sending port to send first data to the signal receiving port; the first control unit controls the signal sending network port to be in communication connection with the signal receiving network port, the receiving card enters a test mode, the second control unit controls the signal sending network port to send the first data to the signal receiving network port, the determining unit compares whether the first data is consistent with the second data received by the signal receiving network port, and the determining unit determines whether the receiving card is a qualified product according to a comparison result. The test device controls the transmission data between the signal sending port and the signal receiving port to test through the control chip of the receiving card, the test data does not need to be sent to the receiving card through external equipment, then the receiving card sends the test data to the external equipment to test whether the receiving card is a qualified product or not, an independent control interface is not needed, the problem of complex wiring caused by connection of the external equipment is avoided, in addition, through the establishment of direct communication between the signal sending port of the receiving card and the signal receiving port, the signal sending port is controlled to send first data to the signal receiving port, whether second data received by the signal receiving port is consistent with the first data or not is detected, whether the receiving card is a qualified product or not is determined, and the efficiency of the test method of the hardware of the receiving card port is greatly improved.
According to yet another aspect of the present application, there is provided a storage medium comprising a stored program, wherein the program performs any one of the test methods.
According to yet another aspect of the application, a processor for running a program is provided, wherein the program is run to perform any one of the test methods.
According to the technical scheme, in the test method, firstly, the signal sending port and the signal receiving port are controlled to be in communication connection, then the receiving card enters a test mode, the signal sending port is controlled to send first data to the signal receiving port, whether the first data are consistent with second data received by the signal receiving port or not is compared, and whether the receiving card is a qualified product or not is determined according to a comparison result. The test method controls the transmission data between the signal sending network port and the signal receiving network port to carry out the test through the control chip of the receiving card, does not need to send test data to the receiving card through external equipment, and then the receiving card sends the test data to the external equipment to test whether the receiving card is a qualified product or not, does not need an independent control interface, avoids the problem of complex wiring caused by connection of the external equipment, controls the signal sending network port to send first data to the signal receiving network port through establishing direct communication of the signal sending network port and the signal receiving network port of the receiving card, detects whether second data received by the signal receiving network port is consistent with the first data or not, determines whether the receiving card is a qualified product or not, and greatly improves the efficiency of the test method of the hardware of the network port of the receiving card.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this application, illustrate embodiments of the application and, together with the description, serve to explain the application and are not intended to limit the application. In the drawings:
FIG. 1 is a diagram illustrating a prior art device connection for receiving card socket hardware tests;
FIG. 2 shows a flow chart of a method for testing network interface hardware of a receiving card according to an embodiment of the application;
FIG. 3 shows a schematic diagram of device connections to receive card socket hardware tests according to an embodiment of the present application;
FIG. 4 illustrates a logic diagram of a testing method according to one embodiment of the present application; and
fig. 5 shows a schematic diagram of a test apparatus for receiving card portal hardware according to an embodiment of the present application.
Wherein the figures include the following reference numerals:
10. receiving a card; 11. a signal transmission network port; 12. a signal receiving network port; 20. an external power source.
Detailed Description
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the application described herein may be used. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It will be understood that when an element such as a layer, film, region, or substrate is referred to as being "on" another element, it can be directly on the other element or intervening elements may also be present. Also, in the specification and claims, when an element is described as being "connected" to another element, the element may be "directly connected" to the other element or "connected" to the other element through a third element.
As introduced in the background art, in the prior art, a test method for receiving card network port hardware requires more external devices, is complex in wiring and low in efficiency, and in order to solve the problem that the test method for receiving card network port hardware is low in efficiency, embodiments of the present application provide a test method, an apparatus, a storage medium and a processor for receiving card network port hardware.
Fig. 2 is a flowchart of a method for testing network interface hardware of a receiving card according to an embodiment of the present invention, and fig. 3 is a schematic structural diagram of network interface hardware of a receiving card according to an embodiment of the present application, and as shown in fig. 2, the testing method includes the following steps:
step S101, controlling the communication connection between the signal transmitting port 11 and the signal receiving port 12, as shown in fig. 3;
step S102, controlling the signal transmitting network port 11 to transmit first data to the signal receiving network port 12;
step S103, determining whether the receiving card 10 is a good product according to whether the first data is consistent with the second data received by the signal receiving port 12.
In the test method, firstly, the signal sending network port and the signal receiving network port are controlled to be in communication connection, then the receiving card enters a test mode, the signal sending network port is controlled to send first data to the signal receiving network port, whether the first data is consistent with second data received by the signal receiving network port or not is compared, and whether the receiving card is a qualified product or not is determined according to a comparison result. The test method controls the transmission data between the signal sending network port and the signal receiving network port to carry out the test through the control chip of the receiving card, does not need to send test data to the receiving card through external equipment, and then the receiving card sends the test data to the external equipment to test whether the receiving card is a qualified product or not, does not need an independent control interface, avoids the problem of complex wiring caused by connection of the external equipment, controls the signal sending network port to send first data to the signal receiving network port through establishing direct communication of the signal sending network port and the signal receiving network port of the receiving card, detects whether second data received by the signal receiving network port is consistent with the first data or not, determines whether the receiving card is a qualified product or not, and greatly improves the efficiency of the test method of the hardware of the network port of the receiving card.
In an embodiment of the present application, determining whether the receiving card is a good product according to whether the first data and the second data are consistent includes: determining that the receiving card is a good product when the second data is identical to the first data; and determining that the receiving card is a defective product when the second data is not consistent with the first data. Specifically, the first data is encrypted test data, the second data is encrypted test data received by the signal receiving port, and when the second data is consistent with the first data, it indicates that the data transmission function of the signal sending port and the signal receiving port of the receiving card is normal and the transmission data is accurate, that is, the receiving card is a good product.
In an embodiment of the application, before controlling the communication connection between the signal sending port and the signal receiving port, the testing method further includes: the receiving card 10 is powered by an external power supply 20, as shown in fig. 3. Specifically, the receiving card is connected with a power line, the receiving card is powered on, and then the network port hardware of the receiving card is tested.
In an embodiment of the application, before controlling the signal sending port to send the first data to the signal receiving port, the testing method further includes: and determining that the receiving card can enter a test mode. Specifically, before entering the test mode, the receiving cards are pretested to screen out the receiving cards with abnormal data transmission functions, so that the test efficiency is further improved.
In an embodiment of the present application, determining that the receiving card can enter a test mode includes: controlling the signal transmission network port to transmit third data, wherein the third data are short test data; judging whether the signal receiving network port receives data; judging whether the data is consistent with the third data or not when the signal receiving network port receives the data; and determining that the receiving card can enter a test mode under the condition that the data is consistent with the third data. Specifically, pretesting is carried out by adopting short test data so as to quickly screen out the receiving card with abnormal data transmission function, thereby reducing the test time and improving the test efficiency.
More specifically, the third data is transmitted according to a predetermined frequency period, and a person skilled in the art can select a suitable predetermined frequency period according to practical situations, for example, 1 time/second.
In one embodiment of the present application, determining that the receiving card is a good product when the second data matches the first data includes: controlling an indicator light on the receiving card to display green when the second data is consistent with the first data; and determining that the receiving card is a qualified product according to the fact that the indicating lamp is displayed in green. Specifically, the display color and the display mode of the indicator light are not limited to this, and those skilled in the art can select the display color according to the actual situation, for example, the display color is alternately displayed.
In an embodiment of the present application, determining that the receiving card is a defective product when the second data is inconsistent with the first data includes: controlling an indicator lamp on the receiving card to display red when the second data is inconsistent with the first data; and determining that the receiving card is a defective product according to the fact that the indicator light is displayed in red. Specifically, the display color and the display mode of the indicator light are not limited to this, and those skilled in the art can select the display color according to the actual situation, for example, the display color is alternately displayed.
It should be noted that, in the above test method, the test result of the color feedback receiving card is displayed by the indicator light, and a display device is not required to display the test result, thereby further avoiding the problem of complicated wiring caused by connecting an external device. Of course, the device for displaying the test result is not limited to the indicator light, and those skilled in the art may select other devices for feedback, such as an audible alarm.
It should be noted that fig. 4 shows a logic diagram of the testing method, and when the receiving card is tested by using the above testing method, it is only necessary to control the receiving card to perform a self-initiated test, and no external device is needed, that is, by establishing direct communication between the signal transmitting network port and the signal receiving network port of the receiving card, the signal transmitting network port is controlled to transmit first data to the signal receiving network port, and whether second data received by the signal receiving network port is consistent with the first data is detected, so as to determine whether the receiving card is a good product.
The embodiment of the present invention further provides a device for testing hardware of a network port of a receiving card, and it should be noted that the device for testing hardware of a network port of a receiving card of the embodiment of the present invention can be used to execute the method for testing hardware of a network port of a receiving card provided by the embodiment of the present invention. The following describes a test apparatus for receiving card network port hardware according to an embodiment of the present invention.
Fig. 5 is a schematic diagram of a testing apparatus for receiving card socket hardware according to an embodiment of the present invention, as shown in fig. 5, the testing apparatus includes:
a first control unit 100, configured to control a communication connection between a signal sending network port and a signal receiving network port;
a second control unit 200, configured to control the signal sending port to send first data to the signal receiving port;
a determining unit 300, configured to determine whether the receiving card is a good product according to whether the first data is consistent with the second data received by the signal receiving port.
In the testing device, a first control unit controls a signal sending network port and a signal receiving network port to be in communication connection, a receiving card enters a testing mode, a second control unit controls the signal sending network port to send first data to the signal receiving network port, a determining unit compares whether the first data is consistent with second data received by the signal receiving network port, and determines whether the receiving card is a qualified product according to a comparison result. The test device controls the transmission data between the signal sending port and the signal receiving port to test through the control chip of the receiving card, the test data does not need to be sent to the receiving card through external equipment, then the receiving card sends the test data to the external equipment to test whether the receiving card is a qualified product or not, an independent control interface is not needed, the problem of complex wiring caused by connection of the external equipment is avoided, in addition, through the establishment of direct communication between the signal sending port of the receiving card and the signal receiving port, the signal sending port is controlled to send first data to the signal receiving port, whether second data received by the signal receiving port is consistent with the first data or not is detected, whether the receiving card is a qualified product or not is determined, and the efficiency of the test method of the hardware of the receiving card port is greatly improved.
In an embodiment of the present application, determining whether the receiving card is a good product according to whether the first data and the second data are consistent includes: determining that the receiving card is a good product when the second data is identical to the first data; and determining that the receiving card is a defective product when the second data is not consistent with the first data. Specifically, the first data is encrypted test data, the second data is encrypted test data received by the signal receiving port, and when the second data is consistent with the first data, it indicates that the data transmission function of the signal sending port and the signal receiving port of the receiving card is normal and the transmission data is accurate, that is, the receiving card is a good product.
In an embodiment of the application, before controlling the communication connection between the signal sending port and the signal receiving port, the testing method further includes: and an external power supply is adopted to supply power to the receiving card. Specifically, the receiving card is connected with a power line, the receiving card is powered on, and then the network port hardware of the receiving card is tested.
In an embodiment of the application, before controlling the signal sending port to send the first data to the signal receiving port, the testing method further includes: and determining that the receiving card can enter a test mode. Specifically, before entering the test mode, the receiving cards are pretested to screen out the receiving cards with abnormal data transmission functions, so that the test efficiency is further improved.
In an embodiment of the present application, determining that the receiving card can enter a test mode includes: controlling the signal transmission network port to transmit third data, wherein the third data are short test data; judging whether the signal receiving network port receives data; judging whether the data is consistent with the third data or not when the signal receiving network port receives the data; and determining that the receiving card can enter a test mode under the condition that the data is consistent with the third data. Specifically, pretesting is carried out by adopting short test data so as to quickly screen out the receiving card with abnormal data transmission function, thereby reducing the test time and improving the test efficiency.
More specifically, the third data is transmitted according to a predetermined frequency period, and a person skilled in the art can select a suitable predetermined frequency period according to practical situations, for example, 1 time/second.
In one embodiment of the present application, determining that the receiving card is a good product when the second data matches the first data includes: controlling an indicator light on the receiving card to display green when the second data is consistent with the first data; and determining that the receiving card is a qualified product according to the fact that the indicating lamp is displayed in green. Specifically, the display color and the display mode of the indicator light are not limited to this, and those skilled in the art can select the display color according to the actual situation, for example, the display color is alternately displayed.
In an embodiment of the present application, determining that the receiving card is a defective product when the second data is inconsistent with the first data includes: controlling an indicator light on the receiving card to alternately display a red light when the second data is inconsistent with the first data; and determining that the receiving card is a defective product according to the fact that the indicator light is displayed in red. Specifically, the display color and the display mode of the indicator light are not limited to this, and those skilled in the art can select the display color according to the actual situation, for example, the display color is alternately displayed.
It should be noted that, in the above test method, the test result of the color feedback receiving card is displayed by the indicator light, and a display device is not required to display the test result, thereby further avoiding the problem of complicated wiring caused by connecting an external device. Of course, the device for displaying the test result is not limited to the indicator light, and those skilled in the art may select other devices for feedback, such as an audible alarm.
The test device for the hardware of the network port of the receiving card comprises a processor and a memory, wherein the first control unit, the second control unit, the determining unit and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory. The kernel can be set to be one or more than one, and the problem of low efficiency of the test method of the network port hardware of the receiving card is solved by adjusting the kernel parameters.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
An embodiment of the present invention provides a storage medium on which a program is stored, the program implementing the test method when executed by a processor.
The embodiment of the invention provides a processor, which is used for running a program, wherein the test method is executed when the program runs.
The embodiment of the invention provides equipment, which comprises a processor, a memory and a program which is stored on the memory and can run on the processor, wherein when the processor executes the program, at least the following steps are realized:
step S101, controlling the communication connection between a signal sending network port and a signal receiving network port;
step S102, controlling the signal sending port to send first data to the signal receiving port;
step S103, determining whether the receiving card is a qualified product according to whether the first data is consistent with the second data received by the signal receiving network port.
The device herein may be a server, a PC, a PAD, a mobile phone, etc.
The present application further provides a computer program product adapted to perform a program of initializing at least the following method steps when executed on a data processing device:
step S101, controlling the communication connection between a signal sending network port and a signal receiving network port;
step S102, controlling the signal sending port to send first data to the signal receiving port;
step S103, determining whether the receiving card is a qualified product according to whether the first data is consistent with the second data received by the signal receiving network port.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
From the above description, it can be seen that the above-described embodiments of the present application achieve the following technical effects:
1) and in the test method, firstly, the signal sending port and the signal receiving port are controlled to be in communication connection, then the receiving card enters a test mode, the signal sending port is controlled to send first data to the signal receiving port, whether the first data is consistent with second data received by the signal receiving port is compared, and whether the receiving card is a qualified product is determined according to a comparison result. The test method controls the transmission data between the signal sending network port and the signal receiving network port to carry out the test through the control chip of the receiving card, does not need to send test data to the receiving card through external equipment, and then the receiving card sends the test data to the external equipment to test whether the receiving card is a qualified product or not, does not need an independent control interface, avoids the problem of complex wiring caused by connection of the external equipment, controls the signal sending network port to send first data to the signal receiving network port through establishing direct communication of the signal sending network port and the signal receiving network port of the receiving card, detects whether second data received by the signal receiving network port is consistent with the first data or not, determines whether the receiving card is a qualified product or not, and greatly improves the efficiency of the test method of the hardware of the network port of the receiving card.
2) In the testing device, the first control unit controls the signal sending port and the signal receiving port to be in communication connection, the receiving card enters a testing mode, the second control unit controls the signal sending port to send first data to the signal receiving port, the determining unit determines whether the first data are consistent with second data received by the signal receiving port or not, and whether the receiving card is a qualified product or not is determined according to a comparison result. The test device controls the transmission data between the signal sending port and the signal receiving port to test through the control chip of the receiving card, the test data does not need to be sent to the receiving card through external equipment, then the receiving card sends the test data to the external equipment to test whether the receiving card is a qualified product or not, an independent control interface is not needed, the problem of complex wiring caused by connection of the external equipment is avoided, in addition, through the establishment of direct communication between the signal sending port of the receiving card and the signal receiving port, the signal sending port is controlled to send first data to the signal receiving port, whether second data received by the signal receiving port is consistent with the first data or not is detected, whether the receiving card is a qualified product or not is determined, and the efficiency of the test method of the hardware of the receiving card port is greatly improved.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims (10)
1. A test method for receiving card network port hardware is characterized by comprising the following steps:
controlling the communication connection of the signal sending network port and the signal receiving network port;
controlling the signal sending port to send first data to the signal receiving port;
and determining whether the receiving card is a qualified product according to whether the first data is consistent with the second data received by the signal receiving network port.
2. The method of claim 1, wherein determining whether the receiving card is a good based on whether the first data and the second data are consistent comprises:
determining that the receiving card is a qualified product if the second data and the first data are consistent;
and determining that the receiving card is a defective product if the second data is inconsistent with the first data.
3. The testing method of claim 1, wherein before the control signal transmission port and the signal reception port are communicatively connected, the testing method further comprises:
and adopting an external power supply to supply power for the receiving card.
4. The testing method of claim 1, wherein before controlling the signal transmitting port to transmit the first data to the signal receiving port, the testing method further comprises:
determining that the receiving card may enter a test mode.
5. The method of claim 4, wherein determining that the receiving card may enter a test mode comprises:
controlling the signal sending network port to send third data, wherein the third data are short test data;
judging whether the signal receiving network port receives data or not;
under the condition that the signal receiving network port receives data, judging whether the data is consistent with the third data;
and determining that the receiving card can enter a test mode under the condition that the data and the third data are consistent.
6. The test method according to claim 2, wherein determining that the receiving card is a good product in the case where the second data and the first data are identical comprises:
under the condition that the second data is consistent with the first data, controlling an indicator lamp on the receiving card to display green;
and determining that the receiving card is a qualified product according to the fact that the indicating lamp is displayed in green.
7. The test method of claim 2, wherein determining that the receiving card is a reject if the second data and the first data are inconsistent comprises:
under the condition that the second data is inconsistent with the first data, controlling an indicator lamp on the receiving card to display in red;
and determining that the receiving card is a defective product according to the fact that the indicating lamp is displayed in red.
8. A test device for receiving card network port hardware is characterized by comprising:
the first control unit is used for controlling the communication connection between the signal sending network port and the signal receiving network port;
the second control unit is used for controlling the signal sending port to send first data to the signal receiving port;
and the determining unit is used for determining whether the receiving card is a qualified product according to whether the first data is consistent with the second data received by the signal receiving network port.
9. A storage medium, characterized in that the storage medium comprises a stored program, wherein the program performs the test method of any one of claims 1 to 7.
10. A processor, characterized in that the processor is configured to run a program, wherein the program is configured to execute the testing method according to any one of claims 1 to 7 when running.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911341058.1A CN111162966A (en) | 2019-12-23 | 2019-12-23 | Method and device for testing network interface hardware of receiving card, storage medium and processor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911341058.1A CN111162966A (en) | 2019-12-23 | 2019-12-23 | Method and device for testing network interface hardware of receiving card, storage medium and processor |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111162966A true CN111162966A (en) | 2020-05-15 |
Family
ID=70558086
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911341058.1A Pending CN111162966A (en) | 2019-12-23 | 2019-12-23 | Method and device for testing network interface hardware of receiving card, storage medium and processor |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111162966A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118259141A (en) * | 2024-05-24 | 2024-06-28 | 西安诺瓦星云科技股份有限公司 | Receiving card testing method, testing tool, system and readable storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101217422A (en) * | 2008-01-15 | 2008-07-09 | 中兴通讯股份有限公司 | A method to test the performance of net mouth |
US7519004B1 (en) * | 2005-02-18 | 2009-04-14 | Netowrk Appliance, Inc. | Loopback testing of a network interface device from a user-space software layer |
CN101534223A (en) * | 2008-03-11 | 2009-09-16 | 中兴通讯股份有限公司 | Device and method for testing network switching equipment |
CN101877658A (en) * | 2010-06-30 | 2010-11-03 | 中兴通讯股份有限公司 | Method and device for detecting network port performance of IPTV set-top box |
CN105843718A (en) * | 2016-04-05 | 2016-08-10 | 浪潮电子信息产业股份有限公司 | Test board card as well as management card test system and method |
CN107547304A (en) * | 2017-07-13 | 2018-01-05 | 紫光华山信息技术有限公司 | Network card testing method, device and machinable medium |
CN108897647A (en) * | 2018-03-19 | 2018-11-27 | 硅谷数模半导体(北京)有限公司 | Test macro, test method and device |
-
2019
- 2019-12-23 CN CN201911341058.1A patent/CN111162966A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7519004B1 (en) * | 2005-02-18 | 2009-04-14 | Netowrk Appliance, Inc. | Loopback testing of a network interface device from a user-space software layer |
CN101217422A (en) * | 2008-01-15 | 2008-07-09 | 中兴通讯股份有限公司 | A method to test the performance of net mouth |
CN101534223A (en) * | 2008-03-11 | 2009-09-16 | 中兴通讯股份有限公司 | Device and method for testing network switching equipment |
CN101877658A (en) * | 2010-06-30 | 2010-11-03 | 中兴通讯股份有限公司 | Method and device for detecting network port performance of IPTV set-top box |
CN105843718A (en) * | 2016-04-05 | 2016-08-10 | 浪潮电子信息产业股份有限公司 | Test board card as well as management card test system and method |
CN107547304A (en) * | 2017-07-13 | 2018-01-05 | 紫光华山信息技术有限公司 | Network card testing method, device and machinable medium |
CN108897647A (en) * | 2018-03-19 | 2018-11-27 | 硅谷数模半导体(北京)有限公司 | Test macro, test method and device |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118259141A (en) * | 2024-05-24 | 2024-06-28 | 西安诺瓦星云科技股份有限公司 | Receiving card testing method, testing tool, system and readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9424221B2 (en) | Automated cabling process for a complex environment | |
CN109857356B (en) | Screen display method, electronic equipment and storage medium | |
CN107038120B (en) | Software testing method and device | |
US11191111B2 (en) | Bluetooth connection establishment method, device and system | |
CN108592313A (en) | Wireless networking method of air conditioner, air conditioner internal unit and air conditioner external unit | |
US11533676B2 (en) | Wireless networking method and apparatus for air-conditioning system | |
CN109347673A (en) | A kind of PLC means of communication, device, equipment and storage medium | |
CN105022688A (en) | Device test method and apparatus | |
CN111162966A (en) | Method and device for testing network interface hardware of receiving card, storage medium and processor | |
WO2019218466A1 (en) | Application program testing method and apparatus, terminal device, and medium | |
CN113535578B (en) | CTS test method, CTS test device and CTS test equipment | |
CN114584475B (en) | Communication test method and device | |
CN108196999A (en) | Server B MC obtains the method and device of GPU temperature | |
CN105117254B (en) | Wireless communication module and operation method and device thereof | |
CN111736893A (en) | Software package version verification method and related device | |
CN110865931B (en) | Simulation method, simulation device, electronic equipment and storage medium | |
CN116340075A (en) | Hard disk testing device, system, method and computer readable storage medium | |
CN110502383A (en) | The test method and device of terminal device | |
CN110035496A (en) | A kind of cloud platform switching method, system and electronic equipment | |
CN116225797A (en) | USB port testing method, testing equipment and storage medium | |
CN113419952B (en) | Cloud service management scene testing device and method | |
CN109709418B (en) | Detection method and device for charging facility, storage medium and processor | |
CN115357458B (en) | Method and device for testing TISDM display information | |
CN110635963B (en) | Network state detection method and device | |
CN111629395B (en) | Multi-mode communication antenna unit, system and method |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200515 |