CN117896288A - 1553B bus interface board communication function test method - Google Patents

1553B bus interface board communication function test method Download PDF

Info

Publication number
CN117896288A
CN117896288A CN202311842163.XA CN202311842163A CN117896288A CN 117896288 A CN117896288 A CN 117896288A CN 202311842163 A CN202311842163 A CN 202311842163A CN 117896288 A CN117896288 A CN 117896288A
Authority
CN
China
Prior art keywords
test
interface board
bus interface
data
message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311842163.XA
Other languages
Chinese (zh)
Inventor
邢浩
史岩
孙孟宇
陈奎
刘绚
岳佳欣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xian Aeronautics Computing Technique Research Institute of AVIC
Original Assignee
Xian Aeronautics Computing Technique Research Institute of AVIC
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 Xian Aeronautics Computing Technique Research Institute of AVIC filed Critical Xian Aeronautics Computing Technique Research Institute of AVIC
Priority to CN202311842163.XA priority Critical patent/CN117896288A/en
Publication of CN117896288A publication Critical patent/CN117896288A/en
Pending legal-status Critical Current

Links

Landscapes

  • Maintenance And Management Of Digital Transmission (AREA)

Abstract

According to the 1553B bus interface board communication function test method, on one hand, a 1553B bus monitor is controlled to continuously monitor information change on a data bus and record all data on the bus, and the process is called external monitoring; on the other hand, the test computer continuously acquires the working state of the bus interface board, including the period BIT, the working mode and the running state, and judges whether the working state is normal or not, and the process is called internal monitoring. In the whole test process, the communication function test of the bus interface board is calculated only when the result data recorded by the external monitoring and the internal monitoring are consistent, so that the defect of the existing communication function test method is overcome, and meanwhile, the accuracy and the reliability of the communication function test result of the 1553B bus interface board can be obviously improved.

Description

