CN108333566A - A kind of portable radar test system and test method based on ZYNQ - Google Patents

A kind of portable radar test system and test method based on ZYNQ Download PDF

Info

Publication number
CN108333566A
CN108333566A CN201810124036.9A CN201810124036A CN108333566A CN 108333566 A CN108333566 A CN 108333566A CN 201810124036 A CN201810124036 A CN 201810124036A CN 108333566 A CN108333566 A CN 108333566A
Authority
CN
China
Prior art keywords
data
programmable logic
processing unit
logic cells
frame data
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.)
Granted
Application number
CN201810124036.9A
Other languages
Chinese (zh)
Other versions
CN108333566B (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.)
Harbin Institute of Technology
Original Assignee
Harbin Institute of Technology
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 Harbin Institute of Technology filed Critical Harbin Institute of Technology
Priority to CN201810124036.9A priority Critical patent/CN108333566B/en
Publication of CN108333566A publication Critical patent/CN108333566A/en
Application granted granted Critical
Publication of CN108333566B publication Critical patent/CN108333566B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S7/00Details of systems according to groups G01S13/00, G01S15/00, G01S17/00
    • G01S7/02Details of systems according to groups G01S13/00, G01S15/00, G01S17/00 of systems according to group G01S13/00
    • G01S7/40Means for monitoring or calibrating

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Position Fixing By Use Of Radio Waves (AREA)

Abstract

A kind of portable radar test system and test method based on ZYNQ, are related to radar test field.The present invention is in order to which the real-time of the compatibility and Communication processing that solve the problems, such as existing Radar Measurement System is poor.Serial communication module, for receiving the GPS data that GPS device is sent out and the inertial guidance data that inertial navigation equipment is sent out, main control module is transmitted the data to, is additionally operable to send the A frame data that main control module is sent out to tested radar, and receive and be tested the B frame data that radar returns, data are reached into main control module;It is additionally operable to receive the recurrent pulse that main control module generates, and is sent to tested radar, receive and be tested the telemetry that radar returns;Main control module carries out solution and is counted as A frame data or simulation A frame data, send A frame data after the recurrent pulse of setting reaches, be additionally operable to generate recurrent pulse, be additionally operable to receive B frame data and telemetry respectively for receiving GPS data and inertial guidance data.It is used for radar test.

Description

