CN113848850A - BSP board bus interface test method, device and storage medium - Google Patents

BSP board bus interface test method, device and storage medium Download PDF

Info

Publication number
CN113848850A
CN113848850A CN202111123615.XA CN202111123615A CN113848850A CN 113848850 A CN113848850 A CN 113848850A CN 202111123615 A CN202111123615 A CN 202111123615A CN 113848850 A CN113848850 A CN 113848850A
Authority
CN
China
Prior art keywords
bsp
board
test
interface
boards
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
Application number
CN202111123615.XA
Other languages
Chinese (zh)
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.)
Beijing Dewei Wisdom Technology Co ltd
Original Assignee
Beijing Dewei Wisdom 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 Beijing Dewei Wisdom Technology Co ltd filed Critical Beijing Dewei Wisdom Technology Co ltd
Priority to CN202111123615.XA priority Critical patent/CN113848850A/en
Publication of CN113848850A publication Critical patent/CN113848850A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B23/00Testing or monitoring of control systems or parts thereof
    • G05B23/02Electric testing or monitoring
    • G05B23/0205Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
    • G05B23/0208Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterized by the configuration of the monitoring system
    • G05B23/0213Modular or universal configuration of the monitoring system, e.g. monitoring system having modules that may be combined to build monitoring program; monitoring system that can be applied to legacy systems; adaptable monitoring system; using different communication protocols
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/24Pc safety
    • G05B2219/24065Real time diagnostics

Abstract

The invention provides a method and a device for testing a bus interface of a BSP board card and a storage medium; the method comprises the following steps: connecting a plurality of BSP boards to be tested to the same network through corresponding bus interfaces, and configuring a test instruction set in a BSP function packet of each BSP board; starting a plurality of BSP board cards, loading an operating system, and sending a mode control instruction to the plurality of BSP board cards; and controlling the plurality of BSP boards to establish communication connection based on the mode control instruction and the test instruction set, and communicating according to a preset interface configuration strategy to enable the plurality of BSP boards to carry out interface test mutually. According to the invention, the test instruction set is preset in the BSP function packet of the BSP board, so that the BSP boards can be used as the I2C equipment of the other side through mutual communication connection, thereby realizing batch test work of the bus interfaces of the BSP boards at the same time, and greatly improving the test efficiency of the bus interfaces of the BSP boards.

Description

