Electronic integrated single machine automatic test system, method and mediumTechnical Field
The invention relates to the field of general tests, in particular to an electronic integrated single-machine automatic test system, a method and a medium. In particular to a power distribution measurement and control electronic integrated single-machine automatic test system for a spacecraft.
Background
Traditional distribution is observed and controled electronic integration unit for spacecraft when carrying out unit ground test, need be to control different test equipment of functional configuration such as power supply function, heater function, telemetering measurement sampling function and initiating explosive device, and the unit ground test equipment rather than the supporting of function all is professional equipment, and test function is comparatively single, and various functional test equipment to the unit can't be general, and at the bottom of traditional test equipment degree of automation, humanized operation is poor.
Along with the rapid expansion of satellite application, users have more various requirements on satellite functions, the design of satellite structures and loads is more complex, the satellite has low requirement on the platform electronic single machine, and the integration level is high. Therefore, the satellite-borne platform electronic single machine has the characteristic of multiple functions, and the traditional electronic single machine testing equipment is difficult to adapt to new application requirements.
The invention aims to solve the technical problem of providing distribution measurement and control electronic integrated single-machine automatic test equipment for a spacecraft, which can solve the problems of single function, poor equipment integration level and universality and incapability of automatic and reliable test of the distribution measurement and control electronic integrated single-machine ground test equipment for the spacecraft. By the modular design and the software function design, the single board test, the automatic test and the free selection and combination of the test modules are realized, the system automatically judges and records data in the test process, and alarm prompt and independent record are carried out on abnormal data, so that the test efficiency of the power distribution measurement and control electronic integrated single machine for the spacecraft is improved.
Patent document CN105403788B (application number: 201510887433.8) discloses an automated ground test system for satellite-borne electronic equipment, aiming at providing an automated ground test system with high integration level, high reliability, strong expansibility, high degree of integration, and the invention capable of reducing the number of equipment and interfaces is realized by the following technical scheme: the device to be tested is connected with the comprehensive exciter and the response analyzer through the test switch matrix device, one end of the test switch matrix device faces the comprehensive exciter or the response analyzer, the other end of the test switch matrix device faces the device to be tested, and loading and measurement of different parameters are carried out by switching connectors at different positions of the test switch matrix device; the main control computer performs data interaction with the comprehensive exciter, the response analyzer, the test switch matrix equipment, the comprehensive power supply equipment and the comprehensive monitor through the optical fiber LAN switching network, outputs the analysis test data in a report form, and transmits instructions and telemetering information of the comprehensive monitor, the comprehensive channel unit, the comprehensive service unit and the comprehensive control unit through the optical fiber LAN switching network.
Disclosure of Invention
Aiming at the defects in the prior art, the invention aims to provide an electronic integrated single-machine automatic test system, a method and a medium.
The electronic integrated single-machine automatic test system provided by the invention comprises:
the program-controlled power supply module: providing a power supply;
CPCI industrial computer general test module: the PCI protocol is realized;
a bus interface module: connecting each module with a bus;
a signal load module: providing analog quantity output for the single machine;
the signal switching module: providing a remote control instruction signal interface for the single machine;
a single debugging module: debugging the single machine;
embedded computer module: the state of the single machine instruction is realized and detected, and the instruction which is not in accordance with the setting is displayed on the oscilloscope.
Preferably, the program-controlled power module, the CPCI industrial personal computer universal test module, the bus interface module, the single board debugging module and the embedded computer module all comprise CPCI bus interfaces, a channel is established in each module and the CPU module, the channel is connected with the CPCI bus interfaces, and data instruction setting and digital quantity telemetering setting are carried out.
Preferably, the program-controlled power supply module comprises 3 GEN power supplies and supplies power to 3 paths of 0-60V and 0-40A power supplies;
the program-controlled power supply module provides three independent program-controlled direct-current power supplies for supplying power to equipment, the three power supplies monitor and display voltage and current, and alarm when a set safety value is exceeded;
preferably, the analog quantity output includes: and simulating telemeasurement and satellite-rocket separation signals.
Preferably, the universal test module of the CPCI industrial personal computer comprises 4 CPCI industrial personal computers;
the universal test module of the CPCI industrial personal computer realizes a PCI protocol according to a chip PCI9054, the chip PCI9054 realizes a bus interface protocol, and the FPGA realizes a control circuit protocol;
and the PCI end of the chip PCI9054 is directly connected with the CPCI bottom plate through a CPCI connector.
Preferably, the CPCI industrial personal computer comprises: the automatic switching is carried out on the temperature measurement and the analog quantity output of 256 paths, the analog quantity and the temperature quantity are switched and output through a relay in each path, and mutual self-checking does not interfere with each other.
Preferably, the CPCI industrial personal computer detects the OC instruction, and detects a wrong instruction, a missing instruction and a string instruction;
CPCI industrial computer detects the instruction, includes: when the rising edge, the falling edge, the pulse width and the amplitude of the instruction are monitored by the optical coupler in each path, the A/D and the FPGA are triggered to detect the amplitude and the pulse width of the path, the path is automatically switched to a computer oscilloscope through a channel switching interface, and the indexes of the rising edge and the falling edge of the instruction are detected.
Preferably, the signal transfer module includes: provide the remote control command signal interface for the stand-alone, including: parallel OC door instruction interface, RS422 cluster/parallel instruction interface detect the open circuit voltage of unit output, include: the power supply, the heater and the initiating explosive device are controlled, and an RS422 remote sensing serial address signal interface is provided for the single machine.
The electronic integrated single machine automatic test method provided by the invention comprises the following steps:
a source supplying step: providing a power supply;
general testing steps of the CPCI industrial personal computer: the PCI protocol is realized;
a bus interface connection step: connecting each module with a bus;
a signal loading step: providing analog quantity output for the single machine;
signal switching step: providing a remote control instruction signal interface for the single machine;
single machine debugging step: debugging the single machine;
a calculation step: the state of the single machine instruction is realized and detected, and the instruction which is not in accordance with the setting is displayed on the oscilloscope.
Compared with the prior art, the invention has the following beneficial effects:
1. the test function integration level is high, the universality is strong, and the functions and performance indexes of the single-machine power distribution, heater, remote measurement, instruction decoding and initiating explosive device module are comprehensively detected in the debugging, testing and acceptance processes of the single machine of each type of power distribution measurement and control unit;
2. the test automation degree is high, the test efficiency is greatly improved, the parameter setting of the test equipment is automatically completed in the test process, the test instruction is sent and data is returned and collected, the test data is compared, judged and recorded, the abnormal data is reported and recorded, and the equipment acceptance and calibration can be completely completed through self-checking;
3. the standardized design degree is high: all the equipment adopts universal board cards, so that the modularization degree is high, and the maintenance is convenient;
4. the universal testability is strong: the equipment comprises various interface tests of the power distribution measurement and control unit, and is designed according to the maximum envelope, so that the equipment can be used by a plurality of models of single machines;
5. the invention can provide 256 paths of temperature measurement and analog quantity output and can automatically switch, each path can switch and output the analog quantity and the temperature quantity through a plurality of relays, and mutual self-checking can not form interference, thereby effectively saving the equipment cost and reducing the product scale;
6. aiming at the detection of the OC instruction, the invention can detect the error instruction, the missing instruction and the string instruction and the requirement of detecting the rising edge, the falling edge, the pulse width and the amplitude of the instruction, when the optical coupler detects that the instruction enters each path, the A/D and the FPGA are triggered to detect the amplitude and the pulse width of the path, the path is automatically switched to a computer display oscilloscope to display through the channel switching interface, and the indexes of the rising edge, the falling edge and the like of the instruction are further detected.
Drawings
Other features, objects and advantages of the invention will become more apparent upon reading of the detailed description of non-limiting embodiments with reference to the following drawings:
FIG. 1 is a block diagram of the structure of a test apparatus;
FIG. 2 is a CPCI data flow diagram;
FIG. 3 is a diagram of a software system architecture;
FIG. 4 is a functional diagram of the general control software;
FIG. 5 is a software system flow diagram.
Detailed Description
The present invention will be described in detail with reference to specific examples. The following examples will assist those skilled in the art in further understanding the invention, but are not intended to limit the invention in any way. It should be noted that it would be obvious to those skilled in the art that various changes and modifications can be made without departing from the spirit of the invention. All falling within the scope of the present invention.
The overall structure of the testing device of the invention is schematically shown in fig. 1, and mainly comprises a cabinet, an embedded computer, various board cards and a universal instrument, wherein each component module comprises a CPCI bus interface part, the CPCI industrial personal computer test board is connected with the analog load and is connected with a power distribution measurement and control single machine together with a programmable power supply through signal conversion, so that the functions of supplying power to the single machine, providing an OC door instruction, providing an emission instruction, providing 256-path analog telemeasuring, providing an RS422 telemetering serial address signal interface, providing a remote control instruction signal interface, telemetering amount gating output, outputting an OC door instruction, outputting a positive pulse instruction, outputting open-circuit voltage, providing an initiating explosive load, providing a simulated satellite and rocket separation interface, providing test software and the like are realized.
As shown in fig. 2, when the PCI control part of each module is used for instruction sending, instruction detection, analog quantity detection, and digital quantity telemetry setting, the CPU module sends an instruction to the FPGA of each module through the PCI9054, and the instruction is analyzed by the FPGA into a logic digital signal, which is sent to the interface circuit after being driven in an isolated manner. When receiving the digital command of the PCU, the FPGA generates an interrupt signal and informs the CPU module to receive the digital command through the PCI bridge.
Further, the automatic test equipment is to realize an automatic test function, a design software system structure diagram is shown in fig. 3, and the software is divided into main control software, sub-control software 1, sub-control software 2, sub-control software 3, sub-control software 4 and power control.
The master control software is used as the brain of the upper computer software, and sends instructions and obtains data to each sub-control software through TCP/IP communication. Each sub-control software is used as a body of the upper computer software and is responsible for function execution and data uploading of specific modules.
And in physical connection, the master control end software runs on the master control host and is connected to the switch through a network cable, the sub-control software runs on the industrial personal computers, and the industrial personal computers are connected with the switch through the network cable. The program control power supply is also connected to the switchboard through a network cable and directly controlled by the master control software.
The main control software is used for sending instructions to the branch control software, acquiring data of the branch control instructions, and displaying and storing the data and controlling the power supply. The master control software is in an active position in software operation and actively communicates with each sub-control software, so that the master control software operates as a client role.
As shown in fig. 4, the functions of the master control software mainly include configuration loading, network communication, instruction selection sending, state display, data analysis display and storage, power control, and log alarm.
The configuration loading is called when the master control software starts to run, is used for loading various configuration information including instruction names, pulse widths, IP addresses, ports and the like, and realizes the flexibility and reusability of the software through the module. The automatic test function is realized through a configuration file.
The network communication is mainly responsible for the network communication between the main control end and each branch end, and comprises network connection, data sending and data receiving. And after the user selects each instruction on the interface, the instructions are assembled according to a protocol format and then are sent to each sub-control software through a network. In addition, the connection state of network communication needs to be displayed in real time, and the invention adopts an indicator light for marking.
And the instruction selection sending is used for selecting a specific type of instruction, assembling instruction data according to a protocol format and sending the instruction data to corresponding sub-control software. Before the instruction is sent, the system prompts whether to confirm the sending. The types of commands include OC command output, fire follow command output, analog/thermistor output, synchronous/asynchronous 422 output, and the like.
The state display is used for displaying the current connection state with each sub-control software, the connection state of each board card and the power supply and visually displaying the current system connection state.
The data analysis display storage is used for analyzing, displaying and storing data, the analysis content mainly comprises telemetering data, instruction data and states of all sub-control software, the display part comprises control power supply, heater test, initiating explosive device test, voltage current and waveform data, the data storage is used for storing received data, and the storage format is an Access database and a text file.
The power control mainly controls the programmable power supply, the power control module is used for setting the voltage, the current, the overvoltage protection and the overcurrent protection of the programmable power supply and controlling the output of the power supply to be closed, and the power control comprises connection, voltage and current setting and overvoltage and overcurrent setting, and the output control of the programmable power supply can be realized on a software interface.
The log alarm is responsible for operation record prompting and alarming, the log record format is 'time-event source-result' for displaying and storing, the alarm module is used for monitoring a specific module, if the log record format exceeds a set range, a dialog box is popped up, buzzer voice reminding is carried out, and if manual processing is not carried out within a set time, automatic protection is carried out.
The system flow chart is shown in fig. 5, the master control software is started to actively connect with the sub-control software and send instructions to the sub-control software or receive data sent by the sub-control software, the sub-control software is started to passively wait for connection, and after connection is successful, the master control software receives instructions and uploads telemetering and data.
The power distribution measurement and control electronic integrated single-machine automatic test system for the spacecraft is suitable for various satellite single-machine devices, can be completely completed through self-checking when the devices are checked and accepted and calibrated, and improves the test efficiency of the satellite single-machine devices.
In the embodiment, a main control mode and a sub control mode are combined in a software design mode, the software implementation logic is clear and easy to understand, the software has a log function, and the traceability of each data in the working process is realized.
Those skilled in the art will appreciate that, in addition to implementing the systems, apparatus, and various modules thereof provided by the present invention in purely computer readable program code, the same procedures can be implemented entirely by logically programming method steps such that the systems, apparatus, and various modules thereof are provided in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Therefore, the system, the device and the modules thereof provided by the present invention can be considered as a hardware component, and the modules included in the system, the device and the modules thereof for implementing various programs can also be considered as structures in the hardware component; modules for performing various functions may also be considered to be both software programs for performing the methods and structures within hardware components.
The foregoing description of specific embodiments of the present invention has been presented. It is to be understood that the present invention is not limited to the specific embodiments described above, and that various changes or modifications may be made by one skilled in the art within the scope of the appended claims without departing from the spirit of the invention. The embodiments and features of the embodiments of the present application may be combined with each other arbitrarily without conflict.