A kind of portable radar test system and test method based on ZYNQ
Technical field
The present invention relates to a kind of portable radar test system and test method based on ZYNQ.Belong to radar test neck Domain.
Background technology
The content and range of radar test are very extensive, and Radar Measurement System is developed so far, development course experienced from Manual test, the universal test stage of automatic test till now, the design method of generalization module is increasingly becoming mainstream.
Radar real-time communication processing is to realize one of the important means of radar test, through radar from developing delivery Using until it is final it is retired during the entire process of, be that radar ensures that design objective meets the requirements and use process in the design phase The middle important means for carrying out working state monitoring, for ensuring the reasonability of Radar Design, ensureing radar and its place system Function realization has great importance.
In order to meet serial communication, data calculation and the data storage requirement during radar test, Radar Measurement System The design scheme of PXI embedded controller+FPGA boards is mostly used, as shown in Figure 1.
In Fig. 1, the serial data that FGPA boards are used to receive the serial data of inertial navigation and GPS and radar equipment is sent out, Embedded controller is realized by PXI buses and is interacted with the communication of FPGA, and is resolved to data, storage processing.PXI cabinets Bulkiness to be test make troubles, the real-time performance of simultaneous communications processing limited by the characteristic of Windows operating system and It is difficult to further increase.
Invention content
The present invention is in order to which the real-time of the compatibility and Communication processing that solve the problems, such as existing Radar Measurement System is poor. A kind of portable radar test system and test method based on ZYNQ are now provided.
A kind of portable radar based on ZYNQ tests system, it includes main control module and serial communication module,
Main control module using ZYNQ processing chips realize,
Serial communication module will for receiving the GPS data that GPS device is sent out and the inertial guidance data that inertial navigation equipment is sent out The data transmission is additionally operable to send the A frame data that main control module is sent out to tested radar, and receive tested to main control module The B frame data are reached main control module by the B frame data that radar returns;It is additionally operable to receive the period arteries and veins that main control module generates The pulse is sent to tested radar, and receives and be tested the telemetry that radar returns by punching, is additionally operable to receive parameter initialization letter Number parameter initialization is carried out to GPS device and inertial navigation equipment;
Main control module, for receiving GPS data and inertial guidance data, to the GPS data and inertial guidance data that receive respectively into Row resolves composition A frame data or simulation A frame data, sends out the A frame data after the recurrent pulse of setting reaches It goes, is additionally operable to generate recurrent pulse, be additionally operable to receive the B frame data and telemetry that serial communication module is sent out, to realize To being tested the test of radar, it is additionally operable to serially communication module and sends parameter initialization signal.
A kind of portable radar test method based on ZYNQ, the method are applied under the pattern of laboratory, the method It is that the portable radar based on ZYNQ tests the described method comprises the following steps for system realization according to a kind of:
Step 1: setting time thread and main thread in processing unit, secondary thread use real-time scheduling strategy, main thread to adopt With non real-time scheduling strategy, it is first determined whether establish programmable logic cells and processing unit establish between communication link It connects, if it is, step 2 is executed, if it is not, then executing step 4;
Step 2: PXI embedded controllers start processing unit, and the FIFO of programmable logic cells is reset, is executed Step 3;
Step 3: judging whether to stop the communication connection between programmable logic cells and processing unit foundation manually, such as Fruit is to then follow the steps four, if it is not, then executing step 5;
Step 4: closing the communication between programmable logic cells and processing unit foundation, recurrent pulse triggering is cancelled;
Step 5: processing unit setting recurrent pulse and simulation A frame data, judge whether send when recurrent pulse reaches A frame data, if it is, step 6 is executed, if it is not, then executing step 7;
Step 6: transmitting A frame data to programmable logic cells, A frame data are sent to by synchronous RS485 communication modules Tested radar, connects circuit by PCI Bridge and is transferred to PXI embedded controllers, and real-time display simultaneously stores A frame data, at this point, data pass It passs and storing process is completed in the secondary thread of processor, in a dormant state, it is single that main thread then occupies processing to secondary thread after the completion Elementary time piece completes interface parameter and refreshes display, executes step 7;
Step 7: judging whether programmable logic cells receive the B frame data of tested radar output, if it is, executing Step 8, if it is not, then executing step 9;
Step 8: programmable logic cells receive B frame data, which by PCI Bridge connects circuit, and to be transferred to PXI embedded Controller shows related data content and stores, at this point, B frame data transmit and storing process is completed in the secondary thread of processor, In a dormant state, main thread then occupies processing unit timeslice and completes interface parameter refreshing display secondary thread, executes after the completion Step 9;
Step 9: judge whether processing unit receives whole data, if it is, step 4 is executed, if it is not, then Execute step 3.
A kind of portable radar test method based on ZYNQ, the method are applied under outer field mode, and the method is It is realized, be the described method comprises the following steps according to a kind of portable radar test system based on ZYNQ:
Setting time thread and main thread in step 1, processing unit, secondary thread use real-time scheduling strategy, main thread to adopt With non real-time scheduling strategy, it is first determined whether establish programmable logic cells and processing unit establish between communication link It connects, if so, 2 are thened follow the steps, if not, thening follow the steps 4;
Step 2 starts processing unit, and the FIFO of programmable logic cells is reset, and executes step 3;
Step 3 judges whether the manual communication connection stopped between programmable logic cells and processing unit foundation, if It is to then follow the steps 4, if not, thening follow the steps 5;
Communication between step 4, closing programmable logic cells and processing unit foundation;
Step 5 judges whether programmable logic cells receive the inertial guidance data that inertial navigation equipment is sent out, if it is, holding Row step 6, if not, thening follow the steps 7;
Step 6, programmable logic cells receive inertial guidance data and pass to processing unit, by processing unit completion resolving and more New correlation global variable parameter, calls global variable result to generate A frame data, and carry out data storage, data transfer, resolve with And storing process is completed in the secondary thread of processor, it is aobvious that main thread then occupies the completion interface parameter refreshing of processing unit timeslice Show, executes step 8;
Step 7, secondary thread suspend mode execute step 10;
Step 8 judges whether programmable logic cells receive the GPS data that GPS device is sent out, if it is, executing Step 9, if not, thening follow the steps 10;
Step 9, programmable logic cells receive the GPS data that GPS device is sent out, and complete to resolve, and update correlation is global to be become Parameter is measured, and carries out data storage, data transfer, resolving, storing process are completed in the secondary thread of processor, after the completion secondary thread In a dormant state, main thread then occupies processing unit timeslice and completes interface parameter refreshing display, executes step 10;
Step 10 judges whether programmable logic cells receive the B frame data of tested radar output, if it is, executing Step 11, if not, thening follow the steps 12;
Step 11, programmable logic cells receive B frame data, by the secondary thread of the data transfer to processing unit and deposit Storage, in a dormant state, main thread then occupies processing unit timeslice and completes interface parameter refreshing display secondary thread after the completion;
Step 12 judges whether processing unit receives whole data, if so, 4 are thened follow the steps, if it is not, then Execute step 3.
Beneficial effects of the present invention are:
A kind of portable radar test system based on ZYNQ of the application gives full play to the framework advantage of ZYNQ chips, The programmable logic cells of ZYNQ realize that serial communication logic, PXI bus communications logic and HDMI video signal export logic, place Unit is managed for Peripheral Interfaces such as carry Micro USB, SD card, UART, Ethernet interfaces, and transplants built-in Linux operation system System is run the application software developed based on Qt and realizes order control, and programmable logic cells and processing unit pass through AXI DMAIP Core and customized AXI4 buses peripheral hardware carry out the communications of data and quantity of state.
There are two types of operating modes for the application tool, can both completely disengage cabinet, embedded controller autonomous working, well Portability and real-time performance are taken into account;Chip is connect but also with PCI Bridge, PXI boards, cooperation PXI cabinets, embedded control can be used as Device work processed, has two kinds of operating modes, substantially increases switching energy of the system under the two kinds of environment in laboratory and outer field mode Power.
The application uses the modularized design of three level stack, three ply board card that can be individually replaced change according to design requirement Into, cope with the different test requests of different radar models, be easy to the later stage upgrading, Function Extension.
The testing system software of the application needle is simultaneously using the Real-Time Scheduling Police of multithreading, to built-in Linux EXT4 file system has carried out depth customization optimization, substantially increases the read-write efficiency of file I/O, and the system of the application can be Realize that transmitting-receiving, resolving, storage and the display of multi-path serial data, the speed of service are fast in the 10ms periods;
The application realizes the file-sharing of built-in Linux and PC machine using network interface, can not be powered off in embedded system In the case of realize the iteratively faster of software code, application program updated, greatly improve Embedded software development efficiency.
Description of the drawings
Fig. 1 is the principle schematic of existing Radar Measurement System;
Fig. 2 is a kind of principle signal of portable radar test system based on ZYNQ described in specific implementation mode one Figure;
Fig. 3 is the structural schematic diagram of three pieces of boards;
Fig. 4 is real-time communication flow chart under the pattern of laboratory;
Fig. 5 is real-time communication flow chart under outer field mode;
Fig. 6 is a kind of portable radar test systematic difference software module division block diagram based on ZYNQ;
Fig. 7 is the network interface communication scheme serviced based on Samba.
Specific implementation mode
Specific implementation mode one:Present embodiment is illustrated with reference to Fig. 2, one kind described in present embodiment is based on ZYNQ Portable radar test system, it includes main control module and serial communication module,
Main control module using ZYNQ processing chips realize,
Serial communication module will for receiving the GPS data that GPS device is sent out and the inertial guidance data that inertial navigation equipment is sent out The data transmission is additionally operable to send the A frame data that main control module is sent out to tested radar, and receive tested to main control module The B frame data are reached main control module by the B frame data that radar returns;It is additionally operable to receive the period arteries and veins that main control module generates The pulse is sent to tested radar, and receives and be tested the telemetry that radar returns by punching, is additionally operable to receive parameter initialization letter Number parameter initialization is carried out to GPS device and inertial navigation equipment;
Main control module, for receiving GPS data and inertial guidance data, to the GPS data and inertial guidance data that receive respectively into Row resolves composition A frame data or simulation A frame data, sends out the A frame data after the recurrent pulse of setting reaches It goes, is additionally operable to generate recurrent pulse, be additionally operable to receive the B frame data and telemetry that serial communication module is sent out, to realize To being tested the test of radar, it is additionally operable to serially communication module and sends parameter initialization signal.
In present embodiment, setting PCI Bridge connects circuit in the serial communication module of the application, and PCI Bridge connects circuit for connecting Connect PXI cabinets, simulation laboratory's test and debugging environment;When being not connected to PXI cabinets, the application is applied to field testing and debugs ring Border.
The main control module of the application includes programmable logic cells and processing unit, and programmable logic cells are realized serial logical Interrogate logic, PXI bus communications logic and HDMI peripheral hardware control logics, processing unit pendant carry Micro USB, SD card, UART, The Peripheral Interfaces such as Ethernet interface, and the application software under built-in Linux is run, it can realize autonomous working, programmable logic The communication for carrying out data and quantity of state between unit and processing unit by AXI DMAIP cores and customized AXI4 buses peripheral hardware passes It is defeated, realize that the order to data transmit-receive, resolving, storage, display controls;Serial communication module on the one hand realize and inertial navigation, GPS and The serial communication interface of radar equipment accomplishes all standing of hardware interface type and communication protocol, and can be according to debugging efforts Actual conditions carry out control switching, be on the other hand loaded with PCI Bridge and connect chip, so that test system is can be used as PXI boards, match PXI cabinets, embedded controller work are closed, to have two kinds of operating modes;Functional interface module includes mainly Micro The function and configurations interface such as USB, Ethernet, UART, HDMI is the test and debugging of the peripheral hardwares such as key mouse, display and system Necessary interface is provided.
Application software carries out exploitation design based on Qt, and main control module is from level from being driving layer, functional layer down to high score And application layer, and include multiple modules in every layer, in application layer in testing system software design the division of module mainly to survey Test system function is foundation, as shown in Figure 6.
(1) layer Software for Design is driven
In this application, driving layer software is mainly by the driving of AXI_DMA IP kernels and the self-defined peripheral hardware driving of AXI4 buses etc. Composition, groundwork flow are:It opens device file-and operation-pass hull closure file is written and read to device file.
(2) functional layer Software for Design
Functional layer software is the bridge of connection driving layer and application layer, the function pair that this layer of software is realized according to test software Driving layer software is packaged, while carrying out module division in inside according to functional category.Due to the presence of functional layer, work as bottom When hardware device is replaced, only need to replace driving layer in software aspects, and without to top layer application layer software Modification, improves the versatility of system software.
In this application, functional layer software is single by programmable logic cells register read-write cell, synchronous RS485 communications Member, telemetering RS422 communication units, asynchronous RS422 communication units and asynchronous RS232 units composition.To saying for each functional unit It is bright as follows:
1) programmable logic cells register read-write cell
The module mainly completes the read-write to programmable logic cells register, realizes monitoring, communication to communication state The functions such as the setting of parameter, the switching of communications protocol.
2) synchronous RS485 communication units
The module according to RS485 communications protocol by synchronous RS485 communication modules and tested radar communication, to the number received According to frame parsing tear open, programmable logic cells are sent to the data framing configured.
3) telemetering RS422 communication units
The module sends the control of pulse performance period, receives telemetering graph data and parses.
4) asynchronous RS422 communication units
The module is communicated according to asynchronous RS422 communications protocol by asynchronous RS422 communication modules and inertial navigation equipment, to receiving To inertial guidance data tear frame parsing open, and by data for resolving.
5) asynchronous RS232 communication units
The module is communicated according to asynchronous RS232 communications protocol by asynchronous RS232 communication modules and GPS device, to receiving To GPS data tear frame parsing open, and by data for resolving.
(3) application layer software designs
In this application, application layer software is divided into authority management module, systematic parameter configuration module, test module, instrument Equipment selecting module, document management module.Authority management module is divided into manages mould for login password management module and personnel equipment Block realizes the management to login password password, system operators and facility information respectively;Systematic parameter configuration module is main Realize the configuration to communications parameter, the setting etc. of store path;Test module is divided into test parameter configuration module, at real-time communication Manage module and telemeter communication module, wherein test parameter configuration management module mainly realizes the ginseng to synchronous RS485 agreement A frames Number setting, real-time communication processing module are realized logical with serial communication module and functional interface module according to command instruction News;Telemeter communication module is then used for tested radar sending cycle pulse, and is received and be tested the telemetering picture number that radar return comes According to instrument and equipment selecting module realizes the switching to serial communication protocol mainly under different GPS inertial navigation equipments;File Management module is divided into data readback module and data graphics module, and data readback module can transfer back the data of storage It puts, map data module is responsible for telemetering image data being converted into the output of telemetering image information.
Specific implementation mode two:Present embodiment is illustrated with reference to Fig. 2, present embodiment is to specific implementation mode one A kind of portable radar test system based on ZYNQ is described further, and in present embodiment, main control module includes Programmable logic cells and processing unit, serial communication module include asynchronous RS422 communication modules, asynchronous RS232 communication modules, Synchronous RS485 communication modules and asynchronous telemetering RS422 communication modules,
Programmable logic cells are communicated with processing unit by AXI4 buses,
Programmable logic cells initialize inertial navigation equipment by asynchronous RS422 communication modules, programmable logic list Member initializes GPS device by asynchronous RS232 communication modules,
Programmable logic cells lead to for receiving the inertial guidance data that inertial navigation equipment is sent by asynchronous RS422 communication modules It crosses asynchronous RS232 communication modules and receives the GPS data that GPS device is sent, the inertial guidance data and GPS data are sent to place Unit is managed, A frame data are sent to tested radar by synchronous RS485 communication modules and receives B frame data, and B frame data are sent out Processing unit is given, is additionally operable to generate period commutator pulse, which is sent by asynchronous telemetering RS422 communication modules It to tested radar, and receives and is tested the telemetry that radar returns, to realize the test to being tested radar;
Processing unit, for receiving inertial guidance data and GPS data respectively carry out resolve composition A frame data, setting The A frame data are transferred to programmable logic cells after fixed recurrent pulse arrival, are additionally operable to control programmable logic list Member generates period commutator pulse.
Specific implementation mode three:Present embodiment is illustrated with reference to Fig. 2, present embodiment is to specific implementation mode two A kind of portable radar test system based on ZYNQ is described further, and in present embodiment, it further includes function Interface module, functional interface module include HDMI interface, SD card slot, USB interface, UART interface and Ethernet interface,
Programmable logic cells are communicated by HDMI interface and display,
Processing unit by SD card slot, USB interface, UART interface and Ethernet interface respectively with SD card, mouse, keyboard and Network interface connection, mouse and keyboard are stored for software interface instruction control, SD card for data, and network interface is used for data transmission.
Specific implementation mode four:Present embodiment is illustrated with reference to Fig. 2, present embodiment is to specific implementation mode one A kind of portable radar test system based on ZYNQ is described further, in present embodiment, serial communication module Circuit and synchronous RS485 communication modules are connect including PCI Bridge, main control module connects circuit by PCI Bridge and connects PXI cabinets,
Main control module includes programmable logic cells and processing unit,
Processing unit carries out resolving composition A frames for the data to the data, GPS device that receive inertial navigation equipment respectively The A frame data are sent to programmable logic cells by data or simulation A frame data, are additionally operable to control programmable logic Unit generates period commutator pulse;
Programmable logic cells pass through A frame data after the recurrent pulse for reaching setting same for receiving A frame data Step RS485 communication modules are sent to tested radar, and tested radar returns out B frame data by synchronous RS485 communication modules, also uses In generating recurrent pulse, which is sent to tested radar by asynchronous telemetering RS422 communication modules, and receive tested The telemetry that radar returns, to realize the test to being tested radar;
Programmable logic cells connect circuit by PCI Bridge and connect PXI cabinets, and PXI embedded Controls are provided in PXI cabinets Device, PCI Bridge connect circuit connection PXI cabinets for data storage and interface display.
Specific implementation mode five:Present embodiment is illustrated with reference to Fig. 7, present embodiment is to specific implementation mode three A kind of portable radar test system based on ZYNQ is described further, and in present embodiment, is taken in processing unit Samba servers are had, create Shared Folders on that server, computer terminal is accessed by network interface on Samba servers Shared Folders, realize to the update iteration of code, application program.
In present embodiment, the storage medium of embedded system is usually single, except the executable file of storage application program Outside, every required file that also storage Linux starts, therefore in more fresh code and application program, it is necessary to just by system cut-off The update of code can be executed.This test system realizes the communication of PC machine and embedded system by Ethernet interface, is taken using Samba Business structure file-sharing service, Samba servers are built on embedded platform and create Shared Folders, are passed through at the ends PC specific IP i.e. may have access to specified folder, can be realized in the case where embedded system does not power off to code, application program it is quick Iteration is updated, the efficiency of embedded development is substantially increased.Network interface communication scheme based on Samba services is as shown with 7.
Specific implementation mode six:Present embodiment is illustrated with reference to Fig. 3, present embodiment is to specific implementation mode three A kind of portable radar test system based on ZYNQ is described further, and in present embodiment, it further includes core Master control borad, functional interface plate and serial communication plate, core master control borad, functional interface plate and serial communication plate pass through mother daughter board connector It is stacked, is fixed with bolt between every adjacent two boards, main control module is arranged on core master control borad, and function setting exists On interface module functional interface plate, serial communication module is arranged on serial communication plate.
In present embodiment, Radar Measurement System uses ZYNQ cores master control borad+functional interface plate+three layers of serial communication plate The hardware configuration of stacking realizes that the global design of system board, structural schematic diagram are as shown in Figure 3.Due to the connection of mother daughter board connector Limited mechanical strength fixes the board of adjacent installation by bolt to ensure the reliability connected between board two-by-two.Three Block board can be individually replaced improvement according to the continuous variation of subsequent need, cope with the different tests of different radar models It is required that improving the compatibility and versatility of test system.
Specific implementation mode seven:Present embodiment is illustrated with reference to Fig. 4, one kind described in present embodiment is based on ZYNQ Portable radar test method, the method be applied to laboratory pattern under, using PCI Bridge connect circuit connect PXI cabinets, by PXI embedded controllers realize upper computer software function, realize that control of the user to transmitting-receiving flow, the method are according to specific What a kind of portable radar test system based on ZYNQ described in embodiment four was realized, which is characterized in that the method packet Include following steps:
Step 1: setting time thread and main thread in processing unit, secondary thread use real-time scheduling strategy, main thread to adopt With non real-time scheduling strategy, it is first determined whether establish programmable logic cells and processing unit establish between communication link It connects, if it is, step 2 is executed, if it is not, then executing step 4;
Step 2: PXI embedded controllers start processing unit, and the FIFO of programmable logic cells is reset, is executed Step 3;
Step 3: judging whether to stop the communication connection between programmable logic cells and processing unit foundation manually, such as Fruit is to then follow the steps four, if it is not, then executing step 5;
Step 4: closing the communication between programmable logic cells and processing unit foundation, recurrent pulse triggering is cancelled;
Step 5: processing unit setting recurrent pulse and simulation A frame data, judge whether send when recurrent pulse reaches A frame data, if it is, step 6 is executed, if it is not, then executing step 7;
Step 6: transmitting A frame data to programmable logic cells, A frame data are sent to by synchronous RS485 communication modules Tested radar, connects circuit by PCI Bridge and is transferred to PXI embedded controllers, and real-time display simultaneously stores A frame data, at this point, data pass It passs and storing process is completed in the secondary thread of processor, in a dormant state, it is single that main thread then occupies processing to secondary thread after the completion Elementary time piece completes interface parameter and refreshes display, executes step 7;
Step 7: judging whether programmable logic cells receive the B frame data of tested radar output, if it is, executing Step 8, if it is not, then executing step 9;
Step 8: programmable logic cells receive B frame data, which by PCI Bridge connects circuit, and to be transferred to PXI embedded Controller shows related data content and stores, at this point, B frame data transmit and storing process is completed in the secondary thread of processor, In a dormant state, main thread then occupies processing unit timeslice and completes interface parameter refreshing display secondary thread, executes after the completion Step 9;
Step 9: judge whether processing unit receives whole data, if it is, step 4 is executed, if it is not, then Execute step 3.
Specific implementation mode eight:Present embodiment is illustrated with reference to Fig. 5, one kind described in present embodiment is based on ZYNQ Portable radar test method, the method be applied to outer field mode under, by processing unit run built-in Linux under answering With software, realize user to receiving and dispatching the control of flow, the method be it is according to claim 2 it is a kind of based on ZYNQ just Take the realization of formula Radar Measurement System, which is characterized in that the described method comprises the following steps:
Setting time thread and main thread in step 1, processing unit, secondary thread use real-time scheduling strategy, main thread to adopt With non real-time scheduling strategy, it is first determined whether establish programmable logic cells and processing unit establish between communication link It connects, if so, 2 are thened follow the steps, if not, thening follow the steps 4;
Step 2 starts processing unit, and the FIFO of programmable logic cells is reset, and executes step 3;
Step 3 judges whether the manual communication connection stopped between programmable logic cells and processing unit foundation, if It is to then follow the steps 4, if not, thening follow the steps 5;
Communication between step 4, closing programmable logic cells and processing unit foundation;
Step 5 judges whether programmable logic cells receive the inertial guidance data that inertial navigation equipment is sent out, if it is, holding Row step 6, if not, thening follow the steps 7;
Step 6, programmable logic cells receive inertial guidance data and pass to processing unit, by processing unit completion resolving and more New correlation global variable parameter, calls global variable result to generate A frame data, and carry out data storage, data transfer, resolve with And storing process is completed in the secondary thread of processor, it is aobvious that main thread then occupies the completion interface parameter refreshing of processing unit timeslice Show, executes step 8;
Step 7, secondary thread suspend mode execute step 10;Step 8 judges whether programmable logic cells receive GPS device The GPS data sent out, if so, 9 are thened follow the steps, if not, thening follow the steps 10;
Step 9, programmable logic cells receive the GPS data that GPS device is sent out, and complete to resolve, and update correlation is global to be become Parameter is measured, and carries out data storage, data transfer, resolving, storing process are completed in the secondary thread of processor, after the completion secondary thread In a dormant state, main thread then occupies processing unit timeslice and completes interface parameter refreshing display, executes step 10;
Step 10 judges whether programmable logic cells receive the B frame data of tested radar output, if it is, executing Step 11, if not, thening follow the steps 12;
Step 11, programmable logic cells receive B frame data, by the secondary thread of the data transfer to processing unit and deposit Storage, in a dormant state, main thread then occupies processing unit timeslice and completes interface parameter refreshing display secondary thread after the completion;
Step 12 judges whether processing unit receives whole data, if so, 4 are thened follow the steps, if it is not, then Execute step 3.
In present embodiment, in real-time communication processing function and telemeter communication function, software is real-time using multithreading Scheduling strategy technology, and for the customization optimization of EXT4 file system depth, ensured and realized under Linux time sharing operating systems The technical requirement of real-time communication, resolving, storage, display in 10ms communication cycles makes system have extremely strong soft real-time.
1) multithreading:When executing above-mentioned two function, software opens multithreading, and the display at interface is refreshed and operated Response is run in main thread, and the time-consuming processing such as data transmit-receive, resolving and storage is executed in secondary thread, is not only able to protect The prolonged normal response for taking processing and not interfering with application program of card, and the double-core arm processor in ZYNQ can obtain To the utilization rate of bigger.
2) Real-Time Scheduling Police:There are three types of the thread scheduling policies of Linux:SCHED_OTHER, SCHED_FIFO, SCHED_RR.SCHED_OTHER is a kind of thread acquiescence, non real-time scheduling strategy, when there are Real-Time Scheduling plans in system When the thread omited, CPU time slice can be seized by real-time thread at once, and non-real-time threads are only finished in all real-time threads Or it can just be executed when actively abandoning timeslice.SCHED_FIFO, SCHED_RR are real-time scheduling strategies, when starting execution The CPU time slice of timesharing thread can be seized at once.Configure main thread to the non real-time scheduling strategy of acquiescence, secondary thread uses Real-Time Scheduling Police can ensure that time thread can obtain real-time priority processing power, meet real-time communication need;Secondary thread Suspend mode under certain condition is actively abandoned occupying CPU, and main thread can be in the case where secondary thread handle in real time CPU is occupied, the display and response at interface are similarly obtained guarantee.
3) file system depth customization optimization:The relevant parameter configuration of the performance and file system of magnetic disc i/o often limits The bottleneck of system running speed processed.In this test system, the data of storage are put in SD card, and SD card is TOSHIBA companies UHS- The SD card of II speed class, it is per second that its theoretical read or write speed can reach 260/240MB, therefore is embodied on a storage medium Performance bottleneck there's almost no.File system is to limit another bottleneck of the real-time read and write rate of file, EXT4 file system Default parameters configuration ensure that universal applicability, and when executing write-in file manipulation command, file system will will not count at once It according to write-in storage medium, but is written in due course according to cache policy, therefore can cause a certain moment that mass data is written to SD card The case where, cause system the delay interim card of 10ms or more occur, the real-time of Communication processing is affected.For real-time storage It is required that the present invention to file system depth optimization, changes the parameters such as file cache strategy, cancel daily record write-in functions, with into one Step improves I/O performances.By actual functional test, receiving and dispatching can be in the communication of 10ms to data progress real-time storage in flow It is completed in period, avoids data redundancy caused by write-in not in time.
The real-time communication process flow under laboratory, two kinds of outfield application scenarios is set forth in Fig. 4 and Fig. 5.Laboratory Under pattern, portable general TT&C system realizes that the period timing of A frames is sent out by the 10ms period commutator pulses at the ends poll PL It send;Under outer field mode, with the communication cycle of equipment under test then on the basis of the communication cycle of inertial navigation, when inertial guidance data come it is interim, Inertial guidance data is received and is resolved, then framing sends A frame data.In two patterns, secondary thread is transmitted to main thread After related data, the thread suspend mode of 500-1000us can be actively carried out, CPU time slice is conceded to main thread, main thread The update for executing interface data during this period is shown.After receiving and dispatching flow, by data from caching forced synchronism to In storage device, otherwise accident power-off may result in data portion loss.Telemeter communication function is in flow and the mould of laboratory Real-time communication processing function under formula is similar, sends pulse to equipment under test by PL timings, and receive the telemetry of return.