BSP board bus interface test method, device and storage medium
Technical Field
The invention relates to the technical field of interface testing, in particular to a method and a device for testing a bus interface of a BSP board card and a storage medium.
Background
In the development process of the ARM Linux embedded system, a BSP (Board Support Package) function in the ARM Linux system needs to be tested. In the actual test process, generally, only the BSP function is not tested, but the bus and the bus interface of the board where the BSP is located (hereinafter, referred to as the BSP board) are tested at the same time to ensure that the BSP command can be correctly transmitted to the corresponding bus device in the future.
Currently, the bus interface is generally tested by connecting bus test equipment to a bus interface (such as an I2C bus interface) of a BSP board, for example, a test usb disk is inserted into an interface to be tested, and the BSP board reads a test status of the usb disk by using test software. After the BSP board card reads the enumeration signal of the interface to be tested successfully, the interface and the corresponding communication bus thereof are judged to be in a normal state; in the enumeration test process, a plurality of groups of transmission modes and transmission rates need to be tested, and all enumeration test processes actually only realize the test of a bus interface on one BSP board card, so that the efficiency is low.
Therefore, an efficient method for testing the bus interface of the BSP board is needed.
Disclosure of Invention
In order to solve the technical problems mentioned in the background art, in an aspect of the present invention, a method for testing a bus interface of a BSP board is provided, where the method includes: connecting a plurality of BSP boards to be tested to the same network through corresponding bus interfaces, and configuring a test instruction set in a BSP function packet of each BSP board; starting the plurality of BSP board cards, loading an operating system, and sending a mode control instruction to the plurality of BSP board cards; and controlling the plurality of BSP boards to establish communication connection based on the mode control instruction and the test instruction set, and communicating according to a preset interface configuration strategy to enable the plurality of BSP boards to carry out interface test mutually.
In one or more embodiments, the test instruction set is configured to provide a virtual network card function, an agent function, an interface configuration policy, and an MAC address for a corresponding BSP board; the MAC of each BSP board card is different from each other and is managed by the corresponding virtual network card function.
In one or more embodiments, the starting the plurality of BSP boards and loading the operating system, and sending the mode control instruction to the plurality of BSP boards includes: starting the plurality of BSP board cards, loading an operating system, sending a first mode control instruction to one of the plurality of BSP board cards, and sending a second mode control instruction to the other BSP board cards; the second mode control instruction includes an MAC address of the BSP board that is to receive the first mode control instruction.
In one or more embodiments, the controlling the plurality of BSP boards to establish the communication connection based on the control instruction and the test instruction set includes: the agent function configures the BSP board receiving the first mode control instruction as a master control BSP board, and configures the BSP board receiving the second mode control instruction as a slave control BSP board; sending the MAC address of the slave BSP board card to the MAC address contained in the second mode control instruction through the function control of the virtual network card; and the master control BSP board receives the MAC address of the slave control board through the virtual network card function, and establishes communication connection between the master control BSP board and the slave control BSP board.
In one or more embodiments, the testing instruction set further includes a plurality of interface transmission mode configuration parameters and a plurality of interface transmission rate configuration parameters, and the controlling the plurality of BSP boards to communicate according to a preset interface configuration policy so that the plurality of BSP boards perform interface testing with each other includes: the main control BSP board respectively acquires a first interface transmission mode configuration parameter and a first interface transmission rate configuration parameter according to a preset interface configuration strategy; generating test data, and generating a test instruction based on the first interface transmission mode configuration parameter, the first interface transmission rate configuration parameter and the test data; addressing each slave control BSP board card through the virtual network card function MAC, and sending the test instruction to each slave control board card; updating interface configuration based on the first interface transmission mode configuration parameter and the first interface transmission rate configuration parameter under the control of the proxy function; each slave BSP board receives the test instruction and updates interface configuration based on the first interface transmission mode configuration parameter and the first interface transmission rate configuration parameter under the control of the proxy function; returning the test data to the main control BSP board card; and the master control board card judges whether the bus interfaces of the master control BSP board card and the corresponding slave control BSP board card are normal or not by comparing whether the returned test data are consistent with the test data in the test instruction sent before or not through an agent function according to whether the test data returned from each slave control board card can be received or not or responding to the received test data returned from each slave control board card.
In one or more embodiments, the method for testing the bus interface of the BSP board further includes: and responding to the master control BSP board card to finish the interface test of all slave control BSP board cards, sending a first mode control instruction to one of the slave control BSP board cards by the master control BSP board card, sending a second mode control instruction to the other slave control BSP board cards, configuring the slave control BSP board cards, and finishing the interface test until all the BSP board cards in the network are sequentially configured into the master control BSP board cards and finish the test of other slave control board cards.
In one or more embodiments, the method for testing the bus interface of the BSP board further includes: in the interface testing process, sending target setting parameters to the main control BSP board; and responding to the main control BSP board receiving the target setting parameters, and sending the test instruction to a specified slave control BSP board in the network based on the target setting parameters.
In one or more embodiments, the sending, in response to the master BSP board receiving a target setting parameter, the test instruction to a slave BSP board specified in the network based on the target setting parameter includes: acquiring the MAC address in the target setting parameter; and sending a test instruction to a slave BSP board appointed in the network based on the MAC address.
In another aspect of the present invention, a BSP board bus interface testing apparatus is provided, where the testing apparatus is composed of a plurality of BSP boards to be tested, the plurality of BSP boards to be tested are connected to a same network through corresponding bus interfaces, and a test instruction set is configured in a BSP function packet of each BSP board, where the test instruction set is used to implement the steps of the BSP board bus interface testing method according to any one of claims 1 to 8 when executed, so that the plurality of BSP boards in the network establish communication connections based on the test instruction set and communicate according to a preset interface configuration policy to perform interface testing mutually.
In another aspect of the present invention, a storage medium is proposed, in which the set of test instructions is stored, which when executed is configured to implement the steps of the BSP board bus interface test method according to any one of claims 1 to 8.
According to the invention, the test instruction set is preset in the BSP function packet of the BSP board, so that the plurality of BSP boards can automatically establish communication connection and can be used as bus test equipment of the other side through mutual communication, thereby realizing batch test work of bus interfaces of the plurality of BSP boards at the same time and greatly improving the test efficiency of the bus interfaces of the BSP boards.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other embodiments can be obtained by using the drawings without creative efforts.
Fig. 1 is a flowchart illustrating a method for testing a bus interface of a BSP board card according to the present invention;
FIG. 2 is a schematic structural diagram of a first embodiment of networking a plurality of BSP board cards to be tested according to the method of the present invention;
FIG. 3 is a schematic structural diagram illustrating a plurality of BSP board cards to be tested connected to form a network according to a second embodiment of the present invention;
FIG. 4 is a diagram illustrating a network connection according to an alternative embodiment of the present invention;
fig. 5 is a schematic view of a communication network topology of the method of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the following embodiments of the present invention are described in further detail with reference to the accompanying drawings.
It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are used for distinguishing two entities with the same name but different names or different parameters, and it should be noted that "first" and "second" are merely for convenience of description and should not be construed as limitations of the embodiments of the present invention, and they are not described in any more detail in the following embodiments.
The invention provides an efficient method for testing a bus interface of a BSP board card, and particularly refers to fig. 1.
Fig. 1 is a flowchart illustrating a method for testing a bus interface of a BSP board according to the present invention. As shown in fig. 1, the method for testing the bus interface of the BSP board card of the present invention includes: step S1, connecting a plurality of BSP boards to be tested to the same network through corresponding bus interfaces, and configuring a test instruction set in the BSP function packet of each BSP board; step S2, starting a plurality of BSP boards, loading an operating system, and sending a mode control instruction to the plurality of BSP boards; and step S3, controlling the plurality of BSP boards to establish communication connection based on the mode control instruction and the test instruction set, and communicating according to a preset interface configuration strategy to enable the plurality of BSP boards to perform interface test with each other.
According to the invention, the test instruction set is preset in the BSP function packet of the BSP board, so that the plurality of BSP boards can automatically establish communication connection and can be used as bus test equipment of the other side through mutual communication, thereby realizing batch test work of bus interfaces of the plurality of BSP boards at the same time and greatly improving the test efficiency of the bus interfaces of the BSP boards.
In one embodiment, for the step S1, a plurality of BSP boards are connected to the same network through corresponding bus interfaces; the network formed at this time is only one network with physical connection, and each BSP board in the network does not have communication capacity. The connection form of the network is not limited in the method of the present invention. For example, the form of the network may be as shown in fig. 2 or fig. 3; fig. 2 is a schematic structural diagram of a first embodiment of networking a plurality of BSP board cards to be tested according to the method of the present invention. Fig. 3 is a schematic structural diagram of a second embodiment of networking a plurality of BSP board cards to be tested according to the method of the present invention. Specifically, fig. 2 shows a network structure in which a plurality of BSP boards are connected to the same BSP board to form a network. Fig. 3 shows a network structure in which a plurality of BSP boards are connected in series in sequence to form a network.
In order to enable the BSP boards in the same network to be mutually used as "bus test equipment", communication connection among the BSP boards needs to be realized, so that feedback of communication interaction is utilized to check whether the data bus and the corresponding bus interface are normal. Therefore, in one implementation, the test instruction set is used to provide the virtual network card function, the proxy function, the interface configuration policy, and the MAC address for the corresponding BSP board; the MAC of each BSP board card is different from each other and is managed by the corresponding virtual network card function.
In further implementation, before formally performing the interface test, step S2 is further performed, the plurality of BSP boards are started and the operating system is loaded, and a mode control instruction is sent to the plurality of BSP boards; the method comprises the following specific steps: starting a plurality of BSP board cards and loading an operating system, sending a first mode control instruction to one of the BSP board cards, and sending a second mode control instruction to the other BSP board cards; the second mode control instruction includes the MAC address of the BSP board that is to receive the first mode control instruction. For example, in a specific embodiment, A, B, C, D, E five BSP boards need to be tested in batch, and a tester needs to determine a master BSP board first, where if B is selected as the master BSP board, the other A, C, D, E is selected as the slave BSP board; then, the tester needs to generate a first mode control instruction and a second mode control instruction respectively through an external device such as a computer, and presets the MAC address of the BSP board card B in the second mode control instruction; and then respectively send the first mode control instruction to the BSP board B, and send the second mode control instruction to the BSP boards A, C, D and E.
In a preferred embodiment, the test instruction set further includes functionality for identifying a specific USB device; on this basis, the first mode control instruction and the second mode control instruction may be stored in a designated USB device, for example, in a designated USB disk, when the designated USB disk is inserted into each BSP board, each BSP board will recognize the USB disk and automatically acquire the first mode control instruction or the second mode control instruction therein. The implementation method can greatly facilitate the field operation of testers, thereby improving the testing efficiency.
In a further embodiment, the step S3 of controlling the plurality of BSP boards to establish the communication connection based on the control command and the test command set includes: the agent function configures the BSP board receiving the first mode control instruction as a master control BSP board, and configures the BSP board receiving the second mode control instruction as a slave control BSP board; sending the MAC address of the slave BSP board card to the MAC address contained in the second mode control instruction through the virtual network card function and control; and the master control BSP board receives the MAC address of the slave control board through the virtual network card function, and establishes communication connection between the master control BSP board and the slave control BSP board. By the method, a plurality of BSP boards connected to the same network can realize automatic establishment of the communication network, and further batch test efficiency of the BSP boards is improved.
In a specific embodiment, the test instruction set in each BSP board further includes a broadcast forwarding function, and each slave control board sends the MAC address of the slave control BSP board to the MAC address included in the second mode control instruction through the virtual network card function in a broadcast manner; when the BSP board card receiving the broadcast is not the master control BSP board card, the broadcast is forwarded to BSP equipment connected with the BSP board card; after the master control BSP board receives the MAC addresses of all the slave control BSP boards, an IP address is generated according to the MAC addresses of all the slave control BSP boards, and the IP addresses are sent to all the slave control BSP boards in a broadcasting mode again, so that the communication connection between the master control BSP boards and the slave control BSP boards is established.
In a further embodiment, the step S3 of controlling the BSP boards to communicate according to a preset interface configuration policy to enable the BSP boards to perform an interface test with each other further includes: the main control BSP board respectively acquires a first interface transmission mode configuration parameter and a first interface transmission rate configuration parameter according to a preset interface configuration strategy; generating test data, and generating a test instruction based on the first interface transmission mode configuration parameter, the first interface transmission rate configuration parameter and the test data; addressing each slave BSP board card through a virtual network card function MAC, and sending the test instruction to each slave control board card; updating the interface configuration based on the first interface transmission mode configuration parameter and the first interface transmission rate configuration parameter under the control of the agent function; each slave BSP board card receives a test instruction and updates interface configuration based on a first interface transmission mode configuration parameter and a first interface transmission rate configuration parameter under the control of an agent function; returning test data to the main control BSP board card; the master control board card judges whether the bus interfaces of the master control BSP board card and the corresponding slave control BSP board card are normal or not according to whether the test data returned from each slave control board card can be received or not or in response to the received test data returned from each slave control board card, and whether the returned test data is consistent with the test data in the test instruction sent before or not through the proxy function comparison. It should be noted that initially, all BSP boards are configured with the same interface configuration parameters, so as to ensure that each BSP board can communicate after being started for the first time. In addition, the interface configuration strategy is used for selecting one interface transmission mode configuration parameter and one interface transmission rate configuration parameter from the plurality of interface transmission mode configuration parameters and the plurality of interface transmission rate configuration parameters to form a group for realizing the interface test of the appointed transmission rate in the appointed interface mode.
In an optional embodiment, the interface configuration policy includes acquiring and acquiring configuration parameters of transmission modes of each interface and configuration parameters of transmission rates of the interfaces in sequence in a polling manner; the method has the advantages that the comprehensive interface test can be realized, but the defects are that the test time is long and the test efficiency is not high;
in a preferred embodiment, the interface configuration policy includes setting a weight coefficient for a plurality of interface transmission mode configuration parameters; randomly acquiring at least 1 interface transmission rate configuration parameter suitable for the interface transmission mode according to the weight coefficient of the interface transmission mode configuration parameter; the larger the weight coefficient is, the more the number of interface transmission rate configuration parameters which are randomly acquired and adapt to the corresponding interface transmission mode is. The method can complete the interface test more quickly on the premise of ensuring the comprehensive test, thereby being beneficial to improving the efficiency of the interface test.
In a further embodiment, the method for testing the bus interface of the BSP board card of the present invention further includes: and responding to the master control BSP board card to finish the interface test of all slave control BSP board cards, sending a first mode control instruction to one of the slave control BSP board cards by the master control BSP board card, sending a second mode control instruction to the other slave control BSP board cards, configuring the slave control BSP board cards as the slave control BSP board cards, and finishing the interface test until all the BSP board cards in the network are sequentially configured into the master control BSP board cards and finish the test of other slave control board cards. The method has the advantages that when the master control BSP board fails to receive the test data returned from the corresponding slave control BSP board or the received returned test data is not consistent with the previously sent test data, it is indicated that the problem exists in the bus and/or the bus interface between the master control BSP board and the corresponding slave control BSP board, but the problem is difficult to accurately locate at the moment, and the problem can be accurately determined after the BSP boards are alternately used as the master control BSP boards to perform interface test. For a clearer illustration of this principle, please refer to fig. 4;
fig. 4 is a schematic diagram of a network connection relationship according to an alternative embodiment of the present invention. Wherein 10 is a master control BSP board card, and 20 to 40 are slave control BSP board cards; 50 is a connecting bus among the BSP board cards; each BSP board card comprises a chip, a storage module and a bus interface, wherein the chip is connected with the bus interface through a data bus; the storage module stores a BSP function package (the BSP function package contains a test instruction set) and an operating system.
In the process of testing an interface, setting 10 as a master control BSP board and 20 to 40 as slave control BSP boards; when the master BSP board 10 cannot receive the test data returned from the slave BSP board 20 and can normally receive the test data returned from the slave BSP board 30 and the slave BSP board 40, it indicates that a problem occurs in the data bus 50 between the master BSP board 10 and the slave BSP board 20, the bus interface 220 of the slave BSP board 20, and/or the data bus 210 of the slave BSP board 20; at this time, the problem cannot be accurately positioned; therefore, in the next stage test, the BSP board 20 is used as the master control board, and the BSP boards 10, 30 and 40 are used as the slave BSP boards, and if the master BSP board fails to receive the return data from the slave BSP board 10, the slave BSP board 30 and the slave BSP board 40, it indicates that the bus interface 220 and/or the data bus 210 of the master control board 20 is/are defective; if the master BSP board 20 can normally receive the return data from the slave BSP board 30 and the slave BSP board 40, but cannot receive the return data from the slave BSP board 10, it indicates a problem on the data bus 50 between the master BSP board 20 and the slave BSP board 10.
It should be noted that the connection relationship in fig. 4 only represents a physical connection relationship between BSP boards, and is not a network communication topology, and a network communication topology finally implemented by the present invention should be as shown in fig. 5.
Fig. 5 is a schematic view of a communication network topology of the method of the present invention. The connection between the agent function and the virtual network card function represents that the agent function and the virtual network card function have interaction; the virtual network card is used for adding an IP address and an MAC address to a sending message generated by the proxy function and sending the message to the I2C bus interface, so that the I2C bus interface packs data according to a corresponding interface transmission mode and sends the data packet at a corresponding interface transmission rate; correspondingly, the I2C bus interface of the slave BSP board unpacks the received packed data, determines the IP address and the MAC address through the virtual network card function, and sends the IP address and the MAC address to the proxy function, and the proxy function performs further operations. It should be noted that fig. 5 illustrates a communication network topology formed by only three BSP boards, but this does not limit the method of the present invention, and the method of the present invention may be applied to a variety of connection relationships with two or more BSP boards. In addition, the data bus shown in fig. 5 is an I2C data bus, which does not impose any limitation on the method of the present invention, and the data bus may also be other data buses such as GPIO.
In a further embodiment, the test instruction set further includes target setting parameters, and accordingly, the method for testing the bus interface of the BSP board further includes: in the interface testing process, target setting parameters are sent to a main control BSP board; and responding to the target setting parameters received by the main control BSP board, and sending a test instruction to a slave control BSP board appointed in the network based on the target setting parameters. The sending of the test instruction to a slave BSP board designated in a network based on the target setting parameter includes: acquiring an MAC address in a target setting parameter; and sending a test instruction to a slave BSP board designated in the network based on the MAC address.
Through the method in each embodiment, in the test of the plurality of BSP boards, the plurality of BSP boards are connected together only, the BSP boards are configured to be the master control board or the slave control board, then the plurality of BSP boards can automatically establish communication connection according to a preset test instruction set, a communication network is formed, and then communication is performed according to a preset interface configuration strategy so that the plurality of BSP boards can perform interface test with each other. The method can complete the test work of a plurality of BSP board cards in batch and quickly, and greatly improves the test efficiency of the BSP board cards.
In another aspect of the present invention, a testing apparatus for a bus interface of a BSP board is further provided, where the testing apparatus is composed of a plurality of BSP boards to be tested, the plurality of BSP boards to be tested are connected to the same network through corresponding bus interfaces, and a test instruction set is configured in a BSP function packet of each BSP board; when executed, the test instruction set is used to implement the steps of the BSP board bus interface test method in the embodiments described above, so that a plurality of BSP boards in a network establish communication connection based on the test instruction set, and communicate according to a preset interface configuration policy to perform interface test with each other.
In another aspect of the present invention, a storage medium is further provided, where a test instruction set is stored, and the test instruction set is used when being executed to implement the steps of the BSP board bus interface test method as described in the foregoing embodiments. It should be noted that the storage medium needs to be properly utilized to have an execution utility; the test instructions in the storage medium are loaded and executed in a correct utilization manner, for example, by using the BSP function package.
Finally, it should be noted that the basis for implementing the method of the present invention includes that an operating system, such as a Linux system, a Windows system, etc., capable of supporting execution of each step of the method of the present invention is preset in the BSP board.
The foregoing is an exemplary embodiment of the present disclosure, but it should be noted that various changes and modifications could be made herein without departing from the scope of the present disclosure as defined by the appended claims. The functions, steps and/or actions of the method claims in accordance with the disclosed embodiments described herein need not be performed in any particular order. Furthermore, although elements of the disclosed embodiments of the invention may be described or claimed in the singular, the plural is contemplated unless limitation to the singular is explicitly stated.
It should be understood that, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly supports the exception. It should also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items.
The numbers of the embodiments disclosed in the embodiments of the present invention are merely for description, and do not represent the merits of the embodiments.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, of embodiments of the invention is limited to these examples; within the idea of an embodiment of the invention, also technical features in the above embodiment or in different embodiments may be combined and there are many other variations of the different aspects of the embodiments of the invention as described above, which are not provided in detail for the sake of brevity. Therefore, any omissions, modifications, substitutions, improvements, and the like that may be made without departing from the spirit and principles of the embodiments of the present invention are intended to be included within the scope of the embodiments of the present invention.

