CN109508258A - A kind of acquisition and storage method and system of miss distance data - Google Patents

A kind of acquisition and storage method and system of miss distance data Download PDF

Info

Publication number
CN109508258A
CN109508258A CN201811357650.6A CN201811357650A CN109508258A CN 109508258 A CN109508258 A CN 109508258A CN 201811357650 A CN201811357650 A CN 201811357650A CN 109508258 A CN109508258 A CN 109508258A
Authority
CN
China
Prior art keywords
miss distance
data
distance data
acquisition
pci
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.)
Pending
Application number
CN201811357650.6A
Other languages
Chinese (zh)
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.)
Nanjing Changfeng Space Electronics Technology Co Ltd
Original Assignee
Nanjing Changfeng Space Electronics Technology Co Ltd
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 Nanjing Changfeng Space Electronics Technology Co Ltd filed Critical Nanjing Changfeng Space Electronics Technology Co Ltd
Priority to CN201811357650.6A priority Critical patent/CN109508258A/en
Publication of CN109508258A publication Critical patent/CN109508258A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/20Handling requests for interconnection or transfer for access to input/output bus
    • G06F13/28Handling requests for interconnection or transfer for access to input/output bus using burst mode transfer, e.g. direct memory access DMA, cycle steal
    • G06F13/282Cycle stealing DMA
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4204Bus transfer protocol, e.g. handshake; Synchronisation on a parallel bus
    • G06F13/4221Bus transfer protocol, e.g. handshake; Synchronisation on a parallel bus being an input/output bus, e.g. ISA bus, EISA bus, PCI bus, SCSI bus

Abstract

The invention discloses a kind of acquisition and storage method and system of miss distance data, including following procedure: S1, monitors and whether generates PCI interruption;S2, response PCI are interrupted, and starting DMA acquires miss distance data by pci bus;S3 stores collected miss distance data to local disk, while being sent to long-range storage equipment and saving.The present invention interrupts to start the acquisition function that DMA data transfer realizes miss distance data by response PCI, is sent to storage equipment by written document to local hard drive and network and realizes data double copies function.

Description

A kind of acquisition and storage method and system of miss distance data
Technical field
The present invention relates to technical field of data processing, and in particular to a kind of acquisition and storage method of miss distance data and is System.
Background technique
In guided missile is practiced shooting and tested, the position i.e. miss distance to guided missile breakaway point is needed to measure.One side because It is fast for missile flight speed, determine that effective time of measuring of Miss distance measurement equipment is short and data volume is big;On the other hand it leads Bullet may hit Miss distance measurement equipment, thus the preservation of miss distance data needs backup functionality;Above-mentioned two aspect is determined Miss distance data are determined and have needed in real time effectively acquisition and in real time effectively storage, and storing data needs to back up storage.
In the prior art, a kind of acquisition method is interacted by pci bus inquiry mode and bottom AD data, this Kind mode needs CPU ceaselessly to inquire pci bus always, reduces data acquisition rate;Data storage is then only stored in local In hard disk, double copies are not carried out, if guided missile hits Miss distance measurement equipment, data is saved and is easily lost.
Summary of the invention
It is an object of the invention to overcome deficiency in the prior art, a kind of acquisition and storage of miss distance data is provided Method and system can effectively acquire miss distance data in real time, and effective double saves collected data in real time.
In order to solve the above technical problems, the present invention provides a kind of acquisition and storage method of miss distance data, feature It is, including following procedure:
S1 is monitored and whether is generated PCI interruption;
S2, response PCI are interrupted, and starting DMA acquires miss distance data by pci bus;
S3 stores collected miss distance data to local disk, while being sent to long-range storage equipment and saving.
Preferably, acquisition miss distance size of data is 8K byte every time.
Preferably, a buffer queue is opened up, collected miss distance data are stored in buffer queue, when storing data Miss distance data are obtained from buffer queue.
Preferably, PCI interrupt cycle is 1ms.
Preferably, data store the task to local disk with long-range storage equipment for two independent parallels.
Correspondingly, the present invention provides a kind of acquisition and storage systems of miss distance data, characterized in that include:
It interrupts and monitors module, whether generate PCI interruption for monitoring;
Data acquisition module is interrupted for responding PCI, and starting DMA acquires miss distance data by pci bus;
Data memory module for storing collected miss distance data to local disk, while being sent to long-range storage Equipment saves.
Preferably, in data acquisition module, acquiring miss distance size of data every time is 8K byte.
Preferably, data acquisition module opens up a buffer queue, and collected miss distance data are stored in caching team Column obtain miss distance data when storing data from buffer queue.
Compared with prior art, the beneficial effects obtained by the present invention are as follows being: the present invention interrupts to start by response PCI DMA data transfer realizes the acquisition function of miss distance data, is sent to storage equipment by written document to local hard drive and network Realize data double copies function.
Detailed description of the invention
Fig. 1 is present system structural schematic diagram;
Fig. 2 is PCI interrupt processing schematic diagram;
Fig. 3 is data acquisition schematic diagram;
Fig. 4 is data storing procedure schematic diagram.
Specific embodiment
The invention will be further described below in conjunction with the accompanying drawings.Following embodiment is only used for clearly illustrating the present invention Technical solution, and not intended to limit the protection scope of the present invention.
A kind of acquisition and storage method of miss distance data of the invention, it is shown in Figure 1, including following procedure:
S1 is monitored and whether is generated PCI interruption;
S2, response PCI are interrupted, and starting DMA acquires miss distance data by pci bus;
S3 stores collected miss distance data to local disk, while being sent to long-range storage equipment and saving.
The present invention interrupts to start the acquisition function that DMA data transfer realizes miss distance data by response PCI, by writing File is to local hard drive and is sent to storage equipment realization data double copies function.
Embodiment
The present embodiment is acquisition and store method based on the miss distance data under vxWorks real-time system, is used to lead Play acquisition and preservation of the Miss distance measurement equipment to miss distance data in Targeting.
Miss distance measurement equipment in the present embodiment, bottom hardware are the programmable logic device that can carry out digital processing, The V5 SX95T fpga chip of a piece of Xilinx company is used in the present embodiment, upper layer uses vxWorks real time operating system. In vxWorks real time operating system, the bridge that data interaction is carried out with system bottom hardware is PCI9056 bridge.For data The correctness of transmission needs to have a synchronization signal between sender and recipient, and the present embodiment interrupts to realize number using PCI According to acquisition, need under vxWorks operating system develop device PCI driving, come respond PCI interrupt, carry out pci bus on Real-time Data Transmission, data transmission use DMA mode.
Human-computer interaction interface is developed on far control host, this human-computer interaction interface is mainly used to send out to Miss distance measurement equipment The command signal for sending log-on data to acquire.Exploitation saves the program of data on remote storage device, is mainly used to receive acquisition Backup of the data and preservation arrived at file, as miss distance data.
2.8G continuous wave signal is injected to Miss distance measurement equipment with line feedback injection mode, it is remote to control host and storage equipment point Miss distance measurement equipment is not connected to by cable.PCI responds interrupt cycle as 1ms, and it is collected every that each PCI interrupts generation Frame data have been put into buffer queue, and every frame data amount is 8K Bytes, multiframe data volume can be stored in buffer queue, as slow The size for depositing queue can be configured according to performance requirement, realize the buffering between data acquisition and data rate memory.? Task is independent there are two creations under vxWorks system, runs parallel, and written document is to originally after a task receives buffer queue data In ground hard disk;Another task receives buffer queue data and is sent to remote storage device by network, and storage equipment receives net Network data simultaneously save as file;And there is a timed task to send Miss distance measurement equipment state in real time to man-machine under vxWorks Interactive interface.
Specific step is as follows for data acquisition and preservation process:
(1) the human-computer interaction interface confirmation Miss distance measurement equipment of far control host normally starts;
(2) command signal for starting to acquire and sending log-on data acquisition by twisting Miss distance measurement equipment is clicked;
(3) log-on data acquires under vxWorks system in Miss distance measurement equipment, shown in Figure 2, and initialization PCI is interrupted, root It is interrupted according to PCI interrupt number carry PCI, the PCI that latent period is 1ms, which is interrupted, to be generated;
(4) PCI, which is interrupted, generates, and data acquisition passes through pci bus the bottom of from referring to Fig. 3, interrupting starting DMA in service function Layer acquisition 8K Bytes miss distance data, data terminate DMA after running through, collected miss distance data are put into buffer queue In, the period of a reading data completes;
(5) referring to fig. 4, the local for writing 8K Bytes data to Miss distance measurement equipment from buffer queue is hard for data storage procedure Disk;
(6) 8K Bytes data to remote storage device is sent from buffer queue by network simultaneously to save;
The period of (7) storing datas completes, and repeats step (3) and continues waiting for PCI interruption generation;
(8) human-computer interaction interface of far control host, which is clicked, stops acquisition button, the acquisition of Miss distance measurement device end data.
The present invention interrupts to start the acquisition function that DMA data transfer realizes miss distance data by response PCI, by writing File is sent to storage equipment to local hard drive and network and realizes data double copies function.
Correspondingly, the present invention provides a kind of acquisition and storage systems of miss distance data, characterized in that include:
It interrupts and monitors module, whether generate PCI interruption for monitoring;
Data acquisition module is interrupted for responding PCI, and starting DMA acquires miss distance data by pci bus;
Data memory module for storing collected miss distance data to local disk, while being sent to long-range storage Equipment saves.
In data acquisition module, acquiring miss distance size of data every time is 8K byte.
In order to realize the buffering between data acquisition and data rate memory, data acquisition module opens up a caching team Collected miss distance data are stored in buffer queue by column, and when storing data obtains miss distance data from buffer queue.
It should be understood by those skilled in the art that, embodiments herein can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the application Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the application, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.
The application is referring to method, the process of equipment (system) and computer program product according to the embodiment of the present application Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, without departing from the technical principles of the invention, several improvements and modifications, these improvements and modifications can also be made Also it should be regarded as protection scope of the present invention.

