A method, device, electronic equipment and storage medium for testing a board
Through the board test method executed by the server, the target board and its target functions are determined, and the input channel is controlled according to the preset test rules, which solves the problems of low board testing efficiency and insufficient accuracy in the existing technology, and realizes flexible and efficient board testing.
Patent Information
- Application Number
- CN202210034909.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-13
- Publication Date
- 2025-05-13
- Estimated Expiration
- 2042-01-13
AI Technical Summary
The existing board and card testing device can only support a single type of ATO single board testing. The test time is long and different testing devices need to be replaced. The testing environment is complex and consumes a lot of manpower and time, which affects the testing efficiency and accuracy.
Through the board test method executed by the server, the target board and its target functions are determined, the target board and its target functions are determined based on the relationship between the target function and the preset test rules, the target test rules are determined, the input channel opening and closing status of the target board is controlled, feedback information is generated, and the preset standard information conditions are determined to determine the test success.
It realizes flexible testing of different boards and different functions, reduces user operations, saves manpower and time, and improves the efficiency and accuracy of board testing.
Smart Images

Figure CN114385431B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to computer technology, and in particular to a method, device, electronic equipment and storage medium for testing a board. Background Art
[0002] ATO (Automatic Train Operation) is an important subsystem in the train automatic control system. It is composed of various ATO boards and installed in the cage. It has functions such as automatic driving, precise parking and platform automation operations.
[0003] The production quality of ATO single board products directly affects the safety, reliability and stability of train operation. Therefore, the production test of the board is a key link to ensure the quality of the product. The current board test device can only support a single type of ATO single board test, and the test time is long. Testing multiple ATO boards requires replacing different test devices, and the test environment is complex to set up. The test process consumes a lot of manpower and time, affecting the test efficiency and accuracy. Summary of the invention
[0004] The embodiment of the present invention provides a method, device, electronic equipment and storage medium for testing a board card, so as to improve the efficiency and accuracy of the board card testing.
[0005] In a first aspect, an embodiment of the present invention provides a method for testing a board, which is executed by a server, wherein the server is in communication connection with an adapter, and a target board is inserted into the adapter, and the method comprises:
[0006] In response to a board test instruction, determining a target board and a target function of the target board;
[0007] Determining a target test rule for the target function according to the association relationship between the target function of the target board and the preset test rule;
[0008] According to the target test rule, determine the input channel to be tested from the candidate input channels of the target board, send an opening and closing instruction to the input channel to be tested, control the opening and closing state of the input channel to be tested, and enable the target board to generate feedback information according to the opening and closing state of the input channel to be tested;
[0009] Receive feedback information from the target board, determine whether the feedback information meets a preset standard information condition, and if so, determine that the target board test is successful.
[0010] In a second aspect, an embodiment of the present invention further provides a device for testing a board, which is configured on a server, the server is communicatively connected to an adapter, and a target board is inserted into the adapter. The device comprises:
[0011] A target board determination module, used for determining a target board and a target function of the target board in response to a board test instruction;
[0012] A target test rule determination module, used to determine the target test rule of the target function according to the association relationship between the target function of the target board and the preset test rule;
[0013] The input channel determination module to be tested is used to determine the input channel to be tested from the candidate input channels of the target board according to the target test rule, send an opening and closing instruction to the input channel to be tested, and control the opening and closing state of the input channel to be tested, so that the target board generates feedback information according to the opening and closing state of the input channel to be tested;
[0014] The feedback information judging module is used to receive the feedback information of the target board and judge whether the feedback information meets the preset standard information condition. If so, it is determined that the target board is tested successfully.
[0015] In a third aspect, an embodiment of the present invention further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method for testing a board as described in any embodiment of the present invention is implemented.
[0016] In a fourth aspect, an embodiment of the present invention further provides a storage medium comprising computer executable instructions, wherein the computer executable instructions, when executed by a computer processor, are used to execute the board test method as described in any embodiment of the present invention.
[0017] The embodiment of the present invention determines the target board to be tested and the target function of the target board by responding to the board test instruction issued by the user, realizes the designation of different boards and different functions, and improves the flexibility and comprehensiveness of the test. Different functions of different boards can be associated with different test rules, determine the target test rules, and control the opening and closing of each input channel of the target board according to the target test rules. The target board can obtain the opening and closing state of the input channel in real time, generate feedback information, and send the feedback information to the server. According to the feedback information and the preset standard information conditions, it is determined whether the target board is tested successfully. The problem of testing a single board and a single function in the prior art is solved, and the input channel of the target board is automatically tested by controlling the input channel of the target board, reducing user operations, saving manpower and time, and improving the test efficiency and accuracy of the board. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 It is a flow chart of a method for testing a board in Embodiment 1 of the present invention;
[0019] Figure 2It is a flow chart of a method for testing a board in Embodiment 2 of the present invention;
[0020] Figure 3 It is a structural block diagram of a device for board card testing in Embodiment 3 of the present invention;
[0021] Figure 4 It is a structural schematic diagram of a device for board card testing in the fourth embodiment of the present invention. DETAILED DESCRIPTION
[0022] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.
[0023] Embodiment 1
[0024] Figure 1 This is a flow chart of a method for testing a board provided by the first embodiment of the present invention. This embodiment is applicable to the case of testing an ATO board. The method can be executed by a board testing device configured on a server. Figure 1 As shown, the method specifically comprises the following steps:
[0025] Step 110: In response to the board test instruction, determine the target board and the target function of the target board.
[0026] Among them, the board to be tested can be plugged into the adapter, and the adapter is provided with plug-in interfaces for various boards. When testing the board, the user can plug the board into the corresponding interface. The interface adapter unit of the adapter is designed, and an independent programmable power supply is adopted, and there is no need to borrow the ATO power board. The ATO single board to be tested is vertically plugged into the interface adapter unit to avoid confusion of wiring, convenient assembly, simple operation, and realize integrated testing of each ATO single board, saving space. The board can communicate with the host computer through the adapter. The host computer, as a test server, stores test scripts, uses LabVIEW (a program development environment) for software control, records and stores test results, and automatically tests and saves reports. Through bus control, equipped with an expandable adapter interface, the host computer performs bus control, board driver, configures communication data, and analyzes and judges the received data through LabVIEW to complete the entire test process. The logic control part and the communication function part in the test system are kept independent, solving the problem of difficult hardware and software maintenance. The interface may be an Ethernet interface, Ethernet communication, an MVB (Multifunction Vehicle Bus) communication interface, a CAN (Controller Area Network) communication interface, and the like.
[0027] The user inserts the board to be tested into the corresponding interface on the adapter, and issues a board test instruction to the host computer. The board test instruction may include the type of the board to be tested and the board function to be tested. According to the type of the board to be tested, the target board inserted in the adapter is determined. According to the function to be tested, the target function to be tested on the target board is determined. For example, when the user issues a board test instruction, the target board can be selected from the preset board options, and the target function can be selected from the preset function options. The target board may include an input board, an auxiliary driving board, a main control board, an output board, a communication board or a recording board, etc. The test of the target function may include an IO (Input / Output, input / output) test, an interference test, a communication test, a boundary voltage test, a PWM (Pulse Width Modulation,) output test, a reaction speed test and a pulse test, etc.
[0028] Step 120: Determine the target test rule of the target function according to the association relationship between the target function of the target board and the preset test rule.
[0029] Among them, different test rules are pre-set, and the test rules are associated with different functions of different boards and stored. The test process of each board function can be set in the test rules. For example, the time, data, and channels required for the board to interact with the host computer during the test can be specified, and how the host computer determines whether the board test is successful based on the acquired data can be specified. After determining the target board and target function, the target test rule associated with the target function of the target board is searched from the preset test rules.
[0030] Step 130: According to the target test rule, determine the input channel to be tested from the candidate input channels of the target board, send an opening and closing instruction to the input channel to be tested, control the opening and closing state of the input channel to be tested, and enable the target board to generate feedback information according to the opening and closing state of the input channel to be tested.
[0031] Among them, the target board may include multiple candidate input channels, for example, the input board has 12 candidate input channels, and the auxiliary driving board has 8 candidate input channels. After determining the target test rule, according to the target test rule, one or more input channels to be tested can be determined from the candidate input channels for testing. The host computer can send a disconnect or close command to the input channel to be tested to control the open and close state of the input channel to be tested. The open and close command can be issued through a relay, and the open and close state can include an open state and a closed state. For example, according to the target test rule, one channel can be randomly selected from the candidate input channels as the input channel to be tested, and a closing command can be issued to the input channel to be tested. The target board can obtain the open and closed state of the input channel to be tested in real time, and generate feedback information according to the open and closed state. The feedback information may include the open and closed state of the input channel to be tested, and may also include communication data collected by the target board through the input channel to be tested. For example, the input channel to be tested receives a closing command to close the channel, and the target board can determine in real time whether the input channel to be tested is closed, and use the current open and closed state of the input channel to be tested as feedback data.
[0032] In this embodiment, optionally, according to the target test rule, the input channel to be tested is determined from the candidate input channels of the target board and card, and an opening and closing instruction is sent to the input channel to be tested to control the opening and closing state of the input channel to be tested, including: determining any candidate input channel of the target board and card as the target input channel, sending a closing instruction to the target input channel to control the closing of the target input channel; sending an opening and closing instruction to any other input channel to control the opening and closing state of any other input channel, so that the target board and card can obtain the opening and closing state of the target input channel when any other input channel is opened and closed; wherein the other input channels are candidate input channels other than the target input channel.
[0033] Specifically, the input channel to be tested may include a target input channel and other input channels, the target input channel may be one or more channels, and the other input channels may be one or more channels. The number of other input channels plus the number of target input channels may be less than or equal to the number of candidate input channels of the target board. For example, a candidate input channel may be randomly selected as the target input channel, and then another input channel may be randomly selected from the candidate input channels other than the target input channel. The host computer may send opening and closing instructions to the target input channel and the other input channels respectively. In this embodiment, by sending opening and closing instructions to the input channels, interference testing may be performed on the target board. When performing interference testing, a candidate input channel may be selected as the target input channel, and then a candidate input channel may be selected as the other input channels. A closing instruction is sent to the target input channel to control the target input channel to close. Closing and disconnecting instructions are then sent to other input channel instructions to control other input channels to change the opening and closing states. The target board may obtain the opening and closing states of the target input channel in real time when other input channels change the opening and closing states, and determine whether the target input channel maintains a closed state. After testing one other input channel for the target input channel, you can select another other input channel to determine whether the other input channel interferes with the open and closed state of the target input channel, until all other input channels have completed the test of the target input channel, and then select another target input channel for testing. That is, when performing interference testing, control the two input channels to be tested, drive one target input channel to close, and change the closing state of other input channels in turn.
[0034] For example, the input board has 12 candidate input channels, numbered as channel 1, channel 2, channel 3, ..., channel 12. When testing, first select channel 1 as the target input channel, channel 2 as the other input channel, close channel 1, change the open and closed state of channel 2, and the target board obtains feedback information from channel 1 and channel 2; then use channel 3 as the other input channel, close channel 1, change the open and closed state of channel 3, and the target board obtains feedback information from channel 1 and channel 3; until channel 12 is used as the other input channel, close channel 1, change the open and closed state of channel 12, the target board obtains feedback information from channel 1 and channel 12, and the interference test of channel 1 is completed. Then use channel 2 as the target input channel, channel 1 as the other input channel, close channel 2, change the open and closed state of channel 1, and the target board obtains feedback information from channel 2 and channel 1, until all candidate input channels are used as target input channels to complete the test. The beneficial effect of such a setting is that the opening and closing of the candidate input channels can be automatically controlled, and when controlling the candidate input channels, an opening and closing instruction can be issued to any input channel, so that all candidate input channels are tested to avoid omissions in the test, and the entire control process does not require manual operation, saving manpower and time, and improving test efficiency and accuracy.
[0035] Step 140: Receive feedback information from the target board and determine whether the feedback information meets a preset standard information condition. If so, determine that the target board test is successful.
[0036] Among them, the target board can obtain the current information of the input channel to be tested in real time as feedback information, and send the feedback information to the host computer in real time. The current information may include the opening and closing state of the input channel to be tested and the time of changing the opening and closing state. The host computer pre-stores standard information conditions, which are conditions for judging whether the target function test of the target board is successful. The standard information conditions of different board functions may be different. After determining the target board and the target function, the target standard information conditions associated with the target function of the target board can be found from the preset candidate standard information conditions. The standard information conditions may also exist in the test rules. When determining the target test rules, the standard information conditions of the target function of the target board are determined. After receiving the feedback information, the host computer can compare the feedback information with the standard information to determine whether the feedback information meets the standard information conditions. If so, it is determined that the target board test is successful; if not, it is determined that the target board test fails. After confirming the test results, the test report can be saved for subsequent viewing by the user.
[0037] In this embodiment, it is optional to determine whether the feedback information meets the preset standard information conditions. If so, it is determined that the target board test is successful, including: based on the feedback information, determining whether the target input channel remains in a closed state when other input channels are opened and closed. If so, it is determined that the target board test is successful.
[0038] Specifically, the target board can report the opening and closing state of the target input channel and the opening and closing state of other input channels to the host computer as feedback information. The host computer can store standard information conditions for successful interference test. For example, the standard information condition can be that when other input channels are disconnected or closed, the target input channel is not disturbed and remains in a closed state. The host computer obtains the opening and closing state of the target input channel when other input channels are opened and closed from the feedback information. If the target input channel remains in a closed state, it is determined that the feedback information meets the preset standard information condition, and the interference test of the target board is successful; if the opening and closing state of the target input channel changes, it is determined that the target input channel is disturbed by other input channels, the feedback information does not meet the preset standard information condition, and the interference test of the target board fails. The beneficial effect of such setting is that the test result can be directly and automatically determined by the preset standard information condition and feedback information, reducing human judgment and improving test efficiency and accuracy. In the prior art, no interference test is performed on the board, and the present embodiment increases the comprehensiveness of the test items, has high reliability, is convenient for subsequent upgrades and maintenance, and improves the efficiency of production testing.
[0039] The technical scheme of this embodiment, by responding to the board test instruction issued by the user, determines the target board to be tested and the target function of the target board, realizes the designation of different boards and different functions, and improves the flexibility and comprehensiveness of the test. Different functions of different boards can be associated with different test rules, determine the target test rules, and control the opening and closing of each input channel of the target board according to the target test rules. The target board can obtain the opening and closing state of the input channel in real time, generate feedback information, and send the feedback information to the server. According to the feedback information and the preset standard information conditions, it is determined whether the target board is tested successfully. The problem of testing a single board and a single function in the prior art is solved, and the input channel of the target board is automatically tested by controlling the input channel of the target board, reducing user operations, saving manpower and time, and improving the test efficiency and accuracy of the board.
[0040] Embodiment 2
[0041] Figure 2 This is a flow chart of a method for testing a board provided by the second embodiment of the present invention. This embodiment is further optimized based on the above embodiment. The method can be executed by a board testing device. Figure 2 As shown, the method specifically comprises the following steps:
[0042] Step 210: In response to the board test instruction, determine the target board and the target function of the target board.
[0043] Step 220: Determine the target test rule of the target function according to the association relationship between the target function of the target board and the preset test rule.
[0044] Step 230: According to the target test rule, determine the input channel to be tested from the candidate input channels of the target board, send an opening and closing instruction to the input channel to be tested, control the opening and closing state of the input channel to be tested, and enable the target board to generate feedback information according to the opening and closing state of the input channel to be tested.
[0045] Wherein, the reaction speed of the target board can be tested, and the reaction speed refers to the reaction speed of the candidate input channel of the target board to the opening and closing instruction sent by the host computer. The host computer determines the input channel to be tested according to the target test rule, and sends the instruction of disconnection or closure to the input channel to be tested. The target board can obtain the current state of the input channel to be tested in real time, and records the time when the state change occurs in the input channel to be tested, and the time when the state change occurs in the input channel to be tested is the second time. That is, the feedback information of the target board can include the second time when the input channel to be tested obtained by the target board performs opening and closing according to the opening and closing instruction. For example, the original state of the input channel to be tested is the disconnected state, and it becomes the closed state at the moment of 12 o'clock, then the feedback information of the target board can be that the input channel to be tested changes from disconnection to the closed state at 12 o'clock.
[0046] Step 240: Record the first time when the opening and closing instruction is sent to the input channel to be tested.
[0047] When the host computer issues an opening and closing command to the input channel to be measured, the time when the opening and closing command is issued is recorded as the first time.
[0048] Step 250: Receive the second time fed back by the target board, and determine whether the time difference between the first time and the second time meets a preset time threshold condition. If so, it is determined that the target board test is successful.
[0049] Wherein, feedback information of the target board is received, and a second time for the input channel to be tested to change the open and close state is determined from the feedback information. The standard information conditions for the reaction speed test are pre-stored in the host computer, and the standard information conditions for the reaction speed test can be the conditions of the time threshold. Through the preset time threshold, it can be determined whether the delay time of the input channel to be tested responding to the opening and closing instruction meets the time threshold condition. For example, the delay time of the input channel to be tested responding to the opening and closing instruction can be determined according to the first time and the second time, that is, the time difference between the first time and the second time. The time difference is compared with the preset time threshold. If the time difference is less than or equal to the time threshold, it is determined that the feedback information meets the preset standard information condition, the target board test is successful, and the target board meets the factory standard; if the time difference is greater than the time threshold, it is determined that the feedback information does not meet the preset standard information condition, and the target board test fails.
[0050] The board can also be tested for boundary voltage. The standard input voltage of the board can be a 24V or 110V electrical signal, and different standard input voltages correspond to different high and low level ranges. If the design requirement is a 24V configuration, the effective high level of the preset board is 18V-36V, and the effective low level is 0V-5V; if the design requirement is a 110V configuration, the effective high level is 70V-154V, and the effective low level is 0V-40V. In response to the board test instruction, the target board is determined, and after determining that the target function of the target board is a boundary voltage test, the target test rule is determined, and according to the target test rule, the input channel to be tested that needs to be opened and closed is determined. The input voltage is automatically adjusted, and the voltage range is adjusted to 0 to 110V or 0 to 24V. The feedback data of the target board on the voltage value of the input channel to be tested is collected through CAN communication to determine whether the high and low levels corresponding to the voltage value of the input channel to be tested are within the preset effective high and low level range. When the input voltage changes, the high and low levels also change accordingly. If the high and low level values corresponding to the currently adjusted voltage value exceed the preset valid high and low level range, it is determined that the currently adjusted voltage value exceeds the boundary voltage value; if the high and low level values corresponding to the currently adjusted voltage value are within the preset valid high and low level range, it is determined that the currently adjusted voltage value is within the boundary voltage value. The voltage value corresponding to the boundary value of the valid high and low level range is determined to be the boundary voltage value, thereby completing the boundary voltage test.
[0051] The communication test can also be performed on the main and standby systems of the main control board and the auxiliary driving board. In the actual use of the vehicle system, two main control boards and two auxiliary driving boards are required, one as the main system and one as the standby system, and the two systems need to communicate with each other. The two boards are inserted into the test device. For example, the main system board of the main control board communicates with the standby system board. The main system board can feed back the communication information to the host computer through the serial port. The host computer determines whether the main system board communicates with the standby system board through the feedback information, thereby verifying whether the communication function of the main and standby systems is normal.
[0052] The embodiment of the present invention determines the target board to be tested and the target function of the target board by responding to the board test instruction issued by the user, realizes the designation of different boards and different functions, and improves the flexibility of the test. The different functions of different boards can be associated with test rules, determine the target test rules, and control the opening and closing of each input channel of the target board according to the target test rules. The target board can obtain the opening and closing state of the input channel in real time and generate feedback information, which can include the opening and closing state of the input channel to be tested and the actual opening and closing time. The feedback information is sent to the server, and it is determined whether the target board is tested successfully according to the feedback information and the preset standard information conditions. The problem of testing a single board and a single function in the prior art is solved, and comprehensive testing of different test items is realized, and there is no need to replace the test device, which saves costs. By controlling the input channel of the target board to test, user operations are reduced, manpower and time are saved, and the test efficiency and accuracy of the board are improved.
[0053] Embodiment 3
[0054] Figure 3 This is a structural block diagram of a board test device provided by the third embodiment of the present invention, which can execute a board test method provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method. Figure 3 As shown, the device specifically includes:
[0055] The target board determination module 301 is used to determine the target board and the target function of the target board in response to the board test instruction;
[0056] A target test rule determination module 302 is used to determine the target test rule of the target function according to the association relationship between the target function of the target board and the preset test rule;
[0057] The input channel determination module 303 is used to determine the input channel to be tested from the candidate input channels of the target board according to the target test rule, send an opening and closing instruction to the input channel to be tested, and control the opening and closing state of the input channel to be tested, so that the target board generates feedback information according to the opening and closing state of the input channel to be tested;
[0058] The feedback information determination module 304 is used to receive the feedback information of the target board and determine whether the feedback information meets the preset standard information condition. If so, it is determined that the target board is tested successfully.
[0059] Optionally, the target board is an input board or an auxiliary driving board.
[0060] Optionally, the input channel determination module 303 to be tested includes:
[0061] A target input channel control unit, used for determining any candidate input channel of the target board as a target input channel, sending a closing instruction to the target input channel, and controlling the target input channel to close;
[0062] The other input channel control unit is used to send an opening and closing instruction to any other input channel to control the opening and closing state of any other input channel, so that the target board card can obtain the opening and closing state of the target input channel when any other input channel is opened and closed; wherein, the other input channel is a candidate input channel other than the target input channel.
[0063] Optionally, the feedback information includes the open / closed state of the other input channels and the open / closed state of the target input channel.
[0064] Optionally, the feedback information determination module 304 is specifically configured to:
[0065] According to the feedback information, it is determined whether the target input channel remains in a closed state when other input channels are opened or closed. If so, it is determined that the target board test is successful.
[0066] Optionally, the device further comprises:
[0067] The first time recording module is used to determine the input channel to be tested from the candidate input channels of the target board according to the target test rule, and after sending the opening and closing instructions to the input channel to be tested, record the first time of sending the opening and closing instructions to the input channel to be tested.
[0068] Optionally, the feedback information is a second time at which the input channel to be tested, obtained by the target board, is opened and closed according to the opening and closing instruction;
[0069] Accordingly, the feedback information determination module 304 is further specifically configured to:
[0070] The second time is received, and it is determined whether the time difference between the first time and the second time meets a preset time threshold condition. If so, it is determined that the target board test is successful.
[0071] The embodiment of the present invention determines the target board to be tested and the target function of the target board by responding to the board test instruction issued by the user, realizes the designation of different boards and different functions, and improves the flexibility of the test. The different functions of different boards can be associated with test rules, and the target test rules are determined. The opening and closing of each input channel of the target board is controlled according to the target test rules. The target board can obtain the opening and closing state of the input channel in real time, generate feedback information, and send the feedback information to the server. According to the feedback information and the preset standard information conditions, it is determined whether the target board is tested successfully. The problem of testing a single board and a single function in the prior art is solved, and the input channel of the target board is controlled to test, which reduces user operations, saves manpower and time, and improves the test efficiency and precision of the board.
[0072] Embodiment 4
[0073] Figure 4 1 is a schematic diagram of the structure of a board test device provided by the fourth embodiment of the present invention. The board test device is an electronic device, Figure 4 A block diagram of an exemplary electronic device 400 suitable for implementing embodiments of the present invention is shown. Figure 4 The electronic device 400 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0074] like Figure 4 As shown, the electronic device 400 is in the form of a general computing device. The components of the electronic device 400 may include but are not limited to: one or more processors or processing units 401, a system memory 402, and a bus 403 connecting different system components (including the system memory 402 and the processing unit 401).
[0075] Bus 403 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus structures. For example, these architectures include but are not limited to Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus and Peripheral Component Interconnect (PCI) bus.
[0076] The electronic device 400 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the electronic device 400, including volatile and non-volatile media, removable and non-removable media.
[0077] System memory 402 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 404 and / or cache memory 405. Electronic device 400 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, storage system 406 may be used to read and write non-removable, non-volatile magnetic media ( Figure 4 not shown, usually called a "hard drive"). Although Figure 4 Not shown in the figure, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 403 via one or more data medium interfaces. Memory 402 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of various embodiments of the present invention.
[0078] A program / utility 408 having a set (at least one) of program modules 407 may be stored, for example, in memory 402, such program modules 407 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. Program modules 407 generally perform the functions and / or methods of the embodiments described herein.
[0079] The electronic device 400 may also communicate with one or more external devices 409 (e.g., keyboard, pointing device, display 410, etc.), one or more devices that enable a user to interact with the electronic device 400, and / or any device that enables the electronic device 400 to communicate with one or more other computing devices (e.g., network card, modem, etc.). Such communication may be performed through an input / output (I / O) interface 411. Furthermore, the electronic device 400 may also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN) and / or public network, such as the Internet) through a network adapter 412. Figure 4 As shown, the network adapter 412 communicates with other modules of the electronic device 400 via the bus 403. It should be understood that although Figure 4 Not shown, other hardware and / or software modules may be used in conjunction with electronic device 400, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0080] The processing unit 401 executes various functional applications and data processing by running the program stored in the system memory 402, for example, a method for testing a board provided by an embodiment of the present invention, including:
[0081] In response to a board test instruction, determining a target board and a target function of the target board;
[0082] Determining a target test rule for the target function according to the association relationship between the target function of the target board and the preset test rule;
[0083] According to the target test rule, determine the input channel to be tested from the candidate input channels of the target board, send an opening and closing instruction to the input channel to be tested, control the opening and closing state of the input channel to be tested, and enable the target board to generate feedback information according to the opening and closing state of the input channel to be tested;
[0084] Receive feedback information from the target board, determine whether the feedback information meets a preset standard information condition, and if so, determine that the target board test is successful.
[0085] Embodiment 5
[0086] Embodiment 5 of the present invention further provides a storage medium containing computer executable instructions, on which a computer program is stored. When the program is executed by a processor, a method for testing a board provided in an embodiment of the present invention is implemented, including:
[0087] In response to a board test instruction, determining a target board and a target function of the target board;
[0088] Determining a target test rule for the target function according to the association relationship between the target function of the target board and the preset test rule;
[0089] According to the target test rule, determine the input channel to be tested from the candidate input channels of the target board, send an opening and closing instruction to the input channel to be tested, control the opening and closing state of the input channel to be tested, and enable the target board to generate feedback information according to the opening and closing state of the input channel to be tested;
[0090] Receive feedback information from the target board, determine whether the feedback information meets a preset standard information condition, and if so, determine that the target board test is successful.
[0091] The computer storage medium of the embodiment of the present invention can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, a device or a device or used in combination with it.
[0092] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0093] The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0094] Computer program code for performing the operations of the present invention may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0095] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. A method for testing a board, characterized in that: The method is executed by a server, the server is in communication with an adapter, and a target board is inserted into the adapter. The method includes: In response to a board test instruction, determining a target board and a target function of the target board; Determining a target test rule for the target function according to the association relationship between the target function of the target board and the preset test rule; According to the target test rule, determine the input channel to be tested from the candidate input channels of the target board, send an opening and closing instruction to the input channel to be tested, control the opening and closing state of the input channel to be tested, and enable the target board to generate feedback information according to the opening and closing state of the input channel to be tested; Receive feedback information from the target board, determine whether the feedback information meets a preset standard information condition, and if so, determine that the target board test is successful; The step of determining the input channel to be tested from the candidate input channels of the target board according to the target test rule, sending an opening and closing instruction to the input channel to be tested, and controlling the opening and closing state of the input channel to be tested comprises: Determine any candidate input channel of the target board as a target input channel, send a closing instruction to the target input channel, and control the target input channel to close; Send an opening and closing instruction to any other input channel to control the opening and closing state of any other input channel, so that the target board can obtain the opening and closing state of the target input channel when any other input channel is opened and closed; wherein the other input channel is a candidate input channel other than the target input channel.
2. The method according to claim 1, characterized in that The target board is an input board or an auxiliary driving board.
3. The method according to claim 1, characterized in that The feedback information includes the on / off status of the other input channels and the on / off status of the target input channel.
4. The method according to claim 3, characterized in that Determining whether the feedback information meets the preset standard information condition, and if so, determining that the target board test is successful, including: According to the feedback information, it is determined whether the target input channel remains in a closed state when other input channels are opened or closed. If so, it is determined that the target board test is successful.
5. The method according to claim 1, characterized in that After determining the input channel to be tested from the candidate input channels of the target board according to the target test rule and sending an opening and closing instruction to the input channel to be tested, the method further includes: The first time when an opening and closing instruction is sent to the input channel to be tested is recorded.
6. The method according to claim 5, characterized in that The feedback information is the second time when the input channel to be tested is opened and closed according to the opening and closing instruction acquired by the target board; Accordingly, receiving feedback information of the target board, determining whether the feedback information meets a preset standard information condition, and if so, determining that the target board test is successful, includes: The second time is received, and it is determined whether the time difference between the first time and the second time meets a preset time threshold condition. If so, it is determined that the target board test is successful.
7. A device for board testing, characterized in that: The device is configured on a server, the server is in communication connection with an adapter, a target board is inserted into the adapter, and the device comprises: A target board determination module, used for determining a target board and a target function of the target board in response to a board test instruction; A target test rule determination module, used to determine the target test rule of the target function according to the association relationship between the target function of the target board and the preset test rule; The input channel determination module to be tested is used to determine the input channel to be tested from the candidate input channels of the target board according to the target test rule, send an opening and closing instruction to the input channel to be tested, and control the opening and closing state of the input channel to be tested, so that the target board generates feedback information according to the opening and closing state of the input channel to be tested; A feedback information judgment module is used to receive the feedback information of the target board and determine whether the feedback information meets the preset standard information condition. If so, it is determined that the target board test is successful; The input channel to be tested determining module comprises: A target input channel control unit, used for determining any candidate input channel of the target board as a target input channel, sending a closing instruction to the target input channel, and controlling the target input channel to close; The other input channel control unit is used to send an opening and closing instruction to any other input channel to control the opening and closing state of any other input channel, so that the target board card can obtain the opening and closing state of the target input channel when any other input channel is opened and closed; wherein, the other input channel is a candidate input channel other than the target input channel.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method for testing a board as described in any one of claims 1-6 is implemented.
9. A storage medium containing computer executable instructions, characterized in that: The computer executable instructions are used to execute the board testing method as described in any one of claims 1-6 when executed by a computer processor.
Citation Information
Patent Citations
Circuit board testing and troubleshooting method and system
CN113433444A