Claims (10)

1. A BSP board card bus interface test method is characterized by comprising the following steps:
connecting a plurality of BSP boards to be tested to the same network through corresponding bus interfaces, and configuring a test instruction set in a BSP function packet of each BSP board;
starting the plurality of BSP board cards, loading an operating system, and sending a mode control instruction to the plurality of BSP board cards;
and controlling the plurality of BSP boards to establish communication connection based on the mode control instruction and the test instruction set, and communicating according to a preset interface configuration strategy to enable the plurality of BSP boards to carry out interface test mutually.
2. The BSP board bus interface test method of claim 1,
the test instruction set is used for providing a virtual network card function, an agent function, an interface configuration strategy and an MAC address for the corresponding BSP board card; the MAC of each BSP board card is different from each other and is managed by the corresponding virtual network card function.
3. The method for testing the bus interface of the BSP board of claim 2, wherein the starting the plurality of BSP boards and loading the operating system to send the mode control command to the plurality of BSP boards comprises:
starting the plurality of BSP board cards, loading an operating system, sending a first mode control instruction to one of the plurality of BSP board cards, and sending a second mode control instruction to the other BSP board cards;
the second mode control instruction includes an MAC address of the BSP board that is to receive the first mode control instruction.
4. The method for testing the bus interface of the BSP board of claim 3, wherein the controlling the plurality of BSP boards to establish the communication connection based on the control instruction and the set of test instructions comprises:
the agent function configures the BSP board receiving the first mode control instruction as a master control BSP board, and configures the BSP board receiving the second mode control instruction as a slave control BSP board;
sending the MAC address of the slave BSP board card to the MAC address contained in the second mode control instruction through the function control of the virtual network card;
and the master control BSP board receives the MAC address of the slave control board through the virtual network card function, and establishes communication connection between the master control BSP board and the slave control BSP board.
5. The method for testing the bus interface of the BSP board of claim 4, wherein the test instruction set further includes a plurality of interface transmission mode configuration parameters and a plurality of interface transmission rate configuration parameters, and the controlling the plurality of BSP boards to communicate according to a preset interface configuration policy so that the plurality of BSP boards perform the interface test with each other includes:
the main control BSP board respectively acquires a first interface transmission mode configuration parameter and a first interface transmission rate configuration parameter according to a preset interface configuration strategy;
generating test data, and generating a test instruction based on the first interface transmission mode configuration parameter, the first interface transmission rate configuration parameter and the test data;
addressing each slave control BSP board card through the virtual network card function MAC, and sending the test instruction to each slave control board card;
updating interface configuration based on the first interface transmission mode configuration parameter and the first interface transmission rate configuration parameter under the control of the proxy function;
each slave BSP board receives the test instruction and updates interface configuration based on the first interface transmission mode configuration parameter and the first interface transmission rate configuration parameter under the control of the proxy function;
returning the test data to the main control BSP board card;
and the master control board card judges whether the bus interfaces of the master control BSP board card and the corresponding slave control BSP board card are normal or not by comparing whether the returned test data are consistent with the test data in the test instruction sent before or not through an agent function according to whether the test data returned from each slave control board card can be received or not or responding to the received test data returned from each slave control board card.
6. The method for testing the bus interface of the BSP board card of claim 5, wherein the method further comprises:
and responding to the master control BSP board card to finish the interface test of all slave control BSP board cards, sending a first mode control instruction to one of the slave control BSP board cards by the master control BSP board card, sending a second mode control instruction to the other slave control BSP board cards, configuring the slave control BSP board cards, and finishing the interface test until all the BSP board cards in the network are sequentially configured into the master control BSP board cards and finish the test of other slave control board cards.
7. The method for testing the bus interface of the BSP board card of claim 5, wherein the method further comprises:
in the interface testing process, sending target setting parameters to the main control BSP board;
and responding to the main control BSP board receiving the target setting parameters, and sending the test instruction to a specified slave control BSP board in the network based on the target setting parameters.
8. The method for testing the bus interface of the BSP board of claim 7, wherein the sending the test instruction to the slave BSP board specified in the network based on the target configuration parameter in response to the master BSP board receiving the target configuration parameter comprises:
acquiring the MAC address in the target setting parameter;
and sending a test instruction to a slave BSP board appointed in the network based on the MAC address.
9. A BSP board bus interface test device is characterized by comprising a plurality of BSP boards to be tested, wherein the BSP boards to be tested are connected to the same network through corresponding bus interfaces, a test instruction set is configured in a BSP function packet of each BSP board, and the test instruction sets are used for realizing the steps of the BSP board bus interface test method according to any one of claims 1-8 when being executed, so that the BSP boards in the network establish communication connection based on the test instruction sets and communicate according to a preset interface configuration strategy to perform interface test mutually.
10. A storage medium having stored therein the set of test instructions, when executed, for implementing the steps of the BSP board bus interface test method according to any one of claims 1 to 8.
CN202111123615.XA 2021-09-24 2021-09-24 BSP board bus interface test method, device and storage medium Pending CN113848850A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111123615.XA CN113848850A (en) 2021-09-24 2021-09-24 BSP board bus interface test method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111123615.XA CN113848850A (en) 2021-09-24 2021-09-24 BSP board bus interface test method, device and storage medium

Publications (1)

Publication Number Publication Date
CN113848850A true CN113848850A (en) 2021-12-28

Family

ID=78979398

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111123615.XA Pending CN113848850A (en) 2021-09-24 2021-09-24 BSP board bus interface test method, device and storage medium

Country Status (1)

Country Link
CN (1) CN113848850A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116820864A (en) * 2023-07-10 2023-09-29 北京鲲鹏凌昊智能技术有限公司 Board card multifunctional test method and device, electronic equipment and storage medium
CN117041122A (en) * 2023-10-08 2023-11-10 湖南国科鸿飞科技有限公司 Data transmission test system and data transmission test method
CN116820864B (en) * 2023-07-10 2024-05-17 北京鲲鹏凌昊智能技术有限公司 Board card multifunctional test method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107506269A (en) * 2017-08-24 2017-12-22 晶晨半导体(上海)股份有限公司 The USB automated test tools and method of a kind of board
CN111812524A (en) * 2020-06-15 2020-10-23 深圳市金凯博自动化测试有限公司 Battery module safety and EOL (Ethernet over load) testing system capable of randomly expanding number of battery cores
CN112783071A (en) * 2021-01-20 2021-05-11 紫光展讯通信(惠州)有限公司 SDIO controller, FPGA board card and SDIO test system
CN112953857A (en) * 2021-02-24 2021-06-11 迈普通信技术股份有限公司 Method for testing internal channel between boards and distributed network equipment
CN113259205A (en) * 2021-07-01 2021-08-13 湖南博匠信息科技有限公司 Method and system for testing internal interconnection interface of multi-board system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107506269A (en) * 2017-08-24 2017-12-22 晶晨半导体(上海)股份有限公司 The USB automated test tools and method of a kind of board
CN111812524A (en) * 2020-06-15 2020-10-23 深圳市金凯博自动化测试有限公司 Battery module safety and EOL (Ethernet over load) testing system capable of randomly expanding number of battery cores
CN112783071A (en) * 2021-01-20 2021-05-11 紫光展讯通信(惠州)有限公司 SDIO controller, FPGA board card and SDIO test system
CN112953857A (en) * 2021-02-24 2021-06-11 迈普通信技术股份有限公司 Method for testing internal channel between boards and distributed network equipment
CN113259205A (en) * 2021-07-01 2021-08-13 湖南博匠信息科技有限公司 Method and system for testing internal interconnection interface of multi-board system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116820864A (en) * 2023-07-10 2023-09-29 北京鲲鹏凌昊智能技术有限公司 Board card multifunctional test method and device, electronic equipment and storage medium
CN116820864B (en) * 2023-07-10 2024-05-17 北京鲲鹏凌昊智能技术有限公司 Board card multifunctional test method and device, electronic equipment and storage medium
CN117041122A (en) * 2023-10-08 2023-11-10 湖南国科鸿飞科技有限公司 Data transmission test system and data transmission test method
CN117041122B (en) * 2023-10-08 2024-01-02 湖南国科鸿飞科技有限公司 Data transmission test system and data transmission test method