Claims (8)

1. a kind of acquisition and storage method of miss distance data, characterized in that including following procedure:
S1 is monitored and whether is generated PCI interruption;
S2, response PCI are interrupted, and starting DMA acquires miss distance data by pci bus;
S3 stores collected miss distance data to local disk, while being sent to long-range storage equipment and saving.
2. a kind of acquisition and storage method of miss distance data according to claim 1, characterized in that acquisition is missed the target every time Amount size of data is 8K byte.
3. a kind of acquisition and storage method of miss distance data according to claim 1, characterized in that open up a caching Collected miss distance data are stored in buffer queue by queue, and when storing data obtains miss distance data from buffer queue.
4. a kind of acquisition and storage method of miss distance data according to claim 1, characterized in that PCI interrupt cycle For 1ms.
5. a kind of acquisition and storage method of miss distance data according to claim 1, characterized in that data storage is to originally Local disk and long-range storage equipment are the task of two independent parallels.
6. a kind of acquisition and storage system of miss distance data, characterized in that include:
It interrupts and monitors module, whether generate PCI interruption for monitoring;
Data acquisition module is interrupted for responding PCI, and starting DMA acquires miss distance data by pci bus;
Data memory module for storing collected miss distance data to local disk, while being sent to long-range storage Equipment saves.
7. a kind of acquisition and storage system of miss distance data according to claim 6, characterized in that data acquisition module In, acquiring miss distance size of data every time is 8K byte.
8. a kind of acquisition and storage system of miss distance data according to claim 6, characterized in that data acquisition module A buffer queue is opened up, collected miss distance data are stored in buffer queue, when storing data is obtained from buffer queue Take miss distance data.
CN201811357650.6A 2018-11-15 2018-11-15 A kind of acquisition and storage method and system of miss distance data Pending CN109508258A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811357650.6A CN109508258A (en) 2018-11-15 2018-11-15 A kind of acquisition and storage method and system of miss distance data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811357650.6A CN109508258A (en) 2018-11-15 2018-11-15 A kind of acquisition and storage method and system of miss distance data

Publications (1)

Publication Number Publication Date
CN109508258A true CN109508258A (en) 2019-03-22

Family

ID=65748530

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811357650.6A Pending CN109508258A (en) 2018-11-15 2018-11-15 A kind of acquisition and storage method and system of miss distance data

Country Status (1)

