Summary of the invention
The object of the present invention is to provide a kind of method of testing and system of the equivalent satellite power system based on distributed structure/architecture, make tester need not follow that testing equipment goes from place to place, multiple tester can test satellite power supply simulator simultaneously, can manage concentratedly test data simultaneously.
For solving the problems of the technologies described above, embodiments of the present invention provide a kind of test macro of the equivalent satellite power system based on distributed structure/architecture, comprising:
Client and service end, described client is connected by network with described service end;
Described client is used for the service data of real time monitoring equivalence satellite power system, and sends test instruction to described service end;
The described test instruction that described service end sends for receiving described client, and according to described test instruction, described equivalent satellite power system is tested, and test data is sent to described client;
The test data that described client also sends for receiving and process described service end.
Embodiments of the present invention provide a kind of method of testing based on above-mentioned test macro, comprising:
Described client sends test instruction to described service end;
Described service end receives the described test instruction that described client sends, and according to described test instruction, described equivalent satellite power system is tested, and the test data that test is obtained sends to described client;
Described client is also processed the test data that described service end sends.
Embodiment of the present invention in terms of existing technologies, test macro of the present invention puts together the each device equivalence in satellite power system to be put in a special integrated cabinet, the service end that in rack, operation is tested satellite power system, in the time of test, tester sends test instruction by client to service end, by service end, test data is returned to client, process for client, in the time of test, multiple testers can be to satellite power supply and distribution equipment, simulator and electronic load are tested simultaneously, can manage concentratedly test data simultaneously.The test macro of the equivalent satellite power system of this distributed structure/architecture is based on PXI (PCI eXtensions for Instrumentation, towards the PCI expansion of instrument system) technology, make system can adopt the extensive interlocking frame of SCOUT (PXI magnanimity interconnection system) to realize freely distributing of star ground interface adaptation and device interior signal, satellite running client on far-end PC, by this distributed structure/architecture, autgmentability when satellite power system is carried out to ground test is strong, there is certain versatility, also can realize the object that tester and testing equipment are separated simultaneously, and test data is concentrated in service end, mail to together with the test data of master control and other subsystem of satellite and manage concentratedly by SCOE agreement simultaneously.
Described client is connected by Ethernet with described service end.
Client and service end, by Ethernet, are used ICP/IP protocol to communicate.
Preferably, described client comprises that test macro man-machine interface, test macro client support storehouse and storehouse is supported in client modules communication, and storehouse is supported in described client modules communication, described test macro client supports storehouse and described test macro man-machine interface is connected successively;
Wherein, described test macro man-machine interface is carried out real-time supervision for tester to the test data of described equivalent satellite power system, and described test macro man-machine interface is also sent described test instruction for described tester;
Described test macro client supports storehouse and is used for encapsulating described test instruction, and described test macro client supports storehouse also for resolving the test data receiving from described service end, and described test data is uploaded to described test macro man-machine interface;
Described client modules communication is supported storehouse for encapsulating the communication function between described client and described service end, call for described test macro man-machine interface, support to the first module communication of described service end the test data that storehouse sends test instruction and receives described service end passback.
When the operation of client man-machine interface program, support storehouse by loading test macro client, support by routine call test macro client the application programming interfaces that storehouse provides, realize communication and the data interaction in test macro man-machine interface and test macro client support storehouse.
Preferably, described service end comprises that test macro server, test macro service end support storehouse and the first module communication supports storehouse, and described test macro server, described test macro service end support storehouse and described the first module communication support storehouse is connected successively;
Wherein, described test macro server is used for calling described test macro service end and supports storehouse and described service end communication and support storehouse and described equivalent satellite power system is tested and transmitted described test data;
Described test macro service end supports storehouse and comprises test macro device support storehouse, and described test macro service end supports storehouse and is used for calling described test macro device support storehouse and described equivalent satellite power system tested and transmitted described test data;
Described the first module communication supports storehouse for encapsulating the communication function between described client and described service end, receives described client modules communication and supports the test instruction of storehouse transmission and send test data to described client.
When the operation of test macro server, support storehouse by loading test macro service end, support by routine call test macro service end the application programming interfaces that storehouse provides, realize communication and the data interaction in test macro server and test macro service end support storehouse.
Preferably, described test macro device support storehouse comprises that supplying distribution to support storehouse, simulator support storehouse, source of stable pressure support storehouse, serial ports support storehouse, master control communication support storehouse and the second module communication supports storehouse; The described distribution that supplies supports storehouse for the equivalent of the apparatus transmission test instruction to for distribution test and receives test data; Described simulator supports storehouse and sends test instruction and receive test data for the equivalent of the apparatus to satellite power supply simulator; Described source of stable pressure supports storehouse and sends test instruction and receive test data for the equivalent of the apparatus to source of stable pressure; Described serial ports supports storehouse for sending test instruction and receive test data to the equivalent of the apparatus of serial ports test; Described master control communication is supported storehouse and is connected with master control by described the second module communication support storehouse; Described master control communication is supported storehouse and is carried out communication by described the second module communication support storehouse and master control.
In service end, the equipment such as corresponding satellite power supply and distribution equipment, simulator, electronic load and serial ports is set up the support storehouse of its correspondence, thereby complete test by the mode that sends test instruction and reception test data to support storehouse corresponding to each equipment, and can test the said equipment, also can manage concentratedly test data simultaneously. simultaneouslyIn addition, in this test macro, also comprise that storehouse is supported in a master control communication and the second module communication supports storehouse, this master control communication is supported storehouse and is connected with master control by the second module communication support storehouse, for test data is sent to master control, master control receives test data, and adjudicate, scheduling other system is worked accordingly.
Described test macro server comprises hardware interface and software interface, and described hardware interface is for being configured to hardware platform by the configuration parameter of the described client of described test macro server reception; Described software interface is for transmitting the remote control commands of described test data and described client.
The configuration parameter of the described client that test macro server can be received by hardware interface is configured in hardware platform; Can transmitting test data and client remote control commands by software interface, and the quantity of each hardware interface and software interface can expand, the popularization to whole test macro and universal providing convenience.
Embodiment
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing, the embodiments of the present invention are explained in detail.But, persons of ordinary skill in the art may appreciate that in the each execution mode of the present invention, in order to make reader understand the application better, many ins and outs are proposed.But, even without these ins and outs and the many variations based on following execution mode and amendment, also can realize the each claim of the application technical scheme required for protection.
First embodiment of the invention provides a kind of test macro of the equivalent satellite power system based on distributed structure/architecture, this system adopts the tactic pattern of modular design philosophy, MVC (Model View Controller, model-view-controller) layering to design.
The test macro of the equivalent satellite power system based on distributed structure/architecture of the present invention is to realize with software programming and with the mode of combination of hardware.In embodiments of the invention, be all, taking this system, the test of satellite power system Satellite power supply simulator is illustrated to how this system works as example, statement hereby.
Concrete, as shown in Figure 1, this system comprises: client and service end, and client is connected by network with service end; Example, client can be connected by Ethernet with service end, communicates by ICP/IP protocol.In the time running into the control request application of client, server is connected by Ethernet with it, connects after foundation, and server is the operational order from client by response.
Client is used for the service data of real time monitoring equivalence satellite power system, and sends test instruction to service end; The test instruction that service end sends for receiving client, and according to test instruction, equivalent satellite power system is tested, and test data is sent to client; The test data that client also sends for receiving and process service end.
Concrete, client refers to the C in software C (Client)/S (Server) structure, the namely software of client.Service end refers to the S in software C/S structure, the namely software of service end.C/S structure, be the client-server structure that everybody knows, it is software system architecture, can make full use of the advantage of two ends hardware environment by it, task is reasonably allocated to Client end and Server brings in realization, also very low of the communication-cost of system.
Further, as shown in Figure 2, client comprises that test macro man-machine interface, test macro client support storehouse and storehouse is supported in client modules communication, and storehouse is supported in client modules communication, test macro client supports storehouse and test macro man-machine interface is connected successively.Client operates on far-end PC, and client software is sent to server by Ethernet by configuration parameter, and server is configured in hardware platform by hardware interface after receiving.Hardware interface comprises the interface of each board, interface, the interface of CAN communication etc. of ethernet communication.
Wherein, test macro man-machine interface is carried out real-time supervision for tester to the test data of equivalent satellite power system; Test macro man-machine interface is also sent test instruction for tester.Test macro man-machine interface is the main man-machine interface that tester carries out satellite power supply test, this interface adopts LABVIEW (Laboratory Virtual Instrumentation Engineering Workbench, laboratory virtual instrument engineering platform) software designs, tester's every test data to satellite power system in this man-machine interface is carried out real-time supervision, meanwhile, tester also can utilize this software to send various test instructions power-supply system to be carried out to the test of each side.
Test macro client supports storehouse for packaging and testing instruction, and according to test instruction, satellite power supply simulator is tested.Test macro client supports storehouse also for resolving the test data receiving from service end, and test data is uploaded to test macro man-machine interface.That is to say, test macro client support storehouse has encapsulated with server carries out mutual various test instructions, the processing of test macro man-machine interface is resolved and be uploaded to the data that receive from service end simultaneously.
Client modules communication is supported storehouse for the communication function between canned software module, offers other module call in the mode of shared library.When specific implementation, realize by software, the important component part of the software in storehouse is supported in client modules communication.The mode of setting up is as follows: adopt programming language C to write the source code in communication support storehouse, the form of utilizing compiler compiling to become dynamic link library exists.In main program operation, complete the communication between module by loading corresponding dynamic link library.
Further, as shown in Figure 3, service end comprises that test macro server, test macro service end support storehouse and the first module communication supports storehouse, and test macro server, test macro service end support storehouse and the first module communication support storehouse is connected successively.
The present invention for convenience of description, can be by test macro server referred to as server, statement hereby.
Wherein, test macro server is used for calling test macro service end and supports storehouse and service end communication and support storehouse equivalent satellite power system is tested and transmitting test data.
Test macro service end supports storehouse and comprises test macro device support storehouse, and test macro service end support storehouse is used for calling test macro device support storehouse equivalent satellite power system is tested and transmitting test data.
The first module communication supports storehouse for encapsulating the communication function between client and service end, receives client communication and supports the test instruction of storehouse transmission and send test data to client.
In the time of concrete Design of Test System, can adopt C or C Plus Plus programming.As shown in Figure 4, in figure, solid line representational level relation, represents communication streams with the dotted line of arrow to the fundamental diagram of the test macro of this equivalent satellite power system based on distributed structure/architecture, represents the cut-off rule of client and service end without the vertical dotted line of arrow.
Service end operates in the Zero greeve controller of integrated cabinet, service end comprises test macro server, test macro server connects solar battery array simulator device (replacing the primary power source on satellite) by communication interface, solar battery array simulator connects load by electrical connection, forms the loop of an energy flow.
Test macro server provides a basic configuration and has controlled man-machine interface, is responsible for calling test macro service end and supports storehouse and service end communication and support storehouse equivalent satellite power system is tested and transmitting test data.In addition, it should be noted that, the interface of test macro server is divided into hardware interface and software interface two classes, and test macro server comprises hardware interface and software interface, and hardware interface is for being configured to hardware platform by the configuration parameter of the client of test macro server reception; Software interface is for transmitting test data and client remote control commands.Hardware interface comprises the interface of each board, interface, the interface of CAN communication etc. of ethernet communication.Software interface comprises the transmit port of the test data of service end, the command port of client Long-distance Control.The quantity of hardware interface can need to be expanded according to actual function, in addition, also can carry out adaptive expansion to the corresponding software interface of this hardware interface.
Test macro service end supports storehouse and comprises test macro device support storehouse and the first module communication support storehouse.Complete the functions such as the program control and data acquisition to hardware device by test macro device support storehouse.Support storehouse by the first module communication, complete the communication between each module.Test macro device support storehouse also comprises that storehouse is supported in master control communication and the second module communication supports storehouse, and master control communication is supported storehouse and is connected with master control by the second module communication support storehouse; Master control communication is supported storehouse and is carried out communication by the second module communication support storehouse and master control.Master control communication is supported storehouse and has been encapsulated the function of carrying out communication by SCOE (testing equipment) agreement between satellite power system and master control.Master control is that whole satellite simulation is tested central control system in large system, and the test macro of equivalent satellite power system, in the time that needs access whole satellite simulation and test large system, needs and turn-key system carries out communication, accepts the scheduling of turn-key system.Master control connects other system, example, can connect heat control system, heat control system utilizes the test data in master control, carries out the adjusting of temperature.
Test macro service end supports storehouse and comprises test macro device support storehouse, and test macro service end support storehouse is used for calling test macro device support storehouse equivalent satellite power system is tested and transmitting test data.Test macro device support storehouse comprises for distribution support storehouse, simulator support storehouse, source of stable pressure support storehouse, serial ports support storehouse, master control communication supports storehouse and the second module communication support storehouse; Supporting storehouse for distribution support storehouse, simulator support storehouse, source of stable pressure support storehouse and serial ports support storehouse with database is connected, database supports storehouse and is connected with database, be used for calling data storehouse, be respectively for distribution support storehouse, simulator support storehouse, source of stable pressure support storehouse and serial ports support storehouse and provide for power dispatching data storehouse, simulator database, source of stable pressure database and serial data storehouse.Database supports storehouse and has encapsulated the function to database manipulation.Database supports the dynamic link library that storehouse is access and operating database.Software supports storehouse by loading of databases and removes access and operating database.
Support storehouse and encapsulated respectively the test function for distribution, simulator, source of stable pressure, serial ports to power supply for distribution support storehouse, simulator support storehouse, source of stable pressure support storehouse, serial ports.Concrete, support storehouse for sending test instruction and receive test data to the equivalent of the apparatus that supplies distribution test for distribution.Simulator supports storehouse and sends test instruction and receive test data for the equivalent of the apparatus to satellite power supply simulator; Source of stable pressure supports storehouse and sends test instruction and receive test data for the equivalent of the apparatus to source of stable pressure; Serial ports supports storehouse for sending test instruction and receive test data to the equivalent of the apparatus of serial ports test.
In addition, simulator supports storehouse and also comprises that System self-test submodule, pattern arrange that submodule, parameter arrange submodule, protection arranges submodule, curve detection submodule and data acquisition submodule; Source of stable pressure supports storehouse and also comprises that pattern arranges that submodule, parameter arrange submodule, protection arranges submodule and data acquisition submodule; Support storehouse for distribution and also comprise data acquisition submodule.Wherein, System self-test submodule, for simulator is carried out to self-inspection, ensures the normal work of simulation; Pattern arranges submodule for arranging and switch the mode of operation of simulator; Parameter arranges submodule for arranging and revise the running parameter of simulator or source of stable pressure; Protection arranges submodule and for ensureing, the parameter of simulator or source of stable pressure is arranged in rational scope; The curve that each parameter when curve detection submodule is worked for detection of simulator forms, and according to the operating state of the current simulator of tracing analysis; Data acquisition submodule is for gathering simulator or source of stable pressure or the data for distribution device.
Support the software that also comprises PXI controller, digital quantity and switching value board in storehouse for distribution; Simulator supports in storehouse and also comprises simulator hardware device and electronic load hardware device; Source of stable pressure supports in storehouse and also comprises programmable power supply hardware device.Software, simulator hardware device, electronic load hardware device and the programmable power supply hardware device of PXI controller, digital quantity and switching value board are integrated on integrated hardware platform, wherein, simulator hardware device is that modular solar battery array simulator hardware device, electronic load hardware device and programmable power supply hardware device are all modular implementation.In the course of the work, hardware platform is sent to server software by monitoring information and reception data by driving on layer, server software passes back to client software by Ethernet by Monitoring Data again, and the situation of finally monitoring is presented on the software interface of client terminal with reception data.
It should be noted that, in test macro man-machine interface, can also comprise main interface, supply distribution interface, simulator interface and source of stable pressure interface.Wherein, adopt LabVIEW software component visual for distribution man-machine interface for distribution interface.Comprise the element such as button and figure.The effect of button is to allow tester complete the setting to some instructions in Power entry module by the button of clicking on interface.The effect of graphic element is by figure, confession power dispatching data to be flowed, and comprises analog quantity, digital quantity, quantity of state etc.Show intuitively by the graphics mode such as indicator light, curve chart.
Simulator interface adopts the visual simulator test of LabVIEW software component man-machine interface.Comprise that the element such as button and figure forms.The effect of button is to allow tester complete the setting to some instructions in emulation module by the button of clicking on interface.The effect of graphic element is the data flow to simulator by figure, comprises the quantity of states such as analog quantity, power on/off such as current/voltage etc.Show intuitively by the graphics mode such as indicator light, curve chart.
Source of stable pressure interface adopts the visual source of stable pressure test of LabVIEW software component man-machine interface.Comprise that the element such as button and figure forms.The effect of button is to allow tester complete the setting to some instructions in source of stable pressure module by the button of clicking on interface.The effect of graphic element is the data flow to source of stable pressure by figure, comprises the analog quantitys such as current/voltage, the mode of operation of source of stable pressure, the quantity of states such as power on/off.Show intuitively by the graphics mode such as indicator light, curve chart.
The operation principle of this test macro is: client sends test instruction to service end; Service end receives the test instruction that client sends, and according to test instruction, equivalent satellite power system is tested, and the test data that test is obtained sends to client; Client is also processed the test data that service end sends.Test macro man-machine interface loads test macro client and supports storehouse, supports by routine call test macro client the application programming interfaces that storehouse provides, and supports storehouse send to the first module communication to support storehouse test instruction by test macro client.The first module communication supports storehouse and receives the test instruction that client modules communication support storehouse sends, and test instruction is sent to test macro server by the application programming interfaces that provide by test macro service end support storehouse; Test macro server loads test macro service end and supports storehouse, support by routine call test macro service end the application programming interfaces that storehouse provides, test instruction is sent to test macro device support storehouse, the equivalent satellite power system in test macro device support storehouse is tested; Storehouse is supported in test macro device support storehouse application programming interfaces by test macro service end send to the first module communication to support storehouse test data; The first module communication supports storehouse, by network, test data is sent to client.
From the above mentioned, the test macro of the equivalent satellite power system of a distributed structure/architecture has been built in this invention, successfully sets up that a set of function is complete, performance good, automaticity is high, autgmentability is strong, has the test macro of the ground equivalence satellite power system of certain versatility.
Embodiment of the present invention in terms of existing technologies, test macro of the present invention puts together the each device equivalence in satellite power system to be put in a special integrated cabinet, the service end that in rack, operation is tested satellite power system, in the time of test, tester sends test instruction by client to service end, by service end, test data is returned to client, process for client, in the time of test, multiple testers can be to satellite power supply and distribution equipment, simulator and electronic load are tested simultaneously, can manage concentratedly test data simultaneously.The test macro of the equivalent satellite power system of this distributed structure/architecture is based on PXI technology, make system can adopt the extensive interlocking frame of SCOUT to realize freely distributing of star ground interface adaptation and device interior signal, satellite running client on far-end PC, by this distributed structure/architecture, autgmentability when satellite power system is carried out to ground test is strong, there is the problem of certain versatility, also can realize the object that tester and testing equipment are separated simultaneously, and test data is concentrated in service end, mail to together with the test data of master control and other subsystem of satellite and manage concentratedly by SCOE agreement simultaneously.
In addition, for outstanding innovation part of the present invention, in present embodiment, the unit not too close with solving technical problem relation proposed by the invention do not introduced, but this does not show not exist in present embodiment other unit.
The second execution mode of the present invention provides a kind of method of testing of the equivalent satellite power system based on distributed structure/architecture, be applied in the test macro of the equivalent satellite power system based on distributed structure/architecture described in the first execution mode, as shown in Figure 5, the method comprises:
501, client sends test instruction to service end.
Concrete, test macro man-machine interface loads test macro client and supports storehouse, supports by routine call test macro client the application programming interfaces that storehouse provides, and supports storehouse send to the first module communication to support storehouse test instruction by test macro client.
502, service end receives the test instruction that client sends, and according to test instruction, equivalent satellite power system is tested, and test data is sent to client.
The first module communication supports storehouse and receives the test instruction that client modules communication support storehouse sends, and test instruction is sent to test macro server by the application programming interfaces that provide by test macro service end support storehouse; Test macro server loads test macro service end and supports storehouse, support by routine call test macro service end the application programming interfaces that storehouse provides, test instruction is sent to test macro device support storehouse, the equivalent satellite power system in test macro device support storehouse is tested; Storehouse is supported in test macro device support storehouse application programming interfaces by test macro service end send to the first module communication to support storehouse test data; The first module communication supports storehouse, by network, test data is sent to client.
503, client and process service end send test data.
Embodiment of the present invention in terms of existing technologies, each device equivalence in satellite power system is put together and is put in a special integrated cabinet, the service end that in rack, operation is tested satellite power system, in the time of test, tester sends test instruction by client to service end, by service end, test data is returned to client, process for client, in the time of test, multiple testers can test satellite power supply and distribution equipment, simulator and electronic load simultaneously, can manage concentratedly test data simultaneously.The test macro of the equivalent satellite power system of this distributed structure/architecture is based on PXI technology, make system can adopt the extensive interlocking frame of SCOUT to realize freely distributing of star ground interface adaptation and device interior signal, satellite running client on far-end PC, by this distributed structure/architecture, autgmentability when satellite power system is carried out to ground test is strong, there is certain versatility, also can realize the object that tester and testing equipment are separated simultaneously, and test data is concentrated in service end, mail to together with the test data of master control and other subsystem of satellite and manage concentratedly by SCOE agreement simultaneously.
It should be noted that, the electric interfaces that the method for testing in the present invention and test macro are applicable to the light current on satellite meets other modules of Simulation with I O (Input-Output), digital I/O, this mode of bus communication.
It is worth mentioning that, the involved concrete operation principle narration in can frame of reference embodiment in the execution mode about method, the present invention does not repeat them here.
Persons of ordinary skill in the art may appreciate that the respective embodiments described above are to realize specific embodiments of the invention, and in actual applications, can do various changes to it in the form and details, and without departing from the spirit and scope of the present invention.