MVB network card stability testing system, method and storage medium
By building virtual MVB network card and physical network card in the MVB network card stability test system, synchronous testing and binary processing are performed, the problem of the failure to quickly identify errors is solved, and the rapid identification and feedback is achieved, which increases the diversity of tests is increased. .
Patent Information
- Application Number
- CN202110941458.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-17
- Publication Date
- 2025-02-14
- Estimated Expiration
- 2041-08-17
AI Technical Summary
In the MVB network card stability test, the error generation level cannot be quickly identified, making it difficult to distinguish between software problems and hardware problems.
A MVB network card stability testing system was designed, including acquisition module, simulation module, testing module and analysis module. By building a virtual MVB network card, synchronously test the virtual network card and physical network card, and binary processing of the test results, marking feedback items and result items to achieve rapid identification and feedback.
Through the establishment of virtual MVB network cards, hardware damage can be avoided during testing, contrast groups can be formed, test results can be analyzed, stability test results can be obtained, and limit tests can be carried out in simulation software to increase the diversity of tests.
Smart Images

Figure CN113722162B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of MNB network cards, and in particular relates to an MVB network card stability testing system, method and storage medium. Background Art
[0002] The MVB network card issuance process includes two parts, hardware and software. The existing method is to develop the software and hardware separately. After the hardware and software are developed, the software is verified on the hardware for system correctness. However, during the above operation, if the device is damaged during welding or installation of the hardware part, an error will be generated when the software is verified on the hardware for system correctness, and it will be impossible to identify whether it is a software problem or a hardware problem. Summary of the invention
[0003] The purpose of the present invention is to provide an MVB network card stability test system, method and storage medium, which are used to solve the problem that the error generation level cannot be quickly identified in the MVB network card stability test.
[0004] The purpose of the present invention can be achieved through the following technical solutions:
[0005] First, the MVB network card stability test system includes:
[0006] A collection module, the collection module is used to obtain MVB network card parameters;
[0007] A simulation module, wherein the simulation module constructs a virtual MVB network card based on MVB network card parameters;
[0008] A test module, wherein the test module is used to synchronously test the virtual MVB network card and the MVB network card;
[0009] An analysis module performs result analysis based on the test results of the virtual MVB network card and the MVB network card. Specifically, the test results of the virtual MVB network card and the MVB network card are obtained respectively, and binarization processing is performed. When the binarization processing of the same test items in the test results is different, the corresponding test items are marked as feedback items, and feedback is performed on the feedback items. When the binarization processing of the same test items in the test results is the same, the corresponding test items are marked as result items, and the test results are output.
[0010] Furthermore, the feedback on the feedback items is specifically:
[0011] When the feedback item corresponding to the virtual MVB network card is binarized as unsatisfied and the feedback item corresponding to the MVB network card is binarized as satisfied, the acquisition module will re-acquire the MVB network card parameters and send them to the simulation module to re-build the virtual MVB network card;
[0012] When the feedback item corresponding to the virtual MVB network card is binarized as satisfied and the feedback item corresponding to the MVB network card is binarized as unsatisfied, the acquisition module sends the acquired MVB network card parameters to the host computer for display.
[0013] Further, the binarization process includes:
[0014] Preset the numerical range corresponding to the test results;
[0015] When the numerical range corresponding to the test result of the virtual MVB network card or the MVB network card meets the numerical range corresponding to the preset test result, the test result of the virtual MVB network card and / or the MVB network card is binarized to 0;
[0016] When the numerical range corresponding to the test result of the virtual MVB network card or the MVB network card does not satisfy the numerical range corresponding to the preset test result, the test result of the virtual MVB network card and / or the MVB network card is binarized to 1.
[0017] Furthermore, the acquisition module is used to obtain the MVB network card parameters including:
[0018] Obtain the graphic information of the MVB network card, identify the graphic information, and obtain the hardware information of the MVB network card;
[0019] Connect the MVB network card to the host computer and clone the software data in the MVB network.
[0020] Furthermore, the hardware information of the MVB network card includes a host computer interface, a bus transceiver, a software interface, a controller, a communication memory, a software installation board and an MVB bus.
[0021] Furthermore, the simulation module constructs a virtual MVB network card based on the MVB network card parameters, including:
[0022] A bus unit corresponding to the MVB network card bus, a host computer interface unit corresponding to the host computer interface, a bus transceiver unit corresponding to the bus transceiver, a software interface unit corresponding to the software interface, a control unit corresponding to the controller, a storage unit corresponding to the communication memory, a software installation unit corresponding to the software installation board, and a virtual MVB bus corresponding to the MVB bus;
[0023] Among them, each functional unit uses built-in signals, ports and sockets to bind between units.
[0024] Furthermore, the test module is used to synchronously test the virtual MVB network card and the MVB network card, including:
[0025] The host computer is respectively connected to the host computer interface unit in the virtual MVB network card and the host computer interface on the MVB network card, and sends test instructions to the virtual MVB network card and the MVB network card at the same time node.
[0026] Furthermore, the test instructions include basic communication test instructions, stress test instructions and error frame test instructions.
[0027] In a second aspect, an MVB network card stability testing method is applicable to the MVB network card stability testing system of the first aspect, and includes the following steps:
[0028] Step 1: Collect MVB network card parameters and build a virtual MVB network card;
[0029] Step 2: Synchronously test the virtual MVB network card and the MVB network card, and collect the test results;
[0030] Step 3: Binarize the test results;
[0031] Step 4: When the binarization processing of the same test item in the test results is different, execute step 5; otherwise, execute step 6;
[0032] Step 5: When the feedback item corresponding to the virtual MVB network card is binarized as unsatisfied and the feedback item corresponding to the MVB network card is binarized as satisfied, the acquisition module will re-acquire the MVB network card parameters and send them to the simulation module to rebuild the virtual MVB network card;
[0033] When the feedback item corresponding to the virtual MVB network card is binarized and is satisfied, and the feedback item corresponding to the MVB network card is binarized and is not satisfied, the acquisition module sends the acquired MVB network card parameters to the host computer for display;
[0034] Step 6: Output the test results.
[0035] According to a third aspect, a storage medium stores executable instructions thereon, wherein the executable instructions, when executed by a processor, implement the steps of the method according to the second aspect.
[0036] Compared with the prior art, the present invention has the following beneficial effects:
[0037] By establishing a virtual MVB network card, there will be no hardware damage during the test, and a comparison group will be formed with the MVB network card during the test. The stability test results can be obtained by analyzing the test results. At the same time, by establishing a virtual MVB network card, extreme tests can also be performed in the simulation software, such as high temperature resistance test, reliability test and life test, etc., to increase the diversity of MVB network card stability tests. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0039] Figure 1 It is a flowchart of the process of the present invention;
[0040] Figure 2 is a block diagram of the method of the present invention;
[0041] Figure 3 This is a principle block diagram of the virtual MVB network card of the present invention. DETAILED DESCRIPTION
[0042] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0043] Therefore, the detailed description of the embodiments of the present invention provided in the following figures is not intended to limit the scope of the claimed invention but is merely representative of selected embodiments of the present invention.
[0044] Traditionally, the MVB network card issuance process includes two parts, hardware and software. The existing method is to develop the software and hardware separately. After the hardware and software are developed, the software is verified on the hardware for system correctness. However, during the above operation, if the device is damaged during welding or installation of the hardware part, an error will be generated when the software is verified on the hardware for system correctness, and it will be impossible to identify whether it is a software problem or a hardware problem.
[0045] Based on the above description, the embodiment of the present invention proposes a method as follows Figure 1-3 The MVB network card stability test system shown includes:
[0046] A collection module, the collection module is used to obtain MVB network card parameters;
[0047] A simulation module, wherein the simulation module constructs a virtual MVB network card based on MVB network card parameters;
[0048] A test module, wherein the test module is used to synchronously test the virtual MVB network card and the MVB network card;
[0049] An analysis module is provided, wherein the analysis module performs result analysis based on the test results of the virtual MVB network card and the MVB network card. Specifically, the test results of the virtual MVB network card and the MVB network card are obtained respectively, and binarization processing is performed. When the binarization processing of the same test items in the test results is different, the corresponding test items are marked as feedback items, and feedback is performed on the feedback items. When the binarization processing of the same test items in the test results is the same, the corresponding test items are marked as result items, and the test results are output. By establishing a virtual MVB network card, there will be no hardware damage during the test, and a comparison group is formed with the MVB network card during the test. The stability test results are obtained by analyzing the test results. At the same time, by establishing a virtual MVB network card, extreme tests can also be performed in the simulation software, such as high temperature resistance test, reliability test and life test, etc., to increase the diversity of the stability test of the MVB network card.
[0050] The present application is described in detail below with reference to specific embodiments;
[0051] like Figure 1 As shown, in one embodiment, the acquisition module can be a camera with a shooting function, or it can be acquisition software for acquiring images. The present invention is not specifically limited here. The graphic information of the MVB network card, such as the engineering drawings and engineering pictures of the MVB network card, is obtained through the acquisition module. The graphic information of the MVB network card is recognized through image recognition software, such as Baidu Image Recognition, to obtain the hardware information of the MVB network card, such as the host computer interface, bus transceiver, software interface, controller, communication memory, software installation board and MVB bus. The hardware information also includes the connection relationship between the host computer interface, bus transceiver, software interface, controller, communication memory, software installation board and MVB bus.
[0052] like Figure 3As shown, in one embodiment, after the simulation module obtains the hardware information of the MVB network card, the hardware information is simulated by the modeling software, for example, by SimSoC or QEMU software. In the specific implementation process, the VHDL code can be referred to, and the SystemC language can be used to model the upper computer interface, bus transceiver, software interface, controller, communication memory and MVB bus at the behavioral level. In the process of referring to the VHDL code, the VHDL The information related to the clock cycle contained in the code can be ignored when performing level abstraction; usually, the MVB network card can usually be an ARM board, which includes a processor, an interrupt controller, an internal bus, a memory, and simulations of functional modules such as UART and GPIO. The built-in ARM processor, memory, virtual bus and other modules of SimSoC are reused to respectively realize the simulation of the processor, interrupt controller, memory, internal bus and other modules of the virtual ARM board. More specifically, in this embodiment, a host computer interface unit corresponding to the host computer interface, a bus transceiver unit corresponding to the bus transceiver, a software interface unit corresponding to the software interface, a control unit corresponding to the controller, a storage unit corresponding to the communication memory, a software installation unit corresponding to the software installation board and a virtual MVB corresponding to the MVB bus are established through SimSoC software. Bus; each unit uses built-in signals (Signal), ports (Port) and sockets (Socket) to bind between units; in the specific implementation process, a SystemC process can be used to simulate a virtual MVB bus simulation, and then the software data in the MVB network card is cloned by the host computer, and the software data is written into the virtual MVB network card hardware to complete the construction of the virtual MVB network card; by building a virtual MVB network card, the MVB network card in real life can be copied, and physical testing can be achieved. The virtual MVB network card can be sent to customers for testing, which reduces logistics costs and allows customers to feel the test data more intuitively.
[0053] In one embodiment, the host computer interface unit is used for the virtual MVB network card to exchange commands and / or data with the host computer; the bus transceiver unit is used for the virtual MVB network card to exchange data and / or commands with the virtual MVB bus. The software interface unit is used to implement the interaction of data and / or commands between the software running on the software installation board and the control unit. The storage unit corresponding to the communication memory is used to implement storage tasks such as storage and temporary storage of various data during the communication process. In the specific implementation, QEMU can be used to realize the simulation of the host computer, thereby realizing not only the integration verification between the internal software and hardware of the MVB network card, but also the verification of the interaction between the MVB network card and the host computer. The virtual host computer can load the same software stack as the real host computer (specifically including the operating system and the host computer's application program, etc.). Figure 1-3 The block diagram shown is a test of a virtual MVB network card using a QEMU virtual host computer. The QEMU virtual host instance used for verification is input into the monitoring layer of the QEMU virtual host computer through the PC104 bus. The monitoring layer of the QEMU virtual host computer adds a read and write frame listening function to the port address corresponding to the PC104 bus. When the program running by the QEMU virtual host computer instance generates read and write through the PC104 bus, the corresponding read and write listening function will be triggered, and then in the listening function, the host computer interface unit of the virtual MVB network card is communicated through the IPC method.
[0054] In one embodiment, the test module pre-stores test instructions that are pre-adapted to the MVB network card, such as communication test instructions, stress test instructions, and error frame test instructions. When the host computer is connected to the host computer interface unit in the virtual MVB network card and the host computer interface on the MVB network card respectively, the test module sends test instructions to the virtual MVB network card and the MVB network card at the same time node. Subsequently, within the specified time, the virtual MVB network card and the MVB network card complete the test instructions and generate test results. By pre-installing several test instructions in the test module, the MVB network card can be conveniently tested to increase the degree of integration.
[0055] In one embodiment, after the test results generated by the virtual MVB network card and the MVB network card are obtained by the analysis module and binarized. When the binarization processing of the same test items in the test results is different, the corresponding test items are marked as feedback items, and feedback is given to the feedback items. When the feedback items corresponding to the virtual MVB network card are binarized as unsatisfied and the feedback items corresponding to the MVB network card are binarized as satisfied, the acquisition module will re-acquire the MVB network card parameters and send them to the simulation module to rebuild the virtual MVB network card. When the feedback items corresponding to the virtual MVB network card are binarized as satisfied and the feedback items corresponding to the MVB network card are binarized as unsatisfied, the acquisition module will send the acquired MVB network card parameters to the host computer for display. By comparing the virtual MVB network card and the MVB network card through binarization, the virtual MVB is realized. Bidirectional dynamic comparison between the network card and the MVB network card. For example, in the first case mentioned above, it can be inferred that an error occurred in the modeling of the virtual MVB network card, and there is no need to repair the virtual MVB network card. In the second case, it can be inferred that the hardware part of the MVB network card failed, so after the stability test, there is no need to test the software part, which reduces the time for troubleshooting after the test.
[0056] When the binarization processing of the same test items in the test results is the same, the corresponding test items are marked as result items, and the test results are output.
[0057] It can be concluded from the above embodiments that the present application can achieve rapid positioning of situations occurring during and after stability testing and reduce testing time by setting at least one virtual MVB network card and one MVB network card.
[0058] like Figure 2 As shown, in addition to the above, the present application also provides an MVB network card stability test method, which is applicable to the above-mentioned MVB network card stability test system, including step 1: collecting MVB network card parameters and building a virtual MVB network card;
[0059] Step 2: Synchronously test the virtual MVB network card and the MVB network card, and collect the test results;
[0060] Step 3: Binarize the test results;
[0061] Step 4: When the binarization processing of the same test item in the test results is different, execute step 5; otherwise, execute step 6;
[0062] Step 5: When the feedback item corresponding to the virtual MVB network card is binarized as unsatisfied and the feedback item corresponding to the MVB network card is binarized as satisfied, the acquisition module will re-acquire the MVB network card parameters and send them to the simulation module to rebuild the virtual MVB network card;
[0063] When the feedback item corresponding to the virtual MVB network card is binarized and is satisfied, and the feedback item corresponding to the MVB network card is binarized and is not satisfied, the acquisition module sends the acquired MVB network card parameters to the host computer for display;
[0064] Step 6: Output the test results.
[0065] The technical effect brought about by the MVB network card stability test method is the same as that of the MVB network card stability test, so it will not be repeated here.
[0066] In a further specific implementation, a storage medium is also included, on which executable instructions are stored, and when the executable instructions are executed by a processor, the steps in the MVB network card stability testing method are implemented.
[0067] In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", "clockwise", "counterclockwise" and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present invention.
[0068] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0069] For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood in specific circumstances; the preferred embodiments of the present invention disclosed above are only used to help explain the present invention. The preferred embodiments do not describe all the details in detail, nor do they limit the invention to only specific implementation methods. Obviously, many modifications and changes can be made according to the content of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the present invention, so that those skilled in the art can well understand and use the present invention. The present invention is limited only by the claims and their full scope and equivalents.
Claims
1. MVB network card stability test system, characterized in that: include: A collection module, the collection module is used to obtain MVB network card parameters; A simulation module, wherein the simulation module constructs a virtual MVB network card based on MVB network card parameters; A test module, wherein the test module is used to synchronously test the virtual MVB network card and the MVB network card; An analysis module is provided, wherein the analysis module performs result analysis based on the test results of the virtual MVB network card and the MVB network card. Specifically, the test results of the virtual MVB network card and the MVB network card are obtained respectively, and binarization processing is performed. When the binarization processing of the same test items in the test results is different, the corresponding test items are marked as feedback items, and feedback is provided for the feedback items. The feedback items are specifically: When the feedback item corresponding to the virtual MVB network card is binarized as unsatisfied and the feedback item corresponding to the MVB network card is binarized as satisfied, the acquisition module will re-acquire the MVB network card parameters and send them to the simulation module to re-build the virtual MVB network card; When the feedback item corresponding to the virtual MVB network card is binarized and is satisfied, and the feedback item corresponding to the MVB network card is binarized and is not satisfied, the acquisition module sends the acquired MVB network card parameters to the host computer for display; When the binarization processing of the same test items in the test results is the same, the corresponding test items are marked as result items, and the test results are output; The binarization process comprises: Preset the numerical range corresponding to the test results; When the numerical range corresponding to the test result of the virtual MVB network card or the MVB network card meets the numerical range corresponding to the preset test result, the test result of the virtual MVB network card and / or the MVB network card is binarized to 0; When the numerical range corresponding to the test result of the virtual MVB network card or the MVB network card does not satisfy the numerical range corresponding to the preset test result, the test result of the virtual MVB network card and / or the MVB network card is binarized to 1; The test module is used to synchronously test the virtual MVB network card and the MVB network card, including: The host computer is respectively connected to the host computer interface unit in the virtual MVB network card and the host computer interface on the MVB network card, and sends test instructions to the virtual MVB network card and the MVB network card at the same time node.
2. The MVB network card stability testing system according to claim 1, characterized in that: The acquisition module is used to obtain the MVB network card parameters including: Obtain the graphic information of the MVB network card, identify the graphic information, and obtain the hardware information of the MVB network card; Connect the MVB network card to the host computer and clone the software data in the MVB network.
3. The MVB network card stability testing system according to claim 2, characterized in that: The hardware information of the MVB network card includes a host computer interface, a bus transceiver, a software interface, a controller, a communication memory, a software installation board and an MVB bus.
4. The MVB network card stability testing system according to claim 3, characterized in that: The simulation module builds a virtual MVB network card based on the MVB network card parameters, including: A bus unit corresponding to the MVB network card bus, a host computer interface unit corresponding to the host computer interface, a bus transceiver unit corresponding to the bus transceiver, a software interface unit corresponding to the software interface, a control unit corresponding to the controller, a storage unit corresponding to the communication memory, a software installation unit corresponding to the software installation board, and a virtual MVB bus corresponding to the MVB bus; Among them, each functional unit uses built-in signals, ports and sockets to bind between units.
5. The MVB network card stability testing system according to claim 1, characterized in that: The test instructions include basic communication test instructions, stress test instructions and error frame test instructions. 6.MVB network card stability testing method, characterized in that: The MVB network card stability test system according to any one of claims 1 to 5 comprises the following steps: Step 1: Collect MVB network card parameters and build a virtual MVB network card; Step 2: Synchronously test the virtual MVB network card and the MVB network card, and collect the test results; Step 3: Binarize the test results; Step 4: When the binarization processing of the same test item in the test results is different, execute step 5; otherwise, execute step 6; Step 5: When the feedback item corresponding to the virtual MVB network card is binarized as unsatisfied and the feedback item corresponding to the MVB network card is binarized as satisfied, the acquisition module will re-acquire the MVB network card parameters and send them to the simulation module to re-build the virtual MVB network card; When the feedback item corresponding to the virtual MVB network card is binarized and is satisfied, and the feedback item corresponding to the MVB network card is binarized and is not satisfied, the acquisition module sends the acquired MVB network card parameters to the host computer for display; Step 6: Output the test results.
7. A storage medium having executable instructions stored thereon, characterized in that: When the executable instructions are executed by a processor, the steps of the method described in claim 6 are implemented.
Citation Information
Patent Citations
MVB network card development method and platform
CN103514074A