Method and device for data stream transmitting

文档序号:1759076 发布日期:2019-11-29 浏览:22次 中文

阅读说明:本技术 用于数据流传输的方法及装置 (Method and device for data stream transmitting ) 是由 张燚 刘科 张丽燕 贯顺 杨敏 孙艳 曾峥 于 2019-08-05 设计创作,主要内容包括:本申请涉及数据传输技术领域,公开了一种用于数据流传输的方法,包括:在光学舱内,对待传输数据进行编码,获得编码数据并发送;在电子舱内,接收编码数据,对编码数据进行解码、校验数据处理,得到传输数据处理结果;芯片接收传输数据处理结果;可以提高数据流传输的可靠性,将光学舱内的待传输数据完整、正确地传输至电子舱内的处理芯片,本申请还公开了一种用于数据流传输的装置。(This application involves technical field of data transmission, disclose a kind of method for data stream transmitting, comprising: in optics cabin, encode to data to be transmitted, obtain coded data and send;In electronic compartment, coded data is received, coded data is decoded, verifies data processing, obtains transmission data processed result;Chip receives transmission data processed result;The reliability that data stream transmitting can be improved, the processing chip data to be transmitted in optics cabin completely, being correctly transmitted in electronic compartment, disclosed herein as well is a kind of devices for data stream transmitting.)

1. a kind of method for data stream transmitting characterized by comprising

In optics cabin, data to be transmitted is encoded, obtain coded data and is sent;

In electronic compartment, the coded data is received, the coded data is decoded, verifies data processing, is transmitted Data processed result;

Chip receives the transmission data processed result.

2. the method according to claim 1, wherein further include:

The coded data is carried out to reduce data bit width operation;With,

It carries out restoring data bit width operation after receiving the coded data.

3. according to the method described in claim 2, it is characterized in that, it is described to coded data carry out reduce data bit width operation, Include:

The clock signal of the data to be transmitted is subjected to process of frequency multiplication, obtains the frequency multiplied clock signal of the clock signal;

By the data to be transmitted according in clock signal frequency write-in the first storage equipment, read in the first storage equipment End reads low-bit width formatted data according to frequency multiplied clock signal and low-bit width data format.

4. according to the method described in claim 2, it is characterized in that, the recovery data bit width operates, comprising:

The coded data is stored in equipment according to frequency multiplied clock signal write-in second, in the reading of the second storage equipment End reads high-bit width formatted data according to clock signal and high-bit width data format.

5. the method according to claim 1, wherein further include:

Nonuniformity Correction is carried out to the data to be transmitted before coding;With,

Nonuniformity Correction is carried out to the transmission data processed result.

6. according to the method described in claim 5, it is characterized in that,

Nonuniformity Correction is carried out to the data to be transmitted before coding using first method;

Nonuniformity Correction is carried out to the transmission data processed result using second method;

Wherein, the first method and second method difference.

7. the method according to claim 1, wherein the coded data includes: the data to be transmitted, and, Based on the data to be transmitted generate code data and verification and.

8. the method according to the description of claim 7 is characterized in that generating code data and verification based on the data to be transmitted With, comprising:

Code data is obtained after the data to be transmitted and the data to be transmitted are carried out xor operation with the data of bit wide;

The code data is added with the data to be transmitted, obtain verification and.

9. the method according to claim 1, wherein be decoded to the coded data, verify data processing, Include:

Xor operation, data after being restored are carried out with the data of bit wide by the coded data and with it;

Calculate after the recovery data check and, if after the recovery after the verification data of data and the recovery data check and Identical, then data transmission is correct.

10. a kind of device for data stream transmitting, including processor and the memory for being stored with program instruction, feature exists In,

The processor is configured to executing side as described in any one of claim 1 to 9 when executing described program instruction Method.

Technical field

This application involves technical field of data transmission, such as are related to a kind of biography for infrared imaging formula target seeker data flow Transmission method and device.

Background technique

Infrared imaging formula target seeker has the angular resolution of output high, and guidance accuracy is high, and passive detection is small, is not easy to be sent out It is existing, round-the-clock can use round the clock, it is small in size, light-weight, structure is relatively easy the features such as.

A kind of typical structure of infrared imaging formula target seeker, is made of optics cabin and electronic compartment two parts, and two cabins have phase To independent structure.Focal plane infrared detector and related support circuit are installed in optics cabin, are used for infrared imaging;Electronic compartment Main processing chip and support circuit are inside installed, for controlling target seeker and carrying out relevant calculation.It is worked in target seeker Cheng Zhong is needed by the image data after infrared detector imaging in focal plane in optics cabin, extremely by special algorithm and channel transfer In electronic compartment, the resolved data in electronic compartment restores image, is finally distributed to main processing chip and is handled.

In the target seeker course of work, the mechanical environment that target seeker itself is born is complex, further, since in target seeker There are motor and its motor-drive circuit in portion, so that data flow can be by the processing chip transmission process by optics cabin to electronic compartment To more interference, data stream transmitting poor reliability.

Summary of the invention

In order to which some aspects of the embodiment to disclosure have basic understanding, simple summary is shown below.It is aforementioned general Including is not extensive overview, nor to determine key/critical component or describe the protection scope of these embodiments, but is made For the preamble of following detailed description.

The embodiment of the present disclosure provides a kind of method and device for data stream transmitting, to solve data flow by optics Cabin is into the processing chip transmission process of electronic compartment due to being interfered and causing the technical problem of transmission reliability difference.

It in some embodiments, include: to be compiled in optics cabin to data to be transmitted for the method for data stream transmitting Code obtains coded data and sends;In electronic compartment, coded data is received, coded data is decoded, is verified at data Reason obtains transmission data processed result;Chip receives transmission data processed result.

It in some embodiments, include: processor and the storage for being stored with program instruction for the device of data stream transmitting Device, processor are configured as when executing program instructions, and execute the method for being previously used for data stream transmitting.

The method and device for data stream transmitting that the embodiment of the present disclosure provides, may be implemented following technical effect:

Data to be transmitted in optics cabin is encoded, the data received are carried out after data flow is received in electronic compartment Code check is solved, the reliability of data stream transmitting can be improved, it is the data to be transmitted in optics cabin is complete, be correctly transmitted to electricity Processing chip in sub- cabin.

Above general description and it is discussed below be only it is exemplary and explanatory, be not used in limitation the application.

Detailed description of the invention

One or more embodiments are illustrated by corresponding attached drawing, these exemplary illustrations and attached drawing The restriction to embodiment is not constituted, the element with same reference numbers label is shown as similar element in attached drawing, and attached drawing is not Composition limitation, and wherein:

Fig. 1 is the method flow schematic diagram for data stream transmitting that the embodiment of the present disclosure provides;

Fig. 2 is the apparatus structure schematic diagram for data stream transmitting that the embodiment of the present disclosure provides.

Specific embodiment

The characteristics of in order to more fully hereinafter understand the embodiment of the present disclosure and technology contents, with reference to the accompanying drawing to this public affairs The realization for opening embodiment is described in detail, appended attached drawing purposes of discussion only for reference, is not used to limit the embodiment of the present disclosure. In technical description below, for convenience of explanation for the sake of, disclosed embodiment is fully understood with providing by multiple details. However, one or more embodiments still can be implemented in the case where without these details.It in other cases, is simplification Attached drawing, well known construction and device can simplify displaying.

In the embodiments of the present disclosure, optics cabin and equal use site programmable gate array (FPGA, the Field- of electronic compartment Programmable Gate Array) device, transmits focal plane infrared detector vision signal.Optics cabin FPGA device is known as First FPGA, electronic compartment FPGA device are known as the 2nd FPGA.

As shown in Figure 1, the embodiment of the present disclosure provides a kind of method for data stream transmitting, comprising:

Step 11, in optics cabin, data to be transmitted is encoded, obtain coded data and is sent;

Step 12, in electronic compartment, coded data is received, coded data is decoded, verifies data processing, is passed Transmission of data processing result;

Step 13, chip receives transmission data processed result.

Data to be transmitted in optics cabin is encoded, the data received are carried out after data flow is received in electronic compartment Code check is solved, the reliability of data stream transmitting can be improved, it is the data to be transmitted in optics cabin is complete, be correctly transmitted to electricity Processing chip in sub- cabin.

After target seeker powers on, the first FPGA focal plane infrared detector by internal integrated circuit bus (I2C, Inter-Integrated Circuit) interface progress parameter configuration, configuration content includes: resolution ratio, the time of integration and biasing Voltage etc.;After the completion of configuration, focal plane infrared detector is exported by analog interface: vision signal, field sync signal, row synchronize Signal and video clock signal.

In some embodiments, 14bit digital quantity value can be set by each pixel, line synchronising signal is set as 384 A pixel, field sync signal are set as 384*288 pixel, and the first FPGA receives the infrared spy in focal plane by pixel and serial structure Device signal is surveyed, by digital interface operation simulation/number conversion chip (ADC, Analog-to-Digital Converter), The analog video signal of focal plane infrared detector output is sampled, and optionally, setting video resolution is high pixel value i =384, wide pixel value j=288 can be configured to different resolution ratio according to actual needs, obtain the number view of 14bit bit wide Frequency signal pij, pijAs raw video image.

In some embodiments, Nonuniformity Correction is carried out to the data to be transmitted before coding;To transmission data processing knot Fruit carries out Nonuniformity Correction.

In some embodiments, Nonuniformity Correction is carried out to the data to be transmitted before coding using first method;Using Second method carries out Nonuniformity Correction to transmission data processed result;Wherein, first method and second method difference.

In some embodiments, Nonuniformity Correction is carried out to the data to be transmitted before coding using first method;By pij Each of pixel according to same position multiplied by configuration parameter kij, obtain vision signal Pij。kijIt is obtained by off-line learning, It is stored in the storage unit read-only memory (ROM, Read-Only Memory) inside the first FPGA Nei, step formula table It is shown as:

|Pij|=| pij|.*|kij|.Infrared Image Non-uniformity Correction is carried out using the first fpga chip, does not need other Peripheral hardware storage chip supports there is lesser hardware spending, and small in size, the limited infrared seeker of system is suitble to use.

In some embodiments, coded data includes: data to be transmitted, based on data to be transmitted generate code data and Verification and.

In some embodiments, based on data to be transmitted generate code data and verification and, comprising: by data to be transmitted with Data to be transmitted obtains code data after carrying out xor operation with the data of bit wide;Code data is added with data to be transmitted, Obtain verification and.

In some embodiments, the first FPGA performs the encoding operation data to be transmitted;Before each video data Ten code data C are added, are then added the data of each 14bit, wherein including ten code datas C and 384*288 A video data abandons principle according to carry and obtains a new 14bit verification data, verification data are inserted into video data Stream finally, so far video data encoding operation complete.Wherein, code data C is the spy using xor operation invariance twice The data for ten 14bit that point is formulated, code data C are obtained by data to be transmitted A and data to be transmitted with the data B exclusive or of bit wide It arrives.Data to be transmitted is encoded, the reliability of transmitting data stream can be improved.

In some embodiments, coded data is carried out reducing data bit width operation;Restored after receiving coded data Data bit width operation.

In some embodiments, coded data is carried out reducing data bit width operation, comprising: by the clock of data to be transmitted Signal carries out process of frequency multiplication, obtains the frequency multiplied clock signal of clock signal;Data to be transmitted is written according to clock signal frequency In first storage equipment, end is read in the first storage equipment, reads low level according to frequency multiplied clock signal and low-bit width data format Wide format data.

In some embodiments, by 14 times of video clock signal clk frequency multiplication, frequency multiplied clock signal clk is obtained14, by PijIt presses In the first storage equipment being stored in inside the first FPGA according to the clock frequency of clk, the first storage equipment is to be set to the first FPGA Internal random access memory (RAM, Random Access Memory) utilizes clk at the reading end of RAM later14It presses 1bit data format reads data, at this time video data Pij1bit is split as by 14bit while keeping data time constant, is led to Data to be transmitted is sent external low-voltage differential signal transmission chip by the output port for crossing the first FPGA, and the chip is by 1bit Data are converted to differential signal transmission, use twisted-pair shielded wire in transmission, are sent to electronic compartment.In this way, transmission 14bit pixel One group of twisted-pair shielded wire is used only in information, can be improved the anti-interference ability of data stream transmitting.

In some embodiments, restore data bit width operation, comprising: by coded data according to frequency multiplied clock signal write-in the In two storage equipment, at the reading end of the second storage equipment, high-bit width lattice are read according to clock signal and high-bit width data format Formula data.

In electronic compartment, chip is received by low-voltage differential signal and receives differential signal, differential signal is reverted into 1bit Data and frequency multiplied clock signal clk14, while by after recovery data and frequency multiplied clock signal be sent to electronic compartment FPGA device The receiving port of 2nd FPGA, the 2nd FPGA is by frequency multiplied clock signal clk14Frequency reducing be clock signal clk, then according to frequency multiplication when Clock signal clk14With 1bit bit wide by data deposit the second storage equipment, the second storage equipment is to be set to inside the 2nd FPGA RAM is read from RAM according still further to clock signal clk and 14bit bit wide, and data-signal reverts to 14bit bit wide at this time.

In some embodiments, coded data is decoded, verifies data processing, comprising: by coded data and and its Data with bit wide carry out xor operation, data after being restored;Calculate restore after data check and, if restore after data school Test data with restore after data check and identical, then data transmission is correct.

In some embodiments, by revert to 14bit bit wide data and aforementioned and data to be transmitted with bit wide data B Xor operation is carried out, thinks to have obtained the initial position of every field data, Zhi Houzai after obtaining 10 wholes correct data A Each 14bit data is added, wherein including ten code datas and 384*288 video data, addition obtains one newly 14bit verify data, which is compared with the last one in the data for reverting to 14bit bit wide, if Data are identical, think that this video data receives, obtain video data Pij

In some embodiments, Nonuniformity Correction is carried out to transmission data processed result using second method.

Second method is formulated are as follows: [Qij]=[Pij]-[bij]+T, wherein T is certain constant, prevents from doing subtraction Occurs negative situation when operation;[bij] it is on-line training parameter, it is stored in the RAM in the 2nd FPGA;QijIt is non-equal to have carried out The video data of even property correction.[bij] training method is after target seeker powers on, it, will be burnt using the more uniform baffle of emission ratio Plane infrared detector sensitive area obtains 384*288 video data after blocking, and records 8 video datas altogether, later regards 8 Frequency is averaged to obtain [b according to superimposedij].Infrared Image Non-uniformity Correction is carried out using the second fpga chip, is not needed Other peripheral hardware storage chips support there is lesser hardware spending, and small in size, the limited infrared seeker of system is suitble to use.

In some embodiments, to video data Q by the way of a kind of linear stretchijIt carries out improving picture contrast behaviour Make, specific formula is as follows:

Wherein, K is drawing coefficient, and m, n are constant and m > n, [Qij] * K >=m, [Qij]*K≤n.By video data QijTurn It is changed to [Rij], gap of the temperature difference in digital representation amount can be amplified, as raising contrast.Aforementioned raising picture contrast Method, high-efficient, time delay is low, final effect is preferable.

