CN105588989B - Single board testing method and device - Google Patents

Single board testing method and device Download PDF

Info

Publication number
CN105588989B
CN105588989B CN201410568798.XA CN201410568798A CN105588989B CN 105588989 B CN105588989 B CN 105588989B CN 201410568798 A CN201410568798 A CN 201410568798A CN 105588989 B CN105588989 B CN 105588989B
Authority
CN
China
Prior art keywords
test
unit
configuration file
command code
item
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.)
Active
Application number
CN201410568798.XA
Other languages
Chinese (zh)
Other versions
CN105588989A (en
Inventor
郭娜
张凯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201410568798.XA priority Critical patent/CN105588989B/en
Priority to PCT/CN2015/071488 priority patent/WO2016061936A1/en
Publication of CN105588989A publication Critical patent/CN105588989A/en
Application granted granted Critical
Publication of CN105588989B publication Critical patent/CN105588989B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring

Abstract

The embodiment of the invention discloses a single board testing method and a device, wherein the method comprises the following steps: the tested equipment obtains command codes and device configuration files from the master control, analyzes the device configuration files to obtain device information, and establishes a single linked list of corresponding devices for each command code; after receiving the test message sent by the master control, the tested equipment analyzes the test message, acquires a command code corresponding to the current test item from the test message, determines a single chain table of a device corresponding to the current test item according to the acquired command code, prints the device according to the single chain table of the device corresponding to the current test item, executes a corresponding test on each device in the single chain table of the device corresponding to the current test item, records a test result and sends the test result to the master control.

Description

Single board testing method and device
Technical Field
The present invention relates to a single board testing technology, and in particular, to a single board testing method and apparatus.
Background
The production test is an important detection means for equipment production, the test mainly uses special test equipment to carry out batch and automatic test on equipment or modules to be tested, and the test contents comprise internal link interface test, equipment signals, basic device test, service test/high-load high-temperature environment test of devices and the like. Production tests need to meet the following basic requirements: (1) the tested equipment is in a running working state; (2) the test software can be automatically operated to repeatedly test various functions of the equipment; (3) the system can automatically record and output fault records and alarms and provide test reports according to needs.
However, with the rapid development of communication technology, the router equipment is highly modern, and more strict requirements are put on production test: the production test quality is guaranteed, the production test efficiency is improved, and meanwhile the purpose of rapidly positioning faults can be achieved. However, after the existing production test detects the fault equipment, the fault equipment needs to be detected by depending on external human resources and equipment, and devices which can be damaged cannot be directly screened out in the production test process, so that the fault range is narrowed, and further the fault quick positioning cannot be realized.
Disclosure of Invention
In order to solve the above technical problems, embodiments of the present invention provide a single board testing method and apparatus, which can perform testing quickly and determine a faulty device quickly.
The technical scheme of the embodiment of the invention is realized as follows:
a single board testing method comprises the following steps:
the tested equipment obtains command codes and device configuration files from the master control, analyzes the device configuration files to obtain device information, and establishes a single linked list of corresponding devices for each command code;
after receiving the test message sent by the master control, the tested equipment analyzes the test message, acquires a command code corresponding to the current test item from the test message, determines a single chain table of a device corresponding to the current test item according to the acquired command code, prints the device according to the single chain table of the device corresponding to the current test item, executes a corresponding test on each device in the single chain table of the device corresponding to the current test item, records a test result and sends the test result to the master control.
Preferably, the command code and the device configuration file are recorded in an excel file, and the excel file records all devices included in each test item of the device under test.
Preferably, the test item is a command code expressed in hexadecimal number; different test items have different command codes;
the test result comprises a test record of each device corresponding to the test item.
Preferably, the device is a component in the device under test; the device information comprises information of a component number, a component name, a basic packaging form and a component nominal value.
A single board testing method comprises the following steps:
after the main control is electrified, sending a command code and a device configuration file to the tested equipment, so that the tested equipment establishes a corresponding relation between the command code and a single chain table of the device;
the master control receives and analyzes the test configuration file, acquires a test message corresponding to a test item from the analyzed test configuration file, and sends the test message to the tested equipment;
and the master control receives the test result sent by the tested equipment and records the test result.
Preferably, after the master controller receives the test result sent by the device under test, the method further includes:
the master control determines whether other test items exist in the test configuration file, if so, obtains a test message corresponding to one test item in the other test items, and sends the test message in the other test items to the tested equipment; and receiving the test result sent by the tested device, and recording the test result.
Preferably, the test item is a command code expressed in hexadecimal number; different test items have different command codes;
the test result comprises a test record of each device corresponding to the test item.
Preferably, the device is a component in the device under test; the device information comprises information of a component number, a component name, a basic packaging form and a component nominal value.
A single board testing device, comprising: the device comprises an acquisition unit, a first analysis unit, a building unit, a receiving unit, a second analysis unit, a determining unit, a test execution unit and a sending unit, wherein:
the acquisition unit is used for acquiring the command code and the device configuration file from the master control;
the first analysis unit is used for analyzing the device configuration file to obtain device information;
the establishing unit is used for establishing a single linked list of the corresponding device for each command code;
the receiving unit is used for receiving the test message sent by the master control;
the second analysis unit is used for analyzing the test message and acquiring a command code corresponding to the current test item from the test message;
the determining unit is used for determining a singly linked list of the device corresponding to the current test item according to the acquired command code;
the test execution unit is used for printing the devices according to the single chain table of the device corresponding to the current test item, executing corresponding tests on each device in the single chain table of the device corresponding to the current test item, and recording test results;
and the sending unit is used for sending the test result to the master control.
Preferably, the command code and the device configuration file are recorded in an excel file, and the excel file records all devices included in each test item of the device under test.
Preferably, the device is a component in the device under test; the device information comprises information of a component number, a component name, a basic packaging form and a component nominal value.
A veneer testing device comprises a detection unit, a first sending unit, a first receiving unit, an analysis unit, a second sending unit and a second receiving unit, wherein:
the detection unit is used for detecting whether the power is on or not and triggering the first sending unit after the power is on;
the device comprises a first sending unit, a second sending unit and a control unit, wherein the first sending unit is used for sending a command code and a device configuration file to the tested equipment so that the tested equipment establishes a corresponding relation between the command code and a single chain table of the device;
a first receiving unit, configured to receive a test configuration file;
the analysis unit is used for analyzing the test configuration file and acquiring a test message corresponding to a test item from the analyzed test configuration file;
the second sending unit is used for sending the test message to the tested device;
and the second receiving unit is used for receiving the test result sent by the tested device and recording the test result.
Preferably, the apparatus further comprises: a determining unit, configured to determine whether there are other test items in the test configuration file after the second receiving unit receives the test result sent by the device under test, if so, trigger the second sending unit to obtain a test message corresponding to one of the other test items, and send the test message in the other test items to the device under test;
correspondingly, the second receiving unit also receives the test result sent by the tested device and records the test result.
Preferably, the device is a component in the device under test; the device information comprises information of a component number, a component name, a basic packaging form and a component nominal value.
In the embodiment of the invention, after the master control is powered on, the command codes and the device configuration files are sent to the tested equipment, and the tested equipment establishes a single linked list of corresponding devices for each command code according to the device configuration files; after the tested equipment receives the test message sent by the master control, the single chain table of the device corresponding to the current test item is determined according to the command code obtained from the test message, the device is printed according to the single chain table, and corresponding test is executed on each device in the single chain table. According to the embodiment of the invention, whether the devices have faults or not can be determined by printing and testing each device in the test items, and according to the test result reported by the tested device, which device or devices have faults can be accurately and quickly positioned without human participation, so that the cost of manpower and material resources is saved, and the production test efficiency is improved.
Drawings
Fig. 1 is a flowchart of a single board testing method according to a first embodiment of the present invention;
fig. 2 is a flowchart of a single board testing method according to a second embodiment of the present invention;
fig. 3 is a flowchart of a single board testing method according to a third embodiment of the present invention;
FIG. 4 is a schematic diagram of a subrack environment employed in an embodiment of the present invention;
FIG. 5 is a diagram of command codes and device profiles according to an embodiment of the present invention;
FIG. 6 is a diagram of a device list table corresponding to command code 0x3500 in the embodiment of the present invention;
fig. 7 is a flowchart of a single board testing method according to a fourth embodiment of the present invention;
fig. 8 is a schematic structural diagram of a single board testing apparatus according to a first embodiment of the present invention;
fig. 9 is a schematic structural diagram of a single board testing apparatus according to a second embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that the embodiments and features of the embodiments in the present application may be arbitrarily combined with each other without conflict.
The embodiment of the invention relates to a production test method for rapidly diagnosing faults based on devices, which comprises the following steps: after the environment master control starts the version, a test item command code is issued to the tested equipment, the tested equipment executes the test item record and sends the test result and the log, and the environment master control receives and records the test result and the log.
When the tested device executes the test item, all devices related to the test item are printed and recorded in a log file.
In the embodiment of the invention, the device is an element with an entity, and the information of the device comprises a number, an element name, a basic packaging form, an element nominal value and the like. The device may be uniquely identified with a device number.
In the embodiment of the invention, each test item has a single linked list related to the device, and the single linked list establishes a single linked list related to the device for each test item of the tested equipment according to the test item command code and the configuration file of the device.
Specifically, when the tested device executes the test item, all devices are printed one by one from the device single chain table of the test item; similar operations are performed for other test items; because each test item may involve multiple devices, if a test item fails, one or more devices corresponding to the test item are necessarily damaged; whether the other test items corresponding to each device are tested successfully can be checked one by one: if all test items related to the device are successful, excluding the device from being damaged; then, continuously checking whether the test items of other devices in the failed test items are tested successfully or not, and further positioning the damaged device; therefore, the fault range is reduced, the purpose of quickly positioning the fault is achieved, and the production test efficiency is improved.
In the embodiment of the present invention, the environment master may also be referred to as a master.
The essence of the technical solution of the embodiments of the present invention is further clarified by specific examples below.
Fig. 1 is a flowchart of a board testing method according to a first embodiment of the present invention, and as shown in fig. 1, the board testing method of this example includes the following steps:
step 101, the tested equipment obtains command codes and device configuration files from the master control, analyzes the device configuration files to obtain device information, and establishes a single linked list of corresponding devices for each command code.
In this step, after the master control is powered on, the command code and the device configuration file are sent to the device to be tested. After the tested equipment acquires the command codes and the device configuration file, the device configuration file is analyzed to acquire device information, and a single linked list of the corresponding device is established for each command code. After the tested device receives the test message, the information of the device to be tested can be determined according to the test item in the test message, and the printing and the testing of the device can be executed according to the single linked list of the device.
Referring to FIG. 5, the format of the command codes and device configuration files is shown. In the embodiment of the invention, the command codes and the device configuration files are correspondingly recorded in the excel file, and the excel file records all devices contained in each test item of the tested device.
And 102, after receiving the test message sent by the master control, the tested equipment analyzes the test message, acquires a command code corresponding to the current test item from the test message, determines a single chain table of a device corresponding to the current test item according to the acquired command code, prints the device according to the single chain table of the device corresponding to the current test item, executes corresponding test on each device in the single chain table of the device corresponding to the current test item, records the test result and sends the test result to the master control.
In this step, after the master control is powered on, the test configuration file is received and analyzed, a test message corresponding to a test item is obtained from the analyzed test configuration file, and the test message is sent to the tested equipment. The tested equipment obtains the test item according to the test message, searches the single chain table of the device corresponding to the test item according to the test item, prints and tests according to the single chain table of the device, records the test result and feeds back the test result to the master control.
In the embodiment of the invention, the test item is a command code expressed by hexadecimal number; different test items have different command codes;
the test result comprises a test record of each device corresponding to the test item.
In the embodiment of the invention, the device is a component in the tested equipment; the device information comprises information of a component number, a component name, a basic packaging form and a component nominal value. The device information may be uniquely identified with a device number.
Fig. 2 is a flowchart of a board testing method according to a second embodiment of the present invention, and as shown in fig. 2, the board testing method of this example includes the following steps:
step 201, after the master control is powered on, sending a command code and a device configuration file to the tested equipment, so that the tested equipment establishes a corresponding relationship between the command code and a single linked list of the device.
In the embodiment of the invention, after the master control is powered on, the command code and the device configuration file are actively sent to the tested device. And the tested equipment receives the command code and the device configuration file and then analyzes the command code and the device configuration file, and establishes the corresponding relation between the command code and the single linked list of the device. The correspondence relationship can be seen in fig. 5.
Step 202, the master control receives the test configuration file and analyzes the test configuration file, obtains a test message corresponding to a test item from the analyzed test configuration file, and sends the test message to the tested equipment.
When the test is started, the main control receives the test configuration file and analyzes the test configuration file, obtains the test message corresponding to the test item in the test configuration file, and sends the test message to the tested equipment, so that the tested equipment executes the corresponding test according to the test item in the test message. When the tested equipment executes the test, the devices are printed one by one according to the single chain table of the devices corresponding to the test items, and corresponding tests are executed on the devices to generate test results. The test result includes a test log and the like.
And 203, receiving the test result sent by the tested device by the master control, and recording the test result.
Fig. 3 is a flowchart of a board testing method according to a third embodiment of the present invention, and as shown in fig. 3, in the board testing method according to this example, a single linked list related to a device is established for each command code in a production testing process of a device under test, and then the device is recorded in a log file corresponding to the device under test, so as to achieve the purpose of quickly locating a fault. The single board testing method of the present example comprises the following steps:
powering on the environment main control and the tested equipment, and starting the version;
the tested equipment acquires the command code and the device configuration file and analyzes the configuration file;
starting testing, and analyzing the configuration file of the test item;
the environment master control takes out a test message corresponding to the test item from the test item configuration file, and sends the test message to the tested equipment according to the agreed test item sending protocol format; those skilled in the art will appreciate that the manner in which the test message is sent should conform to the relevant protocol format.
After receiving the test message, the tested equipment analyzes the test message, finds out the device corresponding to the test item from the single chain table about the device information, then prints the device, executes the corresponding test, records the test information into a log file and sends the log file to the environment main control, and after the test item execution is finished, returns the protocol format according to the agreed test item result and sends the test result to the environment main control;
the environment main control waits for the tested equipment to return test result information, analyzes the result information after receiving the result information, records a result file corresponding to the tested equipment, and updates the log file of the tested equipment according to the log information sent by the tested equipment;
if the environment master control stops sending the test items, the test is finished; otherwise, taking down the message corresponding to the test item to continue testing.
In the single board testing method of the embodiment of the invention, because the tested device prints the relevant devices corresponding to each test item and records the relevant log files, if the test item fails, whether the other test items corresponding to each device are tested successfully can be checked one by one from the log files: if all test items related to the device are successful, excluding the device from being damaged; then, continuously checking whether the test items of other devices in the failed test items are tested successfully; therefore, the fault range is reduced, the purpose of quickly positioning the fault is achieved, and the production test efficiency is improved.
Fig. 4 is a schematic diagram of a machine frame environment adopted in the embodiment of the present invention, and as shown in fig. 4, the machine frame environment adopted in the embodiment of the present invention includes an environment main control, an environment switch board, a tested board, and the like. The environment main control is mainly used for managing and controlling the whole testing process and providing the management of the environment exchange single board and the tested single board and the monitoring of the system environment. The environment switching single board is mainly used for testing some signals of the tested single board. The tested single board is the device to be tested of the embodiment of the invention.
Fig. 5 is a schematic diagram of a command code and a device configuration file according to an embodiment of the present invention, and as shown in fig. 5, each command code according to an embodiment of the present invention includes one or more devices.
Fig. 6 is a schematic diagram of a device single-chain table corresponding to the command code 0x3500 in the embodiment of the present invention, and as shown in fig. 6, the device single-chain table established for the command code 0x3500 in the embodiment of the present invention is: when the tested single board receives the test information corresponding to the test item sent by the environment main control, the test information is analyzed, the device corresponding to the test item is found from the single chain table related to the device information, then the device is printed, the corresponding test is executed, the test information is recorded into the log file and sent to the environment main control, after the test item is executed, the protocol format is returned according to the appointed test item result, and the test result is sent to the environment main control.
Fig. 7 is a flowchart of a board testing method according to a fourth embodiment of the present invention, and as shown in fig. 7, the board testing method of this example includes the following steps:
environment main control, environment exchange and tested single board power-on, start version;
the tested single board obtains a command code and a device configuration file from an environment main control;
the tested single board analyzes the command codes and the device configuration file and establishes a single linked list related to device information for each command code;
starting testing, and analyzing the configuration file of the test item by the environment;
the environment master control takes out test messages corresponding to the test items one by one from the test item configuration file, sends the protocol format according to the agreed test items and issues the test messages to the tested equipment;
the tested equipment receives the test message and analyzes the test message;
taking out a single linked list from the single linked lists related to the device information;
judging whether the command code in the single chain table related to the device information is equal to the command code received by the tested single board or not, if so, executing the following test; otherwise, taking out the single linked list meeting the requirement from the single linked list related to the device information;
printing all devices corresponding to the command codes, executing corresponding tests, recording test information into a log file and sending the log file to the environment main control, after the test item execution is finished, returning a protocol format according to an agreed test item result, and sending the test result to the environment main control;
the environment master control waits for the tested single board to return test result information, analyzes the result information after receiving the result information, records a result file corresponding to the tested single board, and updates the log file of the tested single board according to the log information sent by the tested single board;
if the environment master control stops sending the test items, the test is finished; otherwise, the test message is continuously issued to continuously execute the test.
In the single board testing method of the embodiment of the invention, because the tested device prints the relevant devices corresponding to each test item and records the relevant log files, if the test item fails, whether the other test items corresponding to each device are tested successfully can be checked one by one from the log files: if all test items related to the device are successful, excluding the device from being damaged; then, continuously checking whether the test items of other devices in the failed test items are tested successfully; therefore, the fault range is reduced, the purpose of quickly positioning the fault is achieved, and the production test efficiency is improved.
Fig. 8 is a schematic structural diagram of a single board testing apparatus according to a first embodiment of the present invention, and as shown in fig. 8, the single board testing apparatus of this example includes: an obtaining unit 80, a first parsing unit 81, a establishing unit 82, a receiving unit 83, a second parsing unit 84, a determining unit 85, a test executing unit 86, and a sending unit 87, wherein:
an obtaining unit 80, configured to obtain a command code and a device configuration file from a master controller;
a first parsing unit 81 configured to parse the device configuration file to obtain device information;
an establishing unit 82, configured to establish a single linked list of corresponding devices for each command code;
a receiving unit 83, configured to receive the test message sent by the master controller;
a second parsing unit 84, configured to parse the test message, and obtain a command code corresponding to the current test item from the test message;
the determining unit 85 is configured to determine, according to the obtained command code, a singly linked list of devices corresponding to the current test item;
the test execution unit 86 is used for printing the devices according to the single chain table of the device corresponding to the current test item, executing corresponding tests on each device in the single chain table of the device corresponding to the current test item, and recording test results;
a sending unit 87, configured to send the test result to the master controller.
In the embodiment of the present invention, the command code and the device configuration file are recorded in an excel file, and the excel file records all devices included in each test item of the device under test.
In the embodiment of the invention, the test item is a command code expressed by hexadecimal number; different test items have different command codes;
the test result comprises a test record of each device corresponding to the test item.
In the embodiment of the invention, the device is a component in the tested equipment; the device information comprises information of a component number, a component name, a basic packaging form and a component nominal value.
The single board test apparatus shown in fig. 8 is suitable for use in a device under test or the like.
It should be understood by those skilled in the art that the functions of each processing unit in the single board testing apparatus according to the embodiment of the present invention may be understood by referring to the description related to the single board testing method according to the foregoing embodiment, and each processing unit in the single board testing apparatus according to the embodiment of the present invention may be implemented by an analog circuit that implements the functions described in the embodiment of the present invention, or may be implemented by running software that executes the functions described in the embodiment of the present invention on an intelligent device.
Fig. 9 is a schematic structural diagram of a component of a single board testing apparatus according to a second embodiment of the present invention, and as shown in fig. 9, the single board testing apparatus of this example includes: a detection unit 90, a first sending unit 91, a first receiving unit 92, an analysis unit 93, a second sending unit 94 and a second receiving unit 95, wherein:
the detection unit 90 is used for detecting whether the power is on or not, and triggering the first sending unit after the power is on;
the first sending unit 91 is configured to send the command code and the device configuration file to the device under test, so that the device under test establishes a correspondence between the command code and the single chain table of the device;
a first receiving unit 92, configured to receive a test configuration file;
the analysis unit 93 is configured to analyze the test configuration file, and obtain a test message corresponding to a test item from the analyzed test configuration file;
a second sending unit 94, configured to send the test message to a device under test;
and a second receiving unit 95, configured to receive the test result sent by the device under test, and record the test result.
On the basis of the single board testing apparatus shown in fig. 9, the apparatus further includes: a determining unit (not shown in fig. 9), configured to determine, after the second receiving unit 95 receives the test result sent by the device under test, whether there are other test items in the test configuration file, if so, trigger the second sending unit 94 to obtain a test message corresponding to one of the other test items, and send the test message in the other test items to the device under test;
correspondingly, the second receiving unit 95 further receives the test result sent by the device under test, and records the test result.
In the embodiment of the invention, the device is a component in the tested equipment; the device information comprises information of a component number, a component name, a basic packaging form and a component nominal value.
In the embodiment of the invention, the device is a component in the tested equipment; the device information comprises information of a component number, a component name, a basic packaging form and a component nominal value.
The single board test apparatus shown in fig. 9 is suitable for environment control and the like.
It should be understood by those skilled in the art that the functions of each processing unit in the single board testing apparatus according to the embodiment of the present invention may be understood by referring to the description related to the single board testing method according to the foregoing embodiment, and each processing unit in the single board testing apparatus according to the embodiment of the present invention may be implemented by an analog circuit that implements the functions described in the embodiment of the present invention, or may be implemented by running software that executes the functions described in the embodiment of the present invention on an intelligent device.
In the embodiments provided in the present invention, it should be understood that the disclosed method and intelligent device may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all the functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: a mobile storage device, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Alternatively, the integrated unit according to the embodiment of the present invention may be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. Based on such understanding, the technical solutions of the embodiments of the present invention may be essentially implemented or a part contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: a mobile storage device, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention.

Claims (14)

1. A single board testing method is characterized in that the method comprises the following steps:
the tested equipment obtains command codes and device configuration files from the master control, analyzes the device configuration files to obtain device information, and establishes a single linked list of corresponding devices for each command code;
after receiving the test message sent by the master control, the tested equipment analyzes the test message, acquires a command code corresponding to the current test item from the test message, determines a single chain table of a device corresponding to the current test item according to the acquired command code, prints the device according to the single chain table of the device corresponding to the current test item, executes a corresponding test on each device in the single chain table of the device corresponding to the current test item, records a test result and sends the test result to the master control.
2. The method according to claim 1, wherein the command codes and the device configuration file are recorded in an excel file, and the excel file records all devices included in each test item of the device under test.
3. The method according to claim 1 or 2, wherein the test item is a command code expressed in hexadecimal number; different test items have different command codes;
the test result comprises a test record of each device corresponding to the test item.
4. The method of claim 3, wherein the device is a component in the device under test; the device information comprises information of a component number, a component name, a basic packaging form and a component nominal value.
5. A single board testing method is characterized in that the method comprises the following steps:
after the main control is electrified, sending a command code and a device configuration file to the tested equipment, so that the tested equipment analyzes the device configuration file to obtain device information, and establishing a corresponding relation between the command code and a single linked list of the device;
the master control receives and analyzes the test configuration file, acquires a test message corresponding to a test item from the analyzed test configuration file, and sends the test message to the tested equipment;
and the master control receives the test result sent by the tested equipment and records the test result.
6. The method of claim 5, wherein after the master receives the test result sent by the device under test, the method further comprises:
the master control determines whether other test items exist in the test configuration file, if so, obtains a test message corresponding to one test item in the other test items, and sends the test message in the other test items to the tested equipment; and receiving the test result sent by the tested device, and recording the test result.
7. The method according to claim 5 or 6, wherein the test item is a command code expressed in hexadecimal number; different test items have different command codes;
the test result comprises a test record of each device corresponding to the test item.
8. The method of claim 7, wherein the device is a component in the device under test; the device information comprises information of a component number, a component name, a basic packaging form and a component nominal value.
9. A veneer testing device is characterized in that the veneer testing device is applied to a device to be tested, and the device comprises: the device comprises an acquisition unit, a first analysis unit, a building unit, a receiving unit, a second analysis unit, a determining unit, a test execution unit and a sending unit, wherein:
the acquisition unit is used for acquiring the command code and the device configuration file from the master control;
the first analysis unit is used for analyzing the device configuration file to obtain device information;
the establishing unit is used for establishing a single linked list of the corresponding device for each command code;
the receiving unit is used for receiving the test message sent by the master control;
the second analysis unit is used for analyzing the test message and acquiring a command code corresponding to the current test item from the test message;
the determining unit is used for determining a singly linked list of the device corresponding to the current test item according to the acquired command code;
the test execution unit is used for printing the devices according to the single chain table of the device corresponding to the current test item, executing corresponding tests on each device in the single chain table of the device corresponding to the current test item, and recording test results;
and the sending unit is used for sending the test result to the master control.
10. The apparatus of claim 9, wherein the command codes and the device configuration file are recorded in an excel file, and the excel file records all devices included in each test item of the device under test.
11. The apparatus according to claim 9 or 10, wherein the device is a component in the device under test; the device information comprises information of a component number, a component name, a basic packaging form and a component nominal value.
12. A single board testing device is characterized in that the device comprises a detection unit, a first sending unit, a first receiving unit, an analysis unit, a second sending unit and a second receiving unit, wherein:
the detection unit is used for detecting whether the power is on or not and triggering the first sending unit after the power is on;
the device comprises a first sending unit, a second sending unit and a control unit, wherein the first sending unit is used for sending a command code and a device configuration file to the tested equipment, so that the tested equipment analyzes the device configuration file to obtain device information, and the corresponding relation between the command code and a single linked list of the device is established;
a first receiving unit, configured to receive a test configuration file;
the analysis unit is used for analyzing the test configuration file and acquiring a test message corresponding to a test item from the analyzed test configuration file;
the second sending unit is used for sending the test message to the tested device;
and the second receiving unit is used for receiving the test result sent by the tested device and recording the test result.
13. The apparatus of claim 12, further comprising: a determining unit, configured to determine whether there are other test items in the test configuration file after the second receiving unit receives the test result sent by the device under test, if so, trigger the second sending unit to obtain a test message corresponding to one of the other test items, and send the test message in the other test items to the device under test;
correspondingly, the second receiving unit also receives the test result sent by the tested device and records the test result.
14. The apparatus according to claim 12 or 13, wherein the device is a component in the device under test; the device information comprises information of a component number, a component name, a basic packaging form and a component nominal value.
CN201410568798.XA 2014-10-22 2014-10-22 Single board testing method and device Active CN105588989B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201410568798.XA CN105588989B (en) 2014-10-22 2014-10-22 Single board testing method and device
PCT/CN2015/071488 WO2016061936A1 (en) 2014-10-22 2015-01-23 Single-board test method and device, storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410568798.XA CN105588989B (en) 2014-10-22 2014-10-22 Single board testing method and device

Publications (2)

Publication Number Publication Date
CN105588989A CN105588989A (en) 2016-05-18
CN105588989B true CN105588989B (en) 2020-02-07

Family

ID=55760128

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410568798.XA Active CN105588989B (en) 2014-10-22 2014-10-22 Single board testing method and device

Country Status (2)

Country Link
CN (1) CN105588989B (en)
WO (1) WO2016061936A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108259086B (en) * 2016-12-29 2022-09-30 中兴通讯股份有限公司 Online monitoring method, device and system
CN108399121B (en) * 2017-02-06 2023-04-14 中兴通讯股份有限公司 Script-based test method and device
CN111104309B (en) * 2019-11-15 2023-09-29 北京航天长征飞行器研究所 Method for quickly realizing comprehensive test flow
CN113064059B (en) * 2021-05-10 2021-08-10 北京全路通信信号研究设计院集团有限公司 Single board automatic test system and method
CN115037665B (en) * 2022-06-06 2023-10-03 北京达佳互联信息技术有限公司 Equipment testing method and device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1124746C (en) * 1999-09-11 2003-10-15 华为技术有限公司 Single board festing method and device
CN100417075C (en) * 2001-09-10 2008-09-03 中兴通讯股份有限公司 Interface test method
US7036062B2 (en) * 2002-10-02 2006-04-25 Teseda Corporation Single board DFT integrated circuit tester
CN100563131C (en) * 2003-05-29 2009-11-25 华为技术有限公司 A kind of detection method of single board default and device
CN102141941A (en) * 2010-02-02 2011-08-03 中兴通讯股份有限公司 Method for diagnosing faults of single boards in base station

Also Published As

Publication number Publication date
CN105588989A (en) 2016-05-18
WO2016061936A1 (en) 2016-04-28

Similar Documents

Publication Publication Date Title
CN105588989B (en) Single board testing method and device
CN108847982B (en) Distributed storage cluster and node fault switching method and device thereof
CN110716842B (en) Cluster fault detection method and device
CN101141327A (en) Method for detecting network node abnormality
CN106776243B (en) Monitoring method and device for monitoring software
CN109560993A (en) The method of communication link abnormality detection, device, electronic equipment and network
CN103441861A (en) Method and device for generating data records
CN104391705A (en) Distributed automated testing framework applied to high availability cluster software
CN112822486A (en) Aging test method, monitoring device and readable storage medium
CN111970166B (en) Test method, device, equipment, system and computer readable storage medium
US20170187585A1 (en) Technologies for validating operations of devices
CN101252477B (en) Determining method and analyzing apparatus of network fault root
CN116137603A (en) Link fault detection method and device, storage medium and electronic device
CN115276844B (en) Communication module testing method and device, storage medium and electronic equipment
CN116055303A (en) Link monitoring processing method and device, electronic equipment and storage medium
US9755904B2 (en) Reconfiguration record measurement test method and network side
CN103986595A (en) Fault analyzing and upgrading method and server
CN110908354A (en) Automatic test detection device and method
WO2022001884A1 (en) Mesh networking test method, apparatus and device and storage medium
CN116938779A (en) Automatic detection method, single board, electronic device and storage medium
CN104579745A (en) Mobile terminal and network inspection system
CN110474821B (en) Node fault detection method and device
CN113722211A (en) BMC (baseboard management controller) debugging method, device and system and embedded equipment
CN210155240U (en) System for testing high-low temperature power-off restart of Internet of things gateway
US11356331B2 (en) Wireless configuration diagnosis framework

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant