CN109062747B - Intelligent testing method for digital satellite embedded simulation platform - Google Patents

Intelligent testing method for digital satellite embedded simulation platform Download PDF

Info

Publication number
CN109062747B
CN109062747B CN201810879941.5A CN201810879941A CN109062747B CN 109062747 B CN109062747 B CN 109062747B CN 201810879941 A CN201810879941 A CN 201810879941A CN 109062747 B CN109062747 B CN 109062747B
Authority
CN
China
Prior art keywords
test
packet
sending
program
flow
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
CN201810879941.5A
Other languages
Chinese (zh)
Other versions
CN109062747A (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.)
Beihang University
Original Assignee
Beihang University
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 Beihang University filed Critical Beihang University
Priority to CN201810879941.5A priority Critical patent/CN109062747B/en
Publication of CN109062747A publication Critical patent/CN109062747A/en
Application granted granted Critical
Publication of CN109062747B publication Critical patent/CN109062747B/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
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2268Logging of test results

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses an intelligent test method of a digital satellite embedded simulation platform, which is used for testing through an intelligent test system of the digital satellite embedded simulation platform: (1) defining the membership composition among the tested equipment interface, the sending content, the comparison content and the test program through an initial parameter configuration unit, and storing the configuration result in a database; (2) the test program automatic generation unit generates a test program according to the configured database and burns the test program onto the tested equipment; (3) the automatic measurement and control unit completes the sending of the sending packet, the receiving and analysis of the receiving packet and the generation of the test report according to the test flow configuration content in the database. The user can complete the automatic generation, automatic burning, automatic execution test of the test program by carrying out initial parameter configuration through the initial parameter configuration unit, and intelligently generate a test report.

Description