In some embodiments, to the vision signal [R for promoting contrastij] image gradient operation is carried out, specific method is such as Under: first to [Rij] both horizontally and vertically gradient extracts calculating for image progress simultaneously, formula is as follows:

[Ts in formulaij] horizontal direction gradient is represented as a result, [Ssij] it is the horizontal operator of sobel, value is

[Tc in formulaij] vertical gradient is represented as a result, [Scij] it is sobel vertical operator, value is

By the root of the squared sum of gradient calculated result of both direction, formula is as follows:

Finally obtain gradient image [Tij], by gradient image [Tij] with promoted contrast after vision signal [Rij] be added Obtain final image data [Zij].Gradient operation is carried out to image using foregoing manner, is improving image edge information and details While information, also can improving image quality, also have the effect of low time delay.

As shown in Fig. 2, the embodiment of the present disclosure provides a kind of device for data stream transmitting, comprising:

Processor (processor) 100 and memory (memory) 101 can also include communication interface (Communication Interface) 102 and bus 103.Wherein, processor 100, communication interface 102, memory 101 can To complete mutual communication by bus 103.Communication interface 102 can be used for information transmission.Processor 100 can be called and be deposited Logical order in reservoir 101, to execute method of the above-described embodiment for data stream transmitting.

In addition, the logical order in above-mentioned memory 101 can be realized by way of SFU software functional unit and conduct Independent product when selling or using, can store in a computer readable storage medium.

Memory 101 is used as a kind of computer readable storage medium, can be used for storing software program, journey can be performed in computer Sequence, such as the corresponding program instruction/module of the method in the embodiment of the present disclosure.Processor 100 is stored in memory 101 by operation In software program, instruction and module, thereby executing functional application and data processing, i.e., in realization above method embodiment Method for data stream transmitting.

Memory 101 may include storing program area and storage data area, wherein storing program area can storage program area, Application program needed at least one function;Storage data area, which can be stored, uses created data etc. according to terminal device. In addition, memory 101 may include high-speed random access memory, it can also include nonvolatile memory.

The embodiment of the present disclosure provides a kind of infrared imaging formula target seeker, includes the above-mentioned dress for data stream transmitting It sets.

The embodiment of the present disclosure provides a kind of computer readable storage medium, is stored with computer executable instructions, calculates Machine executable instruction is arranged to carry out the above-mentioned method for data stream transmitting.

The embodiment of the present disclosure provides a kind of computer program product, and computer program product can including being stored in computer The computer program on storage medium is read, computer program includes program instruction, when program instruction is computer-executed, makes to count Calculation machine executes the above-mentioned method for data stream transmitting.

Above-mentioned computer readable storage medium can be transitory computer readable storage medium, be also possible to non-transient meter Calculation machine readable storage medium storing program for executing.

The technical solution of the embodiment of the present disclosure can be embodied in the form of software products, which deposits Storage in one storage medium, including one or more instruction is used so that computer equipment (can be personal computer, Server or the network equipment etc.) execute embodiment of the present disclosure method all or part of the steps.And storage medium above-mentioned can To be non-transient storage media, comprising: USB flash disk, read-only memory (ROM, Read-Only Memory), is deposited mobile hard disk at random A variety of media that can store program code such as access to memory (RAM, Random Access Memory), magnetic or disk, It is also possible to transitory memory medium.

