Compressed data transmission processing method and device, equipment and storage medium
By using the original data size, transmission data size and storage K code in the avionics digital video bus for link analysis and protocol analysis of the transmitted data frame, the problem that the video bus does not support compressed data transmission is solved, and compression is achieved The effective transmission and processing of data have expanded applicable scenarios.
Patent Information
- Application Number
- CN202411292516.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-14
- Publication Date
- 2024-11-22
AI Technical Summary
The existing avionics digital video bus (such as ARINC818) supports the transmission processing of uncompressed data, but does not support the transmission processing of compressed data, resulting in a small range of applicable scenarios.
Through the conversion relationship between the original data size and the transmitted data size and the storage of K code, the target compressed data link analysis of the target video bus transmission is realized, and each transmitted data frame is analyzed to verify the frame attributes and frame data. To ensure the correctness and readability of the transmitted data.
Under normal circumstances, the target video bus transmission link is implemented to analyze and process the target compressed data of the target video bus, clarify the transmission results of the compressed data, and expand the applicable scenarios of the video bus.
Smart Images

Figure CN119011088A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a compressed data transmission processing method, device, equipment and storage medium. Background Art
[0002] With the rapid development of aerospace technology, airborne electronic systems are gradually upgraded, and the video information exchanged between various devices is increasing day by day. The traditional video bus can no longer meet the technical requirements of new aerospace electronic systems.
[0003] In the related technology, a specific video bus with the characteristics of low latency, high bandwidth, non-compression, strong anti-electromagnetic interference ability and insensitivity to distance is used, for example, the avionics digital video bus ARINC818, to realize the transmission of video information between various devices in aerospace electronic systems.
[0004] However, the above-mentioned specific video bus, such as the avionics digital video bus, supports the transmission and processing of uncompressed data, but does not support the transmission and processing of compressed data, resulting in a smaller range of applicable scenarios for the specific video bus. Summary of the invention
[0005] In view of this, the embodiments of the present application provide a compressed data transmission processing method, device, equipment and storage medium. Through the conversion relationship between the original data size and the transmission data size, and the storage of K code, link resolution is implemented for the target compressed data transmitted by the target video bus. When the transmission link of the target video bus is normal, the target compressed data can be transmitted by the target video bus and parsed into multiple transmission data; a resolution protocol is implemented for each transmission data, so that each data frame in each transmission data can be verified whether it is transmitted correctly, so as to facilitate the subsequent determination of the transmission processing result of the target compressed data; based on the frame attribute verification result and the frame data verification result of each transmission data frame, multiple transmission data can be read and written to realize the transmission processing of the target compressed data, and the transmission processing result of the target compressed data can be clarified.
[0006] On the one hand, an embodiment of the present application provides a compressed data transmission processing method, the method comprising:
[0007] According to the original data size, the transmission data size and the storage K code, link parsing is performed on the target compressed data transmitted by the target video bus to obtain multiple transmission data;
[0008] Performing protocol parsing on each transmission data frame in the plurality of transmission data to obtain a frame attribute verification result and a frame data verification result of each transmission data frame;
[0009] The plurality of transmission data are read and written controlled according to the frame attribute verification result and the frame data verification result to obtain the transmission processing result of the target compressed data.
[0010] Optionally, the link parsing of the target compressed data transmitted by the target video bus is performed according to the original data size, the transmission data size and the storage K code to obtain multiple transmission data, including:
[0011] According to the original data size and the transmission data size, the target compressed data is decoded to obtain a plurality of decoded data;
[0012] Perform byte alignment on the plurality of decoded data according to the stored K code to obtain a K code alignment result;
[0013] If the K code alignment result indicates that the transmission K code in the plurality of decoded data is aligned with the stored K code, the plurality of transmission data is determined according to the plurality of decoded data.
[0014] Optionally, performing protocol parsing on each transmission data frame in the multiple transmission data to obtain a frame attribute verification result and a frame data verification result of each transmission data frame includes:
[0015] Determine a plurality of transmission data frames among the plurality of transmission data according to the transmission K codes among the plurality of decoded data;
[0016] Extracting a frame format of each transmission data frame from the plurality of transmission data frames to obtain a frame attribute of each transmission data frame and frame data of each transmission data frame;
[0017] Performing attribute verification on the frame attributes of each transmission data frame to obtain a frame attribute verification result of each transmission data frame;
[0018] Performing data verification on the frame data of each transmission data frame to obtain a frame data verification result of each transmission data frame.
[0019] Optionally, the frame attributes include a frame sequence number and a frame size, and the frame attribute verification result includes a frame sequence number verification result and a frame size verification result.
[0020] Optionally, performing read and write control on the multiple transmission data according to the frame attribute check result and the frame data check result to obtain the transmission processing result of the target compressed data includes:
[0021] Cache-write the plurality of transmission data according to the cache operation sequence to obtain the transmission-write result of the target compressed data;
[0022] Determining a transmission error result of the target compressed data according to the frame attribute check result and the frame data check result;
[0023] The transmission processing result is determined according to the transmission writing result and the transmission error result.
[0024] Optionally, the method further includes:
[0025] Performing serial-to-parallel conversion on the target compressed data to obtain a plurality of parallel converted data;
[0026] The step of decoding the target compressed data according to the original data size and the transmission data size to obtain a plurality of decoded data comprises:
[0027] The plurality of parallel converted data are decoded according to the original data size and the transmission data size to obtain the plurality of decoded data.
[0028] Optionally, the method further includes:
[0029] If the K code alignment result indicates that the transmission K code in the plurality of decoded data is not aligned with the storage K code, it is determined that the transmission link of the target video bus is abnormal.
[0030] On the other hand, an embodiment of the present application provides a compressed data transmission processing device, the device comprising: a link parsing unit, a protocol parsing unit and a read-write control unit;
[0031] The link parsing unit is used to perform link parsing on the target compressed data transmitted by the target video bus according to the original data size, the transmission data size and the storage K code to obtain multiple transmission data;
[0032] The protocol parsing unit is used to perform protocol parsing on each transmission data frame in the plurality of transmission data to obtain a frame attribute verification result and a frame data verification result of each transmission data frame;
[0033] The read / write control unit is used to perform read / write control on the multiple transmission data according to the frame attribute verification result and the frame data verification result to obtain the transmission processing result of the target compressed data.
[0034] Optionally, the link parsing unit is used to:
[0035] According to the original data size and the transmission data size, the target compressed data is decoded to obtain a plurality of decoded data;
[0036] Perform byte alignment on the plurality of decoded data according to the stored K code to obtain a K code alignment result;
[0037] If the K code alignment result indicates that the transmission K code in the plurality of decoded data is aligned with the stored K code, the plurality of transmission data is determined according to the plurality of decoded data.
[0038] Optionally, the protocol parsing unit is used to:
[0039] Determine a plurality of transmission data frames among the plurality of transmission data according to the transmission K codes among the plurality of decoded data;
[0040] Extracting a frame format of each transmission data frame from the plurality of transmission data frames to obtain a frame attribute of each transmission data frame and frame data of each transmission data frame;
[0041] Performing attribute verification on the frame attributes of each transmission data frame to obtain a frame attribute verification result of each transmission data frame;
[0042] Performing data verification on the frame data of each transmission data frame to obtain a frame data verification result of each transmission data frame.
[0043] Optionally, the frame attributes include a frame sequence number and a frame size, and the frame attribute verification result includes a frame sequence number verification result and a frame size verification result.
[0044] Optionally, the read-write control unit is used to:
[0045] Cache-write the plurality of transmission data according to the cache operation sequence to obtain the transmission-write result of the target compressed data;
[0046] Determining a transmission error result of the target compressed data according to the frame attribute check result and the frame data check result;
[0047] The transmission processing result is determined according to the transmission writing result and the transmission error result.
[0048] Optionally, the device further comprises: a serial-to-parallel conversion unit;
[0049] The serial-to-parallel conversion unit is used to perform serial-to-parallel conversion on the target compressed data to obtain a plurality of parallel conversion data;
[0050] The link parsing unit is used to:
[0051] The plurality of parallel converted data are decoded according to the original data size and the transmission data size to obtain the plurality of decoded data.
[0052] Optionally, the device further comprises: an abnormality determination unit;
[0053] The abnormality determination unit is used to determine that the transmission link of the target video bus is abnormal if the K code alignment result indicates that the transmission K code in the multiple decoded data is not aligned with the storage K code.
[0054] On the other hand, an embodiment of the present application provides a computer device, the computer device comprising a processor and a memory:
[0055] The memory is used to store a computer program and transmit the computer program to the processor;
[0056] The processor is configured to execute the method described in the above aspects according to the instructions in the computer program.
[0057] On the other hand, an embodiment of the present application provides a computer-readable storage medium, which is used to store a computer program. When the computer program is executed by a processor, it is used to implement the method described in the above aspects.
[0058] Compared with the prior art, this application has at least the following advantages:
[0059] Adopting the technical scheme of the embodiment of the present application, first, through the original data size, the transmission data size and the storage K code, the target compressed data transmitted by the target video bus is subjected to link parsing to obtain multiple transmission data; this method realizes link parsing for the target compressed data transmitted by the target video bus through the conversion relationship between the original data size and the transmission data size, and the storage K code, and can realize the transmission of the target compressed data by the target video bus and parse it into multiple transmission data under the normal transmission link of the target video bus. Then, each transmission data frame in the multiple transmission data is subjected to protocol parsing to obtain the frame attribute verification result and frame data verification result of each transmission data frame; this method can verify whether each transmission data frame is transmitted correctly by implementing the parsing protocol for each transmission data frame, so as to facilitate the subsequent determination of the transmission processing result of the target compressed data. Finally, according to the frame attribute verification result and the frame data verification result, the multiple transmission data are subjected to read and write control to obtain the transmission processing result of the target compressed data; this method can realize the transmission processing of the target compressed data by reading and writing multiple transmission data on the basis of the frame attribute verification result and the frame data verification result of each transmission data frame, and can clarify the transmission processing result of the target compressed data. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments of the present application will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0061] Figure 1 A schematic diagram of a system framework involved in an application scenario in an embodiment of the present application;
[0062] Figure 2 A schematic diagram of a flow chart of a compressed data transmission processing method provided in an embodiment of the present application;
[0063] Figure 3 A flowchart of another method for compressing data transmission provided by an embodiment of the present application;
[0064] Figure 4 A schematic diagram of the structure of a compressed data transmission processing device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0065] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0066] At present, in order to realize the transmission of video information between various devices in aerospace electronic systems, a specific video bus with the characteristics of low latency, high bandwidth, non-compression, strong anti-electromagnetic interference capability and insensitivity to distance is usually used, such as the avionics digital video bus ARINC818. However, this specific video bus, such as the avionics digital video bus, supports the transmission and processing of non-compressed data, but does not support the transmission and processing of compressed data, and there is a problem that the scope of application scenarios of this specific video bus is relatively small.
[0067] In order to solve this problem, in an embodiment of the present application, through the conversion relationship between the original data size and the transmission data size, and the storage of the K code, link resolution is implemented for the target compressed data transmitted by the target video bus, so that when the transmission link of the target video bus is normal, the target compressed data can be transmitted by the target video bus and resolved into multiple transmission data; a resolution protocol is implemented for each transmission data, so that it can be verified whether each data frame in each transmission data is transmitted correctly, so as to facilitate the subsequent determination of the transmission processing result of the target compressed data; based on the frame attribute verification result and the frame data verification result of each transmission data frame, multiple transmission data can be read and written to realize the transmission processing of the target compressed data, and the transmission processing of the target compressed data can be clarified.
[0068] For example, one of the scenarios of the embodiments of the present application may be applied to Figure 1The scenario shown in the figure includes a target sending device 101, a target video bus 102 and a target receiving device 103. The target sending device 101 transmits target compressed data to the target receiving device 103 via the target video bus 102. The target receiving device 103 executes the implementation method provided in the embodiment of the present application to implement the transmission processing of the target compressed data based on the target video bus 102, and obtains the transmission processing result of the target compressed data.
[0069] First, in the above application scenario, although the action description of the implementation method provided in the embodiment of the present application is executed by the receiving device 103; however, the embodiment of the present application is not limited in terms of the execution subject, as long as the actions disclosed in the implementation method provided in the embodiment of the present application are executed.
[0070] Secondly, the above scenario is only an example scenario provided by the embodiment of the present application, and the embodiment of the present application is not limited to this scenario.
[0071] The specific implementation of the compressed data transmission processing method, device, equipment and storage medium in the embodiments of the present application is described in detail below with reference to the accompanying drawings.
[0072] First, the specific implementation of the compressed data transmission processing method in the embodiment of the present application is described in detail through an embodiment.
[0073] See also Figure 2 ,Should Figure 2 A flowchart of a compressed data transmission processing method provided in an embodiment of the present application. In this embodiment, the method may include the following S201-S203.
[0074] S201: performing link analysis on target compressed data transmitted by a target video bus according to the original data size, the transmission data size and the storage K code to obtain a plurality of transmission data.
[0075] In the related art, in order to realize the transmission of video information between various devices in the aerospace electronic system, a specific video bus with the characteristics of low latency, high bandwidth, non-compression, strong anti-electromagnetic interference ability and insensitivity to distance is usually adopted, such as the avionics digital video bus ARINC818. However, the specific video bus, such as the avionics digital video bus, supports the transmission and processing of non-compressed data, but does not support the transmission and processing of compressed data, and there is a problem that the scope of application scenarios of the specific video bus is relatively small.
[0076] Therefore, in the embodiment of the present application, in order to solve the above problem, on the basis of the original data transmitted by the above-mentioned specific video bus, a certain amount of incremental data based on the storage K code can be added to each original data, so that the specific video bus can transmit compressed data and parse it into multiple transmission data, so as to realize the transmission processing of the compressed data transmitted by the above-mentioned specific video bus, so as to obtain the transmission processing result of the compressed data later; then the incremental data size is added to the original data size to obtain the transmission data size. Based on this, through the original data size, the transmission data size and the storage K code, the target compressed data transmitted by the target video bus is subjected to link parsing, and multiple transmission data can be obtained, so as to obtain the transmission processing result by performing transmission processing based on the multiple transmission data later.
[0077] Among them, the original data size refers to the unit size of the compressed data transmitted by the target video bus; the transmission data size refers to the unit size of the compressed data and incremental data transmitted by the target video bus; the storage K code refers to the K code configured by the receiving device of the target video bus, and the target video bus refers to a specific video bus with the characteristics of low latency, high bandwidth, strong anti-electromagnetic interference capability and insensitivity to distance; the target compressed data refers to the compressed video information; link resolution refers to decoding multiple transmission data when it is determined that the transmission link of the target video bus is normal based on the original data size, the transmission data size, the storage K code and the target compressed data transmitted by the target video bus; multiple transmission data refer to multiple data obtained by decoding the target compressed data based on the original data size and the transmission data size when the transmission link of the target video bus is normal.
[0078] The above S201 realizes link resolution for the target compressed data transmitted by the target video bus through the conversion relationship between the original data size and the transmission data size, and the storage of the K code. When the transmission link of the target video bus is normal, the target video bus can transmit the target compressed data and resolve it into multiple transmission data; and provide accurate transmission data for subsequent verification of whether each transmission data frame in the multiple transmission data is correct to realize the transmission processing of the target compressed data.
[0079] S202: Perform protocol analysis on each transmission data frame in the plurality of transmission data to obtain a frame attribute verification result and a frame data verification result of each transmission data frame.
[0080] In the embodiment of the present application, after executing the above S201 to perform link parsing on the target compressed data transmitted by the target video bus to obtain multiple transmission data, considering the need to verify whether each transmission data frame in the multiple transmission data is transmitted correctly, the multiple transmission data transmitted by the above specific video bus are subjected to transmission processing, so as to obtain the transmission processing result of the compressed data later. Based on this, after executing the above S201, it is also necessary to perform protocol parsing on each transmission data frame in the multiple transmission data to obtain the frame attribute verification result and frame data verification result of each transmission data frame, so as to obtain the transmission processing result based on the frame attribute verification result and frame data verification result of each transmission data frame later.
[0081] Among them, each transmission data frame refers to each data frame in multiple transmission data; protocol parsing refers to extracting the frame attributes and frame data of each transmission data frame, and verifying whether the frame attributes and frame data of each transmission data frame are correct; the frame attribute verification result of each transmission data frame refers to the verification result of whether the frame attributes of each transmission data frame are correct; the frame data verification result of each transmission data frame refers to the verification result of whether the frame data of each transmission data frame is correct.
[0082] The above S202 can verify whether each transmission data frame is transmitted correctly by implementing the parsing protocol for each transmission data frame, and provide verification results of whether the frame attributes and frame data of each transmission data frame are correct for subsequent determination of the transmission processing result of the target compressed data.
[0083] S203: performing read and write control on multiple transmission data according to the frame attribute verification result and the frame data verification result to obtain the transmission processing result of the target compressed data.
[0084] In the embodiment of the present application, after the above S202 performs protocol parsing on each transmission data frame in the multiple transmission data and obtains the frame attribute verification result and frame data verification result of each transmission data frame, it is necessary to read and write multiple transmission data based on whether the frame attribute and frame data of each transmission data frame are correct, so as to realize transmission processing of the multiple transmission data transmitted by the above specific video bus to obtain the transmission processing result of the compressed data. Based on this, after executing the above S202, it is also necessary to perform read and write control on the multiple transmission data according to the frame attribute verification result and the frame data verification result to obtain the transmission processing result of the target compressed data.
[0085] Among them, read and write control refers to reading the frame attribute verification result and frame data verification result of each transmission data frame and writing multiple transmission data; the transmission processing result of the target compressed data refers to reading the frame attribute verification result and frame data verification result of each transmission data frame and writing multiple transmission data to obtain the processing result of the target compressed data.
[0086] In the above S203, based on the frame attribute verification result and the frame data verification result of each transmission data frame, the transmission processing of the target compressed data can be realized by reading and writing a plurality of transmission data, and the transmission processing result of the target compressed data can be clearly defined.
[0087] Through various implementation methods provided by this embodiment, first, link parsing is performed on the target compressed data transmitted by the target video bus through the original data size, the transmission data size and the storage K code to obtain multiple transmission data; this method implements link parsing for the target compressed data transmitted by the target video bus through the conversion relationship between the original data size and the transmission data size, and the storage K code, and can realize the transmission of the target compressed data by the target video bus and parse it into multiple transmission data when the transmission link of the target video bus is normal. Then, protocol parsing is performed on each transmission data frame in the multiple transmission data to obtain the frame attribute verification result and frame data verification result of each transmission data frame; this method can verify whether each transmission data frame is transmitted correctly by implementing the parsing protocol for each transmission data frame, which is convenient for determining the transmission processing result of the target compressed data later. Finally, read and write control is performed on multiple transmission data according to the frame attribute verification result and the frame data verification result to obtain the transmission processing result of the target compressed data; this method can realize the transmission processing of the target compressed data by reading and writing multiple transmission data on the basis of the frame attribute verification result and the frame data verification result of each transmission data frame, and can clarify the transmission processing result of the target compressed data.
[0088] In the embodiment of the present application, when the above S201 is specifically implemented by link parsing the target compressed data transmitted by the target video bus through the original data size, the transmission data size and the storage K code to obtain multiple transmission data, considering that link parsing refers to decoding multiple transmission data when the transmission link of the target video bus is normal based on the original data size, the transmission data size and the storage K code and the target compressed data transmitted by the target video bus, it is necessary to first decode the target compressed data to determine whether the transmission link of the target video bus is normal, and then determine multiple transmission data if it is normal. Therefore, the target compressed data transmitted by the target video bus can be first decoded by the original data size and the transmission data size to obtain multiple decoded data; then the multiple decoded data are byte aligned by storing the K code to obtain the K code alignment result; finally, it is determined whether the K code alignment result indicates that the transmission K code in the multiple decoded data is aligned with the storage K code, and if so, it indicates that the transmission link of the target video bus is normal, and the multiple decoded data are directly determined as multiple transmission data. Based on this, in an optional implementation of the embodiment of the present application, the above S201 can, for example, include the following S201a-S201c (not shown in the figure).
[0089] S201a: Decoding the target compressed data according to the original data size and the transmission data size to obtain a plurality of decoded data.
[0090] S201b: Byte-align multiple decoded data according to the stored K code to obtain a K code alignment result.
[0091] S201c: If the K code alignment result indicates that the transmission K code in the plurality of decoded data is aligned and stored as the K code, a plurality of transmission data is determined according to the plurality of decoded data.
[0092] Among them, data decoding refers to decoding the target compressed data into multiple decoded data based on the original data size and the transmission data size; multiple decoded data refer to multiple data obtained by decoding the target compressed data based on the original data size and the transmission data size; byte alignment refers to judging whether the transmission K code in multiple decoded data is aligned with the stored K code; K code alignment result refers to the judgment result of whether the transmission K code in multiple decoded data is aligned with the stored K code; transmission K code refers to the K code included in each transmission data frame of multiple decoded data.
[0093] The above S201a-S201c first realizes data decoding for the target compressed data transmitted by the target video bus through the conversion relationship between the original data size and the transmission data size, and can decode the target compressed data into multiple decoded data, so as to perform byte alignment for the multiple decoded data by storing the K code, and obtain the K code alignment result to determine whether the transmission link of the target video bus is normal, so that the transmission K code in the multiple decoded data is aligned and the stored K code indicates that the transmission link of the target video bus is normal, and the target video bus transmits the target compressed data and is parsed into multiple transmission data.
[0094] In addition, in the embodiment of the present application, on the basis that the target compressed data is transmitted and received in the form of serial data, considering that the serial-to-parallel conversion can improve the transmission processing efficiency of the target compressed data, the target compressed data transmitted by the target video bus can also be converted from the serial data form to the parallel data form, so that the subsequent transmission processing of the target compressed data is realized in the form of parallel data. Therefore, the target compressed data transmitted by the target video bus can also be serial-to-parallel converted to obtain multiple parallel converted data; so that when performing the above S201a, the target compressed data transmitted by the target video bus is decoded by the original data size and the transmission data size to obtain multiple decoded data, it is actually to perform data decoding on multiple parallel converted data by the original data size and the transmission data size to obtain multiple decoded data. Based on this, in an optional implementation of the embodiment of the present application, the method, for example, also includes S1 (not shown in the figure): serial-to-parallel conversion of the target compressed data to obtain multiple parallel converted data; correspondingly, the above S201a, for example, may include S201aa (not shown in the figure): data decoding of multiple parallel converted data according to the original data size and the transmission data size to obtain multiple decoded data.
[0095] Among them, serial-to-parallel conversion refers to converting target compressed data in serial data form into multiple parallel conversion data in parallel data form; multiple parallel conversion data refer to multiple data in parallel data form converted from target compressed data in serial data form; correspondingly, data decoding refers to decoding multiple parallel conversion data into multiple decoded data based on the original data size and the transmission data size; multiple decoded data refer to multiple data obtained by decoding multiple parallel conversion data based on the original data size and the transmission data size.
[0096] The above S1 and S201aa first perform serial-to-parallel conversion on the target compressed data in serial data form to obtain multiple parallel converted data in parallel data form, and then implement data decoding for the multiple parallel converted data based on the conversion relationship between the original data size and the transmission data size, so as to quickly decode the target compressed data into multiple decoded data.
[0097] In addition, in the embodiment of the present application, based on the above judgment of whether the K code alignment result indicates that the transmission K code in multiple decoded data is aligned with the storage K code, if not, it indicates that the transmission link of the target video bus is abnormal, then it can also be determined that the transmission link of the target video bus is abnormal, and S201a-S201b needs to be re-executed. Based on this, in an optional implementation of the embodiment of the present application, the method also includes S2 (not shown in the figure): if the K code alignment result indicates that the transmission K code in multiple decoded data is not aligned with the storage K code, it is determined that the transmission link of the target video bus is abnormal.
[0098] In the embodiment of the present application, when the above S202 performs protocol parsing on each transmission data frame in the multiple transmission data to obtain the frame attribute verification result and frame data verification result of each transmission data frame, considering that the K code transmitted in the multiple decoded data is used to determine the multiple transmission data frames in the multiple transmission data, each transmission data frame can extract the frame attributes and frame data in the frame format to realize attribute verification and data verification. Therefore, firstly, the multiple transmission data frames in the multiple transmission data are determined by transmitting the K code in the multiple decoded data; then, the frame format extraction is performed for each transmission data frame in the multiple transmission data frames to obtain the frame attributes of each transmission data frame and the frame data of each transmission data frame; on this basis, on the one hand, attribute verification is performed for the frame attributes of each transmission data frame to obtain the frame attribute verification result of each transmission data frame; on the other hand, data verification is performed for the frame data of each transmission data frame to obtain the frame data verification result of each transmission data frame. Based on this, in an optional implementation of the embodiment of the present application, the above S202 may, for example, include the following S202a-S202d (not shown in the figure).
[0099] S202a: Determine a plurality of transmission data frames in the plurality of transmission data according to the transmission K codes in the plurality of decoded data.
[0100] S202b: Extract the frame format of each transmission data frame among the multiple transmission data frames to obtain frame attributes of each transmission data frame and frame data of each transmission data frame.
[0101] S202c: Perform attribute verification on the frame attributes of each transmission data frame to obtain the frame attribute verification result of each transmission data frame.
[0102] S202d: Perform data verification on the frame data of each transmission data frame to obtain a frame data verification result of each transmission data frame.
[0103] Among them, frame format extraction refers to extracting frame attributes and frame data of each transmission data frame; frame attributes of each transmission data frame refer to frame attributes of each transmission data frame, such as frame sequence number and frame size; attribute verification refers to verifying whether the frame attributes of each transmission data frame are correct; frame data of each transmission data frame refers to the data in the frame of each transmission data frame; data verification refers to verifying whether the frame data of each transmission data frame is correct.
[0104] The above S202a-S202d determines multiple transmission data frames in multiple transmission data by transmitting K code in multiple decoded data, and provides transmission data frames to be checked for verifying whether each transmission data frame is transmitted correctly; obtains frame attributes and frame data of each transmission data frame by performing frame format extraction on each transmission data frame, and provides frame attributes and frame data to be checked for later verification of whether the frame attributes and frame data of each transmission data frame are correct; obtains frame attribute verification results of each transmission data frame by performing attribute verification on the frame attributes of each transmission data frame, and obtains frame data verification results of each transmission data frame by performing data verification on the frame data of each transmission data frame, which can accurately verify whether each transmission data frame is transmitted correctly, and provide verification results of whether the frame attributes and frame data of each transmission data frame are correct for subsequent determination of the transmission processing results of the target compressed data.
[0105] In an embodiment of the present application, since the frame attributes of each transmission data frame refer to the frame attributes of each transmission data frame, such as the frame sequence number and the frame size; therefore, the frame attributes of each transmission data frame refer to the frame sequence number and the frame size of each transmission data frame, and correspondingly, the attribute check includes the frame sequence number check and the frame size check, and the frame attribute check result of each transmission data frame includes the frame sequence number check result and the frame size check result of each transmission data frame; based on this, in an optional implementation manner of the embodiment of the present application, the frame attributes include the frame sequence number and the frame size, and the frame attribute check result includes the frame sequence number check result and the frame size check result.
[0106] In the embodiment of the present application, when the above S203 performs read-write control on multiple transmission data according to the frame attribute check result and the frame data check result to obtain the transmission processing result of the target compressed data, it is considered that multiple transmission data need to be written to realize the transmission writing of the target compressed data, and based on the frame attribute check result and the frame data check result of each transmission data frame, it is determined whether the target compressed data is transmitted incorrectly. Therefore, on the one hand, multiple transmission data are cached and written according to the cache operation sequence to obtain the transmission writing result of the target compressed data; on the other hand, based on the frame attribute check result and the frame data check result of each transmission data frame, the transmission error result of the target compressed data is determined; on this basis, the transmission processing result of the target compressed data can be determined through the transmission writing result and the transmission error result. Based on this, in an optional implementation of the embodiment of the present application, the above S203 may, for example, include the following S203a-S203c (not shown in the figure).
[0107] S203a: Cache-write multiple transmission data according to the cache operation sequence to obtain the transmission-write result of the target compressed data.
[0108] S203b: Determine the transmission error result of the target compressed data according to the frame attribute verification result and the frame data verification result.
[0109] S203c: Determine the transmission processing result according to the transmission writing result and the transmission error result.
[0110] Among them, cache write refers to writing multiple transmission data based on the cache operation timing to achieve caching of multiple transmission data, and the transmission write result of the target compressed data refers to the cache write result of multiple transmission data; the transmission error result of the target compressed data refers to the frame attribute verification result and frame data verification result of each transmission data frame, the incorrect verification result of the frame attribute of the transmission data frame and the incorrect verification result of the frame data of the transmission data frame.
[0111] The above S203a-S203c performs cache writing on multiple transmission data based on the cache operation timing to obtain the transmission writing result of the target compressed data, which can accurately realize the transmission writing of the target compressed data in sequence; through the frame attribute verification result and the frame data verification result of each transmission data frame, the transmission error result of the target compressed data is determined, and the transmission error of the target compressed data can be accurately detected; in this way, the transmission writing of the target compressed data is accurately realized through the transmission writing result and the transmission error result, and the transmission error is prompted, so as to accurately clarify the transmission processing result of the target compressed data.
[0112] For the above content, see Figure 3 ,Should Figure 3 A flowchart of another method for processing compressed data transmission provided in an embodiment of the present application. In this embodiment, the method may include the following S301-S309.
[0113] S301: Perform serial-to-parallel conversion on target compressed data transmitted by a target video bus to obtain a plurality of parallel conversion data.
[0114] S302: According to the original data size and the transmission data size, a plurality of parallel converted data are decoded to obtain a plurality of decoded data.
[0115] S303: Byte-align multiple decoded data according to the stored K code to obtain a K code alignment result.
[0116] S304: If the K code alignment result indicates that the transmission K code in the plurality of decoded data is aligned and stored as the K code, a plurality of transmission data is determined according to the plurality of decoded data.
[0117] S305: Determine a plurality of transmission data frames in the plurality of transmission data according to the transmission K codes in the plurality of decoded data.
[0118] S306: Extract the frame format of each transmission data frame among the multiple transmission data frames to obtain frame attributes of each transmission data frame and frame data of each transmission data frame.
[0119] S307: Perform attribute verification on the frame attributes of each transmission data frame to obtain the frame attribute verification result of each transmission data frame.
[0120] S308: Perform data verification on the frame data of each transmission data frame to obtain a frame data verification result of each transmission data frame.
[0121] S309: Cache-write multiple transmission data according to the cache operation sequence to obtain the transmission-write result of the target compressed data.
[0122] S310: Determine a transmission error result of the target compressed data according to the frame attribute check result and the frame data check result.
[0123] S311: Determine the transmission processing result according to the transmission writing result and the transmission error result.
[0124] In addition, in the embodiment of the present application, when the target video bus is the avionics digital video bus ARINC818, the protocol of the ARINC818 includes: frame header, container header, auxiliary data, and video data. Object 0 is auxiliary data information, which describes auxiliary information such as the resolution, refresh mode, and color components of the video. Object 1 is audio data information, which describes the audio data content carried in the container. Objects 2 and 3 are both video data information, which represent the video data content in the container. The auxiliary data information of object 0 is modified as follows:
[0125] Table 1 Object 0 Additional Data Value
[0126]
[0127]
[0128] Next, the specific implementation method of the compressed data transmission processing device in the embodiment of the present application is described in detail through an embodiment.
[0129] See also Figure 4 , Figure 4 A schematic diagram of the structure of a compressed data transmission processing device provided in an embodiment of the present application. In this embodiment, the device may specifically include: a link parsing unit 401, a protocol parsing unit 402, and a read-write control unit 403;
[0130] The link parsing unit 401 is used to perform link parsing on the target compressed data transmitted by the target video bus according to the original data size, the transmission data size and the storage K code to obtain multiple transmission data;
[0131] The protocol parsing unit 402 is used to perform protocol parsing on each transmission data frame in the plurality of transmission data to obtain a frame attribute verification result and a frame data verification result of each transmission data frame;
[0132] The read / write control unit 403 is used to perform read / write control on the multiple transmission data according to the frame attribute verification result and the frame data verification result to obtain the transmission processing result of the target compressed data.
[0133] In an optional implementation of the embodiment of the present application, the link parsing unit 401 is used to:
[0134] According to the original data size and the transmission data size, the target compressed data is decoded to obtain a plurality of decoded data;
[0135] Perform byte alignment on the plurality of decoded data according to the stored K code to obtain a K code alignment result;
[0136] If the K code alignment result indicates that the transmission K code in the plurality of decoded data is aligned with the stored K code, the plurality of transmission data is determined according to the plurality of decoded data.
[0137] In an optional implementation of the embodiment of the present application, the protocol parsing unit 402 is used to:
[0138] Determine a plurality of transmission data frames among the plurality of transmission data according to the transmission K codes among the plurality of decoded data;
[0139] Extracting a frame format of each transmission data frame from the plurality of transmission data frames to obtain a frame attribute of each transmission data frame and frame data of each transmission data frame;
[0140] Performing attribute verification on the frame attributes of each transmission data frame to obtain a frame attribute verification result of each transmission data frame;
[0141] Performing data verification on the frame data of each transmission data frame to obtain a frame data verification result of each transmission data frame.
[0142] In an optional implementation of the embodiment of the present application, the frame attributes include a frame sequence number and a frame size, and the frame attribute check result includes a frame sequence number check result and a frame size check result.
[0143] In an optional implementation of the embodiment of the present application, the read-write control unit 403 is used to:
[0144] Cache-write the plurality of transmission data according to the cache operation sequence to obtain the transmission-write result of the target compressed data;
[0145] Determining a transmission error result of the target compressed data according to the frame attribute check result and the frame data check result;
[0146] The transmission processing result is determined according to the transmission writing result and the transmission error result.
[0147] In an optional implementation manner of the embodiment of the present application, the device further includes: a serial-to-parallel conversion unit;
[0148] The serial-to-parallel conversion unit is used to perform serial-to-parallel conversion on the target compressed data to obtain a plurality of parallel conversion data;
[0149] The link parsing unit 401 is used to:
[0150] The plurality of parallel converted data are decoded according to the original data size and the transmission data size to obtain the plurality of decoded data.
[0151] In an optional implementation of the embodiment of the present application, the device further includes: an abnormality determination unit;
[0152] The abnormality determination unit is used to determine that the transmission link of the target video bus is abnormal if the K code alignment result indicates that the transmission K code in the multiple decoded data is not aligned with the storage K code.
[0153] Through the various implementation methods provided in this embodiment, the compressed data transmission processing device includes a link parsing unit, a protocol parsing unit and a read-write control unit. Among them, the link parsing unit performs link parsing on the target compressed data transmitted by the target video bus through the original data size, the transmission data size and the storage K code to obtain multiple transmission data; the unit implements link parsing for the target compressed data transmitted by the target video bus through the conversion relationship between the original data size and the transmission data size, and the storage K code, and can realize the target video bus to transmit the target compressed data and parse it into multiple transmission data when the transmission link of the target video bus is normal. The protocol parsing unit performs protocol parsing on each transmission data frame in the multiple transmission data to obtain the frame attribute verification result and frame data verification result of each transmission data frame; the unit can verify whether each transmission data frame is transmitted correctly by implementing the parsing protocol for each transmission data frame, which is convenient for the subsequent determination of the transmission processing result of the target compressed data. The read-write control unit performs read-write control on multiple transmission data according to the frame attribute verification result and the frame data verification result to obtain the transmission processing result of the target compressed data; based on the frame attribute verification result and the frame data verification result of each transmission data frame, the unit reads and writes multiple transmission data to realize the transmission processing of the target compressed data, and can clearly define the transmission processing result of the target compressed data.
[0154] In addition, an embodiment of the present application further provides a computer device, the computer device comprising a processor and a memory:
[0155] The memory is used to store a computer program and transmit the computer program to the processor;
[0156] The processor is configured to execute the method described in the above embodiment according to the instructions in the computer program.
[0157] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store a computer program, and when the computer program is executed by a processor, it is used to implement the method described in the above embodiment.
[0158] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0159] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0160] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. The terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "comprises a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0161] The above is only a preferred embodiment of the present application and does not constitute any formal limitation to the present application. Although the present application has been disclosed as above with a preferred embodiment, it is not intended to limit the present application. Any technician familiar with the art can make many possible changes and modifications to the technical solution of the present application using the methods and technical contents disclosed above without departing from the scope of the technical solution of the present application, or modify it into an equivalent embodiment of equivalent changes. Therefore, any simple modification, equivalent change and modification made to the above embodiments based on the technical essence of the present application without departing from the content of the technical solution of the present application still fall within the scope of protection of the technical solution of the present application.
Claims
1. A method for processing compressed data transmission, characterized in that: include: According to the original data size, the transmission data size and the storage K code, link parsing is performed on the target compressed data transmitted by the target video bus to obtain multiple transmission data; Performing protocol parsing on each transmission data frame in the plurality of transmission data to obtain a frame attribute verification result and a frame data verification result of each transmission data frame; The plurality of transmission data are read and written controlled according to the frame attribute verification result and the frame data verification result to obtain the transmission processing result of the target compressed data.
2. The method according to claim 1, characterized in that: The target compressed data transmitted by the target video bus is subjected to link parsing according to the original data size, the transmission data size and the storage K code to obtain a plurality of transmission data, including: According to the original data size and the transmission data size, the target compressed data is decoded to obtain a plurality of decoded data; Perform byte alignment on the plurality of decoded data according to the stored K code to obtain a K code alignment result; If the K code alignment result indicates that the transmission K code in the plurality of decoded data is aligned with the stored K code, the plurality of transmission data is determined according to the plurality of decoded data.
3. The method according to claim 1, characterized in that The performing protocol parsing on each transmission data frame in the plurality of transmission data to obtain a frame attribute verification result and a frame data verification result of each transmission data frame includes: Determine a plurality of transmission data frames among the plurality of transmission data according to the transmission K codes among the plurality of decoded data; Extracting a frame format of each transmission data frame from the plurality of transmission data frames to obtain a frame attribute of each transmission data frame and frame data of each transmission data frame; Performing attribute verification on the frame attributes of each transmission data frame to obtain a frame attribute verification result of each transmission data frame; Performing data verification on the frame data of each transmission data frame to obtain a frame data verification result of each transmission data frame.
4. The method according to claim 3, characterized in that The frame attributes include a frame sequence number and a frame size, and the frame attribute verification result includes a frame sequence number verification result and a frame size verification result.
5. The method according to claim 1, characterized in that The performing read and write control on the plurality of transmission data according to the frame attribute check result and the frame data check result to obtain the transmission processing result of the target compressed data includes: Cache-write the plurality of transmission data according to the cache operation sequence to obtain the transmission-write result of the target compressed data; Determining a transmission error result of the target compressed data according to the frame attribute check result and the frame data check result; The transmission processing result is determined according to the transmission writing result and the transmission error result.
6. The method according to claim 2, characterized in that The method further comprises: Performing serial-to-parallel conversion on the target compressed data to obtain a plurality of parallel converted data; The step of decoding the target compressed data according to the original data size and the transmission data size to obtain a plurality of decoded data comprises: The plurality of parallel converted data are decoded according to the original data size and the transmission data size to obtain the plurality of decoded data.
7. The method according to claim 2, characterized in that The method further comprises: If the K code alignment result indicates that the transmission K code in the plurality of decoded data is not aligned with the storage K code, it is determined that the transmission link of the target video bus is abnormal.
8. A compressed data transmission processing device, characterized in that: include: Link parsing unit, protocol parsing unit and read-write control unit; The link parsing unit is used to perform link parsing on the target compressed data transmitted by the target video bus according to the original data size, the transmission data size and the storage K code to obtain multiple transmission data; The protocol parsing unit is used to perform protocol parsing on each transmission data frame in the plurality of transmission data to obtain a frame attribute verification result and a frame data verification result of each transmission data frame; The read / write control unit is used to perform read / write control on the multiple transmission data according to the frame attribute verification result and the frame data verification result to obtain the transmission processing result of the target compressed data.
9. A computer device, characterized in that: The computer device comprises a processor and a memory: The memory is used to store a computer program and transmit the computer program to the processor; The processor is configured to execute the method according to any one of claims 1 to 7 according to the instructions in the computer program.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store a computer program, and when the computer program is executed by a processor, it is used to implement the method according to any one of claims 1 to 7.
