A multi-channel optical fiber combining transmission device

Through multi-channel optical fiber combined transmission equipment and the use of transmission channel allocation and control modules, the flexibility of equipment configuration and the reliability of data transmission in machine vision communication technology are achieved, and the communication transmission bottleneck and data packet loss problems in the existing technology are solved. , improving data transmission efficiency and real-time performance.

CN118449604BActive Publication Date: 2024-09-24深圳市度申科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410909204.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-08
Publication Date
2024-09-24
Estimated Expiration
2044-07-08

AI Technical Summary

Technical Problem

In existing machine vision communication technology, as the number and resolution of cameras increase, the amount of data interaction and transmission rate increase, resulting in communication transmission bottlenecks. It is difficult for existing point-to-point communication methods to achieve flexible device configuration and data stream packet loss retransmission efficiency. Assure.

Method used

Design a multi-channel optical fiber combined transmission device to transmit data through multiple optical fiber transmission paths between the host end and the firmware end. The transmission channel distribution module, transmission control module and data buffering and sending module are used to realize the data link Dynamic configuration and retransmission mechanisms ensure the reliability and real-time nature of data transmission.

Benefits of technology

It realizes the flexible configuration of single device single channel, single device multi-channel, multi-device single channel, multi-device multi-channel, fully utilizes the hardware bandwidth, reduces the requirements for hardware, improves the efficiency and reliability of data transmission, and avoids data transmission. Retransmission failure problem.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118449604B
    Figure CN118449604B
Patent Text Reader

Abstract

The present invention relates to the technical field of machine vision communication, and in particular to a multi-channel optical fiber combined transmission device. It includes a host end and a firmware end, and data is transmitted between the host end and the firmware end through multiple optical fiber transmission paths; the host end is used to send transmission device information to the device end, detect whether the received data is complete, verify whether the received data is correct, and send a data retransmission command to the firmware end; reorganize the received data information; the firmware end is used to establish a transmission link according to the information sent by the host end, and transmit information to the host end; it can realize the application of flexible configuration of single device single channel, single device multi-channel, multi-device single channel, and multi-device multi-channel; it makes full use of the bandwidth of each hardware channel, can reliably guarantee data retransmission, and the information interaction between devices does not need to be driven and scheduled, with high real-time reliability, can effectively reduce CPU overhead, and improve the efficiency of data transmission.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of machine vision communication, and in particular to a multi-channel optical fiber combining transmission device. Background Art

[0002] In recent years, the application scope of machine vision technology in the field of industrial production has been continuously expanded, playing an important role in improving industrial production efficiency and reducing production costs. With the increase in the number of cameras and the improvement of camera clarity, the amount of data interaction and the transmission rate are also increasing, which brings about communication transmission bottlenecks. In the existing technology, taking Giga / USB vision as an example, a point-to-point communication method is adopted, and each channel is independently connected to the PC. To fully and reasonably utilize the transmission bandwidth, it is necessary to increase the number of cables or add routing equipment to achieve multi-channel sharing and reduce hardware to adapt to low-cost applications with low bandwidth, and the driver layer is required to realize information interaction between each channel and each device, increasing the CPU overhead. It is impossible to realize the flexible configuration of single device single channel, single device multi-channel, multi-device single channel, and multi-device multi-channel applications. In addition, the packet loss and retransmission of the data stream require the interaction of information to be scheduled by the driver layer, and efficiency, reliability and real-time performance cannot be guaranteed. Summary of the invention

[0003] The purpose of the present invention is to solve the above-mentioned related problems and design a multi-channel optical fiber combining transmission device. To achieve the above-mentioned purpose, the present invention provides the following solutions:

[0004] A multi-channel optical fiber combining transmission device, comprising:

[0005] A host end and a firmware end, wherein data is transmitted between the host end and the firmware end via multiple optical fiber transmission paths;

[0006] The host end is used to send transmission device information to the device end, detect whether the received data is complete, verify whether the received data is correct, send a data retransmission command to the firmware end, and reorganize the received data information;

[0007] The firmware end is used to establish a transmission link according to the information sent by the host end, and transmit information to the host end, including a transmission channel allocation module, a transmission control module, and a data buffer and sending module;

[0008] The transmission channel allocation module detects the available device ports that meet the transmission bandwidth and creates a data transmission link according to the transmission device information sent by the host end; the transmission channel allocation module determines the total bandwidth required for transmission according to the transmission device information sent by the host end; the transmission control module determines whether the optical fiber transmission path is available one by one with the host end through the data cache and sending module until a path that meets the total bandwidth required for transmission is obtained, and binds the available optical fiber transmission path and the transmission device sent by the host end into a data transmission link;

[0009] The transmission control module packages the data information of the same data transmission link, allocates a flow ID, and receives the data retransmission command sent by the host end; the transmission control module sends a command data packet to the host end through the optical fiber transmission path one by one, and if the optical fiber transmission path through which the received command data packet passes is available, the host end sends a ready transmission information to the firmware end; if the optical fiber transmission path through which the received command data packet passes is unavailable, the host end sends a channel busy information to the transmission channel allocation module; the transmission control module records the available optical fiber transmission path information until a path that meets the total bandwidth required for the transmission is obtained;

[0010] The data caching and sending module caches the data packets and sends them to the host end.

[0011] As a further improvement of the present technical solution, the optical fiber transmission path included in the data transmission link only transmits the data information of the data transmission link during the transmission process; after the transmission is completed, the data transmission link is disbanded, and the optical fiber transmission path can establish a new data transmission link.

[0012] As a further improvement of the present technical solution, the transmission control module packages the data information of the same data transmission link, and the data information packet includes the target address, source address, target port, source port, function number, flow ID, target physical port, source physical port, data volume, data content, and check code; the transmission control module will assign a flow ID and a check code to each data packet of the same path.

[0013] As a further improvement of the present technical solution, the data cache and sending module stores the data information packets of the same data transmission link in the cache module one by one according to the assigned serial ID, and sends the data information packets to the host end one by one according to the serial ID through the optical fiber transmission path to which the data transmission link belongs.

[0014] As a further improvement of the present technical solution, the host side receives the data information packet, detects whether the check code is correct and whether the serial ID is continuous, and if the check code is wrong or the serial ID is discontinuous resulting in the loss of the data information packet, a data retransmission command is issued to the firmware side.

[0015] As a further improvement of the present technical solution, the firmware end receives the data retransmission command, and according to the serial ID of the data information packet that needs to be retransmitted, the data cache and sending module resends the data information packet stored in the cache to the host end.

[0016] A data transmission method using a multi-channel optical fiber combining transmission device comprises the following steps:

[0017] S1. Receive the transmission device information sent by the host;

[0018] S2. Determine the total bandwidth required for transmission according to the transmission device information issued by the host, and determine whether the optical fiber transmission path is available one by one until the total bandwidth of the available optical fiber transmission path meets the total bandwidth required for transmission;

[0019] S3. Bind the available optical fiber transmission path to the transmission device sent from the host end as a data transmission link;

[0020] S4. Pack the data information of the same data transmission link and assign a check code and a running ID to the data packet; after caching the data packet, the data packet is sent to the host terminal through the optical fiber transmission path to which the data transmission link belongs;

[0021] S5. After the host receives the data packet, it verifies whether the data packet is correct and whether there is any data packet loss; if the data packet is verified incorrectly or lost, a data retransmission command is sent to the firmware end;

[0022] S6. After the data information transmission of the data transmission link is completed, the data transmission link is dissolved. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] 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;

[0024] Figure 1 It is a structural schematic diagram of a multi-channel optical fiber combining transmission device of the present invention;

[0025] Figure 2 A schematic diagram of a data packet structure of a multi-channel optical fiber combining transmission device of the present invention;

[0026] Figure 3 This is a schematic diagram of a data retransmission structure of a multi-channel optical fiber combining transmission device of the present invention;

[0027] Figure 4 The present invention is a flowchart of an image acquisition method using a linear array digital camera with adaptive motion. DETAILED DESCRIPTION

[0028] 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.

[0029] 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.

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

[0031] Example 1

[0032] like Figure 1As shown, a multi-channel optical fiber combined transmission device includes a host end and a firmware end, and the host end and the firmware end are connected through multiple optical fiber transmission paths for data transmission. The firmware end includes a transmission channel allocation module, a transmission control module, and a data cache and sending module. There are multiple industrial cameras connected to the firmware end, and the bandwidth required for each industrial camera is 1Gbps. The host end orders the firmware end to transmit the image information of industrial cameras No. 1 to 3 and No. 8 to 15 to the host. The transmission channel allocation module on the firmware side sends a command data packet to the host side through each channel in sequence. After receiving the data command packet, the host side determines whether the channel is occupied. If it is occupied, the firmware side returns a "busy" signal, and the transmission channel allocation module continues to send command data packets to the host side through the next channel; if the channel is not occupied, the host side feeds back the "stdby" command to the firmware side, and the transmission channel allocation module records the transmission channel and calculates whether the total bandwidth of the transmission channels that have fed back the "stdby" command is greater than the total bandwidth required for the transmission of industrial cameras No. 1 to 3 and No. 8 to 15. If not, continue to send command data packets to the next transmission channel in sequence until the total bandwidth of the available transmission channels is greater than the total bandwidth required for the transmission of industrial cameras. The transmission channel allocation module compiles industrial cameras No. 1 to 3, No. 8 to 15, and all available transmission channels that meet the total bandwidth required for the transmission of industrial cameras into a data transmission link. The transmission channel of the data transmission link only transmits the data of industrial cameras No. 1 to 3 and No. 8 to 15 during the transmission process. After the transmission starts, the data of industrial cameras No. 1 to 3 and No. 8 to 15 are packaged by the transmission control module for the data information of the same path. The data information is as follows: Figure 2 As shown, it includes the target address, source address, target port, source port, function number, serial ID, target physical port, source physical port, data volume, data content, and checksum. Before sending to the host, the data cache and sending module first stores the data packet in the cache according to the serial ID, and then sends it to the host. After the host receives the data packet, it determines that the verification code is correct and there is no data packet loss, then reassembles the data packet to obtain the target data. After all data transmission is completed, the data link is disbanded, and the transmission channel fixed on the data link can be reoccupied and combined with one or more other industrial cameras to form a new data transmission link.

[0033] Example 2

[0034] like Figure 3As shown, a schematic diagram of a data retransmission structure of a multi-channel optical fiber combined transmission device. During the data link transmission process, the firmware end sends a total of 10 data packets to the host end. After the host end receives data packets 1 to 3, they are all verified to be qualified. Then when data packet 4 is received, an error occurs in the data packet and it is not verified to be qualified. Then the host end sends a data retransmission command to the firmware end, requiring the firmware end to retransmit data packet 4. The data cache and sending module of the firmware end takes out the data packet 4 retained in the cache and sends it to the host end again through the transmission path. After verification by the host end, no error occurs in data packet 4 this time. The host end receives data packets 5 to 7 sent by the firmware end, which are all verified, and then receives data packet 10. The host end determines that data packets 8 and 9 have been lost, and sends a data retransmission command to the firmware end, requiring the firmware end to resend data packets 8 and 9. The data cache and sending module of the firmware end takes out data packets 8 and 9 retained in the cache and sends them to the host end again. After the host end receives the complete 10 data packets and all are verified to be qualified, the data packets are reassembled to obtain the target data.

[0035] Example 3

[0036] like Figure 4 As shown, a data transmission method using a multi-channel optical fiber combining transmission device comprises the following steps:

[0037] S1. Receive the transmission device information sent by the host;

[0038] S2. According to the total bandwidth required by the transmission device information sent by the host end, determine whether the optical fiber transmission path is available one by one until the total bandwidth of the available optical fiber transmission path meets the total bandwidth required for the transmission; the firmware end first sends command packets from the physical ports of each transmission channel to the host end in turn, and the host end sends a response command packet after receiving the command packet, and determines that the physical port has been connected normally through one transmission and reception. Then, according to the total bandwidth of multiple devices to be transmitted, select the transmission path from small to large according to the number to send data packets to the host end. When the ports corresponding to a certain number of transmission paths can satisfy the firmware end that there is no busy and the stdby data packet of the host end is received, and at the same time, the total transmission bandwidth of the accumulated transmission path is greater than the total bandwidth of multiple devices, it indicates that the bandwidth matching is completed.

[0039] S3. Bind the available optical fiber transmission path and the transmission device sent by the host end into a data transmission link; after the transmission path is determined, multiple devices and the connected physical pure paths are bound into a data transmission link, and the transmission channel of the data transmission link will not be used by other data transmission links during the transmission process.

[0040] S4. Pack the data information of the same data transmission link, and assign a check code and a flow ID to the data information packet; after caching the data information packet, send the data information packet to the host end through the optical fiber transmission path to which the data transmission link belongs; pack the data information according to a unified fixed format, and each data information packet includes the target address, source address, target port, source port, function number, flow ID, target physical port, source physical port, data volume, data content, and check code. Each data information packet has a flow ID and a check code to detect the correctness and integrity of the data packet. Before transmission, the data packet is cached first so that it can be resent in the event of subsequent data packet loss or error.

[0041] S5. After receiving the data information packet, the host side verifies whether the data information packet is correct and whether there is any data information packet loss; if the data information packet is verified incorrectly or lost, a data retransmission command is sent to the firmware side; the host side detects whether a data packet error or data packet loss occurs based on the checksum of the received data packet and the serial ID of the data packet, and sends information to the firmware side, requesting retransmission of the erroneous or lost data packet.

[0042] S6. After the data information transmission of the data transmission link is completed, the data transmission link is disbanded. After all data packets are transmitted, the host side reassembles the data packets to obtain the target data. After all data transmission of the data link is completed, the data link is disbanded, and the transmission channel fixed on the data link can be reoccupied and combined with one or more other industrial cameras to form a new data transmission link.