1553B bus interface board communication function test method
Technical Field
The invention relates to the technical field of 1553B airborne bus terminal testing, in particular to a 1553B bus interface board communication function testing method.
Background
The 1553B bus is a kind of time division instruction/response type multiplexing data bus defined by MIL-STD-1553B standard, and the bus standard specifies the system composition, connection mode, electrical characteristics, working mode, control mode, response procedure, word type, message format, system management and the like of the communication network. The 1553B bus has the advantages of good real-time performance, high reliability and the like, and is widely applied to the military fields of aviation, aerospace and the like.
The national standard provides that the electrical parameter test, the protocol compatibility test and the noise suppression test method of the 1553B bus terminal only can cover whether the basic functions of a protocol chip meet the requirements, however, with the massive emergence of different manufacturers and different types of 1553B bus interface boards, the problems of lack of communication function test means and insufficient reliability of test results of the current bus interface boards are more and more obvious, so that the method is very important for the effectiveness test of the communication functions of the bus interface boards.
Disclosure of Invention
In view of this, the 1553B bus interface board communication function testing method provided by the invention solves the problems of insufficient effectiveness, and low accuracy and reliability of the test result of the current bus interface board communication function testing method, timely discovers the product problems and accurately locates faults in the testing process, and overcomes the defects of the existing communication function testing method.
A1553B bus interface board communication function test method comprises the following steps:
step 1: building an automatic test environment of a bus interface board, wherein the automatic test environment comprises a test computer, a 1553B simulation card and a connecting cable;
step 2: setting a bus interface board as a bus controller BC, setting the 1553B simulation card as a remote terminal RT, and performing BC mode communication function test;
step 3: and setting a bus interface board as RT, setting the 1553B simulation card as BC, and carrying out RT mode communication function test.
Advantageous effects
The scheme provided by the invention adopts a method combining external monitoring and internal monitoring, does not depend on experience of a tester, can provide double guarantee for the communication function test of the bus interface board, can obviously improve the accuracy and reliability of a test result, can support real-time monitoring and acquiring the state information of a tested product (namely the bus interface board) in the test process, can discover problems in time and accurately locate faults, overcomes the defects of the conventional bus interface board communication function test method, and effectively improves the efficiency of the bus interface board communication function test.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings that are needed in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present disclosure, and other drawings may be obtained according to these drawings without inventive effort to a person of ordinary skill in the art.
FIG. 1 is a topology diagram of a 1553B bus interface board communication function test architecture in an embodiment of the invention;
FIG. 2 is a flow chart of a BC pattern send message test in an embodiment of the present invention;
FIG. 3 is a flow chart of a BC pattern received message test in an embodiment of the present invention;
FIG. 4 is a flow chart of a test for RT mode send message in an embodiment of the invention;
fig. 5 is a flow chart of an RT mode received message test in an embodiment of the invention.
Detailed Description
Embodiments of the present disclosure are described in detail below with reference to the accompanying drawings.
Other advantages and effects of the present disclosure will become readily apparent to those skilled in the art from the following disclosure, which describes embodiments of the present disclosure by way of specific examples. It will be apparent that the described embodiments are merely some, but not all embodiments of the present disclosure. The disclosure may be embodied or practiced in other different specific embodiments, and details within the subject specification may be modified or changed from various points of view and applications without departing from the spirit of the disclosure. It should be noted that the following embodiments and features in the embodiments may be combined with each other without conflict. All other embodiments, which can be made by one of ordinary skill in the art without inventive effort, based on the embodiments in this disclosure are intended to be within the scope of this disclosure.
It is noted that various aspects of the embodiments are described below within the scope of the following claims. It should be apparent that the aspects described herein may be embodied in a wide variety of forms and that any specific structure and/or function described herein is merely illustrative. Based on the present disclosure, one skilled in the art will appreciate that one aspect described herein may be implemented independently of any other aspect, and that two or more of these aspects may be combined in various ways. For example, an apparatus may be implemented and/or a method practiced using any number of the aspects set forth herein. In addition, such apparatus may be implemented and/or such methods practiced using other structure and/or functionality in addition to one or more of the aspects set forth herein.
It should also be noted that the illustrations provided in the following embodiments merely illustrate the basic concepts of the disclosure by way of illustration, and only the components related to the disclosure are shown in the drawings and are not drawn according to the number, shape and size of the components in actual implementation, and the form, number and proportion of the components in actual implementation may be arbitrarily changed, and the layout of the components may be more complicated.
In addition, in the following description, specific details are provided in order to provide a thorough understanding of the examples. However, it will be understood by those skilled in the art that aspects may be practiced without these specific details.
Referring to the communication function test method of the 1553B bus interface board shown in fig. 1 to 5, the "1553B bus interface board" is hereinafter referred to as "bus interface board". The following "BC" Chinese name is "bus controller"; the Chinese name "RT" is "remote terminal"; "BM" Chinese name "bus guardian", the method comprising:
step 1: setting up an automatic test environment of a bus interface board, wherein the automatic test environment has a conventional topology and comprises a test computer, a 1553B simulation card and a connecting cable;
step 2: setting a bus interface board as a bus controller BC, setting a 1553B simulation card (' 1553B bus multifunctional simulation card ' 1553B simulation card for short ') as a remote terminal RT, and performing BC mode communication function test;
step 3: and setting the bus interface board as RT, setting the 1553B simulation card as BC, and carrying out RT mode communication function test.
The method fills up the blank based on the traditional testing method so as to adapt to the testing of 1553B bus interface boards of different manufacturers and different types, and when in testing, the 1553B bus interface boards play different roles to test different functions, so that whether protocol communication can be received and sent is avoided, and the quality of the protocol communication protocol can not be paid attention to, and the method aims at: data transmission accuracy test, timing and clock synchronization test 3) performance and throughput test and abnormal condition and error handling test and compatibility test thereof, thereby ensuring that the basic functions of the protocol chip can meet the requirements.
As a specific implementation mode provided by the scheme, the automatic test environment is built, the automatic test equipment ATE and a tested piece UUT are also included, the automatic test equipment ATE comprises a test computer, a 1553B simulation card and a connecting cable, the 1553B simulation card is used as a multifunctional simulation card, and multiple roles of simultaneously simulating BC, RT, BM and the like are supported;
the bus interface board is used as a UUT of a tested piece, is set as BC or RT, can only be used as one type at the same time, and cannot be set as multiple roles at the same time. Test software is operated on the test computer and controls the bus interface board and the 1553B simulation card by calling a corresponding driver interface;
when the 1553B simulation card is set as BC and/or RT, the communication can be carried out with the bus interface board, when the 1553B simulation card is set as BC, the bus interface board is set as RT, and the two can be communicated, otherwise;
when the 1553B emulation card is set to a BM (bus guardian), it is able to monitor and record messages on the 1553B bus;
the connecting cable is used for realizing the connection and data transmission among the bus interface board, the 1553B simulation card and the test computer, and comprises a 1553B bus cable, a PCIE cable and an Ethernet cable, wherein,
the test computer is respectively communicated with the bus interface board, the bus monitor and the 1553B simulation card through PCIE cables, and the bus interface board, the bus monitor and the 1553B simulation card are communicated with each other through 1553B bus cables;
the UUT of the tested piece is communicated with the test computer through an Ethernet cable and is used for transmitting internal monitoring data of the UUT of the tested piece to the test computer, and the bus monitor transmits external monitoring data to the tested computer through a 1553B bus cable.
As a specific embodiment provided in the present application, the bus interface board in step 2 is used as a BC to perform a communication function test, including a BC mode transmission message test and a BC mode reception message test, and it should be noted that, when the bus interface board is used as a BC, by performing the BC mode communication function test by adopting a method of combining external monitoring and internal monitoring, the 1553B data transceiving function of the bus interface board protocol processing chip can be effectively verified, specifically,
BC mode send message testing, including,
step 1.1: the test computer sets the 1553B simulation card as an RT role and a BM role at the same time, wherein the RT role is used for communicating with the bus interface board, and the BM role is used for monitoring and recording data on the 1553B bus;
step 1.2: when the BM is set, the test computer needs to be actively started, the BM monitoring function is started by controlling the 1553B simulation card, various types of data on the 1553B bus are continuously recorded and stored in the test computer in the whole test process, so that effective information can be conveniently extracted at any time, and the process is used as an external monitoring process;
step 1.3: starting a 'period acquisition UUT working state' thread on a test computer, continuously acquiring working state data of a bus interface board in the whole test process, wherein the working state data of the bus interface board comprise period BIT, working mode and running state, and can judge the state information of the bus interface board in real time and take the process as an internal monitoring process;
step 1.4: the test computer sets the bus interface board as BC and the 1553B simulation card as RT, and starts the test computer in sequence and is in a working state;
step 1.5, the test computer controls the BC to send messages to the RT by transmitting a message sending instruction of 'BC- > RT' (namely, the bus interface board is used as the BC to send messages to the 1553B simulation card which is used as the RT), and the RT returns the data to the test computer after receiving the messages sent by the BC;
and 1.6, the test computer receives the data returned by the RT, acquires the working state data of the bus interface board and the message data monitored and recorded when the bus monitor is taken as the BM, judges whether the data received by the 1553B simulation card taken as the RT is consistent with the actually transmitted data of the bus interface board taken as the BC, and judges whether the data monitored by the bus monitor taken as the BM is consistent with the working state data of the bus interface board if the data monitored by the bus monitor taken as the BM is consistent with the working state data of the bus interface board, the transmitted message test judges that the data passes, and otherwise, the data does not pass. The working state data comprise a period BIT, a working mode and an operating state, and the phenomena of data distortion and data packet loss in the 1553B data transmission process can be timely found through double logic judgment.
BC mode receive message testing, comprising:
step 2,1: the test computer controls the bus interface board as BC and 1553B simulation card as RT, in order to carry out BC mode receiving message test;
step 2.2, the test computer controls the BC to receive the message sent by the RT through transmitting a message receiving instruction of 'RT- > BC' to a bus interface board serving as the BC, and after the BC receives the message, data are transmitted to the test computer;
and 2.3, the test computer receives the data returned by the BC (note that only the bus interface board of the test computer is used as the data received by the BC, the data received by the RT is not required to be returned, the data sent to the BC by the RT is preset in the test computer, when the logic judgment is carried out, the data redundancy is reduced, the distortion caused by the ion jump of the data in the transmission process is avoided), the working state data (the inner monitoring data) of the bus interface board and the message data (the outer monitoring data) which are monitored and recorded when the bus monitor is used as the BM are obtained, whether the data sent by the 1553B simulation card is consistent with the data actually received by the BC by the bus interface board is judged, and whether the data monitored by the bus monitor is consistent with the working state data of the bus interface board by the BM is judged, if the data monitored by the bus monitor is consistent with the working state data of the bus interface board, the receiving message test is judged to pass, otherwise, the message receiving test is not passed, if the message receiving test is not passed, and if the message receiving test is judged to be not passed. The working state data comprise a period BIT, a working mode and an operating state, and the phenomena of data distortion and data packet loss in the 1553B data transmission process can be timely found through double logic judgment.
In summary, the following functions of the protocol chip can be verified by performing dual logic judgment respectively:
1) Message receiving and analyzing function: the protocol chip can receive the message sent by the 1553B simulation card as the RT, correctly analyze the format and the content of the message, and the data extraction and processing functions, so that the protocol chip can extract data and commands from the received message, process the data and commands correspondingly, and test the error detection and processing functions, so that the protocol chip can detect errors or abnormal conditions in the received message.
2) The send message test, the protocol chip can construct a valid 1553B message, including correctly setting the format, identifier, data fields, etc., of the message based on the data and commands to be sent. Response receiving and parsing functions: the protocol chip can receive the response message from the 1553B emulation card as RT and correctly analyze the content and format of the response message.
As a specific embodiment provided herein, step 3 includes, when the bus interface board is used as an RT time communication function test, including a received message test and a transmitted message test, for example, when the bus interface board is used as an RT time transmitted message test and the bus interface board is used as an RT time received message test, wherein,
the bus interface board sends message tests as RT, including,
step 3.1: the test computer sets the bus interface board as RT and the 1553B simulation card as BC, and starts the test computer in a working state in sequence;
step 3.2: the test computer starts the BM monitoring function by controlling the 1553B simulation card, continuously records the data on the 1553B bus in the whole test process and stores the data into the test computer, so that effective information can be conveniently extracted at any time, and the process is an external monitoring process.
Step 3.3: and starting a 'period acquisition UUT working state' thread on the test computer, continuously acquiring working state data of the bus interface board in the whole test process, judging the state information of the bus interface board in real time, and taking the process as an internal monitoring process.
Step 3.4: the bus interface board is used as RT to send message to 1553B simulation card used as BC to carry out message sending test, and after receiving the message, the BC returns data to the test computer;
step 3.5: the test computer receives the data returned by the BC, acquires the working state data of the bus interface board and the message data monitored and recorded when the bus monitor is taken as the BM, judges whether the data transmitted by the bus interface board as the RT is consistent with the data actually received by the BC as the 1553B simulation card, and whether the data monitored by the bus monitor as the BM is consistent with the working state data of the bus interface board, if so, the received message test is judged to be passed, otherwise, the received message test is not passed, the working state data comprises a period BIT, a working mode and a running state, and the test is also applicable to the test of the communication function of the RT mode when the bus interface board is taken as the RT through double logic judgment.
The bus interface board receives message tests as RT, including,
step 4.1: the 1553B simulation card serving as the BC sends a message to the RT, and after the RT receives the data, the data is returned to the test computer;
step 4.2: the test computer receives the data returned by the RT, acquires the working state data (inner monitoring data) of the bus interface board and the message data (outer monitoring data) monitored and recorded when the bus monitor is taken as the BM, judges whether the data sent by the 1553B simulation card to the bus interface board which is taken as the RT is consistent with the data sent by the BC, and whether the data monitored by the bus monitor which is taken as the BM is consistent with the working state data of the bus interface board, if yes, the message receiving test is judged to be passed, otherwise, the message receiving test is judged not to be passed, if not, the message receiving test is judged to be failed, and the consistency of the outer monitoring process data and the inner monitoring process data is ensured. The working state data comprises a period BIT, a working mode and an operating state, when the dual logic verification protocol chip is used as RT, the dual logic verification protocol chip can correctly receive messages from a bus, and the dual logic verification protocol chip comprises the steps of receiving and analyzing the received 1553B messages, extracting data and commands in the messages, carrying out corresponding processing and response, and testing error detection and processing functions, for example, the protocol chip is required to have the capability of detecting and processing errors. This includes detecting errors in the transmission, message format errors, and other possible anomalies, and taking appropriate action to handle.
In the method, when the communication function of the bus interface board is tested, a test computer continuously monitors the information change on a data bus by controlling 1553B Bus Monitor (BM) and records all data on the bus, the process is called external monitoring, and on the other hand, the test computer continuously acquires the working state of the bus interface board, including period BIT, working mode and running state, and judges whether the working state is normal or not, and the process is called internal monitoring. In the whole test process, the communication function test of the bus interface board is calculated to pass only when the result data recorded by the external monitoring and the internal monitoring are consistent. The method can support real-time monitoring and acquiring the state of the tested product in the testing process, discover problems in time and accurately locate faults, make up for the defects of the existing communication function testing method, and meanwhile, can obviously improve the accuracy and reliability of the communication function testing result of the 1553B bus interface board.
Taking a test of a communication function of a domestic 1553B bus interface board as an example for illustration, see below:
step 1: building an automatic test environment of a bus interface board;
step 2: setting a bus interface board as BC, setting a 1553B simulation card as RT, and then performing BC mode communication function test;
step 3: and setting the bus interface board as RT, setting the 1553B simulation card as BC, and then carrying out RT mode communication function test.
Further, the automatic test environment in step 1 includes two parts, ATE and UUT, and the overall test architecture topology is shown in fig. 1; the ATE comprises a test computer, a 1553B simulation card and a series of connecting cables; the bus interface board is UUT, which can be set as BC or RT, but cannot be set as multiple roles at the same time;
the test computer runs automatic test software, and the test software completes the control of the bus interface board and the 1553B simulation card by calling the corresponding driver interface;
the 1553B simulation card is a multifunctional simulation card, supports multiple roles of simulating BC, RT, BM and the like at the same time, and can communicate with a bus interface board when being set as BC or RT; when set to BM, is able to monitor and record various types of messages on 1553B bus;
the connecting cable comprises a 1553B bus cable, a PCIE cable and an Ethernet cable and is used for realizing connection and data transmission among the bus interface board, the 1553B simulation card and the test computer.
Further, the BC mode communication function test in step 2 includes two parts, a BC mode transmission message test and a BC mode reception message test.
Further, the BC mode communication function test method in step 2 is shown in fig. 2 and 3, and specifically includes the following steps:
step 2.1: the test computer sets the 1553B simulation card as an RT and a BM simultaneously, wherein the RT is used for communicating with the bus interface board, and the BM is used for monitoring and recording various types of data on the 1553B bus;
in step 2.1, after the test computer sets 1553B simulation card as RT, enabling RT1-RT16 in turn, and enabling 16 RT in total;
step 2.2: the test computer starts the BM monitoring function by controlling the 1553B simulation card, continuously records various types of data on the 1553B bus in the whole test process and stores the data into the test computer, so that effective information can be conveniently extracted at any time, and the process is an external monitoring process;
step 2.3: starting a 'period acquisition UUT working state' thread on a test computer, and continuously acquiring working state data of the bus interface board in the whole test process, including period BIT, working mode and running state, so that the state information of the bus interface board can be judged at any time, wherein the process is an internal monitoring process;
step 2.4: the test computer initializes the bus interface board to BC and sequentially starts BC and each RT to work, so that the bus interface board (serving as BC) and the 1553B simulation card (serving as RT1-RT 16) are both in a working state;
step 2.5: the test computer controls BC and RT to perform BC mode message sending test;
in step 2.5, the test computer informs the BC to set the message to be sent by delivering BC- > RT message sending instruction to the BC, 16 total messages are set, and the specific messages are shown in table 1.
TABLE 1BC Pattern BC- > RT message List
Sequence number Message type Destination terminal Digital data Data word content Cycle time
1 BC->RT RT1 SA1 32 1,2,...,32 20ms
2 BC->RT RT2 SA1 32 2,2,...,33 20ms
3 BC->RT RT3 SA1 32 3,2,...,34 20ms
... ... ... ... ... ...
15 BC->RT RT15 SA1 32 15,2,...,46 20ms
16 BC->RT RT16 SA1 32 16,2,...,47 20ms
In step 2.5, after the BC completes the setting of the message to be sent, the BC sends the message to RT1-RT16 respectively,
each RT returns these data to the test computer after receiving the message sent by the BC.
Step 2.6: the test computer controls BC and RT to carry out BC mode receiving message test;
in step 2.6, the test computer informs the RT1-RT16 to set message data to be sent by transmitting RT- > BC message setting instructions to each RT, and each RT is respectively set with 1 message, and the specific content is shown in table 2;
TABLE 2BC Pattern RT- > BC message List
Sequence number Message type Source end Digital data Data word content Cycle time
1 RT->BC RT1 SA1 32 1,2,...,32 20ms
2 RT->BC RT2 SA1 32 2,2,...,33 20ms
3 RT->BC RT3 SA1 32 3,2,...,34 20ms
... ... ... ... ... ...
15 RT->BC RT15 SA1 32 15,2,...,46 20ms
16 RT->BC RT16 SA1 32 16,2,...,47 20ms
In step 2.6, the test computer controls the BC to receive the message sent by the RT1-RT16 by transmitting the RT- > BC message receiving instruction to the BC, and returns the received data to the test computer;
step 2.7: the test computer receives the message data returned by BC and each RT, simultaneously acquires the working state data (period BIT, working mode and running state) of the bus interface board and the message data recorded by BM monitoring, then comprehensively analyzes the various data, and judges:
1) In step 2.5, whether the content of the message data received by the RT1-RT16 is consistent with the BC actually sent data or not;
2) In step 2.6, whether the content of the message data received by BC is consistent with the actual transmission data of RT1-RT 16;
3) And whether the data monitored by the BM is consistent with the working state data of the bus interface board or not.
Further, in step 2.7, the RT1-RT16 receives the message sent by the BC, and the number and the content of the data words of the message received by the RT1-RT16 are consistent with the data actually sent by the BC;
in step 2.7, the BC can receive 16 messages in each period, wherein the messages are respectively from RT1, RT2, …, RT15 and RT16, and the number and the content of data words of the messages received by the BC are consistent with the data actually transmitted by each RT;
in step 2.7, the data monitored by the BM is consistent with the bus interface board working state data (period BIT, working mode and running state) acquired by the test computer, that is, the external monitoring process data is consistent with the internal monitoring process data.
Further, the RT mode communication function test in step 3 includes two parts, an RT mode reception message test and an RT mode transmission message test.
Further, the RT mode communication function test method in step 3 is shown in fig. 4 and 5, and specifically includes the following steps:
step 3.1: the test computer sets the 1553B simulation card into two roles of BC and BM simultaneously, wherein BC is used for communicating with the bus interface board, and BM is used for monitoring and recording various types of data on the 1553B bus;
step 3.2: the test computer starts the BM monitoring function by controlling the 1553B simulation card, continuously records various types of data on the 1553B bus in the whole test process and stores the data into the test computer, so that effective information can be conveniently extracted at any time, and the process is an external monitoring process;
step 3.3: starting a 'period acquisition UUT working state' thread on a test computer, and continuously acquiring working state data of the bus interface board in the whole test process, including period BIT, working mode and running state, so that the state information of the bus interface board can be judged at any time, wherein the process is an internal monitoring process;
step 3.4: the test computer initializes the bus interface board to RT and sequentially starts RT1 and BC to work, so that the bus interface board (serving as RT 1) and the 1553B simulation card (serving as BC) are both in a working state;
step 3.5: the test computer controls RT and BC to carry out RT mode receiving message test;
in step 3.5, test computer control BC sends messages to RT1 SA1, RT1 SA2, …, RT1 SA15 and RT1 SA16, respectively (where SA stands for RT subaddress), the specific message content is shown in table 3. And then the test computer transmits BC- > RT message receiving instructions to the RT1, and each sub-address of the RT1 returns the data to the test computer after receiving the message sent by the BC.
TABLE 3RT Pattern BC- > RT message List
Step 3.6: the test computer controls RT and BC to carry out RT mode message sending test;
in step 3.6, the test computer informs RT1 of the message data to be sent by delivering RT- > BC message send instruction to RT1, the specific contents are shown in table 4. Then the test computer controls the BC to receive the message sent by each sub-address of the RT1, and returns the message data received by the BC to the test computer;
table 4RT mode RT- > BC message list
Sequence number Message type Source end Digital data Data word content Cycle time
1 RT->BC RT1 SA1 32 1,2,...,32 20ms
2 RT->BC RT1 SA2 32 2,2,...,33 20ms
3 RT->BC RT1 SA2 32 3,2,...,34 20ms
... ... ... ... ... ...
15 RT->BC RT1 SA15 32 15,2,...,46 20ms
16 RT->BC RT1 SA16 32 16,2,...,47 20ms
Step 3.7: the test computer receives the message data returned by each sub address and BC of RT1, and simultaneously acquires the working state data (period BIT, working mode and running state) of the bus interface board and the message data recorded by BM monitoring, and then comprehensively analyzes the various data, and judges:
1) In step 3.5, whether the content of the message data received by each sub-address of RT1 is consistent with the data actually sent by BC;
2) In step 3.6, whether the content of the message data received by BC is consistent with the data actually sent by each sub-address of RT 1;
3) And whether the data monitored by the BM is consistent with the working state data of the bus interface board or not.
Further, in step 3.7, each sub-address of RT1 receives the message sent by BC, and the number and content of data words of the message received by each sub-address of RT1 are consistent with the data actually sent by BC;
in step 3.7, the BC can receive 16 messages in each period, the messages are respectively from RT1 SA1, RT1 SA2, … and RT1 SA16, and the number and the content of data words of the messages received by the BC are consistent with the actual sending data of each sub-address of RT 1;
in step 3.7, the data monitored by the BM is consistent with the bus interface board working state data (period BIT, working mode and running state) acquired by the test computer, that is, the external monitoring process data is consistent with the internal monitoring process data.
In summary, the scheme provided by the invention adopts the test method combining the external monitoring and the internal monitoring, so that the accuracy and the reliability of the test result of the communication function of the 1553B bus interface board can be obviously improved; meanwhile, the method supports real-time monitoring and obtaining the state of UUT in the test process, can discover problems in time and accurately locate faults, and makes up for the defects of the existing bus interface board communication function test method; in addition, the scheme provided by the invention does not depend on experience of a tester, can effectively improve the efficiency of the communication function test of the bus interface board, ensures the accuracy test of data transmission, for example, the accuracy test of data transmission between a verification protocol chip and a 1553B bus interface board, ensures that data is not lost and not wrong in the transmission process by being consistent or not, can accurately analyze and process, and gives consideration to time sequence and clock synchronization test: verifying the time sequence and clock synchronism between the protocol chip and the 1553B bus interface board, ensuring that data is sent and received at the correct time point, matching with the time sequence requirement of a bus, and taking into consideration performance and throughput test: performance and throughput between the test protocol chip and the 1553B bus interface board, including data transmission rate, response time and other indexes, are tested to ensure that the requirements of the system are met, and abnormal conditions and error handling tests are considered: the abnormal condition processing capability between the test protocol chip and the 1553B bus interface board comprises error detection, error report, error recovery mechanism and the like, and compatibility test is considered: and verifying the compatibility of the protocol chip and the 1553B bus interface board, and ensuring normal cooperative work, whether on a hardware interface or a protocol specification.
The above is merely a specific embodiment of the disclosure, but the protection scope of the disclosure is not limited thereto, and any changes or substitutions easily conceivable by those skilled in the art within the technical scope of the disclosure are intended to be covered in the protection scope of the disclosure. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of the claims.

