CN109089029A - A kind of Gige Vision interface image Transmission system and method based on FPGA - Google Patents
A kind of Gige Vision interface image Transmission system and method based on FPGA Download PDFInfo
- Publication number
- CN109089029A CN109089029A CN201811029173.0A CN201811029173A CN109089029A CN 109089029 A CN109089029 A CN 109089029A CN 201811029173 A CN201811029173 A CN 201811029173A CN 109089029 A CN109089029 A CN 109089029A
- Authority
- CN
- China
- Prior art keywords
- module
- data
- image
- host computer
- ethernet
- 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
Links
- 230000005540 biological transmission Effects 0.000 title claims abstract description 47
- 238000000034 method Methods 0.000 title claims abstract description 23
- 238000003384 imaging method Methods 0.000 claims abstract description 19
- 230000011664 signaling Effects 0.000 claims description 55
- 238000012545 processing Methods 0.000 claims description 35
- 238000005538 encapsulation Methods 0.000 claims description 21
- 230000004044 response Effects 0.000 claims description 12
- 230000003993 interaction Effects 0.000 claims description 9
- 238000012795 verification Methods 0.000 claims description 9
- 230000006870 function Effects 0.000 claims description 8
- 230000008569 process Effects 0.000 claims description 7
- 230000003068 static effect Effects 0.000 claims description 7
- 101100328518 Caenorhabditis elegans cnt-1 gene Proteins 0.000 claims description 6
- 101100328519 Caenorhabditis elegans cnt-2 gene Proteins 0.000 claims description 6
- 238000007781 pre-processing Methods 0.000 claims description 4
- 238000004364 calculation method Methods 0.000 claims description 3
- 125000004122 cyclic group Chemical group 0.000 claims description 3
- 238000001514 detection method Methods 0.000 claims description 3
- 238000003780 insertion Methods 0.000 claims 2
- 230000037431 insertion Effects 0.000 claims 2
- 239000000284 extract Substances 0.000 claims 1
- 230000008901 benefit Effects 0.000 abstract description 4
- RTZKZFJDLAIYFH-UHFFFAOYSA-N Diethyl ether Chemical compound CCOCC RTZKZFJDLAIYFH-UHFFFAOYSA-N 0.000 description 4
- 230000008859 change Effects 0.000 description 4
- 238000010276 construction Methods 0.000 description 3
- 238000013461 design Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 238000011160 research Methods 0.000 description 2
- 101100283411 Arabidopsis thaliana GMII gene Proteins 0.000 description 1
- 241001292396 Cirrhitidae Species 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 239000002131 composite material Substances 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 238000000151 deposition Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005183 dynamical system Methods 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
- 230000007704 transition Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
- 230000001755 vocal effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/50—Constructional details
- H04N23/54—Mounting of pick-up tubes, electronic image sensors, deviation or focusing coils
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/004—Arrangements for detecting or preventing errors in the information received by using forward error control
- H04L1/0056—Systems characterized by the type of code used
- H04L1/0061—Error detection codes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/09—Mapping addresses
- H04L61/10—Mapping addresses of different types
- H04L61/103—Mapping addresses of different types across network layers, e.g. resolution of network layer into physical layer addresses or address resolution protocol [ARP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/568—Storing data temporarily at an intermediate stage, e.g. caching
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/18—Multiprotocol handlers, e.g. single devices capable of handling multiple protocols
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/22—Parsing or analysis of headers
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Computer Security & Cryptography (AREA)
- Multimedia (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a kind of Gige Vision interface image Transmission system and method based on FPGA, including imaging sensor, host computer, local gigabit Ethernet network, based on the built-in image collection equipment of Gige interface, wherein the built-in image collection equipment based on Gige interface is the core equipment of system, including fpga chip, PHY chip;Wherein FPGA signal input part is connect with imaging sensor output signal end;FPGA mutually connects with signal with PHY chip;PHY chip and RJ45 interface interconnect, and RJ45 interface is connected by cable with PC host computer.The Image Acquisition embedded system based on FPGA Yu Gige interface that the present invention realizes, efficiency of transmission is high, long transmission distance, and to compared with IP kernel similar in industry, having many advantages, such as that occupancy logical resource is less, hsrdware requirements are lower.
Description
Technical field
The present invention relates to digital image processing techniques field, in particular to a kind of Gige Vision interface based on FPGA
Image delivering system and method.
Background technique
With the continuous development of computer network communication and multimedia technology, the progress of image processing techniques and mature,
In the fields such as medical treatment, living things feature recognition, machine vision, military affairs, remote sensing monitoring, the application of image processing system is more and more wider
It is general, regardless of the data transmission research in image processing system is always one of the key point of research in which field.Comparison
Traditional transmission technology is played, such as 100 m ethernet technology, RS232 interface are intended to transmit the interface of simple information, existing height
Quick access vocal imitation skill is as USB interface, Camera Link interface, IEEE 1394, GigE gigabit ethernet interface etc. can be provided
Bandwidth is bigger, and big data demand needed for being more able to satisfy high Qinghua and big data.Compared to other interfaces, gigabit Ethernet is connect
Mouth have on image transmitting with roomy, long transmission distance, can seamless upgrade to ten thousand mbit ethernets advantage.And FPGA is powerful
The inborn characteristics such as parallel data processing capacity, online programmable and dynamical system reconstruct static programmable pass it in image
Defeated field has a wide range of applications.
Summary of the invention
The shortcomings that it is a primary object of the present invention to overcome the prior art and deficiency, provide a kind of Gige based on FPGA
Vision interface image Transmission system can in conjunction with gigabit Ethernet and FPGA, and using Gige Vision as transport protocol
It is effectively improved traditional embedded image at present and transmits the problem that existing hardware cost is high, transmission range is shorter, operation power consumption is big.
Another object of the present invention is to provide a kind of Gige Vision interface image transmission method based on FPGA.
The purpose of the present invention is realized by the following technical solution:
A kind of Gige Vision interface image Transmission system based on FPGA, comprising: imaging sensor, host computer, local
Gigabit Ethernet network, the built-in image collection equipment based on Gige interface, wherein the embedded image based on Gige interface is adopted
Integrate equipment as the core equipment of system, including fpga chip, PHY chip;Wherein fpga chip signal input part and image sensing
The connection of device output signal end;Fpga chip mutually connects with signal with PHY chip;PHY chip is connected with host computer;
Fpga chip includes: image capture module (1), picture format processing module (2), GVCP control module (3), ether
FidonetFido stack module (4) and ethernet control module (5);
The course of work of system includes:
1) camera, built-in image collection equipment and host computer are connected in the same local area network, and system electrification is initial
Change, host computer reads equipment state, configuration device parameter, issues discovery instruction and open command, system starts automatically;
2) camera obtains image data, is transmitted to built-in image collection equipment, is correspondingly embedded in formula image capture device
According to data packet is obtained, encapsulated by parsing and pre-processing laggard row format, after the completion of host computer and the Signalling exchange of equipment,
Data and parameter are uploaded to host computer;
3) camera image and image parameter selected by host computer real-time display.
Preferably, built-in image collection equipment is connected by image capture module (1) with imaging sensor, and responsible pair
Cmos image sensor carries out device configuration and image data acquiring;
Picture format processing module (2), pre-processes imaging sensor acquired image, realizes that function includes pair
Input image data carries out cutting packet, format encapsulation, it is made to meet the transmission standard of GVSP Apple talk Data Stream Protocol Apple Ta;
GVCP control module (3), the GVCP control protocol for being responsible for sending with host computer interact;
Ethernet protocol stack module (4) is responsible for the data sended over to up-stream module and carries out ethernet format encapsulation, makes
It obtains it and meets gigabit Ethernet transformat requirement, which has ARP, ICMP agreement automatic answer function, can parse
The ARP request datagram that position machine is sent, and send corresponding ARP, ICMP reply data packet automatically and carry out response, and by input
Host computer MAC Address and IP address are cached into static cache list block;
Ethernet control module (5) realizes control and signal interaction to PHY chip, including lead code and cyclic redundancy check
Addition so that data meet physical layer transmission requirement.
Specifically, image capture module (1) include camera parameter list module (1.1), camera configuration module (1.2),
Utilizing camera interface module (1.3), image capture interface module (1.4);
Picture format processing module (2) is single module;
GVCP control module (3) includes equipment discovery configuration module (3.1), device register module for reading and writing (3.2), equipment
Memory read-write module (3.3), GVCP message convergence module (3.4);
Ethernet protocol stack module (4) includes that ARP_IP summarizes parsing module (4.1), ARP parsing module (4.2), ARP hair
Send module (4.3), static list cache module (4.4), IP parsing module (4.5), ICMP parsing module (4.6), UDP parsing mould
Block (4.7), ICMP sending module (4.8), message convergence module (4.9), UDP sending module (4.10), UDP cut packet module
(4.11);
Ethernet control module (5) includes MAC control module (5.1), MAC interface module (5.2), MAC configuration module
(5.3), PLL module (5.4).
Preferably, host computer includes to read XML file, parsing to the real-time processing under built-in image collection equipment
XML file, discovering device generate configuration interface, Signalling exchange, image buffer storage and display.
A kind of Gige Vision interface image transmission method based on FPGA, comprising the following steps:
A) camera, built-in image collection equipment and host computer are connected in the same local area network, and system electrification is initial
Change;
B) host computer sends signaling message GVCP, carries out information exchange by gigabit ethernet interface and FPGA, negotiates simultaneously
Configure the universal guiding register and user register in equipment;
C) after host computer completes basic equipment read-write register operation, equipment XML is read by signaling message form and is retouched
State file;
D) upper computer software automatically parses XML file, carries out if successfully resolved in next step, otherwise software reports an error and returns
To step c);
E) host computer generates configuration interface and transmission channel;
F) vision facilities acquisition is enabled according to the customized register of user, opens Image Acquisition operation;
G) format encapsulation is carried out to the image of acquisition to transmit with Ethernet;
H) it shuts down and completes to operate.
Preferably, host computer and the signaling message stream interaction flow of built-in image collection equipment include:
The reception of signaling message: host computer PC sends signaling message, is connected through cable with PHY chip;Gigabit Ethernet
GVCP signaling message is transmitted to ethernet control module (5) by PHY chip, and ethernet control module removes lead code to message,
And after carrying out CRC check, it is transferred to ethernet protocol stack module (4);In ethernet protocol stack module, data are first transmitted to
The total parsing module of ARP_IP (4.1) carries out MAC Address verification to the data of input, after removing MAC header format, according in data
IP type section, GVCP signaling message is sent to IP traffic, IP parsing module (4.5) are reached;IP parsing module (4.5) meeting pair
The data flow of input carries out IP Address Velocity and stem error detection code check, and IP address information progress is extracted from data segment
It caches, after the IP stem for removing signaling message, according to data stream type, signaling message data is transmitted to UDP parsing module
(4.7) it is parsed;UDP parsing module can carry out verification and calculation processing to the data of input, filter out the report of checksum error
Text, and remove and remaining data is sent to GVCP control module (3) behind the head UDP;GVCP control module signaling report based on the received
Text is read out, verifies, protocol processes operate, and generates built-in command according to signaling message and operate equipment;
The transmission of signaling message: GVCP control module sends response message after receiving signaling message and being disposed
Reply host computer.GVCP first generates corresponding response message according to different signaling types, and response message first passes through GVCP message
Convergence module (3.4) is scheduled, and is sent to UDP later and is cut packet module (4.11), decides whether to need depending on sending message length demand
Cut packet and cutting length.
Specifically, data are sent to UDP sending module (4.10) after cutting packet module, MAC header is carried out to the data of input
Encapsulation, IP encapsulation and according to data portion and header format part calculate UDP verification and after, carry out the encapsulation of the head UDP,
Partial data is sent to message convergence module (4.9) later and carries out FIFO caching;Ethernet control module (5) can converge according to message
The sky of storing data FIFO expires state and is read out data in poly- module, will reply after message adds upper lead code and CRC check,
PC host computer is sent to eventually by network twisted-pair cable to interact.
Specifically, it is as follows to cut packet modular structure: data input pin need to input information include data portion, data end to end
Indication signal sop and eop, data valid signal vld and the purpose IP address for needing to be sent to, purpose physical address, destination
Mouth, source port;Wherein port information is sent to corresponding fifo module caching with address information respectively;And data portion, it is slow in FIFO
Two counter cnt_1472 are added before depositing, counter cnt_18, FIFO output end is also all double counters logic, be cnt_1 with
cnt_2;Cnt_1472 just calculates input data when there is data input, and adding a condition is din_vld signal, and cnt_
18 be only more than that 1454 bytes just start counting at the end of i.e. cnt_1472 is counted, and grow counting in input data length
In degree deposit information FIFO;And in FIFO output end, cnt_2 is responsible for counting stage number, if data length is too long, a point both ends are passed
Defeated, cnt_1 is responsible for counting actual output word joint number.
Preferably, after host computer and built-in image collection equipment complete the interaction of signaling message, host computer can be automatic
It sends and opens acquisition image command unlatching Image Acquisition, wherein the transmission flow of image data stream GVSP are as follows: image capture module
(1) image data is acquired according to imaging sensor Image Acquisition timing requirements, and is transmitted to picture format processing module (2);Figure
As data are after picture format processing module cut packet and encapsulation, it is sent to the message convergence module of ethernet protocol stack module
(4.9) it dispatches and transmits for ethernet control module;After adding lead code, CRC check in ethernet control module, pass through
PHY chip is sent to host computer imaging.
Specifically, the form that picture format processing module is packaged into MAC+IP+UDP+GVSP+ data to input data carries out
It sends.
Specifically, picture format processing module also needs the size according to acquisition image, adjustment length input is to a frame figure
It is sent as data cut wrapping, length set by SCPS register when length length is host computer Signalling exchange.
Compared with the prior art, the invention has the following advantages and beneficial effects:
(1) the present invention is based on fpga chips, and by (including in fpga chip interior design each section logic module
Image capture module, picture format processing module, GVCP control module, ethernet protocol stack module, ethernet control module five
A big module, each module are divided into multiple little modules composition again) logic module structure and data flow that realize Image Acquisition, by
On the one hand this effectively reduces hardware cost, reduces operation power consumption, reduces volume, on the other hand increase effectively at data
Reason amount improves data-handling efficiency, improves Energy Efficiency Ratio.It the composite can be widely applied to the industry spot based on machine vision
Monitoring.
(2) present invention includes to support ICMP, ARP, UDP, association IP agreement parsing and sent in the upper inside of scheme realization
View stack and protocol stack itself have high-performance and cut packet module, to compared with same type protocol stack, can improve gigabit Ethernet bandwidth benefit
It is user-friendly with rate and the encapsulation of protocol stack.
Detailed description of the invention
Fig. 1 is embodiment overall operation flow chart.
Fig. 2 is embodiment Signalling exchange flow chart.
Fig. 3 is that UDP cuts packet function structure chart.
Fig. 4 is picture format processing module structure chart.
Fig. 5 is picture format process module state transition diagram.
Fig. 6 is the system module block diagram of embodiment.
Specific embodiment
Present invention will now be described in further detail with reference to the embodiments and the accompanying drawings, but embodiments of the present invention are unlimited
In this.
Embodiment 1
It is in order to improve the disadvantages of logical resource consumption present in traditional Gige IP kernel is big, hardware cost is higher, originally
Invention simplifies agreement according to Gige Vision protocol contents and the requirement of Ethernet transformat to design and support control
Message protocol (Internet Control Message Protocol, ICMP) processed, address resolution protocol (Address
Resolution Protocol, ARP), User Datagram Protocol (User Datagram Protocol, UDP), gigabit ether
Net visual spatial attention agreement (GigE Vision Control Protocol, GVCP), gigabit Ethernet vision data stream protocol
The IP kernel of (GigE Vision Stream Protocol, GVSP) package and parsing, and utilize the parallel processing of FPGA, root
Image data is transferred to host computer real-time display according to Gige Vision protocol requirement.
A kind of Gige Vision interface image Transmission system based on FPGA, including cmos image sensor, PC are upper
Machine, local gigabit Ethernet network, the built-in image collection equipment based on Gige interface, wherein based on the embedded of Gige interface
Image capture device is the core equipment of system, including fpga chip, PHY chip, RJ45 interface.The wherein FPGA signal
Input terminal is connect with cmos image sensor output signal end;The FPGA mutually connects with signal with PHY chip;Described
PHY chip and the RJ45 interface interconnect, and RJ45 interface is connected by cable with PC host computer.Inside fpga chip
Design each section logic module, comprising: image capture module (1), picture format processing module (2), GVCP control module (3),
Ethernet protocol stack module (4) and ethernet control module (5), the part are realized using hardware description language Verilog, full
Sufficient Gige Vision transport protocol and the requirement of Ethernet transmission format protocol, it then follows gmii interface specification.
Wherein:
S1, image capture module (1) include camera parameter list module (1.1), camera configuration module (1.2), take the photograph
As head interface module (1.3), image capture interface module (1.4);
S2, picture format processing module (2) are single module;
S3, GVCP control module (3) include equipment discovery configuration module (3.1), device register module for reading and writing
(3.2), device memory module for reading and writing (3.3), GVCP message convergence module (3.4);
S4, ethernet protocol stack module (4) include ARP_IP summarize parsing module (4.1), ARP parsing module (4.2),
ARP sending module (4.3), static list cache module (4.4), IP parsing module (4.5), ICMP parsing module (4.6), UDP
Parsing module (4.7), ICMP sending module (4.8), message convergence module (4.9), UDP sending module (4.10), UDP Qie Baomo
Block (4.11);
S5, ethernet control module (5) include MAC control module (5.1), MAC interface module (5.2), MAC configuration module
(5.3), PLL module (5.4).
Embedded acquisition equipment is connected by image capture module (1) with imaging sensor, is responsible for sensing cmos image
Device carries out device configuration and image data acquiring.
Picture format processing module (2) is responsible for pre-processing imaging sensor acquired image, in logic module
Realize have the function of to carry out cutting packet, format encapsulation etc. to input image data, it is made to meet GVSP number in realization using single module
According to the transmission standard of stream protocol.
GVCP control module (3), the module are divided in logical construction division in order to which three sub-modules are realized, include to set
Standby discovery module, device register module for reading and writing, device memory module for reading and writing, the control module are responsible for and host computer transmission
GVCP control protocol interacts.
Ethernet protocol stack module (4) is divided in order to which multiple modules are realized in logical construction, is mainly responsible for upper
The data that trip module sends over carry out ethernet format encapsulation, so that it meets gigabit Ethernet transformat requirement, the mould
Block has ARP, ICMP agreement automatic answer function, can parse the ARP request datagram of host computer transmission, and sends phase automatically
ARP, ICMP reply data packet answered carry out response, and the host computer MAC Address and IP address of input are cached to static cache
In list block.
Ethernet control module (5) divides in order to which four modules are realized in logical construction, includes to PHY core
The control and signal interaction of piece, lead code and the addition of cyclic redundancy check etc., so that data meet physical layer transmission requirement.
Real-time processing of the computer as host computer to embedded acquisition equipment slave computer, includes to read XML file, solution
It analyses XML file, discovering device, generate configuration interface, Signalling exchange, image buffer storage and display.The course of work of system are as follows:
1) camera, built-in image collection equipment and computer are connected in the same local area network, and system electrification is initial
Change, host computer reads equipment state, configuration device parameter, issues discovery instruction and open command, system starts automatically;
2) camera obtains image data, is transmitted to built-in image collection equipment, is correspondingly embedded in formula image capture device
According to data packet is obtained, encapsulated by parsing and pre-processing laggard row format, after the completion of host computer and the Signalling exchange of equipment,
Data and parameter are uploaded to host computer;
3) camera image and image parameter selected by host computer real-time display.
FPGA in built-in image collection equipment selects the CYCLONE IV serial model No. of Altera to be
EP4CE15F17C8。
Ethernet PHY in built-in image collection equipment selects the RTL8211EG of Realtek company.
Host computer shows that software is the Halcon of MVtec company in embedded imaging system.
Embodiment 2
Referring to Fig.1, a kind of Gige Vision interface image transmission realizing method based on FPGA, overall operation process are as follows:
A) camera, built-in image collection equipment and computer are connected in the same local area network, and system electrification is initial
Change;
B) host computer sends signaling message GVCP, carries out information exchange by gigabit ethernet interface and FPGA, negotiates simultaneously
Configure the universal guiding register and user register in equipment;
C) after host computer completes basic equipment read-write register operation, equipment XML is read by signaling message form and is retouched
State file;
D) upper computer software automatically parses XML file, carries out if successfully resolved in next step, otherwise software reports an error and returns
To step c);
E) host computer generates configuration interface and transmission channel;
F) vision facilities acquisition is enabled according to the customized register of user, opens Image Acquisition operation;
G) format encapsulation is carried out to the image of acquisition to transmit with Ethernet;
H) it shuts down and completes to operate.
With reference to Fig. 2, the signaling message stream interaction flow of host computer and built-in image collection equipment:
The reception of signaling message: host computer PC sends signaling message, is connected through cable with PHY chip;Gigabit Ethernet
GVCP signaling message is transmitted to ethernet control module (5) by PHY chip, and ethernet control module removes lead code to message,
And after carrying out CRC check, it is transferred to ethernet protocol stack module (4);In ethernet protocol stack module, data are first transmitted to
The total parsing module of ARP_IP (4.1) carries out MAC Address verification to the data of input, after removing MAC header format, according in data
IP type section, GVCP signaling message is sent to IP traffic, IP parsing module (4.5) are reached;IP parsing module (4.5) meeting pair
The data flow of input carries out IP Address Velocity and stem error detection code check, and IP address information progress is extracted from data segment
It caches, after the IP stem for removing signaling message, according to data stream type, signaling message data is transmitted to UDP parsing module
(4.7) it is parsed;UDP parsing module can carry out verification and calculation processing to the data of input, filter out the report of checksum error
Text, and remove and remaining data is sent to GVCP control module (3) behind the head UDP;GVCP control module signaling report based on the received
Text is read out, verifies, protocol processes operate, and generates built-in command according to signaling message and operate equipment.
The transmission of signaling message: GVCP control module sends response message after receiving signaling message and being disposed
Reply host computer.GVCP first generates corresponding response message according to different signaling types, and response message first passes through GVCP message
Convergence module (3.4) is scheduled, and is sent to UDP later and is cut packet module (4.11), decides whether to need depending on sending message length demand
Cut packet and cutting length.
UDP message cuts packet function structure chart with reference to Fig. 3, and packet module is different from traditional cutting, which can
It reduces and there is the case where a large amount of short Bao Erxu zero paddings in gigabit Ethernet network, to improve network bandwidth utilization factor.The module knot
Structure is as follows: data input pin is respectively necessary for the sop of indication signal end to end and eop, data valid signal of input data part, data
The information such as purpose IP address, purpose physical address, destination port, the source port that vld and needs are sent to.Wherein port information
It is sent to corresponding fifo module caching respectively with address information;And data portion, in order to reduce, incoming message is too small and needs to mend 0
Two counter cnt_1472 are added before FIFO is cached in situation, counter cnt_18, FIFO output end is also all that double counters are patrolled
Volume, it is cnt_1 and cnt_2;Cnt_1472 just calculates input data when there is data input, and adding a condition is din_
Vld signal, and cnt_18 is only more than 1454 bytes in input data length, i.e. at the end of cnt_1472 is counted, just starts
It counts, and in counting step deposit information FIFO.And in FIFO output end, cnt_2 is responsible for counting stage number, if data length
Too long, then a point both ends are transmitted, and cnt_1 is responsible for counting actual output word joint number.
Data are sent to UDP sending module (4.10) after cutting packet module, carry out MAC header encapsulation, IP to the data of input
Encapsulate and according to data portion and header format part calculate UDP verification and after, carry out the encapsulation of the head UDP, later will be complete
Entire data is sent to convergence module (4.9) and carries out FIFO caching;Ethernet control module (5) can be according to storing data in convergence module
The sky of FIFO expires state and is read out data, after replying the upper lead code of message addition and CRC check, eventually by network multiple twin
Line is sent to PC host computer and interacts.
The PHY management interface signal of the ethernet control module is MDC and MDIO signal.
The GMII interactive signal of the ethernet control module is 125M work clock.
After host computer and built-in image collection equipment complete the interaction of signaling message, PC upper computer software can be sent out automatically
Unlatching acquisition image command is sent to open Image Acquisition, wherein the transmission flow of image data stream GVSP are as follows: image capture module (1)
Image data is acquired according to imaging sensor Image Acquisition timing requirements, and is transmitted to picture format processing module (2).
The structure chart of picture format processing module refers to Fig. 4.MAC+IP+UDP+GVSP+ data are packaged into input data
Form sent, wherein UDP encapsulate when verified and calculated, and GVSP encapsulate using Image format, shape
State convert reference Fig. 5.
Picture format processing module also need according to acquisition image size, adjustment length input to a frame image data into
Row is cut packet and is sent, and SCPS (Stream Channel Packet Size) is deposited when length length is host computer Signalling exchange
Length set by device.
Image data is sent to the report of ethernet protocol stack module after picture format processing module carries out cutting packet and encapsulation
Literary convergence module (4.9) is dispatched and is transmitted for ethernet control module;Lead code, the school CRC are added in ethernet control module
After testing, host computer imaging is sent to by PHY chip and RJ45.
After host computer receives Ethernet transmission data, Halcon software can carry out imaging to the data of acquisition and show.
The above embodiment is a preferred embodiment of the present invention, but embodiments of the present invention are not by above-described embodiment
Limitation, other any changes, modifications, substitutions, combinations, simplifications made without departing from the spirit and principles of the present invention,
It should be equivalent substitute mode, be included within the scope of the present invention.
Claims (10)
1. a kind of Gige Vision interface image Transmission system based on FPGA characterized by comprising imaging sensor, on
Position machine, local gigabit Ethernet network, the built-in image collection equipment based on Gige interface, wherein the insertion based on Gige interface
Formula image capture device is the core equipment of system, including fpga chip, PHY chip;Wherein fpga chip signal input part with
The connection of imaging sensor output signal end;Fpga chip mutually connects with signal with PHY chip;PHY chip is connected with host computer;
Fpga chip includes: image capture module (1), picture format processing module (2), GVCP control module (3), Ethernet association
Discuss stack module (4) and ethernet control module (5);
The course of work of system includes:
1) camera, built-in image collection equipment and host computer are connected in the same local area network, system electrification initialization, on
Position is machine-readable to take equipment state, configuration device parameter, automatic issue to find instruction and open command, system starts;
2) camera obtain image data, be transmitted to built-in image collection equipment, be correspondingly embedded in formula image capture device according to
Data packet is obtained, encapsulates by parsing and pre-processing laggard row format, after the completion of host computer and the Signalling exchange of equipment, will count
Host computer is uploaded to according to parameter;
3) camera image and image parameter selected by host computer real-time display.
2. the Gige Vision interface image Transmission system according to claim 1 based on FPGA, which is characterized in that figure
As acquisition module (1), built-in image collection equipment is connected with imaging sensor, is responsible for carrying out cmos image sensor
Device configuration and image data acquiring;
Picture format processing module (2), pre-processes imaging sensor acquired image, realizes that function includes to input
Image data carries out cutting packet, format encapsulation, it is made to meet the transmission standard of GVSP Apple talk Data Stream Protocol Apple Ta;
GVCP control module (3), the GVCP control protocol for being responsible for sending with host computer interact;
Ethernet protocol stack module (4) is responsible for the data sended over to up-stream module and carries out ethernet format encapsulation, so that its
Meet gigabit Ethernet transformat requirement, which has ARP, ICMP agreement automatic answer function, can parse host computer
The ARP request datagram of transmission, and send corresponding ARP, ICMP reply data packet automatically and carry out response, and by the upper of input
Machine MAC Address and IP address are cached into static cache list block;
Ethernet control module (5) realizes control and signal interaction to PHY chip, adding including lead code and cyclic redundancy check
Add, so that data meet physical layer transmission requirement.
3. the Gige Vision interface image Transmission system according to claim 2 based on FPGA, which is characterized in that figure
As acquisition module (1) includes camera parameter list module (1.1), camera configuration module (1.2), utilizing camera interface module
(1.3), image capture interface module (1.4);
Picture format processing module (2) is single module;
GVCP control module (3) includes equipment discovery configuration module (3.1), device register module for reading and writing (3.2), device memory
Module for reading and writing (3.3), GVCP message convergence module (3.4);
Ethernet protocol stack module (4) includes that ARP_IP summarizes parsing module (4.1), ARP parsing module (4.2), ARP transmission mould
Block (4.3), static list cache module (4.4), IP parsing module (4.5), ICMP parsing module (4.6), UDP parsing module
(4.7), ICMP sending module (4.8), message convergence module (4.9), UDP sending module (4.10), UDP cut packet module
(4.11);
Ethernet control module (5) include MAC control module (5.1), MAC interface module (5.2), MAC configuration module (5.3),
PLL module (5.4).
4. the Gige Vision interface image Transmission system according to claim 1 based on FPGA, which is characterized in that on
Position machine to the real-time processing under built-in image collection equipment, include read XML file, parsing XML file, discovering device,
Generate configuration interface, Signalling exchange, image buffer storage and display.
5. a kind of Gige Vision interface image transmission method based on system described in claim 3, which is characterized in that including
Following steps:
A) camera, built-in image collection equipment and host computer are connected in the same local area network, system electrification initialization;
B) host computer sends signaling message GVCP, carries out information exchange by gigabit ethernet interface and FPGA, negotiates and configure
Universal guiding register and user register in equipment;
C) after host computer completes basic equipment read-write register operation, equipment XML description text is read by signaling message form
Part;
D) upper computer software automatically parses XML file, carries out if successfully resolved in next step, otherwise software reports an error and is back to step
It is rapid c);
E) host computer generates configuration interface and transmission channel;
F) vision facilities acquisition is enabled according to the customized register of user, opens Image Acquisition operation;
G) format encapsulation is carried out to the image of acquisition to transmit with Ethernet;
H) it shuts down and completes to operate.
6. Gige Vision interface image transmission method according to claim 5, which is characterized in that host computer and insertion
The signaling message stream interaction flow of formula image capture device includes:
The reception of signaling message: host computer PC sends signaling message, is connected through cable with PHY chip;Gigabit Ethernet PHY core
GVCP signaling message is transmitted to ethernet control module (5) by piece, and ethernet control module removes lead code to message, and carries out
After CRC check, it is transferred to ethernet protocol stack module (4);In ethernet protocol stack module, data are first transmitted to ARP_IP
Total parsing module (4.1) carries out MAC Address verification to the data of input, after removing MAC header format, according to the IP class in data
Type section send GVCP signaling message to IP traffic, reaches IP parsing module (4.5);IP parsing module (4.5) can be to input
Data flow carries out IP Address Velocity and stem error detection code check, extracts IP address information from data segment and is cached, is removed
After going the IP stem of signaling message, according to data stream type, signaling message data is transmitted to UDP parsing module (4.7) and are carried out
Parsing;UDP parsing module can carry out verification and calculation processing to the data of input, filter out the message of checksum error, and remove
Remaining data is sent to GVCP control module (3) behind the head UDP;GVCP control module based on the received read by signaling message
It takes, verify, protocol processes operation, and built-in command is generated according to signaling message and operates equipment;
The transmission of signaling message: GVCP control module sends response message and replys after receiving signaling message and being disposed
Host computer;GVCP first generates corresponding response message according to different signaling types, and response message first passes through the convergence of GVCP message
Module (3.4) is scheduled, and is sent to UDP later and is cut packet module (4.11), depending on sending message length demand decides whether that packet need to be cut
And cutting length.
7. Gige Vision interface image transmission method according to claim 6, which is characterized in that data are by cutting packet
UDP sending module (4.10) are sent to after module, to the data of input carry out MAC header encapsulation, IP encapsulation and according to data portion with
And header format part calculates UDP verification with after, carries out the encapsulation of the head UDP, and partial data is sent to message convergence mould later
Block (4.9) carries out FIFO caching;Ethernet control module (5) can expire shape according to the sky of storing data FIFO in message convergence module
State is read out data, will reply message and add upper lead code with after CRC check, it is upper to be sent to PC eventually by network twisted-pair cable
Machine interacts.
8. Gige Vision interface image transmission method according to claim 7, which is characterized in that cut packet modular structure
As follows: it includes that data portion, the sop of indication signal end to end of data and eop, data are effectively believed that data input pin, which needs to input information,
Number vld and the purpose IP address for needing to be sent to, purpose physical address, destination port, source port;Wherein port information and ground
Location information is sent to corresponding fifo module caching respectively;And data portion, two counter cnt_1472, meter are added before FIFO is cached
Number device cnt_18, FIFO output end is also all double counters logic, is cnt_1 and cnt_2;Cnt_1472 is when there is data input
Just input data is calculated, adding a condition is din_vld signal, and cnt_18 is only more than 1454 in input data length
It at the end of a byte, i.e. cnt_1472 count, just starts counting, and in counting step deposit information FIFO;And it is defeated in FIFO
Outlet, cnt_2 is responsible for counting stage number, if data length is too long, a point both ends are transmitted, and cnt_1 is responsible for counting actual output
Byte number.
9. Gige Vision interface image transmission method according to claim 5, which is characterized in that host computer with it is embedding
After entering the interaction that formula image capture device completes signaling message, host computer can send unlatching acquisition image command automatically and open image
It acquires, wherein the transmission flow of image data stream GVSP are as follows: image capture module (1) is according to imaging sensor Image Acquisition timing
It is required that acquisition image data, and it is transmitted to picture format processing module (2);Image data is carried out by picture format processing module
After cutting packet and encapsulation, the message convergence module (4.9) for being sent to ethernet protocol stack module is dispatched and is passed for ethernet control module
It is defeated;After adding lead code, CRC check in ethernet control module, host computer imaging is sent to by PHY chip.
10. Gige Vision interface image transmission method according to claim 5, which is characterized in that picture format processing
The form that module is packaged into MAC+IP+UDP+GVSP+ data to input data is sent;Picture format processing module also needs root
According to the size of acquisition image, adjustment length input carries out a frame image data to cut packet transmission, and length length is upper
Length set by SCPS register when machine Signalling exchange.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811029173.0A CN109089029B (en) | 2018-09-05 | 2018-09-05 | FPGA-based Gige Vision interface image transmission system and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811029173.0A CN109089029B (en) | 2018-09-05 | 2018-09-05 | FPGA-based Gige Vision interface image transmission system and method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109089029A true CN109089029A (en) | 2018-12-25 |
CN109089029B CN109089029B (en) | 2020-11-13 |
Family
ID=64840940
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811029173.0A Expired - Fee Related CN109089029B (en) | 2018-09-05 | 2018-09-05 | FPGA-based Gige Vision interface image transmission system and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109089029B (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109688066A (en) * | 2018-12-29 | 2019-04-26 | 合肥埃科光电科技有限公司 | A kind of network interface filtration drive method based on GigE Vision |
CN110365683A (en) * | 2019-07-17 | 2019-10-22 | 上海联影医疗科技有限公司 | A kind of network transfer method, system and storage medium |
CN111726361A (en) * | 2020-06-19 | 2020-09-29 | 西安微电子技术研究所 | Ethernet communication protocol stack system and implementation method |
CN113626057A (en) * | 2021-08-30 | 2021-11-09 | 南京邮电大学 | Camera remote firmware upgrading system and method based on GigE Vision interface |
CN113766128A (en) * | 2021-09-09 | 2021-12-07 | 苏州华兴源创科技股份有限公司 | Image processing apparatus, method and imaging device |
CN113961499A (en) * | 2020-12-18 | 2022-01-21 | 深圳市度申科技有限公司 | GIGE vision data transmission method, acquisition card and system |
CN114584708A (en) * | 2022-03-03 | 2022-06-03 | 杭州图谱光电科技有限公司 | Multi-functional industry camera system based on monolithic FPGA |
CN115118699A (en) * | 2022-06-21 | 2022-09-27 | 国仪量子(合肥)技术有限公司 | Data transmission method, device, system, upper computer and storage medium |
CN115766901A (en) * | 2023-01-09 | 2023-03-07 | 武汉精测电子集团股份有限公司 | Data transmission equipment and method of image sensor |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103647925A (en) * | 2013-07-31 | 2014-03-19 | 中南大学 | Embedded parallel multi-channel digital image acquisition system based on GigE interface |
CN104572574A (en) * | 2015-01-12 | 2015-04-29 | 东南大学 | GigE (gigabit Ethernet) vision protocol-based Ethernet controller IP (Internet protocol) core and method |
CN105681688A (en) * | 2016-03-18 | 2016-06-15 | 山西国惠光电科技有限公司 | Method for realizing infrared machine core of gige vision interface based on FPGA |
CN207321393U (en) * | 2017-09-20 | 2018-05-04 | 杭州海康机器人技术有限公司 | Fpga and industrial camera |
CN207399372U (en) * | 2017-12-18 | 2018-05-22 | 易思维(天津)科技有限公司 | Multi-camera transmission system based on Gige |
CN108206829A (en) * | 2017-12-28 | 2018-06-26 | 中国科学院西安光学精密机械研究所 | Method for realizing network communication by GigE Vision protocol based on FPGA |
-
2018
- 2018-09-05 CN CN201811029173.0A patent/CN109089029B/en not_active Expired - Fee Related
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103647925A (en) * | 2013-07-31 | 2014-03-19 | 中南大学 | Embedded parallel multi-channel digital image acquisition system based on GigE interface |
CN104572574A (en) * | 2015-01-12 | 2015-04-29 | 东南大学 | GigE (gigabit Ethernet) vision protocol-based Ethernet controller IP (Internet protocol) core and method |
CN105681688A (en) * | 2016-03-18 | 2016-06-15 | 山西国惠光电科技有限公司 | Method for realizing infrared machine core of gige vision interface based on FPGA |
CN207321393U (en) * | 2017-09-20 | 2018-05-04 | 杭州海康机器人技术有限公司 | Fpga and industrial camera |
CN207399372U (en) * | 2017-12-18 | 2018-05-22 | 易思维(天津)科技有限公司 | Multi-camera transmission system based on Gige |
CN108206829A (en) * | 2017-12-28 | 2018-06-26 | 中国科学院西安光学精密机械研究所 | Method for realizing network communication by GigE Vision protocol based on FPGA |
Non-Patent Citations (1)
Title |
---|
葛李: "基于FPGA的机器视觉设计", 《现代电子技术》 * |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109688066A (en) * | 2018-12-29 | 2019-04-26 | 合肥埃科光电科技有限公司 | A kind of network interface filtration drive method based on GigE Vision |
CN109688066B (en) * | 2018-12-29 | 2020-11-13 | 合肥埃科光电科技有限公司 | Gateway filtering driving method based on GigE Vision |
CN110365683A (en) * | 2019-07-17 | 2019-10-22 | 上海联影医疗科技有限公司 | A kind of network transfer method, system and storage medium |
CN111726361A (en) * | 2020-06-19 | 2020-09-29 | 西安微电子技术研究所 | Ethernet communication protocol stack system and implementation method |
CN113961499A (en) * | 2020-12-18 | 2022-01-21 | 深圳市度申科技有限公司 | GIGE vision data transmission method, acquisition card and system |
CN113961499B (en) * | 2020-12-18 | 2024-04-26 | 深圳市度申科技有限公司 | GIGE vision data transmission method, acquisition card and system |
CN113626057A (en) * | 2021-08-30 | 2021-11-09 | 南京邮电大学 | Camera remote firmware upgrading system and method based on GigE Vision interface |
CN113626057B (en) * | 2021-08-30 | 2024-07-09 | 南京邮电大学 | Camera remote firmware upgrading system and method based on GigE Vision interface |
CN113766128A (en) * | 2021-09-09 | 2021-12-07 | 苏州华兴源创科技股份有限公司 | Image processing apparatus, method and imaging device |
CN114584708A (en) * | 2022-03-03 | 2022-06-03 | 杭州图谱光电科技有限公司 | Multi-functional industry camera system based on monolithic FPGA |
CN115118699A (en) * | 2022-06-21 | 2022-09-27 | 国仪量子(合肥)技术有限公司 | Data transmission method, device, system, upper computer and storage medium |
CN115766901A (en) * | 2023-01-09 | 2023-03-07 | 武汉精测电子集团股份有限公司 | Data transmission equipment and method of image sensor |
Also Published As
Publication number | Publication date |
---|---|
CN109089029B (en) | 2020-11-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109089029A (en) | A kind of Gige Vision interface image Transmission system and method based on FPGA | |
CN103905281B (en) | FC-AE-1553 bus node card capable of interchangeably achieving functions of network controller and network terminal | |
CN103929681B (en) | Method for improving RTP video streaming treatment efficiency in low-speed network | |
CN109194679B (en) | Multi-protocol interface data acquisition device and acquisition method based on SpaceFibre interface | |
CN104883335B (en) | A kind of devices at full hardware TCP protocol stack realizes system | |
CN105207794B (en) | Statistical counting equipment and its implementation, the system with statistical counting equipment | |
CN107426246A (en) | High-speed data exchange system between ten thousand mbit ethernets and RapidIO agreements based on FPGA | |
CN103795593B (en) | A kind of method of testing of airship high-speed communication processor up-link | |
CN105426329B (en) | High-speed signal acquisition based on the embedded 10,000,000,000 hard protocol stacks of net forwards implementation method | |
CN103533310B (en) | High-definition digital video supervising device and monitoring method based on fiber optic network | |
CN104717150A (en) | Exchange device and packet loss method | |
CN105933162A (en) | Low latency Ethernet repeater and low latency Ethernet forwarding method based on T structure | |
CN108667845A (en) | A kind of system and method for the airborne Ethernet audio stream of processing of low latency | |
CN107959818A (en) | The data processing method of integrated terminal and integrated terminal | |
CN102938839B (en) | A kind of monitoring frontend and encoder server | |
CN108134782A (en) | A kind of method based on 10,000,000,000 network transmission high-bandwidth video of FCoE protocol realizations | |
CN108011795B (en) | A kind of method and system for realizing more boards and multiple data channel management in communication equipment | |
CN109547157A (en) | A kind of 10,000,000,000 network controllers that supporting time trigger Ethernet and control method | |
CN109120063A (en) | A kind of plug & play sensor monitoring method and its system and acquisition unit | |
CN101197742B (en) | System and method for transmitting additional data between equipments through Ethernet interface | |
CN105262970B (en) | A kind of packaging method based on view data and system | |
CN202019362U (en) | Non-compression data two-way transmission system based on Gigabit network physical layer interface | |
CN106961338A (en) | Method for rapidly exchanging data between RTDS simulator and gigabit network card | |
CN106657377A (en) | WIA-PA (Wireless Networks for Industrial Automation-Process Automation)/full-interconnection manufacturing network information service adaptor and realization method thereof | |
CN203645769U (en) | High definition digital video monitoring device based on optical fiber network |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20201113 |