[0043] In summary, the multi-channel fiber optic combined transmission device proposed in the present invention can realize the application of flexible configuration of single device single channel, single device multi-channel, multi-device single channel, and multi-device multi-channel. If the bandwidth of a channel can satisfy one or more devices, only one physical transmission channel needs to be selected; if a channel cannot satisfy one device, multiple physical transmission channels can be selected first. The transmission device makes full use of the bandwidth of each hardware channel, reduces the requirements for hardware, can reliably guarantee data retransmission, and will not cause retransmission failure due to the non-existence of the retransmission data packet at the sending end. The information interaction between devices does not require drive scheduling, has high real-time reliability, can effectively reduce CPU overhead, and improve the efficiency of data transmission.

Claims

1. A multi-channel optical fiber combining transmission device, characterized in that: include: A host end and a firmware end, wherein data is transmitted between the host end and the firmware end via multiple optical fiber transmission paths; The host end is used to send transmission device information to the device end, detect whether the received data is complete, verify whether the received data is correct, send a data retransmission command to the firmware end, and reorganize the received data information; The firmware end is used to establish a transmission link according to the information sent by the host end, and transmit information to the host end, including a transmission channel allocation module, a transmission control module, and a data buffer and sending module; The transmission channel allocation module detects the available device ports that meet the transmission bandwidth and creates a data transmission link according to the transmission device information sent by the host end; the transmission channel allocation module determines the total bandwidth required for transmission according to the transmission device information sent by the host end; The transmission control module determines whether the optical fiber transmission paths are available one by one through the data cache and sending module and the host end, until a path that meets the total bandwidth required for the transmission is obtained, and binds the available optical fiber transmission path and the transmission device sent by the host end into a data transmission link; The transmission control module packages the data information of the same data transmission link, allocates a flow ID, and receives a data retransmission command sent by the host end; The transmission control module sends a command data packet to the host end through each optical fiber transmission path. If the host end determines that the optical fiber transmission path through which the received command data packet passes is available, the host end sends a ready transmission message to the firmware end. If the host end determines that the optical fiber transmission path through which the received command data packet passes is not available, the host end sends a channel busy message to the transmission channel allocation module. The transmission control module records the available optical fiber transmission path information until a path that satisfies the total bandwidth required for the transmission is obtained; The data caching and sending module caches the data packets and sends them to the host end.

2. A multi-channel optical fiber combining transmission device according to claim 1, characterized in that: The optical fiber transmission path included in the data transmission link only transmits data information of the data transmission link during the transmission process; after the transmission is completed, the data transmission link is dissolved, and the optical fiber transmission path can establish a new data transmission link.

3. The multi-channel optical fiber combining transmission device according to claim 1, characterized in that: The transmission control module packages the data information of the same data transmission link, and the data information package includes the target address, source address, target port, source port, function number, flow ID, target physical port, source physical port, data volume, data content, and check code; The transmission control module allocates a flow ID and a check code to each data packet on the same path.

4. The multi-channel optical fiber combining transmission device according to claim 1, characterized in that: The data cache and sending module stores the data information packets of the same data transmission link in the cache module one by one according to the assigned serial ID, and sends the data information packets to the host end one by one according to the serial ID through the optical fiber transmission path to which the data transmission link belongs.

5. The multi-channel optical fiber combining transmission device according to claim 3, characterized in that: The host side receives the data information packet, detects whether the check code is correct and whether the serial ID is continuous, and if the check code is wrong or the serial ID is discontinuous, resulting in the loss of the data information packet, sends a data retransmission command to the firmware side.

6. The multi-channel optical fiber combining transmission device according to claim 5, characterized in that: The firmware end receives the data retransmission command, and according to the serial ID of the data information packet that needs to be retransmitted, the data cache and sending module resends the data information packet stored in the cache to the host end.

7. A data transmission method using a multi-channel optical fiber combining transmission device according to any one of claims 1 to 6, comprising the following steps: S1. Receive the transmission device information sent by the host; S2. Determine the total bandwidth required for transmission according to the transmission device information issued by the host, and determine whether the optical fiber transmission path is available one by one until the total bandwidth of the available optical fiber transmission path meets the total bandwidth required for transmission; S3. Bind the available optical fiber transmission path to the transmission device sent from the host end as a data transmission link; S4. Pack the data information of the same data transmission link and assign a check code and a running ID to the data information packet; After caching the data information packet, the data information packet is sent to the host end through the optical fiber transmission path to which the data transmission link belongs; S5. After the host receives the data packet, it verifies whether the data packet is correct and whether there is any data packet loss; if the data packet is verified incorrectly or lost, a data retransmission command is sent to the firmware end; S6. After the data information transmission of the data transmission link is completed, the data transmission link is dissolved.