Claims (7)

1. A1553B bus interface board communication function test method is characterized by comprising the following steps:
step 1: building an automatic test environment of a bus interface board, wherein the automatic test environment comprises a test computer, a 1553B simulation card and a connecting cable;
step 2: setting a bus interface board as a bus controller BC, setting the 1553B simulation card as a remote terminal RT, and performing BC mode communication function test;
step 3: and setting a bus interface board as RT, setting the 1553B simulation card as BC, and carrying out RT mode communication function test.
2. The 1553B bus interface board communication function test method according to claim 1, wherein the automatic test environment is built, the automatic test environment further comprises automatic test equipment ATE and a UUT to be tested, the automatic test equipment ATE comprises the test computer, a 1553B simulation card and a connecting cable, and the 1553B simulation card is a multifunctional simulation card;
the bus interface board is used as a UUT of a tested piece and is set as BC or RT, wherein test software is operated on a test computer and controls the bus interface board and the 1553B simulation card by calling a corresponding driver interface;
when the 1553B simulation card is set to BC and/or RT, the communication with the bus interface board can be performed;
when the 1553B emulation card is set to the BM, messages on the 1553B bus can be monitored and recorded;
the connecting cable is used for realizing connection and data transmission among the bus interface board, the 1553B simulation card and the test computer, and comprises a 1553B bus cable, a PCIE cable and an Ethernet cable, wherein,
the test computer is respectively communicated with a bus interface board, a bus monitor and a 1553B simulation card through the PCIE cable, and the bus interface board, the bus monitor and the 1553B simulation card are communicated through the 1553B bus cable;
the UUT of the tested piece is communicated with the test computer through the Ethernet cable and is used for transmitting the internal monitoring data of the UUT of the tested piece to the test computer, and the bus monitor transmits the external monitoring data to the tested computer through the 1553B bus cable.
3. The 1553B bus interface board communication function test method according to claim 1, wherein the bus interface board in step 2 performs a communication function test as BC, including a BC mode send message test and a BC mode receive message test.
4. The method for testing communication functions of a 1553B bus interface board as set forth in claim 3, wherein said BC pattern send message test comprises,
step 1.1: the test computer sets the 1553B simulation card as RT and BM at the same time, wherein the RT is set for communication with the bus interface board, and the BM is set for monitoring and recording data on the 1553B bus;
step 1.2: the test computer starts the BM monitoring function by controlling the 1553B simulation card, continuously records various types of data on the 1553B bus in the whole test process and stores the data into the test computer;
step 1.3: starting a 'period to acquire a UUT working state' thread on a test computer, and continuously acquiring working state data of the bus interface board in the whole test process, wherein the working state data of the bus interface board comprise period BIT, working mode and running state, so that the state information of the bus interface board can be judged in real time;
step 1.4: the test computer sets the bus interface board as BC and the 1553B simulation card as RT, and starts the test computer in sequence and is in a working state;
step 1.5, the test computer transmits a message sending instruction of 'BC- > RT' to the BC, controls the BC to send a message to the RT, and the RT forwards the message sent by the BC to the test computer after receiving the message sent by the BC;
step 1.6, the test computer receives the data returned by the RT, acquires the working state data of the bus interface board and the message data monitored and recorded when the bus monitor is taken as the BM, judges whether the data received by the 1553B simulation card taken as the RT is consistent with the actually transmitted data of the bus interface board taken as the BC, and whether the data monitored by the bus monitor taken as the BM is consistent with the working state data of the bus interface board, if yes, the transmitted message test is judged to be passed, otherwise, the transmitted message test is not passed, and the working state data comprises a period BIT, a working mode and a running state.
5. The 1553B bus interface board communication function test method according to claim 4, wherein the BC mode receive message test comprises:
step 2.1: the test computer controls the bus interface board as BC, and 1553B simulation card as RT;
step 2.2, the test computer controls the BC to receive the message sent by the RT through transmitting a message receiving instruction of 'RT- > BC' to a bus interface board serving as the BC, and after the BC receives the message, data are transmitted to the test computer;
and 2.3, the test computer receives the data returned by the BC, acquires the working state data of the bus interface board and the message data monitored and recorded when the bus monitor is taken as the BM, judges whether the data sent by the 1553B simulation card taken as the RT is consistent with the data actually received by the bus interface board taken as the BC, and judges whether the data monitored by the bus monitor taken as the BM is consistent with the working state data of the bus interface board or not, if yes, the received message test is judged to be passed, otherwise, the received message test is not passed, and the working state data comprises a period BIT, a working mode and a running state.
6. The 1553B bus interface board communication function test method according to claim 5, wherein step 3 comprises, when the bus interface board is used as an RT, a communication function test comprising a received message test and a transmitted message test.
7. The method of claim 6, wherein the RT mode communication function test in step 3 includes a bus interface board as a RT time send message test and a bus interface board as a RT time receive message test, wherein,
including bus interface boards as tests for messages sent at RT, including,
step 3.1: the test computer sets the bus interface board as RT and the 1553B simulation card as BC, and starts the test computer in a working state in sequence;
step 3.2: the test computer starts the BM monitoring function by controlling the 1553B simulation card, continuously records the data on the 1553B bus in the whole test process and stores the data into the test computer;
step 3.3: starting a 'period acquisition UUT working state' thread on a test computer, continuously acquiring working state data of the bus interface board in the whole test process, and judging the state information of the bus interface board in real time;
step 3.4: the bus interface board is used as RT to send message to 1553B simulation card used as BC to carry out message sending test, and after receiving the message, the BC returns data to the test computer;
step 3.5: the test computer receives the data returned by the BC, acquires the working state data of the bus interface board and the message data monitored and recorded when the bus monitor is taken as the BM, judges whether the data sent by the bus interface board as the RT is consistent with the data actually received by the BC as the 1553B simulation card, and whether the data monitored by the bus monitor as the BM is consistent with the working state data of the bus interface board, if so, the received message test is judged to be passed, otherwise, the received message test is not passed, and the working state data comprises a period BIT, a working mode and a running state;
the bus interface board receives message tests as RT, including,
step 4.1: the 1553B simulation card serving as the BC sends a message to the bus interface board serving as the RT, and after the RT receives data, the data is returned to the test computer;
step 4.2: and the test computer receives the data returned by the RT, acquires the working state data of the bus interface board and the message data monitored and recorded when the bus monitor is taken as the BM, judges whether the data sent by the 1553B simulation card to the bus interface board taken as the RT is consistent as the BC, and whether the data monitored by the bus monitor as the BM is consistent with the working state data of the bus interface board, if so, the received message test is judged to be passed, otherwise, the received message test is not passed, and the working state data comprises a period BIT, a working mode and a running state.
CN202311842163.XA 2023-12-28 2023-12-28 1553B bus interface board communication function test method Pending CN117896288A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311842163.XA CN117896288A (en) 2023-12-28 2023-12-28 1553B bus interface board communication function test method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311842163.XA CN117896288A (en) 2023-12-28 2023-12-28 1553B bus interface board communication function test method