Intelligent testing method for digital satellite embedded simulation platform
Technical Field
The invention relates to the field of automation, in particular to automatic testing of embedded equipment.
Background
Embedded systems are one of the most promising engineering application fields in development, and have been widely used in various aspects such as industrial control, home appliances, and intelligent products. Compared with a general computer system, the embedded system has the following advantages: the system has the advantages of low power consumption, high reliability, high cost performance, strong real-time performance, multi-task support, small occupied space, high efficiency, specific application orientation and flexible customization according to requirements.
The traditional testing technology is operated manually by people, and the experience and the technology of people are taken as the leading factors. With the continuous progress of science and technology, in the face of the conditions that the testing task is increasingly complex, the testing content is richer, and the precision requirement is higher, the traditional testing method can not meet the requirement, and the testing technology is in urgent need of improvement. With the development of electronic technology and computer technology, researchers have applied computers and general-purpose electronic devices to test technology, and automated test technology has emerged in which a computer controls a general-purpose instrument to perform a test.
The digital satellite embedded simulation platform needs to perform simulation tests of various faults, and simulation data can be abnormal due to the reasons of signal line looseness, board damage, power supply abnormality, program burning failure, high error rate, long time delay and the like. General personnel are difficult to locate faults in detection, and writing of board test codes is time-consuming and labor-consuming, so that how to design an intelligent test method for a digital satellite embedded simulation platform, which is higher in automation and smaller in workload of personnel, is a technical problem to be solved urgently by the personnel in the field.
Disclosure of Invention
In view of the above, the invention discloses an intelligent testing method for an embedded simulation platform of a digital satellite, which can intelligently test the embedded simulation platform, thereby improving the testing efficiency, enhancing the testing function, and realizing high automation and intellectualization of a testing system.
In order to achieve the purpose, the invention adopts the following technical scheme:
the intelligent test system of the digital satellite embedded simulation platform comprises a test terminal, a comprehensive electronic system and tested equipment; the test terminal is in communication connection with the tested equipment through the integrated electronic system;
the test terminal is configured with three software units including:
the initial parameter configuration unit is used for defining the membership composition among the tested equipment interface, the sending content, the comparison content and the test program and storing the configuration result in the database;
the automatic test program generating unit is used for generating a test program from the configuration result in the database and burning the test program onto the tested equipment;
and the automatic measurement and control unit is used for sending the sending packet, receiving and analyzing the receiving packet and generating a test report.
The three software units can be arranged in one or more test terminals according to application requirements.
Furthermore, the software unit configured by the test terminal may further include an intelligent analysis unit, which is used for analyzing the results in the test report and forming a diagnosis report.
Further, the test terminal is an industrial personal computer; the integrated electronic system is a switching card; the tested device is a board card.
The test terminal is the core of the test system, automatically finishes the compiling of the test program, and burns the test program to the tested equipment through the integrated electronic system; automatically executing a test flow; and automatically analyzing data returned by the integrated electronic system, outputting a test instruction execution result and the like.
The integrated electronic system is used for connecting the test terminal with the tested equipment and automatically detecting and electrifying, the 1-path JTAG is used for debugging the tested equipment and the gating control function of the channel, and the integration level is high.
Furthermore, the test terminal is also provided with a winTestProgram which is used as a link between the automatic measurement and control unit and the integrated electronic system in the process of executing the test flow, so that data receiving and sending in the process of executing the test flow, opening of an interface channel are realized, and data sent by the tested equipment are polled.
The intelligent test method of the digital satellite embedded simulation platform comprises the following steps of testing through an intelligent test system of the digital satellite embedded simulation platform:
(1) defining the membership composition among the tested equipment interface, the sending content, the comparison content and the test program through an initial parameter configuration unit, and storing the configuration result in a database;
(2) the test program automatic generation unit generates a test program according to the configured database and burns the test program onto the tested equipment;
(3) the automatic measurement and control unit completes the sending of the sending packet, the receiving and analysis of the receiving packet and the generation of the test report according to the test flow configuration content in the database.
The user can complete the automatic generation, automatic burning, automatic execution test of the test program by carrying out initial parameter configuration through the initial parameter configuration unit, and intelligently generate a test report.
Further, the configuration content of the initial parameter configuration unit comprises information flow configuration, federal configuration and test flow configuration;
the working process of the initial parameter configuration unit is as follows:
before testing, information flow configuration and federal configuration are carried out through an initial parameter configuration unit, and configuration results are stored in a database;
and configuring a test flow according to the required test content, generating a test execution flow statement, and storing the test execution flow statement in a database.
Preferably, the database is an Access database.
Further, the information flow configuration content includes data flow transmission information such as a bus, a data packet, a data transmission protocol, and the like, wherein:
the bus is a channel for communication, and CAN be selected from CAN, UART, DIDO and the like;
the data packet can be divided into a packet header and packet contents from the format; the packet header is composed of key parameters and at least comprises an identifier and a length; the packet content is data or instruction content to be transmitted;
the data packet is functionally divided into a sending packet and a receiving packet; the sending packet is used for sending data to a receiving party, and the receiving packet is used for the receiving party to determine an unpacking format; the sending packet or the receiving packet also comprises a comparison packet which also plays a role in judging whether the received data is correct or not;
the data transfer protocol specifies the relationship between the sender, the receiver, the send packet, the receive packet, and the send bus.
Further, the federal configuration content includes federal deployment and federal communication information, such as deployment scheme, federal, scheme including federal, federal including single unit and federal relying on federal, wherein:
the deployment scheme refers to the name of a certain test project and also represents the position of the tested equipment accessed to the test network and the burning test program; the deployment scenario defines a scenario ID and name;
the federation is a program with relatively independent functions, and the federation comprises a plurality of single units; intelligent negotiation between the federates, wherein the federates with dependency relationship can be started successfully only by depending on the federates after the depended federates are started; the federal defines the federal name, the federal type, remarks and the ID of each federal;
and remarks are used for marking whether the device to be tested is the tested device, so that whether a test program and a federal header file need to be generated is determined.
The federal number header file defines the dependency relationship and communication mode between the federals;
the scheme comprises a federal definition scheme ID, a federal ID, a case number and a board card number; the test program automatically compiles a burning program to determine a burning position according to the case number and the board number;
the federation comprises a single unit group definition federation ID and a single unit group ID;
federal dependent federal defines federal title ID, dependent federal ID.
Furthermore, the test flow configuration content includes test execution flow statement information such as federal remarks, single-machine interface channel numbers, test flows and the like, and related configuration results are stored in the database.
And the federal remarks are redefined according to the test flow. The single unit interface channel number is used for determining an interface channel used for connecting the tested equipment on the test terminal, and the bus type can be increased as required by determining the single unit interface channel number, so that the functional expansion of the test system is facilitated.
Furthermore, the automatic test program generating unit comprises an automatic code generating program, an automatic code compiling program and an automatic test program compiling and burning program;
the working process of the automatic generation unit of the test program is as follows:
after the initial parameter configuration is finished, the code automatic generation program reads the database configured by the initial parameter configuration unit, generates character strings and prints the character strings to form a variable source code document; the code automatic generation program copies the fixed code character string and prints to form a fixed source code document;
the code automatic compiling program places the variable source code document and the fixed source code document in the same folder, and combines and compiles the variable code and the fixed code to generate an executable program;
the test program automatically compiles the burning program to send an instruction for opening a port of the tested device to the integrated electronic system, and calls Keil software through a batch processing technology to convert the executable program based on the C language into an assembly language program to finish the compilation of the test program; and calling J-FlashARM software to complete the burning of the test program.
Further, the instruction for opening the port of the device under test is sent to the integrated electronic system via the single-unit interface channel of the winTestProgram.
Furthermore, the automatic measurement and control unit comprises a monitoring and displaying module and a process control module;
the working process of the automatic measurement and control unit is as follows:
the monitoring module sends an instruction for executing the test execution flow statement to the flow control module, and displays the test progress and the test execution flow statement execution result in real time, so that the error of the test execution flow statement can be conveniently judged in the test process;
the flow control module receives the instruction sent by the monitoring and displaying module and executes the test execution flow statement;
for the data related to the test execution flow statement, the flow control module acquires corresponding sending packet data, assembles the sending packet and sends the sending packet to the monitoring and displaying module; for the sending statements related in the test execution flow statements, the flow control module sends the sending statement assembly sending packages to the monitoring module;
the monitoring module sends the sending packet to the tested device, receives the receiving packet from the tested device and returns the receiving packet and the test execution flow statement execution result to the flow control module;
the flow control module receives a return packet (namely the receiving packet) returned by the monitoring module and a test execution flow statement execution result, compares the data, and stores the comparison result in a database;
the monitoring and displaying module reads the archived data of the flow control module and automatically generates a test report, wherein the content of the test report comprises a test flow, an execution result of an execution flow statement and a data comparison result.
Furthermore, the monitoring and displaying module can also temporarily increase the test flow from the interface, send the test flow to the flow control module for execution, and display the increased test flow.
Furthermore, in the process of executing the test execution flow statement by the flow control module, for the statement related to sending, the flow control module also acquires the comparison packet data, assembles the sending packet and sends the sending packet to the monitoring and displaying module.
Furthermore, data receiving and transmitting between the monitoring module and the tested device are realized through the transmission of the WinTestProgramm and the comprehensive electronic system.
Further, after the test report is generated, the intelligent analysis unit may generate a diagnosis report according to the content of the test report, and the specific implementation process is as follows:
establishing a fault diagnosis knowledge base, wherein the fault diagnosis knowledge base stores fault detection characteristics;
establishing a fault diagnosis rule base, wherein the fault diagnosis rule base stores the corresponding relation among the detection characteristics of faults, the fault positions and the fault reasons;
and determining the detection characteristics of the fault corresponding to the data in the test report according to the fault diagnosis knowledge base, carrying out reasoning by combining with the fault diagnosis rule base to obtain the initial diagnosis of the fault, and generating a diagnosis report.
Further, the detection characteristics of the fault comprise detection characteristics of the fault in the aspects of on-off, time delay, error code, blockage and interruption.
According to the technical scheme, compared with the prior art, the intelligent test method for the digital satellite embedded simulation platform can finish automatic generation, automatic burning, automatic execution test and intelligent generation of test reports of test programs under different working conditions, test evaluation is conducted on the performance of the embedded simulation system, and data basis is provided for the reliability of system simulation. Meanwhile, the invention adopts the design idea of modularized functional design and structured software programming, so that the system is convenient to change; the software building is combined with the configuration file structure, so that the system is convenient for function expansion; in conclusion, the invention can improve the testing efficiency, shorten the development period and enhance the maintainability.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a schematic view of a test terminal of the digital satellite embedded simulation platform intelligent test system of the invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
According to the simulation requirement, the intelligent test method of the digital satellite embedded simulation platform comprises five test contents: on-off test, time delay test, error code test, block test, interrupt test, wherein:
switching on and off: whether the test board can receive and transmit data or not is judged;
time delay: time consumption of test data transmission;
error rate: and testing the error rate of the data transmitted and received by the board card, and comparing the result according to bits.
Blocking: testing whether the sender stops sending after the receiver stops receiving; after the receiver resumes receiving, whether the sender can resume sending or not;
interrupting: the running of the current program is stopped, the corresponding processing program is automatically switched in, and the efficiency of data release to the buffer area by the interrupt service of the industrial personal computer and the nesting interrupt are tested.
The integrated circuit board is connected with the UART or CAN interface of the industrial computer through the adapter card, and then the intelligent test of the digital satellite embedded simulation platform is carried out, specifically:
1. initial parameter configuration
(1) Configuring information flow through an initial parameter configuration unit, and storing configuration results in a database;
the method comprises the setting of a bus, the setting of a data packet format, a sending mode and a receiving mode and the setting of a data transmission protocol.
(2) The configuration result is stored in a database through the federal configuration of an initial parameter configuration unit;
a deployment scenario definition scenario ID and name;
the scheme comprises a federal definition scheme ID, a federal ID, a case number and a board card number;
federal definition federal name, federal type, remarks and ID of each federal;
the federation specifically comprises an initial parameter configuration unit, a test program automatic generation unit, a monitoring and displaying module, a flow control module and a winTestProgram;
remarks are used to mark whether the device under test is;
the federal number header file defines the dependency relationship and communication mode between the federals;
federal dependent federal defines federal title ID, dependent federal ID.
The federation comprises a single unit group definition federation ID and a single unit group ID; for example, the test program automatic generation unit comprises a stand-alone unit including a code automatic generation program, a code automatic compiling program and a test program automatic compiling burning program.
(3) And configuring a test flow according to the required test content, generating a test execution flow statement, and storing the test execution flow statement in a database.
2. Test program automatic generation
(1) The code automatic generation program reads the database configured by the initial parameter configuration unit, generates character strings and prints the character strings to form a variable source code document; the code automatic generation program copies a preset fixed code character string and prints to form a fixed source code document;
(2) the code automatic compiling program places the variable source code document and the fixed source code document in the same folder, and combines and compiles the variable code and the fixed code to generate an executable program;
(3) the automatic compiling and burning program of the test program sends an instruction for opening a board card port to the adapter card through the winTestProgram, calls Keil software through a batch processing technology to complete compiling of the test program, and calls J-FlashARM software to complete burning of the test program.
3. Automatic measurement and control
The automatic measurement and control unit carries out the communication test of the board card according to the test execution flow statement and the test program in the board card, and the method comprises the following steps:
(1) on-off test
1) The monitoring module determines to select on-off test, sends an instruction for executing test execution flow statements to the flow control module, and displays the test progress and the test execution flow statement execution result in real time;
2) the flow control module receives the instruction sent by the monitoring and displaying module, executes the test execution flow statement, acquires data 1 from the database, assembles a sending packet and sends the sending packet to the monitoring and displaying module;
3) the monitoring and displaying module sends the sending packet to the board card through the winTestProgram and the adapter card;
4) the board card receives the data packet, unpacks the data 1, packages the data and returns the data to the monitoring and displaying module through the adapter card and the winTestProgram;
5) the monitoring and displaying module receives the receiving packet and transmits the receiving packet and the execution result of the test execution flow statement back to the flow control module;
6) the flow control module receives the return packet returned by the monitoring module and the execution result of the test execution flow statement, compares the data of the return packet with the data of the sending packet, and stores the comparison result in the database.
(2) Time delay test
The industrial personal computer sends data 1 to the board card through the adapter plate and records time, the board card receives the data packet and then unpacks, packs and sends back, the industrial personal computer receives the data packet and then records time again, and the industrial personal computer displays the receiving and sending time difference to obtain a test report.
1) The monitoring module determines to select a time delay test, sends an instruction for executing a test execution flow statement to the flow control module, and displays the test progress and the test execution flow statement execution result in real time;
2) the flow control module receives the instruction sent by the monitoring and displaying module, executes the test execution flow statement, acquires data 1 from the database, assembles a sending packet and sends the sending packet to the monitoring and displaying module;
3) the monitoring and displaying module sends the sending packet to the board card through the winTestProgram and the adapter card, and the winTestProgram records the sending time and stores the sending time in the database;
4) the board card unpacks the data 1 after receiving the data packet, then packs the data, and returns the data to the monitoring and displaying module through the adapter card and the winTestProgram; the winTestProgram records the receiving time and stores in the database;
5) the monitoring and displaying module receives the receiving packet, reads the sending time and the receiving time, calculates and displays the time difference, and then returns the receiving packet and the execution result of the test execution flow statement to the flow control module;
6) the flow control module receives the return packet returned by the monitoring module and the execution result of the test execution flow statement, compares the data of the return packet with the data of the sending packet, and stores the comparison result in the database.
(3) Error code testing
The test mode is the same as the on-off test, and the error rate of the data is tested by comparing the data which is continuously sent and received for many times.
1) The monitoring module determines to select an error code test, sends an instruction for executing a test execution flow statement to the flow control module, and displays the test progress and the test execution flow statement execution result in real time;
2) the flow control module receives the instruction sent by the monitoring and displaying module, executes the test execution flow statement, acquires data 1 from the database, assembles a sending packet and sends the sending packet to the monitoring and displaying module;
3) the monitoring and displaying module sends the sending packet to the board card through the winTestProgram and the adapter card;
4) the board card receives the data packet, unpacks the data 1, packages the data and returns the data to the monitoring and displaying module through the adapter card and the winTestProgram;
5) the monitoring and displaying module receives the receiving packet, sends the sending packet to the board card through the winTestProgramm and the adapter card again, and repeats sending and receiving of the data packet for 100 times; then all the receiving packets and the execution result of the test execution flow statement are returned to the flow control module;
6) the flow control module receives the return packet returned by the monitoring module and the execution result of the test execution flow statement, compares the data of the return packet with the data of the sending packet, and stores the comparison result in the database.
(4) Occlusion testing
1) The monitoring module determines to select a blocking test, sends an instruction for executing a test execution flow statement to the flow control module, and displays the test progress and the test execution flow statement execution result in real time;
2) the flow control module receives the instruction sent by the monitoring and displaying module, executes the test execution flow statement, and sends the statement assembly sending packet entering the blocking test mode to the monitoring and displaying module; the packet format is: data packet head + parameter packet; parameter package: identifier (1byte) + congestion test instruction;
3) the monitoring and displaying module sends the sending packet to the board card through the winTestProgram and the adapter card;
4) the board card receives and unpacks the data packet, enters a blocking test mode, and continuously packs and sends self-increment data to the monitoring module through the adapter card and the winTestProgram;
5) the monitoring module receives the self-increment data and transmits all the received packets and the execution result of the test execution flow statement back to the flow control module;
6) the flow control module sends an instruction to the winTestProgram through the monitoring and displaying module, and stops receiving the self-increment data for 10s, namely enters a blocking state;
7) after 10s, the winTestProgramm continuously receives the self-increment data and sends the self-increment data to the monitoring module;
8) the monitoring module receives the self-increment data and transmits all the received packets and the execution result of the test execution flow statement back to the flow control module;
9) the flow control module receives the return packet returned by the monitoring module and the execution result of the test execution flow statement, compares whether the self-increment data before and after the blocking state are continuous or not, and stores the comparison result in the database.
(5) Interrupt testing
1) The monitoring module determines to select an interrupt test, sends an instruction for executing a test execution flow statement to the flow control module, and displays the test progress and the test execution flow statement execution result in real time;
2) the flow control module receives the instruction sent by the monitoring and displaying module, executes the test execution flow statement, and sends the statement assembly sending packet entering the interrupt test mode to the monitoring and displaying module; the packet format is: data packet head + parameter packet; parameter package: identifier (1byte) + interrupt test status (a)/interrupt test time (b);
3) the monitoring and displaying module sends the sending packet to the board card through the winTestProgram and the adapter card;
4) the board card receives and unpacks the data packet, enters an interruption test mode, and continuously packs and sends self-increment data to the monitoring module through the adapter card and the winTestProgram;
5) the monitoring module receives the self-increment data and transmits all the received packets and the execution result of the test execution flow statement back to the flow control module;
6) the flow control module acquires data 1 from a database, assembles a sending packet and sends the sending packet to the monitoring module;
7) the monitoring and displaying module continuously sends the sending packets to the board card for 10s through the winTestProgramm and the adapter card;
8) the board card stops sending the self-increment data, enters an interruption state, preferentially receives a data packet and unpacks the data 1, then packages the data packet, and returns the data packet to the monitoring module through the adapter card and the winTestProgramm; then recovering the transmission of the self-increment data;
9) the monitoring and displaying module receives the receiving packets and transmits all the receiving packets and the execution results of the test execution flow statements back to the flow control module;
10) the flow control module receives the return packet returned by the monitoring module and the execution result of the test execution flow statement, compares whether the self-increment data before and after the interruption state are continuous and the consistency of the sending packet of the data 1 and the return packet data, and stores the comparison result in the database.
Further, the processing time of the interrupt is increased by adding a time delay in the receiving interrupt service function of one communication port, so that when the board card does not process the interrupt of the port, the board card tests whether the first interrupt is interrupted and whether the later interrupt loses data under the working condition that the other port receives data and enters another communication port to receive the interrupt, and the method specifically comprises the following steps:
1) the monitoring module determines to select an interrupt test, sends an instruction for executing a test execution flow statement to the flow control module, and displays the test progress and the test execution flow statement execution result in real time;
2) the flow control module receives the instruction sent by the monitoring and displaying module, executes the test execution flow statement, and sends the statement assembly sending packet entering the interrupt test mode to the monitoring and displaying module; the packet format is: data packet head + parameter packet; parameter package: identifier (1byte) + interrupt test status (a)/interrupt test time (b);
3) the monitoring and displaying module sends the sending packet to the board card through the winTestProgram and the adapter card;
4) the board card receives and unpacks the data packet, enters an interruption test mode, and continuously packs and sends self-increment data to the monitoring module through the adapter card and the winTestProgram;
5) the monitoring module receives the self-increment data and transmits all the received packets and the execution result of the test execution flow statement back to the flow control module;
6) the flow control module acquires data 1 from a database, assembles a sending packet and sends the sending packet to the monitoring module;
7) the monitoring and displaying module continuously sends the sending packets to the board card for 20s through the winTestProgramm and the adapter card;
8) the board card stops sending the self-increment data, enters an interruption state, preferentially receives a data packet and unpacks the data 1, then packages the data packet, and returns the data packet to the monitoring module through the adapter card and the winTestProgramm;
9) in the sending process of the data 1 sending packet, the flow control module obtains data 2 from a database, assembles the sending packet and sends the sending packet to the monitoring and displaying module;
10) the monitoring and displaying module continuously sends the sending packets to the board card for 10s through the winTestProgramm and the adapter card;
11) under normal conditions, the board card firstly receives a receiving packet of the data 1, unpacks the data 1, packages the data, and returns the data to the monitoring and displaying module through the adapter card and the winTestProgramm; receiving a receiving packet of the data 2, unpacking the data 1, packaging the packet, and returning the packet to the monitoring module through the adapter card and the winTestProgram; then, the transmission of the self-increment data is recovered;
12) the monitoring and displaying module receives the receiving packets and transmits all the receiving packets and the execution results of the test execution flow statements back to the flow control module;
13) the flow control module receives the return packet returned by the monitoring module and the execution result of the test execution flow statement, compares whether the self-increment data are continuous before and after the interruption state, the consistency of the sending packet of the data 1 and the return packet data and the consistency of the sending packet of the data 2 and the return packet data, and stores the comparison result in the database.
(6) The monitoring and displaying module reads the data comparison results of the five tests and automatically generates a test report.
4. Intelligent analysis
The intelligent analysis unit is realized by the following steps:
establishing a fault diagnosis knowledge base, wherein the fault diagnosis knowledge base stores fault detection characteristics;
establishing a fault diagnosis rule base, wherein the fault diagnosis rule base stores the corresponding relation among the detection characteristics of faults, the fault positions and the fault reasons;
and determining the detection characteristics of the fault corresponding to the data in the test report according to the fault diagnosis knowledge base, carrying out reasoning by combining with the fault diagnosis rule base to obtain the initial diagnosis of the fault, and generating a diagnosis report.
Various modifications to the above-described embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (6)

1. The intelligent test system of the digital satellite embedded simulation platform is characterized by comprising a test terminal, a comprehensive electronic system and tested equipment; the test terminal is in communication connection with the tested equipment through the integrated electronic system;
the test terminal is configured with:
the initial parameter configuration unit is used for defining the membership composition among the tested equipment interface, the sending content, the comparison content and the test program and storing the configuration result in the database;
the configuration content of the initial parameter configuration unit comprises information flow configuration, federal configuration and test flow configuration;
the information flow configuration content comprises a bus, a data packet and a data transmission protocol;
the federal configuration content comprises a deployment plan, a federal, a plan including a federal, a federal including a single unit and a federal dependency;
the test flow configuration content comprises a federal remark, a single unit interface channel number and a test flow;
the automatic test program generating unit is used for generating a test program from the configuration result in the database and burning the test program onto the tested equipment;
the automatic test program generating unit comprises an automatic code generating program, an automatic code compiling program and an automatic test program compiling and burning program;
the code automatic generation program is used for reading the database configured by the initial parameter configuration unit, generating character strings and printing the character strings to form a variable source code document; copying the fixed code character string, and printing to form a fixed source code document;
the code automatic compiling program is used for placing the variable source code document and the fixed source code document in the same folder, merging and compiling the variable code and the fixed code and generating an executable program;
the test program automatic compiling and burning program is used for sending an instruction for opening a port of the tested equipment to the integrated electronic system, calling Keil software to finish compiling the test program through a batch processing technology, and calling J-FlashARM software to finish burning of the test program;
and the automatic measurement and control unit is used for sending the sending packet, receiving and analyzing the receiving packet and generating a test report.
2. The intelligent test system of the digital satellite embedded simulation platform of claim 1, wherein the test terminal is an industrial personal computer; the integrated electronic system is a switching card; the tested device is a board card.
3. The intelligent test method of the digital satellite embedded simulation platform is characterized in that the test is carried out by the intelligent test system of the digital satellite embedded simulation platform as claimed in claim 1 or 2:
(1) defining the membership composition among the tested equipment interface, the sending content, the comparison content and the test program through an initial parameter configuration unit, and storing the configuration result in a database;
(2) the test program automatic generation unit generates a test program according to the configured database and burns the test program onto the tested equipment;
(3) the automatic measurement and control unit completes the sending of the sending packet, the receiving and analysis of the receiving packet and the generation of the test report according to the test flow configuration content in the database.
4. The intelligent testing method for the digital satellite embedded simulation platform according to claim 3, wherein the working process of the initial parameter configuration unit is as follows:
before testing, information flow configuration and federal configuration are carried out through an initial parameter configuration unit, and configuration results are stored in a database;
and configuring a test flow according to the required test content, generating a test execution flow statement, and storing the test execution flow statement in a database.
5. The intelligent test method for the digital satellite embedded simulation platform according to claim 4, wherein the automatic measurement and control unit comprises a monitor module and a process control module;
the working process of the automatic measurement and control unit is as follows:
the monitoring module sends an instruction for executing a test execution flow statement to the flow control module, and displays the test progress and the test execution flow statement execution result in real time;
the flow control module receives the instruction sent by the monitoring and displaying module and executes the test execution flow statement;
for the data related to the test execution flow statement, the flow control module acquires corresponding sending packet data, assembles the sending packet and sends the sending packet to the monitoring and displaying module; for the sending statements related in the test execution flow statements, the flow control module sends the sending statement assembly sending packages to the monitoring module;
the monitoring module sends the sending packet to the tested device, receives the receiving packet from the tested device and returns the receiving packet and the test execution flow statement execution result to the flow control module;
the flow control module receives the return packet returned by the monitoring module and the execution result of the test execution flow statement, and compares and archives the data;
the monitoring and displaying module reads the archived data of the flow control module and automatically generates a test report.
6. The intelligent testing method of the digital satellite embedded simulation platform as claimed in claim 5, wherein in the process of executing the test execution flow statements by the flow control module, for the statements related to transmission, the flow control module further obtains the comparison packet data, assembles the transmission packet and transmits the transmission packet to the monitor module.
CN201810879941.5A 2018-08-03 2018-08-03 Intelligent testing method for digital satellite embedded simulation platform Active CN109062747B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810879941.5A CN109062747B (en) 2018-08-03 2018-08-03 Intelligent testing method for digital satellite embedded simulation platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810879941.5A CN109062747B (en) 2018-08-03 2018-08-03 Intelligent testing method for digital satellite embedded simulation platform

