Efficient vehicle-mounted video transmission system and method based on CAN-XL
By adopting an efficient on-board video transmission system based on CAN-XL in on-board network video transmission, and using technologies such as H.265/HEVC hardware encoder and priority preemptive scheduling algorithm, the bandwidth limitation and real-time performance in on-board network video transmission is solved. The problem is to realize the efficient, accurate and real-time transmission of high-definition video signals, ensuring data integrity and real-time.
Patent Information
- Application Number
- CN202411004193.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-25
- Publication Date
- 2024-12-03
AI Technical Summary
There are problems in on-board network video transmission of data bandwidth limitations, difficult to meet real-time requirements, and lack of data integrity guarantees, especially in traditional CAN bus and Ethernet solutions.
Adopt an efficient on-vehicle video transmission system based on CAN-XL, including video acquisition module, video compression module, data segmentation and packaging module, transmission and scheduling module, reception and restructuring module, performance optimization module and error handling and recovery mechanism module, using H .265/HEVC hardware encoder performs video compression, optimizes transmission through priority preemptive scheduling algorithm and dynamic bandwidth allocation algorithm, combining CRC verification, fast retransmission and adaptive flow control to ensure the accuracy and real-timeness of data transmission.
It realizes efficient, accurate and real-time transmission of high-definition video signals, ensures data integrity and real-time performance, adapts to the complex conditions of the on-board environment, and improves the reliability and stability of the system.
Smart Images

Figure CN119071530A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of video data transmission, and in particular to a high-efficiency vehicle-mounted video transmission system and method based on CAN-XL. Background Art
[0002] In-vehicle network video transmission refers to the process of transmitting video data through network technology inside the vehicle or between the vehicle and the external network. This technology allows drivers and passengers to watch online videos, monitor the vehicle's surroundings in real time, and receive navigation instructions while driving; in in-vehicle network video transmission, wireless network technologies such as 4G, 5G, Wi-Fi, etc. are usually used to transmit video data from the server or cloud to the display screen inside the vehicle or mobile devices.
[0003] The current in-vehicle network video transmission has the following problems: First, bandwidth limitation of data transmission. The traditional CAN bus bandwidth is limited and it is difficult to meet the needs of high-definition video transmission. Even for CAN-FD, its minimum bandwidth of 8Mbps is difficult to support multiple high-definition video streams; Second, it is difficult to meet real-time requirements. Since the in-vehicle system has extremely strict requirements on the delay of video transmission, especially in safety-critical systems such as ADAS, although the bandwidth of the traditional Ethernet solution is sufficient, its non-deterministic delay is not suitable for in-vehicle applications; Third, there is a lack of means to ensure data integrity. Due to the complex in-vehicle environment, electromagnetic interference may cause data transmission errors, and the existing system lacks an effective error detection and recovery mechanism, resulting in data packet loss and incomplete video reconstruction. Therefore, an efficient in-vehicle video transmission system and method based on CAN-XL is proposed. Summary of the invention
[0004] The purpose of the present invention is to provide an efficient vehicle-mounted video transmission system and method based on CAN-XL to solve the problems raised in the above background technology.
[0005] To achieve the above object, the present invention provides the following technical solutions: an efficient vehicle-mounted video transmission system based on CAN-XL, the system consisting of a video acquisition module, a video compression module, a data segmentation and encapsulation module, a transmission scheduling module, a receiving and reassembly module, a performance optimization module and an error handling and recovery mechanism module;
[0006] The video acquisition module uses a high-definition camera to obtain video signals;
[0007] The video compression module is based on the hardware encoder of H.265 / HEVC, and is used to compress the collected video signal;
[0008] The data segmentation and encapsulation module is used to segment and encapsulate the compressed video stream into CAN-XL frame data packets;
[0009] The transmission scheduling module is based on a priority-based preemptive scheduling algorithm for managing the transmission scheduling of CAN-XL frame data packets, including determining transmission priority, scheduling transmission time and allocation of network resources;
[0010] The receiving and reassembling module is used to receive CAN-XL frame data packets and reconstruct the video stream;
[0011] The performance optimization module is based on a dynamic bandwidth allocation algorithm to optimize the CAN-XL bandwidth efficiency;
[0012] The error handling and recovery mechanism module is used for CAN-XL frame data packet CRC check, fast retransmission, network congestion detection and adaptive flow control.
[0013] Preferably, the CRF value of the video compression module is set to 28 to achieve a balance between hardware and video quality.
[0014] Preferably, the video compression module uses a 'fast' preset to optimize encoding speed and compression efficiency.
[0015] Preferably, each data segment of the data segmentation and encapsulation module adds a 4-byte header, including a 2-byte sequence number, a 1-byte priority identifier and a 1-byte frame type identifier, wherein the 1-byte frame type identifier includes an I frame and a P frame.
[0016] Preferably, the transmission scheduling module also includes a network load monitoring mechanism for dynamically adjusting the CAN-XL frame data packet transmission rate, wherein the I frame data packet obtains the highest transmission priority.
[0017] Preferably, the receiving and reassembling module is based on a sequence number-based data packet sorting algorithm, and is provided with a packet loss detection and request retransmission mechanism.
[0018] Preferably, the performance optimization module is also provided with a predictive transmission mechanism for reducing end-to-end delay during data transmission.
[0019] Preferably, the CAN-XL frame data packet CRC check is used to detect whether there is a transmission error. If a check mismatch is found, a request can be made to resend the data packet;
[0020] The fast retransmission is based on the TCP protocol mechanism and is used to handle the situation of data packet loss;
[0021] The network congestion detection and adaptive flow control act in the network transmission process and are used to control data flow.
[0022] A transmission method of a high-efficiency vehicle-mounted video transmission system based on CAN-XL, using the transmission system, the transmission method comprises the following steps;
[0023] S1, firstly obtain the video signal through the video acquisition module;
[0024] S2, then the collected video signal is compressed by the video compression module using the H.265 / HEVC compression algorithm;
[0025] S3, then use the data segmentation and encapsulation module to segment the compressed video data into CAN-XL frame data packets, and add control information and check information to each CAN-XL frame data packet;
[0026] S4, then use the transmission scheduling module to first determine the transmission priority of the CAN-XL frame data packet, and then perform transmission scheduling of the CAN-XL frame data packet by adjusting the scheduling time and adjusting the network resource allocation;
[0027] S5, using the performance optimization module to reduce the delay of CAN-XL frame data packet transmission through a dynamic bandwidth allocation algorithm during the CAN-XL frame data packet transmission scheduling;
[0028] S6, before data integration, the error handling and recovery mechanism module is used to perform CRC check on the received CAN-XL frame data packet. If the check does not match, a request can be made to resend the CAN-XL frame data packet, and a fast retransmission strategy is used to quickly transmit the CAN-XL frame data packet through network congestion detection and adaptive flow control;
[0029] S7, finally, the received CAN-XL frame data packets are reassembled in sequence into a complete video stream through the receiving and reassembling module.
[0030] Preferably, the process of sequentially reassembling the CAN-XL frame data packets in S7 also includes a decompression operation to restore the compressed video data to a displayable video signal.
[0031] Technical effects and advantages of the present invention:
[0032] (1) The video compression module of the present invention adopts the H.265 / HEVC compression algorithm to improve the compression efficiency. Through parameter optimization, the compression rate is maximized while ensuring the video quality. At the same time, a data segmentation and encapsulation module based on CAN-XL is designed to adapt to the data segmentation strategy of the CAN-XL frame structure. Through the innovative data encapsulation format, including metadata such as sequence number and priority, combined with the transmission scheduling module for the transmission scheduling of CAN-XL frame data packets, the video signal transmission of the system is more accurate and fast;
[0033] (2) The transmission scheduling module of the present invention is used to dynamically adjust the CAN-XL frame data packet transmission rate through the network load monitoring mechanism, and dynamically allocate the transmission priority according to the type and sequence position of the video frame to ensure the timely transmission of key data and improve the real-time performance of the system;
[0034] (3) The present invention designs a performance optimization module and an error handling and recovery mechanism module, which uses a dynamic bandwidth allocation algorithm for CAN-XL frame data packet CRC check, fast retransmission, network congestion detection and adaptive flow control, thereby realizing an efficient data retransmission and recovery strategy to ensure the accuracy of data transmission. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 FIG. 4 is a block diagram of a transmission system of the present invention.
[0036] Figure 2 It is a composition tree diagram of the transmission system of the present invention.
[0037] Figure 3 It is an operation flow chart of the transmission method of the present invention.
[0038] Figure 4 It is a composition tree diagram of the transmission method of the present invention. DETAILED DESCRIPTION
[0039] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0040] Embodiment 1, the present invention provides as follows Figure 1 and Figure 2 The high-efficiency vehicle-mounted video transmission system based on CAN-XL shown in the figure is composed of a video acquisition module, a video compression module, a data segmentation and encapsulation module, a transmission scheduling module, a receiving and reassembly module, a performance optimization module, and an error handling and recovery mechanism module;
[0041] The video acquisition module uses a high-definition camera to obtain video signals. The high-definition camera supports a resolution of 1280x720, so the images obtained are clearer and more accurate.
[0042] The video compression module is based on the H.265 / HEVC hardware encoder, which is used to compress the collected video signals. It can effectively reduce data traffic while ensuring image quality, thereby reducing data volume and improving transmission efficiency.
[0043] It should be noted that the video compression module adopts H.265 / HEVC main profile, level 3.1, and its output resolution is set to 640x480 to meet the load storage requirements.
[0044] Specifically, the CRF value of the video compression module is set to 28 to strike a balance between hardware and video quality.
[0045] Specifically, the video compression module uses the 'fast' preset to optimize encoding speed and compression efficiency.
[0046] The data segmentation and encapsulation module is used to segment and encapsulate the compressed video stream into CAN-XL frame data packets, and to segment the compressed video stream into data segments of up to 2048 bytes. The necessary control information and checksum information are added to each data packet to ensure the reliability and integrity of data transmission.
[0047] Specifically, a 4-byte header is added to each data segment of the data segmentation and encapsulation module, including a 2-byte sequence number, a 1-byte priority identifier, and a 1-byte frame type identifier, wherein the 1-byte frame type identifier includes an I frame and a P frame.
[0048] The transmission scheduling module uses a priority-based preemptive scheduling algorithm to manage the transmission scheduling of CAN-XL frame data packets, including determining transmission priority, scheduling transmission time, and allocation of network resources;
[0049] It should be noted that this step is to optimize the transmission link to ensure stable data transmission in the vehicle environment.
[0050] Specifically, the transmission scheduling module also includes a network load monitoring mechanism for dynamically adjusting the CAN-XL frame data packet transmission rate, wherein the I frame data packet obtains the highest transmission priority.
[0051] The receiving and reassembling module is used to receive CAN-XL frame data packets and reconstruct the video stream;
[0052] Specifically, the receiving and reassembling module implements a data packet sorting algorithm based on sequence numbers, and sets up a packet loss detection and request retransmission mechanism. It also includes a decompression operation to restore the compressed video data to a displayable video signal, and uses a video stream buffering strategy to provide a smooth playback experience.
[0053] It should be noted that the sequence number packet sorting algorithm is an algorithm for sorting received out-of-order packets. It is usually manifested in that a buffer is maintained at the receiving end, the received packets are stored in the buffer in the order of their sequence numbers, and the packets are sorted according to their sequence numbers.
[0054] Specific manifestations include:
[0055] A1, after receiving the out-of-order data packets, stores the data packets in the buffer according to their sequence numbers.
[0056] A2, continuously monitors the sequence numbers of data packets in the buffer area and sorts them according to the sequence numbers.
[0057] A3, when the sequence numbers of the data packets in the buffer area reach a certain rule (such as a continuously increasing sequence number), the data packets are assembled into a complete data stream in sequence for subsequent processing or playback.
[0058] The purpose of this algorithm is to ensure that the receiving end can reassemble out-of-order data packets in the correct order to ensure the integrity and correctness of the data. The mathematical expression of this algorithm can be simply expressed as:
[0059] Assume that the received data packets are numbered a1, a2, a3, …, an, where ai represents the number of the i-th received data packet. Then the sorting algorithm can be expressed as:
[0060] The sequence numbers of the sorted data packets are a1', a2', a3', ..., an', satisfying:
[0061] a1′<=a2′<=a3′<=…<=an′ (1);
[0062] The symbol “<=” indicates a less than or equal to relationship, indicating that the data packet numbers are arranged in ascending order.
[0063] The performance optimization module is based on a dynamic bandwidth allocation algorithm to maximize CAN-XL bandwidth utilization;
[0064] Specifically, the performance optimization module is also provided with a predictive transmission mechanism for reducing end-to-end delay during data transmission.
[0065] It should be noted that end-to-end delay refers to the time delay experienced during the entire process of data transmission from the sender to the receiver. Minimizing end-to-end delay means reducing the total transmission time of data from the sender to the receiver as much as possible to improve the efficiency and real-time performance of data transmission.
[0066] The error handling and recovery mechanism module is used for CAN-XL frame data packet CRC check, fast retransmission, network congestion detection and adaptive flow control.
[0067] It should be noted that CRC check and fast retransmission strategy can help detect and correct errors in data transmission; interpolation reconstruction algorithm can recover lost data packets as much as possible; network congestion detection and adaptive flow control can optimize network transmission efficiency and improve the success rate and speed of data transmission.
[0068] Specifically, the CRC check of the CAN-XL frame data packet is used to detect whether there is a transmission error. If the check mismatch is found, the data packet can be requested to be resent;
[0069] It should be noted that CRC check is a cyclic redundancy check. By calculating the check value of the data packet, the receiver can detect whether there is a transmission error by comparing the received data packet with the check value. If the check does not match, the data packet can be requested to be resent, thereby realizing the error handling and recovery mechanism.
[0070] Fast retransmit is a TCP-based mechanism for handling packet loss.
[0071] It should be noted that the fast retransmit strategy is a TCP protocol mechanism used to handle packet loss. When the sender receives three consecutive duplicate ACK confirmations, it will immediately retransmit the lost data packet without waiting for timeout retransmission, thereby speeding up data transmission. When a data packet is lost, the interpolation reconstruction algorithm can estimate the content of the lost data packet by interpolating the received data packets, thereby restoring the original data as much as possible.
[0072] Network congestion detection and adaptive flow control are used to control data flow during network transmission.
[0073] It should be noted that network congestion detection and adaptive flow control are mechanisms used to control data traffic during network transmission. By monitoring indicators such as network delay and packet loss rate, it is determined whether the network is congested. Once network congestion is detected, the data transmission rate is dynamically adjusted to avoid network congestion and improve transmission efficiency. Adaptive flow control can dynamically adjust the window size according to the network status and dynamically adjust the data transmission rate to achieve more efficient data transmission. Common flow control algorithms include TCP congestion control algorithms (such as slow start, congestion avoidance, fast retransmission, fast recovery, etc.) and UDP congestion control algorithms (such as Token Bucket algorithm).
[0074] Embodiment 2, the present invention provides as follows Figure 3 and Figure 4 The transmission method of the CAN-XL-based efficient vehicle-mounted video transmission system shown adopts the transmission system including any one of claims 1-8, characterized in that the transmission method includes the following steps;
[0075] S1, firstly obtain the video signal through the video acquisition module;
[0076] S2, then the collected video signal is compressed by the video compression module using the H.265 / HEVC compression algorithm;
[0077] S3, then use the data segmentation and encapsulation module to segment the compressed video data into CAN-XL frame data packets, and add control information and check information to each CAN-XL frame data packet;
[0078] S4, then use the transmission scheduling module to first determine the transmission priority of the CAN-XL frame data packet, and then perform transmission scheduling of the CAN-XL frame data packet by adjusting the scheduling time and adjusting the network resource allocation;
[0079] It should be noted that determining the transmission priority refers to assigning a priority to each data packet based on factors such as the importance and real-time nature of the video data packet, so that data packets with higher importance are transmitted preferentially during network transmission.
[0080] Scheduling transmission time refers to reasonably arranging the transmission time of video data packets based on network bandwidth, delay, congestion, etc., to ensure that the data packets can reach the receiving end on time and ensure smooth video playback.
[0081] The allocation of network resources refers to the reasonable allocation of network bandwidth, cache space and other resources according to the transmission priority and scheduled transmission time of video data packets to ensure that video data packets can be transmitted smoothly and to achieve the purpose of giving priority to the transmission of data packets with higher priority.
[0082] S5, using the performance optimization module to reduce the delay of CAN-XL frame data packet transmission through a dynamic bandwidth allocation algorithm during the CAN-XL frame data packet transmission scheduling;
[0083] S6, before data integration, the error handling and recovery mechanism module is used to perform CRC check on the received CAN-XL frame data packet. If the check does not match, a request can be made to resend the CAN-XL frame data packet, and a fast retransmission strategy is used to quickly transmit the CAN-XL frame data packet through network congestion detection and adaptive flow control;
[0084] S7, finally, the received CAN-XL frame data packets are reassembled in sequence into a complete video stream through the receiving and reassembling module.
[0085] Specifically, the process of sequentially reassembling the CAN-XL frame data packets in S7 also includes a decompression operation to restore the compressed video data to a displayable video signal.
[0086] Finally, it should be noted that the above is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, it is still possible for those skilled in the art to modify the technical solutions described in the aforementioned embodiments or to make equivalent substitutions for some of the technical features therein. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. An efficient vehicle video transmission system based on CAN-XL, characterized by: The system is composed of a video acquisition module, a video compression module, a data segmentation and encapsulation module, a transmission scheduling module, a receiving and reassembly module, a performance optimization module and an error handling and recovery mechanism module; The high-definition camera is used to obtain video signals; The video compression module is based on the hardware encoder of H.265 / HEVC, and is used to compress the collected video signal; The data segmentation and encapsulation module is used to segment and encapsulate the compressed video stream into CAN-XL frame data packets; The transmission scheduling module is based on a priority-based preemptive scheduling algorithm for managing the transmission scheduling of CAN-XL frame data packets, including determining transmission priority, scheduling transmission time and allocation of network resources; The receiving and reassembling module is used to receive CAN-XL frame data packets and reconstruct the video stream; The performance optimization module is based on a dynamic bandwidth allocation algorithm to optimize the CAN-XL bandwidth efficiency; The error handling and recovery mechanism module is used for CAN-XL frame data packet CRC check, fast retransmission, network congestion detection and adaptive flow control.
2. The efficient vehicle-mounted video transmission system based on CAN-XL according to claim 1 is characterized in that: The CRF value of the video compression module is set to 28 to strike a balance between hardware and video quality.
3. The efficient vehicle-mounted video transmission system based on CAN-XL according to claim 2 is characterized in that: The video compression module uses the 'fast' preset to optimize encoding speed and compression efficiency.
4. The efficient vehicle-mounted video transmission system based on CAN-XL according to claim 1 is characterized in that: Each data segment of the data segmentation and encapsulation module adds a 4-byte header, including a 2-byte sequence number, a 1-byte priority identifier and a 1-byte frame type identifier, wherein the 1-byte frame type identifier includes an I frame and a P frame.
5. The efficient vehicle-mounted video transmission system based on CAN-XL according to claim 1 is characterized in that: The transmission scheduling module also includes a network load monitoring mechanism for dynamically adjusting the CAN-XL frame data packet transmission rate, wherein the I frame data packet obtains the highest transmission priority.
6. The efficient vehicle-mounted video transmission system based on CAN-XL according to claim 1 is characterized in that: The receiving and reassembling module uses a data packet sorting algorithm based on sequence numbers and sets a packet loss detection and request retransmission mechanism.
7. The efficient vehicle-mounted video transmission system based on CAN-XL according to claim 1 is characterized in that: The performance optimization module is also provided with a predictive transmission mechanism for reducing end-to-end delay during data transmission.
8. The efficient vehicle-mounted video transmission system based on CAN-XL according to claim 1 is characterized in that: The CAN-XL frame data packet CRC check is used to detect whether there is a transmission error. If the check does not match, a request can be made to resend the data packet; The fast retransmission is based on the TCP protocol mechanism and is used to handle the situation of data packet loss; The network congestion detection and adaptive flow control act in the network transmission process and are used to control data flow.
9. A transmission method of a high-efficiency vehicle-mounted video transmission system based on CAN-XL, using a transmission system according to any one of claims 1 to 8, characterized in that: The transmission method comprises the following steps: S1, firstly obtain the video signal through the video acquisition module; S2, then the collected video signal is compressed by the video compression module using the H.265 / HEVC compression algorithm; S3, then use the data segmentation and encapsulation module to segment the compressed video data into CAN-XL frame data packets, and add control information and check information to each CAN-XL frame data packet; S4, then use the transmission scheduling module to first determine the transmission priority of the CAN-XL frame data packet, and then perform transmission scheduling of the CAN-XL frame data packet by adjusting the scheduling time and adjusting the network resource allocation; S5, using the performance optimization module to reduce the delay of CAN-XL frame data packet transmission through a dynamic bandwidth allocation algorithm during the CAN-XL frame data packet transmission scheduling; S6, before data integration, the error handling and recovery mechanism module is used to perform CRC check on the received CAN-XL frame data packet. If the check does not match, a request can be made to resend the CAN-XL frame data packet, and a fast retransmission strategy is used to quickly transmit the CAN-XL frame data packet through network congestion detection and adaptive flow control; S7, finally, the received CAN-XL frame data packets are reassembled in sequence into a complete video stream through the receiving and reassembling module.
10. The transmission method of the CAN-XL-based efficient vehicle-mounted video transmission system according to claim 9, characterized in that: The process of sequentially reassembling the CAN-XL frame data packets in S7 also includes a decompression operation to restore the compressed video data to a displayable video signal.
Citation Information
Cited By
Efficient vehicle network control system and method based on CAN-FD
CN120110833A
UDP video transmission optimization system and method based on dynamic QoS
CN120583043A
