A high-speed transmission industrial camera

Through the two transmission channels and automatic retransmission mechanism of the dual USB3.0 interface, the problem of insufficient bandwidth of industrial cameras in high frame rate and high-resolution image transmission is solved, and efficient, low-power consumption 10Gbps transmission is achieved, improving the Value for money.

CN118337334BActive Publication Date: 2024-10-15深圳市度申科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410751609.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-12
Publication Date
2024-10-15
Estimated Expiration
2044-06-12

AI Technical Summary

Technical Problem

Existing industrial cameras have insufficient bandwidth speed when transmitting high frame rate and high-resolution images, and the transmission solution is high-cost, power-consuming, and heavy, making it difficult to meet the demand for high cost performance.

Method used

Design a high-speed transmission industrial camera that uses dual USB3.0 interfaces to transmit image data through two transmission channels to achieve verification and retransmission of data packets, ensure data integrity, and automatically switch and resume communication during the transmission process. , improve transmission efficiency.

Benefits of technology

It achieves high-speed image transmission with 10Gbps bandwidth, reduces power consumption and volume, improves work efficiency, and provides a higher cost performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118337334B_ABST
    Figure CN118337334B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of image transmission, and in particular to an industrial camera with high-speed transmission. It includes a driver end and a firmware end. The driver end sends image acquisition requirements and commands to the firmware end, controls the firmware end device to start and stop, receives the image data sent by the firmware end, verifies and performs integrity checks on the image data, and sends a retransmission request to the firmware end for image data with verification errors and missing data; the driver end and the firmware end are connected through two transmission channels; the firmware end is used to obtain image information, process and package it, and use any transmission channel to send it, or two transmission channels to send data together. The transmission bandwidth is increased, and large-resolution images can be transmitted at high speed, thereby improving the working efficiency of industrial cameras. In addition, there is a cache mechanism in the transmission process, which supports the retransmission function, and ensures the correctness of the data on the basis of improving the transmission efficiency. Compared with traditional 10Gbps industrial cameras, the size is smaller, the weight is lighter, and the power consumption and heat generation are lower.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of image transmission, and in particular to an industrial camera with high-speed transmission. Background Art

[0002] With the continuous development and advancement of "Industry 4.0", machine vision is becoming more and more mature, and automation equipment increasingly needs "intelligent manufacturing" empowerment. As the indispensable "eyes" in automation equipment and machine vision, industrial cameras are also constantly tending towards the development and application direction of high frame rate and high resolution imaging. The most commonly used industrial cameras in the industrial field transmit image data to the computer through USB interface or network interface. The data volume of high frame rate and high pixel cameras is very large, which will cause great pressure and challenges on the camera output bandwidth speed. In the existing technology, the data transmission cables and power supply cables of 10G optical fiber 10G network, CameraLink interface, and CXP interface cameras cannot be integrated, the use is complicated, and they need to be matched with special acquisition cards for stable use. Although these solutions have high transmission bandwidth, they also bring comprehensive problems of high cost, high heat, high power consumption, large size, and heavy weight. Some other mature industrial camera solutions with low cost, low power consumption, and lightweight structure use single USB3.0 interface, 1Gbps, and 2.5Gbps interface solutions, but the speed bandwidth is far from 10Gbps 10G speed. There are still many application scenarios that urgently need cost-effective industrial cameras with 10Gbps bandwidth transmission, high speed, high resolution, and high requirements on power consumption, installation structure size and weight. Summary of the invention

[0003] The purpose of the present invention is to solve the above-mentioned related problems and design an industrial camera with high-speed transmission. To achieve the above-mentioned purpose, the present invention provides the following solutions:

[0004] A high-speed transmission industrial camera, characterized by comprising:

[0005] Driver side and firmware side;

[0006] The driver is used to send image acquisition requirements and commands to the firmware, control the start and stop of the firmware device, receive the image data sent by the firmware, perform verification and integrity check on the image data, and send a retransmission request to the fixed device for verification errors and missing image data;

[0007] The driver end and the firmware end are connected via two transmission channels;

[0008] The firmware end is used to obtain image information, process and package the image information, and according to the command of the driver end, use two transmission channels to send data to the driver end; when a transmission channel fails and causes poor communication or disconnection, the driver end sends a retransmission command to the firmware end, and retransmits the data packet being transmitted by the transmission channel that has failed or has poor communication through another transmission channel; when the fault of the transmission channel that has caused poor communication or disconnection is eliminated, communication is restored or reconnected, the firmware end automatically reconnects to the driver end and transmits data.

[0009] As a further improvement of the technical solution, the driving end includes a configuration sending and start-stop control module and an image reorganization module;

[0010] The configuration sending and start / stop control module is used to send the image acquisition data requirements and transmission requirements to the firmware end, control the opening and closing of the firmware end device, and control the start / stop of data transmission from the firmware end to the driver end;

[0011] The image reassembly module is used to check the data collected by the firmware end, send a retransmission command to the firmware end, and assemble the data into an image;

[0012] The configuration sending and start-stop control module and the image reorganization module of the driver end are composed of a host and a software development kit, firmware and hardware; the host of the driver end is a PC computer or an ARM embedded platform architecture.

[0013] As a further improvement of the technical solution, the firmware end includes an image acquisition and decoding module, an image processing module, and an image transmission module;

[0014] Image acquisition and decoding module, used to acquire images and convert them into data information for further processing;

[0015] Image processing module, used for frame control, ISP processing and packaging of image information;

[0016] The image transmission module is used to exchange data with the image processing module. The image transmission module further includes an image cache submodule and an image sending submodule. The image cache submodule is used to store the packaged image data in a memory and transmit it to the image sending submodule. The image sending submodule has a first transmission channel and a second transmission channel. According to the command of the driver end, the two transmission channels are used to send data to the driver end.

[0017] As a further improvement of the present technical solution, the image acquisition and decoding module receives commands from the configuration issuance and start-stop control module, starts and ends acquiring images that meet the command requirements at the time indicated by the command, and starts sending the image information to the driving end at the time indicated by the command.

[0018] As a further improvement of the present technical solution, the specific method in which the image processing module performs frame control on the image information is to perform ROI cropping on the frame image, and to perform ISP processing on the image information including adjusting the LUT, gamma value, contrast and black level of the image, and to package the image data after ISP processing and divide it into multiple data packets according to size, and to generate a CRC check code and a packet ID for each data packet.

[0019] As a further improvement of the present technical solution, the image cache submodule of the image transmission module adopts an asynchronous FIFO cache mode, and the packaged data packets received first and transmitted by the image processing module are first stored in the memory and also sent to the image sending submodule.

[0020] As a further improvement of the present technical solution, the image reconstruction module verifies the CRC check code of the received data packet and checks the continuity of the packet ID. If it is found that the data packet verification fails or the data packet is lost, a data retransmission command is issued to the firmware end, and the data retransmission command is required to include 1 data packet or multiple data packets; when the retransmission command includes 1 data packet, the retransmission command includes the ID number of the retransmitted data packet; when the retransmission command includes multiple data packets, the retransmission command includes the packet ID number at the beginning of the retransmission and the packet ID number at the end of the retransmission; after the image reconstruction module receives all the data packets and verifies them successfully, it reconstructs the data packets to restore them into an image.

[0021] A method for collecting images using an industrial camera with high-speed transmission, comprising the following steps:

[0022] S1. Sending an image acquisition request to the firmware end of the high-speed transmission industrial camera, as well as the acquisition start time and end time, and receiving the acquisition image data time;

[0023] S2. The high-speed transmission industrial camera collects images, packages the images after frame control and ISP processing, and generates a package ID;

[0024] S3. The image data packet is sent to the driver through two transmission channels at the same time. After receiving the data packet, the driver performs CRC check and packet ID continuity check, sends the ID of the data packet that fails the CRC check and is missing to the firmware end, and requires the firmware end to retransmit;

[0025] S4. The firmware side sends the CRC check failed and missing data packets to the driver side again according to the driver side command;

[0026] S5. After the driver receives all the data packets and verifies them successfully, it reassembles the data packets and restores them into an image. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] Various other advantages and benefits will become apparent to those skilled in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention;

[0028] Figure 1 It is a structural schematic diagram of a high-speed transmission industrial camera of the present invention;

[0029] Figure 2 This is a schematic diagram of a high-speed transmission industrial camera of the present invention transmitting data simultaneously through two transmission channels;

[0030] Figure 3 This is an example diagram of an industrial camera data packet transmission process with high-speed transmission in the present invention in which an error occurs and retransmission is performed;

[0031] Figure 4 The present invention is a flowchart of a method for collecting images using an industrial camera with high-speed transmission. DETAILED DESCRIPTION

[0032] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0033] Those skilled in the art will appreciate that, unless otherwise stated, the singular forms "a", "an" and "the" used herein may also include plural forms. It should be further understood that the term "comprising" used in the specification of the present invention refers to the presence of the features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof.

[0034] The present invention will be described in detail below in conjunction with the accompanying drawings.

[0035] Example 1

[0036] like Figure 1As shown in the figure, a schematic diagram of the structure of an industrial camera with high-speed transmission. This solution can use dual USB3.0 interfaces to realize high-speed transmission of industrial cameras. The configuration and start-stop control module and image reconstruction module of the driver end are composed of a host and a software development kit, firmware and hardware. The host of the driver end can be a PC or various ARM embedded platform architectures. The driver end and the firmware end are connected by two USB3.0 transmission channels. All USB3.0 described in this solution are also equivalent to USB3.1 Gen1. The hardware platform of the image acquisition and decoding module, image processing module and image transmission module on the firmware end uses a solution of FPGA chip, DDR chip and 2 USB3.0 chips. It is a non-SOC solution. Each component can be replaced and developed separately, which has more options for the supply chain.

[0037] The driver and firmware transmit communication commands and data through two USB3.0 transmission channels. Both USB3.0 devices have configuration pipes and data flow pipes on the logical link. The configuration pipe is used for data flow start and stop control and configuration parameters, and the data flow pipe is used for the camera to transmit data flow to the driver in real time, and the start and stop of data transmission requires command control.

[0038] The control and parameter configuration operations called by the user from the SDK are converted into command format data through the driver and passed to the image sensor of the camera device on the firmware side through the configuration pipeline. All operations of industrial cameras are mainly divided into data flow start and stop control and parameter configuration. Data flow start and stop control mainly includes turning on the device, turning off the device, starting the data flow, and stopping the data flow. These command controls are sent to the firmware side through the driver side, and then converted into command control data and forwarded to the FPGA and image sensor on the firmware side respectively, which are used to control the start and stop of the data flow of two USB devices in sequence or simultaneously.

[0039] The dual USB data load is automatically balanced, and the camera also flexibly supports single USB3 operation. For example, when dual USB3.0 is used as the transmission channel, if the image acquisition and decoding module is only connected to one USB3.0 line, it is a USB3.0 interface industrial camera with a bandwidth of 5Gbps. When two USB3.0 lines are connected to enumerate the camera, on the PC system at the driver end, two USB3.0 devices will usually be enumerated in the device manager. The present invention virtually merges the two USB3.0 physical interfaces into a logical interface with a bandwidth of 10Gbps. What is finally presented is a 10Gbps industrial camera with a bandwidth of 2 times that of USB3.0. In addition to the speed improvement, the user experience and functional operation are no different from the industrial camera with only one transmission channel connected.

[0040] The parameter configuration only needs to be passed down through the link of the main USB device, and after further conversion and decomposition by the MCU, the converted control operation instruction data is then passed to the register control module of the FPGA and image sensor respectively, to implement various ISP processing adjustments of the image processing module of the industrial camera and the trigger function control of the image acquisition and decoding module, etc.

[0041] After the image sensor initializes and starts outputting data through the data stream start command, the FPGA chip is responsible for receiving and processing the image sensor data. First, it decodes the corresponding protocol data through MIPI, LVDS, and parallel port, and then performs some conventional industrial camera configurable ROI cropping and ISP image processing, such as LUT, gamma, contrast, black level, etc., and then packages and caches the target data. The image cache submodule uses a buffer controller and uses DDR to establish an asynchronous FIFO cache image data to prevent data loss during transmission and cause camera frame loss.

[0042] FPGA transmits the packaged data to the two activated USB3.0 chips through two data transmission channels, and then transmits them to the endpoint cache of the USB3.0 PHY interface through their respective DMA channels. They are then transmitted to the USB controller bottom layer of the driver-side image reconstruction module through two USB lines. Finally, the driver of the industrial camera collects image data from two data pipes at the same time, verifies and checks the integrity of the data packets, and retransmits the packets that fail the verification or are lost. After all the data packets are received and verified, the driver unpacks and reassembles them into target data and then submits them to the user.

[0043] Example 2

[0044] like Figure 2 and Figure 3 As shown, a structural schematic diagram of two transmission channels of a high-speed transmission industrial camera transmitting data simultaneously and an example diagram of errors occurring during data packet transmission and retransmission.

[0045] The image data is packaged and processed by the image processing module on the firmware side, packaged into the format of the specified data packet, and a packet ID is assigned to the data packet. The purpose of packaging is to verify the CRC error and the correctness of the packet ID, and to enable the image reassembly module on the driver side to recover the target image data. The image transmission module stores the data packet in the DDR in an asynchronous cache before transmission, so as to facilitate recovery after errors or packet loss during transmission. The data packet adopts the FIFO mode, that is, the first-in-first-out queue data structure, and the data packet stored in the cache first is transmitted to the driver side first. The order of the data packets on the two transmission channels is not fixed, and a custom data packaging transmission protocol is implemented. The image data is in frames, which include a frame header, payload data, and a frame tail. The frame header and frame tail contain key information such as the width, height, horizontal and vertical offsets, image format, and timestamp of the current frame. Each data packet carries a header, which contains key information such as the frame ID and packet ID, so that the receiving end can verify the data packet, retransmit it, and restore and reassemble it to the original position order. The frame header information plus the packet header form an independent frame header packet, the frame tail information plus the packet header form an independent frame tail packet, and the payload data plus the packet header form multiple independent frame data packets. The size of each frame data packet is set to 16K. Through the pipeline constructed by the USB Bulk endpoint, the USB3.0 underlying transmission protocol can burst a 16K data packet at a time, which can achieve the maximum transmission efficiency of the USB protocol. The underlying layer of the host end data collection is to synthesize multiple 16K packets into a large data block and transmit it to the upper layer. Therefore, the transmission efficiency of the entire system is faster than that of USB2, 1Gbps, 2.5Gbps and other interfaces.

[0046] The multi-channel data packet collection process verifies the data correctness in real time. If the image reconstruction module on the driver side detects that the data packet verification fails or the entire packet is lost, it will immediately initiate a retransmission request. Multiple request commands can be initiated at one time. The command contains the retransmission start packet ID and the retransmission end packet ID, so that multiple continuous and non-continuous packets can be retransmitted. After receiving the retransmission request, the firmware side responds to all missing data packets in turn. Each data packet can be repeatedly requested up to 128 times to prevent multiple losses of a packet under severe interference.

[0047] When one of the USB cables fails and causes poor communication or disconnection, the data transmission of the other USB cable will not be affected, and the lost data packets can be immediately restored through another normal data link through the DDR cache and data packet retransmission function. There is no obvious fault at this time, but the bandwidth is changed from 10Gbps to 5Gbps to transmit data normally. The faulty USB cable resumes communication, or the camera watchdog function and the automatic reconnection function on the driver can automatically re-establish the connection after disconnection. At this time, the bandwidth automatically recovers from 5Gbps to 10Gbps.

[0048] exist Figure 3 In the figure, after receiving the data packet, the receiving end detects that pack1, pack3, pack5, and pack10 pass the verification; pack2 and pack4 fail to verify, and the data packets of pack6~pack9 are missing, so a retransmission request is made for a total of 6 packets, pack2, pack4, pack6~pack9. After the firmware end receives the retransmission request, the image transmission module will resend pack2, pack4, and pack6~pack9. After the image reconstruction module on the driver end has replenished all the data packets, it will reassemble the packets and restore the target data.

[0049] Example 3

[0050] like Figure 4 As shown, a method for collecting images using an industrial camera with high-speed transmission includes the following steps:

[0051] The firmware end of the high-speed transmission industrial camera sends the image acquisition requirements, acquisition start time and end time, and the time of receiving the acquired image data. The configuration sending and start-stop control module of the driver end sends the setting information such as the acquisition image frame setting, image signal processing parameters, start acquisition time, end acquisition time, and time of sending the image to the driver end to the firmware end through the transmission channel.

[0052] The high-speed transmission industrial camera collects images, performs frame control and ISP processing on the images, packages them, and generates a package ID. The image acquisition and decoding module on the firmware side collects images according to the configuration issued by the driver side and the requirements of the start-stop control module, decodes the images into image information that can be processed in subsequent steps, and then transmits them to the image processing module. The image processing module processes the image information, including ROI cropping and ISP image processing, such as LUT, gamma, contrast, black level, etc. The processed image information is transmitted to the image transmission module for packaging, and a package ID is assigned to each data packet.

[0053] The compressed image data packet is sent to the driver end through two transmission channels at the same time. After receiving the data packet, the driver end performs CRC check and packet ID continuity check, sends the ID of the data packet that fails the CRC check and is missing to the firmware end, and requires the firmware end to retransmit. The image cache submodule of the image transmission module adopts an asynchronous FIFO cache mode before transmission. The first received packaged data packet transmitted by the image processing module is first stored in the memory and is also first sent to the image sending submodule of the image transmission module. The cached data packet is used for recovery after errors or packet loss during the transmission process. The image sending submodule does not send image data packets on the two transmission channels in a fixed order. The image reorganization module of the driver end checks the CRC check code correctness and data packet ID of the received data packet in real time. If the check fails or the packet is lost, a retransmission request is sent to the firmware end. The retransmission request command contains the packet ID that needs to be retransmitted. A retransmission request command can request the retransmission of multiple packets.

[0054] The firmware end sends the data packets that failed the CRC check and are missing to the driver end again according to the driver end command. The image transmission module on the firmware end retrieves the data packets that need to be retransmitted from the image cache submodule according to the packet ID in the retransmission request command of the driver end, and sends them to the image sending submodule. The image sending submodule transmits the image data packets that are lost or failed the check to the driver end.

[0055] After the driver receives all the data packets and verifies them successfully, the data packets are reassembled and restored into an image. After the image reassembly module on the driver receives all the data packets and all the data packets pass the CRC verification successfully, the image data is restored.

[0056] In summary, the high-speed transmission industrial camera proposed in the present invention increases the transmission bandwidth by designing two transmission channels for simultaneous transmission, and can transmit high-resolution images at high speed, greatly improving the working efficiency of the industrial camera. In addition, the transmission process has a cache mechanism and supports the retransmission function, which ensures the correctness of the data on the basis of improving the transmission efficiency. Compared with the traditional 10Gbps industrial camera, it has a smaller size, lighter weight, and lower power consumption and heat generation.

Claims

1. A high-speed transmission industrial camera, characterized in that: include: Driver side and firmware side; The driver is used to send image acquisition requirements and commands to the firmware, control the firmware to start and stop, receive image data sent by the firmware, perform verification and integrity check on the image data, and send a retransmission request to the firmware for verification errors and missing image data; The driver end and the firmware end are connected via two transmission channels; The firmware end is used to obtain image information, process and package the image information, and according to the command of the driver end, use two transmission channels to send data to the driver end; when a transmission channel fails and causes poor communication or disconnection, the driver end sends a retransmission command to the firmware end, and retransmits the data packet being transmitted by the transmission channel that has failed or has poor communication through another transmission channel; when the fault of the transmission channel that has caused poor communication or disconnection is eliminated, communication is restored or reconnected, the firmware end automatically reconnects to the driver end and transmits data.

2. The high-speed transmission industrial camera according to claim 1, characterized in that: The driver end includes a configuration sending and start / stop control module and an image reorganization module; The configuration sending and start-stop control module is used to send the image acquisition data requirements and transmission requirements to the firmware end, control the opening and closing of the firmware end, and control the start and stop of data transmission from the firmware end to the driver end; The image reassembly module is used to check the data collected by the firmware end, send a retransmission command to the firmware end, and assemble the data into an image; The configuration sending and start-stop control module and the image reorganization module of the driver end are composed of a host and a software development kit, firmware and hardware; the host of the driver end is a PC computer or an ARM embedded platform architecture.

3. The high-speed transmission industrial camera according to claim 2, characterized in that: The firmware end includes an image acquisition and decoding module, an image processing module, and an image transmission module; Image acquisition and decoding module, used to acquire images and convert them into data information for further processing; Image processing module, used for frame control, ISP processing and data packaging of image information; The image transmission module is used to exchange data with the image processing module. The image transmission module further includes an image cache submodule and an image sending submodule. The image cache submodule is used to store the packaged image data in a memory and transmit it to the image sending submodule. The image sending submodule has a first transmission channel and a second transmission channel. According to the command of the driver end, the two transmission channels are used to send data to the driver end.

4. The high-speed transmission industrial camera according to claim 3, characterized in that: The image acquisition and decoding module receives the command from the configuration issuing and start-stop control module, starts and ends acquiring images that meet the command requirements at the time indicated by the command, and starts sending the image information to the driving end at the time indicated by the command.

5. The high-speed transmission industrial camera according to claim 3, characterized in that: The specific way in which the image processing module performs frame control on the image information is to perform ROI cropping on the frame image, perform ISP processing on the image information including adjusting the LUT, gamma value, contrast and black level of the image, package the image data after ISP processing, and divide it into multiple data packets according to size, and generate a CRC check code and packet ID for each data packet.

6. The high-speed transmission industrial camera according to claim 3, characterized in that: The image buffer submodule of the image transmission module adopts an asynchronous FIFO buffer mode, and the first received packaged data packet transmitted by the image processing module is first stored in the memory and also first sent to the image sending submodule.

7. The high-speed transmission industrial camera according to claim 3, characterized in that: The image reconstruction module verifies the CRC check code of the received data packet and checks the continuity of the packet ID. If it is found that the data packet verification fails or the data packet is lost, a data retransmission command is issued to the firmware end, and the data retransmission command is required to include one data packet or multiple data packets; when the retransmission command includes one data packet, the retransmission command includes the ID number of the retransmitted data packet; when the retransmission command includes multiple data packets, the retransmission command includes the packet ID number at the beginning of the retransmission and the packet ID number at the end of the retransmission; after the image reconstruction module receives all the data packets and verifies them successfully, the data packets are reassembled and restored into an image.

8. A method for collecting images using the high-speed transmission industrial camera of any one of claims 3 to 6, comprising the following steps: S1. Sending an image acquisition request to the firmware end of the high-speed transmission industrial camera, as well as the acquisition start time and end time, and receiving the acquisition image data time; S2. The high-speed transmission industrial camera collects images, packages the images after frame control and ISP processing, and generates a package ID; S3. The image data packet is sent to the driver through two transmission channels at the same time. After receiving the data packet, the driver performs CRC check and packet ID continuity check, sends the ID of the data packet that fails the CRC check and is missing to the firmware end, and requires the firmware end to retransmit; S4. The firmware side sends the CRC check failed and missing data packets to the driver side again according to the driver side command; S5. After the driver receives all the data packets and verifies them successfully, it reassembles the data packets and restores them into an image.