Similar Documents

Publication Publication Date Title
CN107332726B (en) Communication link detection method and device
CN106681924B (en) A kind of method for testing software and system
CN108227680B (en) Automobile diagnostic instrument, operation system method thereof and automobile diagnostic system
CN109587005B (en) Connection detection method and device, computer equipment and readable storage medium
EP3606014A1 (en) Detecting hardware address conflicts in computer networks
EP3316555A1 (en) Mac address synchronization method, device and system
CN110896366B (en) Network card function testing method and device of multi-network card equipment and storage medium
CN113848850A (en) BSP board bus interface test method, device and storage medium
CN111200662A (en) Message forwarding method and device in Internet of things, storage medium and server
CN113220614B (en) Method, system and medium for self-adaptive management of I2C and I3C devices
WO2023142907A1 (en) All-optical network service testing method and apparatus, computer device and readable medium
CN111541958A (en) Optical interface rate self-adaption method, equipment, device and readable storage medium
CN108141480B (en) Method and apparatus for addressing in a system of interconnected cells
EP2464062A1 (en) Method for switch device establishing topology structure, switch device and stacking system thereof
WO2012051841A1 (en) Method and system for maintaining base transceiver station
CN115454896A (en) SMBUS-based SSD MCTP control message verification method and device, computer equipment and storage medium
CN111431668B (en) Baud rate switching method based on multi-node UART communication, air conditioning system and processor
CN111147400B (en) Method and device for command line configuration synchronization and electronic equipment
CN113472558B (en) Network deployment method and device
CN101098262A (en) SNMP interface based equipment arrangement testing approach and device
CN111858300B (en) Automatic testing method, device and system for embedded equipment and storage medium
CN115373927B (en) Product testing method, device, electronic equipment and computer readable medium
CN115086216B (en) Test method and system for multiple virtual terminals
CN117614866A (en) Network card function test device and network card function test method
CN116546074A (en) Login timeout duration setting method, device, computing equipment and storage medium

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