Publications (1)

Publication Number Publication Date
CN117896288A true CN117896288A (en) 2024-04-16

Family

ID=90639052

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311842163.XA Pending CN117896288A (en) 2023-12-28 2023-12-28 1553B bus interface board communication function test method

Country Status (1)

Country Link
CN (1) CN117896288A (en)

Similar Documents

Publication Publication Date Title
WO2018148405A1 (en) Real-time capture of traffic upon failure for protocol debug
CN104717337A (en) Method for testing mobile application in batch and equipment used in method
CN108897647B (en) Test system, test method and device
CN106851513B (en) Method and system for testing electronic product
CN106776346B (en) Test method and device of CCMTS (China center testing System) equipment
CN111200544B (en) Network port flow testing method and device
CN103731663A (en) Method and device for testing smart television
CN105553885A (en) FC switch priority testing method
CN109031005B (en) Distributed relay protection device testing method and relay protection tester
CN105515890A (en) OpenFlow protocol consistency testing method and equipment
CN109660386B (en) Software upgrading method for semiconductor memory aging test system
CN108009086B (en) System automation test method based on case decomposition and function learning
CN107733743B (en) Method and system for realizing automatic test of Ethernet bus data
CN117896288A (en) 1553B bus interface board communication function test method
CN113067745A (en) Aircraft 1394B bus communication simulation test platform
CN111181810B (en) Performance test method and system for MoCA equipment
CN111221265B (en) Bus information extraction device of rudder system in loop and semi-physical simulation method
CN108200545B (en) WLAN signaling test system and test method
CN110825617A (en) Method and device for simulating communication interaction between devices
CN106708488A (en) Multi-application debugging system and method
CN115657646A (en) Test method and device of CAN controller
CN109981394B (en) Communication method and device based on enhanced CAN bus protocol analyzer
CN103517307B (en) A kind of remote debugging system based on TD-SCDMA
CN107769968B (en) Debugging and testing system of SNMP (simple network management protocol) agent in AFDX (avionics full Duplex switched Ethernet) network
CN105044552A (en) Fault diagnosis method, system and device for distribution network automation system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination