Measuring and testing products embedded software testing tool for the study

Equipment components

Etest_CPS system consists of hardware components and software components. The hardware includes the chassis PCI, PCI board PCI interface controller and various components. Software part generated by the test design software modules, test execution service software modules, test execution client software module, device resource management software modules and other major software modules and curve data, CRC plug-in generation and diagnostic, test data recording and viewing application protocol generator tools, application protocol template management, report generator and other tools.

The main function of each module

(1) hardware portions

Etest hardware part forms a standard cabinet, the host computer using PCI control, various types of connector block with PCI bus interface board. The main indicators of the hardware part as follows:

① chassis

Standard 19 "4U chassis high Desktop
support the PCI card, slots 10
using DC fan and a ventilation slot-shaped duct specially designed
bottom of the chassis 4 80 × 80 × 25 (mm) 12V fan

② Controller

Chipset: Intel GM45 + ICH9M
Memory: 8GB DDR III 1066MHz, the user can expand.
HDD: 500GB removable and exchangeable user

③ARINC429 module

Support channel configuration: transmitting and receiving channels each of two
support 100K / 50K / 48K / 12.5KBPS baud rate and user-defined
support two types of send FIFO mode and Schedule
supports two kinds of receiving filters SDI and Label Mode
Support Time Stamping
support interrupts, external trigger

④1553B module

In full compliance with MIL-STD-1553B protocol
dual channel and have BC, RT, BM multifunctional
support 1M / 2M / 4Mbps and user-defined baud rate
per channel of the dual redundant A, B channel
frame interval and the message intervals may be software settings
to support timestamp with a resolution of 1μs
support self-testing, error injection
interrupt support, support for external trigger

⑤ RS232 / 422/485 serial interface module

Communication protocols: asynchronous RS232 / 422/485 may be software set
number of channels: RS232 / 422/485 8 each
baud rate, according to user needs, up to 8M
data bit length, stop bits, parity bit software may be provided
two species of the received data: receiving protocol and the transparent reception
when reception protocol, the header may be set to receive
transparent receiving, filtering may be provided
to provide the FIFO is empty, the full flag interrupting
the reception FIFO: 32M RAM space total
transmit FIFO: FIFO transmit the 2 kbyte per channel of the
support interrupt, external trigger

⑥ CAN module

CAN2.0A CAN2.0B compatible protocols and supports standard and extended frames;
channels: 4
supports two-way transmission, CAN send, CAN receiving
support timing, the accuracy of 1 [mu
DC2500V electrical isolation protection
support a data frame, remote frame format;
the CAN control baud rate between 5Kbps-1Mbps optional configurable;

⑦ AD module

64 single-ended / differential inputs 32
single-channel sampling rate 1MSPS maximum
input range of 100V optionally ± / ± 40V / 10V ±
the ADC Resolution: 16bit
range for programmable
32KByte / channel FIFO
external triggering

⑧ DA Mo块

64 channel output
DAC resolution: 16bit
Output voltage: ± 10V
output Accuracy: 0.2% FSR
output impedance: 10Ω
maximum drive current: 10mA / channel

⑨ optical isolator discrete I / O modules

64-channel optical isolation discrete input / output
per channel optically isolated
digital support 28V / OPEN, GND / OPEN
support a wide input voltage range of -60V ~ + 60V
to support the maximum switching on ± 60V
support resettable circuit protection current

(2) test the design of software modules

Test software modules designed to treat measurement system and its external interface for modeling, editing and protocol analysis, create a test monitoring, planning the establishment of hardware, create and manage test cases, test equipment to determine the number of interfaces to be prepared. Its main features include:
² test program management, for the operation of the test program are: New program to open programs, conservation programs.
 each test embodiment, may comprise a plurality of test items to, a plurality of test items for each test such that a plurality of test programs can be completed project design, facilitate integration testing a plurality of items to the system configuration.
 test items are new, rename, delete, and view operational attributes.
 a graphical description of the way the system under test, the system under test and the external peripheral system interfaces, including interfaces and the number of types of interfaces, including RS422,1553B, CAN, AD, DA, DI, DO, CT, Freq-CT, TCP and other types; interface parameters can be set.
 create the interface protocol, and using the protocol described in the protocol description language, comprising a packet header, trailer, check, etc. The fields and encoding type, and a branch, loop like structure.
 order to adapt to various data communication, the protocol type field has a rich, comprising: shaping (signed and unsigned 8-bit / 16-bit / 32-bit / custom length), floating point, boolean, conditional statements type, type of branch statements, calculated field, a checksum field, an array of fields.
 create test monitoring, describing monitor the content and form of display real-time data monitoring, and set an alarm condition.
 user can add the test test monitors monitoring module monitoring device and add the data on the monitor panel, different types of instruments to monitor the binding protocol field by field or the result of a calculation formula, so that by the monitoring device or pointer values at runtime change visually display the change data when the communication test.
 test monitoring toolbar manage all test monitoring instruments, including digital meter instrument, meter disk, graph, enumerated type. Select the appropriate monitoring instruments, drag it to the appropriate position of the monitor panel, which can be added to the monitoring instrument panel monitor. The trailing edge monitoring instruments with the mouse, you can adjust its size.
 open the "Properties" tab, you can modify the properties of test instruments. The most important attribute is "agreement period" attribute, indicating the source of the data monitoring instrument.
 by expanding the button to the right of property "agreement period", you can open the "Data Binding Agreement" dialog box, which displays all the agreements and protocols simulation model segments in the current project.
 test meter data source, either a protocol field, the formula may be composed of a plurality of protocol field.
In the formula  lower "Binding Data Protocol" dialog box input protocol input field, or the fields of the protocol. Double-click the desired field name, field name may be added to the cursor position custom formulas.
 hardware to create test plans, determine the interface board test equipment is required, and the device interface board corresponding resources.
 create test cases, test cases and provide management, including grouping, deleting, renaming and so on.
 create content test cases, test scripts described including the use of the test process, including the definition of variables, conditional statements, looping statements, print statements, math, function definitions.
 expansion interface providing the test script, can automatically parse the data interaction and data element to be measured, to the user data bit stream analysis meaningful.
 provide a way to control the timing, a predetermined operation can be performed according to a certain timing.
 provide runtime environment settings mode, set the simulation model server during the test run, the data center server, test execution server and the client's IP address and port number.
 provide standard output monitoring function configured to monitor the output of the determination standard input class configuration.
 provides test script execution mode, the user can run test scripts selected; the user can choose to terminate the script.
 able to view the output, and error messages.

(3) test executive software module Service

Test executive software module for the main part of the implementation of automated testing software, compatible with the client software, data-driven testing, automated test execution. It has the following features:
² providing service running in the background process scheduling program, with the help of the process of scheduling agents, according to the design of software test design, test execution started, clients, servers, and other processes on the PCI controller, and through the process of scheduling service coordinated operation logic of each software.
 provide simulation model server program running in the background, test design simulation model established by analytical simulation model servers, implement test execution data transceiver simulation resolution services.
 provide data center server program running in the background, during the execution of the test case, the receipt channel transceiver centralized processing in the data center server, ensure data monitoring distributed implementation.
 use cases provide a server program running in the background, analysis processing execution written test design test cases.
 standard input and output monitoring program window, you can display the simulation model servers, data center server, the client process and the process of debugging information server running with cases.
 parsing variables defined in the test script, conditional statements, loop, the output statement, math, function definitions and other statements, the corresponding operation.
Analytical test script  expansion interface, the test system for data transmission / receiving and data analysis.
 analytical test script, the operation timing control according to the requirements.
 test data transmitted to the client software packages injection; packet received test data output sent client software.
 according to user demand immediate stop execution of test cases.
 record and display the results of test cases.

(4) test execution client process and data monitoring module

Test execution client process and data monitoring module running on the PCI controller. It has the following functions:
² providing device driver functionality, the ability to realize the driving 1553B, CAN, RS422, RS232, AD / DA / DI / DO board interfaces.
 test execution client software to perform the same tests were run in a PCI controller software, the use of memory mechanism to exchange data.
 configured with a communication parameter DUT test communication using the design software.
 provides a convenient way to expand hardware board and easy integration of new hardware board.
Receiving the test data from the test executing software  implantation packet transmission, data format conversion, and transmitted to the test specimen through the communication board.
 received test data output from the DUT transmission packet and forwards to the test executing software.
 After logging software testing services, test monitoring interface displays all test design software design, select one or more test monitoring panel test monitoring.
 run the specified test monitoring, real-time display specified test data during the test execution mode to provide digital data monitoring instruments, dashboards, enumeration, graphs and the like.
 test data can be displayed in real-time test execution;
 can display test data protocol data format parsed, can, octal, hexadecimal display test data in binary.
 filter condition data may be provided to achieve specific data interface display.
 alarm condition data may be provided, when a certain characteristic data occurs, the software shows the alarm condition data in the form of eye-catching.
 for data query, you can query message a certain period of time, can also query data in a protocol field.
 can count on the specified data, the data can also view graphs.

(5) device resource management software modules

Device Explorer software module provides test equipment and channel management functions supported by the system, the system provides an interface for device expansion. Its main achieve the following functions:
² adding, deleting system equipment.
 change the number of system equipment.
 add, delete channel device contains.
 modify the number and type of devices comprises channels.
 save device information to the device resource files used in the test design the software.

(6) Auxiliary tool

Some commonly used software tools provides a software tool embedded system tests, including the following software modules:
² curve data generation tool;
having a data editing curve, coordinate selection, data reading curve, curve data storage and other functions, with the execution of software testing , there is provided a test data generating means.
 application protocol interface debugging assistant;
serial interface having an application protocol analysis function (RS232 / 422/485) debugging aids, can achieve serial (RS232 / 422/485) interface is provided, a data transceiver, automatically resolve for application the amount received, interface data packet is automatically transmitted data is formed in accordance with the application.
 test data recording and viewing tools;
during test execution, the test data may be recorded in the execution, for testing and analysis performed after See, including protocol selection, data filtering, alarm condition setting function.
 application protocol generation tool;
providing an application protocol table editing features, compositions may be provided in the protocol field, type field, the default field value and the like.
 agreement template management tools;
the storage application protocol prepared by the protocol template to enable protocol multiplexing, enabling management template library, including adding templates, import templates, template editing and other functions.
² diagnostics plug CRC generator the CRC widget
providing design features of the CRC calculation, CRC algorithm may be custom designed diagnostic accuracy the algorithm, and the algorithm eventually plug the CRC field in the protocol description language.
 test report generation tool
with a test report template editing and management with automatic generation of test reports.

Published 43 original articles · won praise 19 · views 1797

Guess you like

Origin blog.csdn.net/weixin_45013592/article/details/104521506