Publications (2)

Publication Number Publication Date
CN109062747A CN109062747A (en) 2018-12-21
CN109062747B true CN109062747B (en) 2020-11-13

Family

ID=64831390

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810879941.5A Active CN109062747B (en) 2018-08-03 2018-08-03 Intelligent testing method for digital satellite embedded simulation platform

Country Status (1)

Country Link
CN (1) CN109062747B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113590478B (en) * 2021-07-17 2023-08-29 郑州威科姆华大北斗导航科技有限公司 Automatic burning test device and method for satellite receiving module
CN116577809A (en) * 2023-04-06 2023-08-11 郑州威科姆华大北斗导航科技有限公司 Universal GNSS satellite receiving module automatic test software and method

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102799508A (en) * 2012-07-09 2012-11-28 深圳市共进电子股份有限公司 Automatic test system and method
CN103309783A (en) * 2013-07-08 2013-09-18 北京经纬恒润科技有限公司 Test method and device based on bus communication
CN103440187A (en) * 2013-08-15 2013-12-11 上海固泰科技有限公司 Hardware script-based automated CAN (Controller Area Network) bus test method
CN104142160A (en) * 2014-07-08 2014-11-12 中北大学 Telemetering system converter ground testing system
CN104778320A (en) * 2015-04-13 2015-07-15 北京仿真中心 Configurable HLA (high level architecture) federal member construction method and configurable HLA federal member construction system
CN104793076A (en) * 2015-04-08 2015-07-22 南京能云电力科技有限公司 Intelligent automatic test system and method
US9378054B2 (en) * 2013-04-12 2016-06-28 Dropbox, Inc. Testing system with methodology for background application control

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8850274B2 (en) * 2012-02-01 2014-09-30 Empirix, Inc. Method of embedding configuration data in a non-configuration document

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102799508A (en) * 2012-07-09 2012-11-28 深圳市共进电子股份有限公司 Automatic test system and method
US9378054B2 (en) * 2013-04-12 2016-06-28 Dropbox, Inc. Testing system with methodology for background application control
CN103309783A (en) * 2013-07-08 2013-09-18 北京经纬恒润科技有限公司 Test method and device based on bus communication
CN103440187A (en) * 2013-08-15 2013-12-11 上海固泰科技有限公司 Hardware script-based automated CAN (Controller Area Network) bus test method
CN104142160A (en) * 2014-07-08 2014-11-12 中北大学 Telemetering system converter ground testing system
CN104793076A (en) * 2015-04-08 2015-07-22 南京能云电力科技有限公司 Intelligent automatic test system and method
CN104778320A (en) * 2015-04-13 2015-07-15 北京仿真中心 Configurable HLA (high level architecture) federal member construction method and configurable HLA federal member construction system

Also Published As

Publication number Publication date
CN109062747A (en) 2018-12-21

Similar Documents

Publication Publication Date Title
CN109359031B (en) Multi-device application program testing method and device, server and storage medium
CN105788227B (en) Fault diagnosis equipment for electricity consumption information acquisition system
US6901299B1 (en) Man machine interface for power management control systems
US5862391A (en) Power management control system
CN107315679A (en) A kind of embedded software automation exact p-value method and test system
CN109062747B (en) Intelligent testing method for digital satellite embedded simulation platform
CN112098924A (en) Interactive function testing method and device based on double-core intelligent electric meter
CN112737886B (en) Tool testing method and system, electronic equipment and storage medium
CN101286129A (en) Embedded systems debugging
CN108628739A (en) A kind of method that Lua scripts are debugged, client, server and debugger
CN110365804A (en) A kind of distribution terminal cloud detection system
CN110689238B (en) Method and system for realizing MMS (multimedia message service) information simulation and point-to-point of intelligent substation
CN107170218A (en) A kind of remote assistance method debugged for fire protection alarm system and system
CN107122307B (en) Internet of things execution system
CN101808082A (en) Device simulating method for supporting multi-protocol
CN112559329A (en) Method and system for detecting energy controller system and software
CN116108740A (en) Modeling method and device for power equipment
CN113688059A (en) Automatic function detection system and method for stability control system
CN210466051U (en) Fault injection test system for redundant flight control computer
CN1735047A (en) Fault self-diagnosis method and device
CN111596203A (en) Chip testing device, platform and method
CN111307280A (en) Converter valve base electronic equipment optical power online monitoring system and monitoring method
CN109445339A (en) FTU controller configuration method, apparatus and system, electronic equipment
CN115623077B (en) Autonomous controllable test system
KR20030080566A (en) Data management program of test handler

Legal Events

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