Claims (8)

1. a kind of portable radar based on ZYNQ tests system, which is characterized in that it includes main control module and serial communication mould Block,
Main control module using ZYNQ processing chips realize,
Serial communication module will be described for receiving the GPS data that GPS device is sent out and the inertial guidance data that inertial navigation equipment is sent out Data transmission is additionally operable to send the A frame data that main control module is sent out to tested radar, and receive and be tested radar to main control module The B frame data are reached main control module by the B frame data of return;It is additionally operable to receive the recurrent pulse that main control module generates, it will The pulse is sent to tested radar, and receives and be tested the telemetry that radar returns, and is additionally operable to receive parameter initialization signal pair GPS device and inertial navigation equipment carry out parameter initialization;
Main control module solves the GPS data and inertial guidance data that receive for receiving GPS data and inertial guidance data respectively Composition A frame data or simulation A frame data are calculated, are sent the A frame data after the recurrent pulse of setting reaches, also For generating recurrent pulse, it is additionally operable to receive the B frame data and telemetry that serial communication module is sent out, to realize to tested The test of radar is additionally operable to serially communication module and sends parameter initialization signal.
2. a kind of portable radar based on ZYNQ tests system according to claim 1, which is characterized in that
Main control module includes programmable logic cells and processing unit, and serial communication module includes asynchronous RS422 communication modules, different RS232 communication modules, synchronous RS485 communication modules and asynchronous telemetering RS422 communication modules are walked,
Programmable logic cells are communicated with processing unit by AXI4 buses,
Programmable logic cells initialize inertial navigation equipment by asynchronous RS422 communication modules, and programmable logic cells are logical Asynchronous RS232 communication modules are crossed to initialize GPS device,
Programmable logic cells, for receiving the inertial guidance data that inertial navigation equipment is sent by asynchronous RS422 communication modules, by different It walks RS232 communication modules and receives the GPS data that GPS device is sent, it is single that the inertial guidance data and GPS data are sent to processing Member sends A frame data to tested radar by synchronous RS485 communication modules and receives B frame data, and B frame data are sent to Processing unit, be additionally operable to generate period commutator pulse, by the recurrent pulse by asynchronous telemetering RS422 communication modules be sent to by Radar is surveyed, and receives and is tested the telemetry that radar returns, to realize the test to being tested radar;
Processing unit, for receiving inertial guidance data and GPS data respectively carry out resolve composition A frame data, in setting The A frame data are transferred to programmable logic cells after recurrent pulse arrival, are additionally operable to control programmable logic cells production Raw period commutator pulse.
3. a kind of portable radar based on ZYNQ tests system according to claim 2, which is characterized in that it further includes work( Can interface module, functional interface module includes HDMI interface, SD card slot, USB interface, UART interface and Ethernet interface,
Programmable logic cells are communicated by HDMI interface and display,
Processing unit by SD card slot, USB interface, UART interface and Ethernet interface respectively with SD card, mouse, keyboard and network interface Connection, mouse and keyboard are stored for software interface instruction control, SD card for data, and network interface is used for data transmission.
4. a kind of portable radar based on ZYNQ tests system according to claim 1, which is characterized in that serial communication mould Block includes that PCI Bridge connects circuit and synchronous RS485 communication modules, and main control module connects circuit by PCI Bridge and connects PXI cabinets,
Main control module includes programmable logic cells and processing unit,
Processing unit carries out resolving composition A frame data for the data to the data, GPS device that receive inertial navigation equipment respectively Or simulation A frame data, the A frame data are sent to programmable logic cells, are additionally operable to control programmable logic cells Generate period commutator pulse;
A frame data are passed through synchronization by programmable logic cells for receiving A frame data after the recurrent pulse for reaching setting RS485 communication modules are sent to tested radar, and tested radar returns out B frame data by synchronous RS485 communication modules, is additionally operable to Recurrent pulse is generated, which is sent to tested radar by asynchronous telemetering RS422 communication modules, and receive and be tested thunder Up to the telemetry of return, to realize the test to being tested radar;
Programmable logic cells connect circuit by PCI Bridge and connect PXI cabinets, and PXI embedded controllers are provided in PXI cabinets, PCI Bridge connects circuit connection PXI cabinets for data storage and interface display.
5. a kind of portable radar based on ZYNQ tests system according to claim 3, which is characterized in that in processing unit Samba servers have been built, have created Shared Folders on that server, computer terminal accesses Samba servers by network interface On Shared Folders, realize to the update iteration of code, application program.
6. a kind of portable radar based on ZYNQ tests system according to claim 3, which is characterized in that it further includes core Heart master control borad, functional interface plate and serial communication plate, core master control borad, functional interface plate and serial communication plate between plate by connecting Device is stacked, and is fixed with bolt between every adjacent two boards, main control module is arranged on core master control borad, function setting On interface module functional interface plate, serial communication module is arranged on serial communication plate.
7. a kind of portable radar test method based on ZYNQ, the method is applied under the pattern of laboratory, and the method is What a kind of portable radar test system based on ZYNQ according to claim 4 was realized, which is characterized in that the method Include the following steps:
Step 1: setting time thread and main thread in processing unit, secondary thread uses real-time scheduling strategy, and main thread is using non- Real-time scheduling strategy, it is first determined whether establishing the communication connection between programmable logic cells and processing unit foundation, such as Fruit is to then follow the steps two, if it is not, then executing step 4;
Step 2: PXI embedded controllers start processing unit, and the FIFO of programmable logic cells is reset, executes step Three;
Step 3: judge whether to stop the communication connection between programmable logic cells and processing unit foundation manually, if so, Four are thened follow the steps, if it is not, then executing step 5;
Step 4: closing the communication between programmable logic cells and processing unit foundation, recurrent pulse triggering is cancelled;
Step 5: processing unit setting recurrent pulse and simulation A frame data, judge whether send A frames when recurrent pulse reaches Data, if it is, step 6 is executed, if it is not, then executing step 7;
Step 6: transmitting A frame data to programmable logic cells, A frame data are sent to tested by synchronous RS485 communication modules Radar connects circuit by PCI Bridge and is transferred to PXI embedded controllers, and real-time display simultaneously stores A frame data, at this point, data transfer and Storing process processor secondary thread complete, after the completion secondary thread in a dormant state, when main thread then occupies processing unit Between piece complete interface parameter refresh display, execute step 7;
Step 7: judging whether programmable logic cells receive the B frame data of tested radar output, if so, thening follow the steps Eight, if it is not, then executing step 9;
Step 8: programmable logic cells receive B frame data, which connects circuit by PCI Bridge and is transferred to PXI embedded Controls Device shows related data content and stores, at this point, B frame data transmit and storing process is completed in the secondary thread of processor, completes In a dormant state, main thread then occupies processing unit timeslice and completes interface parameter refreshing display secondary thread, executes step afterwards Nine;
Step 9: judging whether processing unit receives whole data, if it is, step 4 is executed, if it is not, then executing Step 3.
8. a kind of portable radar test method based on ZYNQ, the method is applied under outer field mode, and the method is root It is realized according to a kind of portable radar test system based on ZYNQ described in claim 2, which is characterized in that the method packet Include following steps:
Setting time thread and main thread in step 1, processing unit, secondary thread use real-time scheduling strategy, and main thread is using non- Real-time scheduling strategy, it is first determined whether establishing the communication connection between programmable logic cells and processing unit foundation, such as Fruit is to then follow the steps 2, if not, thening follow the steps 4;
Step 2 starts processing unit, and the FIFO of programmable logic cells is reset, and executes step 3;
Step 3 judges whether the manual communication connection stopped between programmable logic cells and processing unit foundation, if so, 4 are thened follow the steps, if not, thening follow the steps 5;
Communication between step 4, closing programmable logic cells and processing unit foundation;
Step 5 judges whether programmable logic cells receive the inertial guidance data that inertial navigation equipment is sent out, if it is, executing step Rapid 6, if not, thening follow the steps 7;
Step 6, programmable logic cells receive inertial guidance data and pass to processing unit, and resolving and more cenotype are completed by processing unit Global variable parameter is closed, calls global variable result to generate A frame data, and carry out data storage, data transfer is resolved and deposited Storage process is completed in the secondary thread of processor, and main thread then occupies processing unit timeslice and completes interface parameter refreshing display, holds Row step 8;
Step 7, secondary thread suspend mode execute step 10;
Step 8 judges whether programmable logic cells receive the GPS data that GPS device is sent out, if so, thening follow the steps 9, if not, thening follow the steps 10;
Step 9, programmable logic cells receive the GPS data that GPS device is sent out, and complete to resolve, and update related global variable ginseng Number, and data storage is carried out, data transfer, resolving, storing process are completed in the secondary thread of processor, and secondary thread is in after the completion Dormant state, main thread then occupy processing unit timeslice and complete interface parameter refreshing display, execute step 10;
Step 10 judges whether programmable logic cells receive the B frame data of tested radar output, if so, thening follow the steps 11, if not, thening follow the steps 12;
Step 11, programmable logic cells receive B frame data, by the secondary thread of the data transfer to processing unit and store, complete In a dormant state, main thread then occupies processing unit timeslice and completes interface parameter refreshing display Cheng Houci threads;
Step 12 judges whether processing unit receives whole data, if so, 4 are thened follow the steps, if it is not, then executing Step 3.
CN201810124036.9A 2018-02-07 2018-02-07 ZYNQ-based portable radar test system and test method Active CN108333566B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810124036.9A CN108333566B (en) 2018-02-07 2018-02-07 ZYNQ-based portable radar test system and test method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810124036.9A CN108333566B (en) 2018-02-07 2018-02-07 ZYNQ-based portable radar test system and test method

Publications (2)

Publication Number Publication Date
CN108333566A true CN108333566A (en) 2018-07-27
CN108333566B CN108333566B (en) 2021-07-16

Family

ID=62927050

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810124036.9A Active CN108333566B (en) 2018-02-07 2018-02-07 ZYNQ-based portable radar test system and test method

Country Status (1)

Country Link
CN (1) CN108333566B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109450924A (en) * 2018-12-03 2019-03-08 哈尔滨工业大学 A kind of configurable implementation method of the communications protocol of embedded system
CN110488291A (en) * 2019-08-23 2019-11-22 成都航天科工微电子系统研究院有限公司 A kind of biradical Forward-looking SAR Hardware In The Loop Simulation Method and device
CN111562552A (en) * 2020-04-30 2020-08-21 北京无线电测量研究所 Ground radar synchronous network master control device and control method
CN112305511A (en) * 2020-09-27 2021-02-02 北京无线电测量研究所 Radar receiver digital baseband signal recording and analyzing system and method
CN113281733A (en) * 2021-05-19 2021-08-20 天津大学 ZYNQ-based radar speed and distance measuring system and method
CN113959463A (en) * 2021-10-25 2022-01-21 北京计算机技术及应用研究所 Automatic testing platform of inertia measuring device

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101493684A (en) * 2008-01-25 2009-07-29 沈阳高精数控技术有限公司 Servo dynamic tester and test method thereof
CN103869292A (en) * 2014-04-02 2014-06-18 清华大学 General purpose radar imaging processing system based on embedded GPU
CN103913742A (en) * 2014-04-25 2014-07-09 桂林电子科技大学 Automotive anti-collision radar system with two receiving antennas and operating method
CN105573800A (en) * 2015-12-22 2016-05-11 中船重工(武汉)凌久电子有限责任公司 Single-board or multi-board system based on ZYNQ and on-line updating method
CN106645914A (en) * 2017-01-03 2017-05-10 哈尔滨工业大学 Ground test device of satellite information processing platform and control method of ground test device
CN106772486A (en) * 2017-02-17 2017-05-31 上海华测导航技术股份有限公司 A kind of GNSS receiver board based on ZYNQ frameworks
US9792244B2 (en) * 2015-02-13 2017-10-17 Honeywell International Inc. Multiple processor architecture with flexible external input/output interface
US9817682B2 (en) * 2015-05-18 2017-11-14 Goodrich Corporation System architecture for machine vision on moving platforms
CN107391080A (en) * 2017-07-25 2017-11-24 青岛海信电器股份有限公司 Master chip, ADAS based on ZYNQ and the method using its progress voice message

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101493684A (en) * 2008-01-25 2009-07-29 沈阳高精数控技术有限公司 Servo dynamic tester and test method thereof
CN103869292A (en) * 2014-04-02 2014-06-18 清华大学 General purpose radar imaging processing system based on embedded GPU
CN103913742A (en) * 2014-04-25 2014-07-09 桂林电子科技大学 Automotive anti-collision radar system with two receiving antennas and operating method
US9792244B2 (en) * 2015-02-13 2017-10-17 Honeywell International Inc. Multiple processor architecture with flexible external input/output interface
US9817682B2 (en) * 2015-05-18 2017-11-14 Goodrich Corporation System architecture for machine vision on moving platforms
CN105573800A (en) * 2015-12-22 2016-05-11 中船重工(武汉)凌久电子有限责任公司 Single-board or multi-board system based on ZYNQ and on-line updating method
CN106645914A (en) * 2017-01-03 2017-05-10 哈尔滨工业大学 Ground test device of satellite information processing platform and control method of ground test device
CN106772486A (en) * 2017-02-17 2017-05-31 上海华测导航技术股份有限公司 A kind of GNSS receiver board based on ZYNQ frameworks
CN107391080A (en) * 2017-07-25 2017-11-24 青岛海信电器股份有限公司 Master chip, ADAS based on ZYNQ and the method using its progress voice message

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
QIANG R 等: ""Research on embedded networked numerical control system based on ARM and DSP"", 《IEEE INTERNATIONAL CONFERENCE ON COMMUNICATION TECHNOLOGY》 *
马存宝 等: ""雷达通用自动测试系统设计"", 《计算机测量与控》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109450924A (en) * 2018-12-03 2019-03-08 哈尔滨工业大学 A kind of configurable implementation method of the communications protocol of embedded system
CN110488291A (en) * 2019-08-23 2019-11-22 成都航天科工微电子系统研究院有限公司 A kind of biradical Forward-looking SAR Hardware In The Loop Simulation Method and device
CN111562552A (en) * 2020-04-30 2020-08-21 北京无线电测量研究所 Ground radar synchronous network master control device and control method
CN112305511A (en) * 2020-09-27 2021-02-02 北京无线电测量研究所 Radar receiver digital baseband signal recording and analyzing system and method
CN112305511B (en) * 2020-09-27 2024-05-07 北京无线电测量研究所 System and method for recording and analyzing digital baseband signals of radar receiver
CN113281733A (en) * 2021-05-19 2021-08-20 天津大学 ZYNQ-based radar speed and distance measuring system and method
CN113959463A (en) * 2021-10-25 2022-01-21 北京计算机技术及应用研究所 Automatic testing platform of inertia measuring device

Also Published As

Publication number Publication date
CN108333566B (en) 2021-07-16

Similar Documents

Publication Publication Date Title
CN108333566A (en) A kind of portable radar test system and test method based on ZYNQ
CN105144637B (en) Interface arrangement and method for exchanging user data
CN103098032B (en) Emulation mode and system
CN105074671B (en) For detecting the method and system of concurrency programming mistake in kernel module and device driver
CN201886122U (en) PXI (PCI extension for instrumentation) bus-based digital testing module
CN103544103A (en) Method and system for test, simulation and concurrence of software performance
CN113656227B (en) Chip verification method and device, electronic equipment and storage medium
CN102929158A (en) Multi-core multi-model parallel distributed type real-time simulation system
CN111600760B (en) Quality detection system, method and equipment of power grid operation monitoring system
CN112131741B (en) Real-time dual-kernel single-machine semi-physical simulation architecture and simulation method
CN104573135B (en) Real-time data acquisition method and device based on Reflective memory network and middleware Technology
CN109462495A (en) A kind of ship hardware and communication system detection system and method
CN114707236A (en) Model-based virtual-real combined simulation test method
CN110838961A (en) General aviation bus message scheduling system
CN106897106B (en) The concurrent DMA of multi-dummy machine sequential scheduling method and system under a kind of SR IOV environment
CN110377475A (en) A kind of large scale memory read-write verification platform and its method based on UVM
CN109100952B (en) Regional inference machine of health management system of distributed semi-physical simulation spacecraft
CN102291274A (en) System and method for realizing automatic adaptation of network testing instrument
CN105592492B (en) Higher-layer protocols uniformity test platform and test method
CN105487403A (en) Establishment of motion control system based on CAN and simulation modeling method
CN113779913B (en) Verification platform structure and test method for AI multi-chip system
CN101976203B (en) Parallelized simulation multithread management method
CN107203408A (en) The methods, devices and systems of redirection
CN110427260A (en) Host job scheduling method, apparatus and system
CN105279007B (en) The analogy method and device of multi-core processor

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