Country Link
CN (1) CN109508258A (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2917099Y (en) * 2006-03-30 2007-06-27 哈尔滨工程大学 'Three-tolerant' digital black box for mission-critical computer system
CN101526929A (en) * 2008-03-07 2009-09-09 深圳迈瑞生物医疗电子股份有限公司 Integrated-equipment driving system and application method thereof
CN101968776A (en) * 2010-10-19 2011-02-09 广东威创视讯科技股份有限公司 Method and system for acquiring and outputting images
CN102117342A (en) * 2011-01-21 2011-07-06 中国科学院上海技术物理研究所 Peripheral component interconnect (PCI) Express bus-based multiband infrared image real-time acquisition system and method
CN202101699U (en) * 2011-06-22 2012-01-04 上海思博源冷链科技有限公司 Vehicular cold chain supervisory system
CN103678727A (en) * 2012-09-01 2014-03-26 德克萨斯仪器股份有限公司 Wireless Sensor with FRAM
CN104581066A (en) * 2014-12-29 2015-04-29 北京中星微电子有限公司 Video monitoring method and device for automobile
CN104660698A (en) * 2015-02-17 2015-05-27 广东新农人农业科技股份有限公司 Electronic weighing instrument data collecting and storing method and device
CN105974836A (en) * 2016-04-29 2016-09-28 郑州宇通客车股份有限公司 Bus monitoring host data acquisition method and bus monitoring host data acquisition system
CN107302549A (en) * 2016-04-14 2017-10-27 宾盛科技(武汉)有限公司 A kind of remote data transmission and storage system and method
US10055294B2 (en) * 2014-01-09 2018-08-21 Sandisk Technologies Llc Selective copyback for on die buffered non-volatile memory
CN108604164A (en) * 2015-11-27 2018-09-28 Netapp股份有限公司 Synchronous for the storage of storage area network agreement is replicated
CN108731739A (en) * 2018-07-16 2018-11-02 中船电子科技有限公司 A kind of comprehensive test analysis system of Ship Equipment

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2917099Y (en) * 2006-03-30 2007-06-27 哈尔滨工程大学 'Three-tolerant' digital black box for mission-critical computer system
CN101526929A (en) * 2008-03-07 2009-09-09 深圳迈瑞生物医疗电子股份有限公司 Integrated-equipment driving system and application method thereof
CN101968776A (en) * 2010-10-19 2011-02-09 广东威创视讯科技股份有限公司 Method and system for acquiring and outputting images
CN102117342A (en) * 2011-01-21 2011-07-06 中国科学院上海技术物理研究所 Peripheral component interconnect (PCI) Express bus-based multiband infrared image real-time acquisition system and method
CN202101699U (en) * 2011-06-22 2012-01-04 上海思博源冷链科技有限公司 Vehicular cold chain supervisory system
CN103678727A (en) * 2012-09-01 2014-03-26 德克萨斯仪器股份有限公司 Wireless Sensor with FRAM
US10055294B2 (en) * 2014-01-09 2018-08-21 Sandisk Technologies Llc Selective copyback for on die buffered non-volatile memory
CN104581066A (en) * 2014-12-29 2015-04-29 北京中星微电子有限公司 Video monitoring method and device for automobile
CN104660698A (en) * 2015-02-17 2015-05-27 广东新农人农业科技股份有限公司 Electronic weighing instrument data collecting and storing method and device
CN108604164A (en) * 2015-11-27 2018-09-28 Netapp股份有限公司 Synchronous for the storage of storage area network agreement is replicated
CN107302549A (en) * 2016-04-14 2017-10-27 宾盛科技(武汉)有限公司 A kind of remote data transmission and storage system and method
CN105974836A (en) * 2016-04-29 2016-09-28 郑州宇通客车股份有限公司 Bus monitoring host data acquisition method and bus monitoring host data acquisition system
CN108731739A (en) * 2018-07-16 2018-11-02 中船电子科技有限公司 A kind of comprehensive test analysis system of Ship Equipment

Similar Documents

Publication Publication Date Title
US8001298B2 (en) Providing extended measurement data in an I/O processing system
US7937507B2 (en) Extended measurement word determination at a channel subsystem of an I/O processing system
US7899944B2 (en) Open exchange limiting in an I/O processing system
CA2704138C (en) Providing indirect data addressing in an input/output processing system where the indirect data address list is non-contiguous
US7908403B2 (en) Reserved device access contention reduction
US8516161B2 (en) Providing indirect data addressing for a control block at a channel subsystem of an I/O processing system
US8549204B2 (en) Method and apparatus for scheduling transactions in a multi-speed bus environment
US11086530B2 (en) Providing service address space for diagnostics collection
CN101263464B (en) Parallel processing of frame based data transfers
WO2006083836A3 (en) Transmit completion event batching
CN101982955A (en) High-performance file transmission system and method thereof
TWI827754B (en) Mispredict recovery apparatus and method for recovering from mispredicts
US8448172B2 (en) Controlling parallel execution of plural simulation programs
US20140304440A1 (en) System and method for managing input/output data of peripheral devices
CN105677491B (en) A kind of data transmission method and device
CN204733178U (en) A kind of EtherCAT master station device based on FPGA
CN102625110A (en) Caching system and caching method for video data
JP2024503168A (en) Multi-threaded controller for parallel robots
CN108063809B (en) Machine equipment data acquisition method and acquisition system
CN109412939A (en) Record the communication gate and working method of industrial network communication cycle process data
CN109508258A (en) A kind of acquisition and storage method and system of miss distance data
CN109101456B (en) Data interactive communication method and device in simulation SSD and terminal
CN101594305A (en) A kind of message processing method and device
CN108345492A (en) The method, apparatus and processor of a kind of data communication in virtualized environment
US9678852B2 (en) Tracing the operations of a data processing apparatus using trace data source identifiers to respond to flush requests

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20190322

RJ01 Rejection of invention patent application after publication