Above description and attached drawing sufficiently illustrate embodiment of the disclosure, to enable those skilled in the art to practice They.Other embodiments may include structure, logic, it is electrical, process and other change.Embodiment only represents Possible variation.Unless explicitly requested, otherwise individual components and functionality is optional, and the sequence operated can change. The part of some embodiments and feature can be included in or replace part and the feature of other embodiments.The embodiment of the present disclosure Range includes the entire scope of claims and all obtainable equivalents of claims.When for the application When middle, although term " first ", " second " etc. may be used in this application to describe each element, these elements should not be by To the limitation of these terms.These terms are only used to differentiate an element with another element.For example, not changing description Meaning in the case where, first element can be called second element, and same, and second element can be called first element, As long as " first element " that is occurred unanimously renames and " second element " occurred unanimously renames.First Element and second element are all elements, but can not be identical element.Moreover, word used herein is only used for describing Embodiment and it is not used in limitation claim.As used in the description in embodiment and claim, unless context It clearly illustrates, otherwise "one" (a) of singular, "one" (an) and " described " (the) is intended to equally include plural shape Formula.Similarly, term "and/or" refers to and associated lists comprising one or more as used in this specification Any and all possible combination.In addition, when in the application, term " includes " (comprise) and its modification " packet Include " (comprises) and/or feature, entirety, step, operation, element and/or group including the statement such as (comprising) fingers The presence of part, but it is not excluded for one or more other features, entirety, step, operation, element, component and/or these point The presence or addition of group.In the absence of more restrictions, the element limited by sentence " including one ... ", it is not excluded that There is also other identical elements in process, method or equipment including aforementioned elements.Herein, each embodiment emphasis is said Bright can be the difference from other embodiments, and the same or similar parts in each embodiment can refer to each other.For For method, product disclosed in embodiment etc., if it is corresponding with method part disclosed in embodiment, related place can Referring to the description of method part.

It will be appreciated by those of skill in the art that unit described in conjunction with the examples disclosed in the embodiments of the present disclosure and Algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually with hard Part or software mode execute, and can depend on the specific application and design constraint of technical solution.Technical staff can be with Described function is realized using distinct methods to each specific application, but this realization is it is not considered that exceed this public affairs Open the range of embodiment.Technical staff can be understood that for convenience and simplicity of description, the system of foregoing description fills The specific work process with unit is set, can refer to corresponding processes in the foregoing method embodiment, details are not described herein.

In embodiments disclosed herein, disclosed method, product (including but not limited to device, equipment etc.) can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the division of unit, It can be only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components It can be combined or can be integrated into another system, or some features can be ignored or not executed.In addition, shown or beg for The mutual coupling, direct-coupling or communication connection of opinion can be through some interfaces, the INDIRECT COUPLING of device or unit Or communication connection, it can be electrical property, mechanical or other forms.Unit can be or can also be with as illustrated by the separation member It is not physically separated, component shown as a unit may or may not be physical unit, it can be located at one A place, or may be distributed over multiple network units.Part therein or complete can be selected according to the actual needs Portion unit realizes the present embodiment.In addition, each functional unit in the embodiments of the present disclosure can integrate in a processing unit In, it is also possible to each unit and physically exists alone, can also be integrated in one unit with two or more units.

The flow chart and block diagram in the drawings show system, the method and computer program products according to the embodiment of the present disclosure Architecture, function and operation in the cards.In this regard, each box in flowchart or block diagram can represent one A part of module, section or code, a part of module, section or code include one or more for realizing regulation Logic function executable instruction.In some implementations as replacements, function marked in the box can also be with difference The sequence marked in attached drawing occurs.For example, two continuous boxes can actually be basically executed in parallel, they are sometimes It can also execute in the opposite order, this can be depended on the functions involved.Corresponding to flow chart and block diagram in the accompanying drawings Description in, operation corresponding to different boxes or step can also be occurred with being different from sequence disclosed in description, be had There is no specific sequences between the operation or step of Shi Butong.For example, two continuous operations or step can actually bases Originally it is performed in parallel, they can also be executed in the opposite order sometimes, this can be depended on the functions involved.Block diagram and/ Or the combination of each box in flow chart and the box in block diagram and or flow chart, can with execute as defined in function or The dedicated hardware based system of movement is realized, or can be realized using a combination of dedicated hardware and computer instructions.

10页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种实时视频缩放的硬件电路及其缩放方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类