The content of the invention
The present invention mainly solves the above-mentioned technical problem present in prior art, there is provided command communication simulation systemAnd method.The system and method can carry out communication simulation to the target seeker instruction of polymorphic type multi-protocols, additionally it is possible to analysis in real timeResponse of the target seeker to instruction is replied, and target seeker communication process is tested comprehensively.
The above-mentioned technical problem of the present invention is mainly what is be addressed by following technical proposals:
A kind of command communication simulation system, including:
Signal source, including a target seeker simulator, for for communication unit provide including instruction reply including data it is defeatedEnter;
Command operating and display unit, instruction is solved for showing the instruction sent and received, and according to agreement;
Communication unit, the signal source and command operating and display unit are connected, for caching and transmitting instruction and reply.
Preferably, a kind of above-mentioned command communication simulation system, the communication unit include communication card, the communication boardCard further comprises:
The FPGA programmable arrays being connected by multiple 485 interfaces with signal source, it is connected with the FPGA programmable arraysRAM and pci bus driver.
Preferably, above-mentioned a kind of command communication simulation system, the FPGA programmable arrays in communication unit pass through two-wayThe interface connecting signal source of full duplex 485, the FPGA programmable arrays transmit RAM in data buffer storage to board, sent out by FPGASend and interrupt Request Notices pci bus.
Preferably, a kind of above-mentioned command communication simulation system, the communication unit also include:
Industrial computer, be connected with the pci bus driver, for pci bus driver send DMA interrupt notifications after fromData are taken out on cpci bus.
Preferably, above-mentioned a kind of command communication simulation system, command operating is with display unit according to different signal sourceCommand protocols type, relevant parameter position in configuration file is changed, including:Frame format, verification mode, order parameter;And peopleMachine interactive interface automatically generates corresponding order parameter and sets frame and instruction send button according to configuration file, to instruct intoRow instruction queue operates, and time-count cycle sends instruction or instructing combination in a manner of timer.
A kind of command communication analogy method, including:
Command operating and step display, for generating simultaneously idsplay order, sent and instructed to signal source using communication unit, andReceive and idsplay order is replied;
Data communication steps, for caching and transmitting the instruction of command operating and display and the reply of signal source;
Return phase is instructed, for reception and replying instruction.
Preferably, above-mentioned a kind of command communication analogy method, in the data communication steps, receive command operating with it is aobviousShow the instruction that unit is transmitted by cpci bus, instruction is handled and cached, and then turn to export to signal with 485 agreementsSource, and receive the response return signal that signal source is made to instruction, and handled and cached, and then it is defeated by cpci busGo out to command operating and display unit.
Preferably, above-mentioned a kind of command communication analogy method, in the data communication steps, battle array is may be programmed using FPGARow pass through the interface connecting signal source of two-way full duplex 485, and RAM in data buffer storage to board is transmitted using FPGA programmable arrays,Sent by FPGA and interrupt Request Notices pci bus.
Preferably, above-mentioned a kind of command communication analogy method, command operating and step display, according to different signal sourceCommand protocols type, relevant parameter position in configuration file is changed, including:Frame format, verification mode, order parameter;And peopleMachine interactive interface automatically generates corresponding order parameter and sets frame and instruction send button according to configuration file, to instruct intoRow instruction queue operates, and time-count cycle sends instruction or instructing combination in a manner of timer.
Therefore, the invention has the advantages that:Communication simulation can be carried out to the target seeker instruction of polymorphic type multi-protocols, alsoResponse of the target seeker to instruction can be analyzed in real time to reply, and target seeker communication process is tested comprehensively.
Embodiment:
The present invention is described further below in conjunction with the accompanying drawings.
As shown in Figure 1, a kind of command communication simulation system, the system include signal source 1, communication unit 2 and instruction behaviourMake and display unit 3.
As illustrated, communication unit 2 has the interface of 2 tunnel 485, including FPGA logic cell, DPRAM data buffer storages, workPattern and status register and pci bus driver.
Signal source 1 is connected by cable with the communication card of communication unit 2, and the instruction sent is transmitted from communication unit 2To signal source 1, the replying instruction of measured piece is transmitted to communication unit 2 from signal source 1.Communication card passes through cpci bus and industry controlMachine backboard is connected, and replying instruction is transmitted to command operating and display unit 3, command operating and display unit 3 by cpci busThe instruction sent is transmitted to communication card by cpci bus.
In command communication simulation system, according to the command protocols type of different signal source, command operating and display unitChange relevant parameter position in configuration file, such as the content such as frame format, verification mode, order parameter, human-computer interaction interface according toAccording to configuration file, automatically generate corresponding order parameter and frame and instruction send button are set, and instruction team can be carried out to instructionRow operation, time-count cycle sends instruction or instructing combination in a manner of timer, and user needs to be operated according to testing process, sends outThe instruction sent is transmitted to the communication card of communication unit, the passage of communication card two-way 485 by cpci bus completes dataFull-duplex communication, RAM in data buffer storage to board is transmitted, sent by FPGA and interrupt application, going to 485 after verification verification connectsMouthful, transmit to signal source, complete instruction and send operation.Signal source upon receipt of the instructions, responds, replying instruction transmit toCommunication card caches, and is checked and verified by FPGA logic cell, and sends interruption application, and command operating connects in real time with display unitThe data command that cpci bus uploads is received, is parsed, instruction is understood, the parameter information that will wherein include according to agreementShown and draw real-time curve.This communication simulation mode, it is only necessary to change relevant position in configuration file and can be achieved respectivelyCommand protocols, are capable of the methods of unified instruction analogue communication comprehensively, and auto test flow can be set in test process,Make user is convenient to obtain command communication simulation test result, comprehensive assess and analysis is carried out to the performance of measured piece.
Specific embodiment described herein is only to spirit explanation for example of the invention.Technology belonging to the present invention is ledThe technical staff in domain can be made various modifications or supplement to described specific embodiment or be replaced using similar modeGeneration, but without departing from the spiritual of the present invention or surmount scope defined in appended claims.