Disclosure of Invention
In view of the above-mentioned drawbacks or shortcomings in the related art, it is desirable to provide a deserializer, and a vehicle-mounted video data transmission system, method, and storage medium, which can efficiently detect whether data transmission is erroneous, and have a wide application range.
In a first aspect, the present disclosure provides a deserializer including a receiving module, a calculating module, and a comparing module connected to each other;
The receiving module is configured to receive video data transmitted through a oLDI interface, the video data comprises first path mapping data mapped on a first differential data channel, second path mapping data mapped on a second differential data channel, third path mapping data mapped on a third differential data channel and fourth path mapping data mapped on a fourth differential data channel, the fourth path mapping data comprises a data synchronization sequence, and a first detection code is arranged in the data synchronization sequence;
the computing module is configured to compute a second detection code corresponding to the video data;
The comparison module is configured to decode the data synchronization sequence, obtain the first detected code, and compare the first detected code with the second detected code, determine that the video data transmission is correct when the first detected code and the second detected code are equal, and determine that the video data transmission is incorrect when the first detected code and the second detected code are different.
Optionally, in some embodiments of the present disclosure, the first detection code and the second detection code are both error checking error correcting codes.
Optionally, in some embodiments of the present disclosure, the comparing module is specifically configured to perform 1-bit error correction on the video data if it is detected that the video data has a 1-bit error; and
And if the video data is detected to have 2-bit errors, reporting an error interrupt to a main control.
Optionally, in some embodiments of the disclosure, the data synchronization sequence is a 130-bit data packet, and the data packet includes synchronization header information and the first detection code.
In a second aspect, the present disclosure provides an on-vehicle video data transmission system, the on-vehicle video data transmission system including a serializer and the deserializer according to any one of the first aspects, the serializer being configured to transmit video data, the video data including first path mapping data mapped on a first differential data channel, second path mapping data mapped on a second differential data channel, third path mapping data mapped on a third differential data channel, and fourth path mapping data mapped on a fourth differential data channel, the fourth path mapping data including a data synchronization sequence in which a first detection code is provided.
In a third aspect, the present disclosure provides a vehicle-mounted video data transmission method, including:
Receiving video data transmitted through oLDI interfaces, wherein the video data comprises first path mapping data mapped on a first differential data channel, second path mapping data mapped on a second differential data channel, third path mapping data mapped on a third differential data channel and fourth path mapping data mapped on a fourth differential data channel, the fourth path mapping data comprises a data synchronization sequence, and a first detection code is arranged in the data synchronization sequence;
calculating a second detection code corresponding to the video data;
Decoding the data synchronization sequence, obtaining the first detection code, comparing the first detection code with the second detection code, determining that the video data transmission is correct when the first detection code and the second detection code are equal, and determining that the video data transmission is incorrect when the first detection code and the second detection code are different.
Optionally, in some embodiments of the present disclosure, the first detection code and the second detection code are both error checking error correcting codes.
Optionally, in some embodiments of the disclosure, the determining that the video data is transmitted with errors when the first detection code and the second detection code are unequal includes:
If the video data is detected to have 1-bit errors, 1-bit error correction is carried out on the video data;
And if the video data is detected to have 2-bit errors, reporting an error interrupt to a main control.
Optionally, in some embodiments of the disclosure, the data synchronization sequence is a 130-bit data packet, and the data packet includes synchronization header information and the first detection code.
In a fourth aspect, the present disclosure provides a computer-readable storage medium storing one or more programs executable by one or more processors to implement the steps of the in-vehicle video data transmission method according to any one of the third aspects.
From the above technical solutions, the embodiments of the present disclosure have the following advantages:
The embodiment of the disclosure provides a deserializer, a vehicle-mounted video data transmission system, a method and a storage medium, wherein a data synchronization sequence is contained in fourth path mapping data corresponding to video data, and a first detection code is arranged in the data synchronization sequence, so that an interface signal is not required to be additionally added or an existing code stream data structure is not required to be changed, any bandwidth is not occupied, a second detection code corresponding to the video data is calculated, the second detection code and the first detection code are compared, when the second detection code and the first detection code are equal, the video data is determined to be correctly transmitted, and when the second detection code and the first detection code are not equal, the video data is determined to be transmitted with errors, so that the detection efficiency and the detection accuracy are greatly improved, the compatibility is strong, and the video data transmission system is applicable to various scenes.
Detailed Description
In order that those skilled in the art will better understand the present disclosure, a technical solution in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present disclosure, not all embodiments. Based on the embodiments in this disclosure, all other embodiments that a person of ordinary skill in the art would obtain without making any inventive effort are within the scope of protection of this disclosure.
The terms "first," "second," "third," "fourth" and the like in the description and in the claims and in the above-described figures, if any, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the described embodiments of the disclosure may be capable of operation in sequences other than those illustrated or described herein.
Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or modules is not necessarily limited to those steps or modules that are expressly listed or inherent to such process, method, article, or apparatus.
It should be noted that, without conflict, the embodiments of the present disclosure and features of the embodiments may be combined with each other. In order to better understand the present disclosure, the deserializer, the vehicle-mounted video data transmission system, the method and the storage medium provided by the embodiments of the present disclosure are described in detail below with reference to fig. 1 to 6.
Referring to fig. 1, which is a block diagram of a deserializer according to an embodiment of the disclosure, the deserializer 100 includes a receiving module 101, a calculating module 102 and a comparing module 103 connected to each other. The receiving module 101 is capable of receiving video Data transmitted through the oLDI interface, where the video Data includes first path mapping Data mapped on a first differential Data channel, second path mapping Data mapped on a second differential Data channel, third path mapping Data mapped on a third differential Data channel, and fourth path mapping Data mapped on a fourth differential Data channel, and the fourth path mapping Data includes a Data Sync (DS) sequence, where a first detection code is set in the Data Sync sequence; the calculating module 102 can calculate a second detection code corresponding to the video data; the comparison module 103 is capable of decoding the data synchronization sequence, obtaining a first detection code, and comparing the first detection code with a second detection code, determining that the video data transmission is correct when the first detection code and the second detection code are equal, and determining that the video data transmission is incorrect when the first detection code and the second detection code are unequal.
Exemplary, as shown in fig. 2, a schematic diagram of a data format of an in-vehicle video signal according to an embodiment of the disclosure is provided. As can be seen from the figure, the signals to be transmitted include timing control signal video clock (DCK), vertical Sync (VSYNC), horizontal Sync (HSYNC), data ENABLE (ENABLE), and 24-bit video data signal DB [23:0], in which three components of RGB, red, green and blue each occupy 8 bits. Where VLW (Vertical low width, also referred to as VERTICAL SYNC WIDTH) represents the vertical sync signal width, VBP (video back porch) represents the vertical trailing edge, VACT (video active) represents video activation, HLW (horizontal low width, also referred to as horizontal SYNC WIDTH) represents the horizontal sync signal width, HBP (horizontal back porch) represents the horizontal trailing edge, HACT (horizontal video active) represents horizontal video activation, VSYNC represents the start of a frame, HSYNC represents the start of a row, and ENABLE represents valid data in a row.
Further, in addition to the video clock signal, a total of 27 bit signals are required to transmit video, i.e., RGB data occupies 24 bits, vsync, HSYNC, and ENABLE each occupies 1bit, and valid data only appears in a valid data area, i.e., HACT area in the figure. As shown in fig. 3, which is a schematic diagram of a transmission mapping format of an on-vehicle video signal provided in an embodiment of the present disclosure, oLDI interfaces are mapped onto 5-path LVDS (Low Voltage DIFFERENTIAL SIGNALING, low Voltage differential signals) according to the format of the diagram when video signals are transmitted, wherein 27-bit video signals except for video clock signals are mapped onto 4-path LVDS such as d0+/- (corresponding to the first differential data channel), d1+/- (corresponding to the second differential data channel), d2+/- (corresponding to the third differential data channel), d3+/- (corresponding to the fourth differential data channel), RO0 represents bit0 of Red component, RO1 represents bit1 of Red component, GO0 represents bit0 of Green component, BO0 represents bit0 of Blue component, and so on.
Further, oLDI (i.e., open LVDSDISPLAY INTERFACE, also called OpenLDI) is a digital display interface standard proposed by the national semiconductor company, which is based on a low voltage differential signal interface, and has the advantages of high efficiency, low power consumption, low clutter interference, and being capable of supporting higher resolution. Because the first bit data in each clock cycle of the mapping data corresponding to the D3 +/-way in oLDI standard is a reserved bit and has no description on the purpose, the embodiment of the disclosure uses this bit as a data synchronization bit and forms a data synchronization sequence to set the first detection code, without adding an additional interface signal or changing the data structure of the existing code stream, without occupying any bandwidth, and meanwhile, the receiver which does not support modification of the verification mode can be compatible.
Illustratively, in the embodiments of the present disclosure, the first detection code and the second detection code are Error CHECKING AND correction (ECC). Further, the error checking error correcting code is based on the principle that an extra bit of data stores a code encrypted with data, when the data is written into the memory, the corresponding ECC code is also stored, and when the data stored just is read back again, the stored ECC code is compared with the ECC code generated when the data is read, and if the two codes are different, they are decoded to determine which bit of the data is wrong. For example, if 1-bit errors are detected in the video data, 1-bit error correction is performed on the video data, and if 2-bit errors are detected in the video data, an error interrupt is reported to the master.
Illustratively, as shown in fig. 4, in the embodiment of the present disclosure, the data synchronization sequence is a 130-bit data packet, and the data packet may include synchronization header information (e.g., header) and a first detection code (e.g., ECC), which has the advantage of facilitating the receiving side to quickly find the start of the data packet according to the synchronization header information, thereby improving efficiency and accuracy. In addition, the data packet can also comprise a reserved part (such as other), so that the data packet is convenient for later expansion and has more flexibility.
According to the deserializer provided by the embodiment of the disclosure, the data synchronization sequence is included in the fourth path of mapping data corresponding to the video data, and the first detection code is arranged in the data synchronization sequence, so that no additional interface signal is required to be added or the existing code stream data structure is changed, no bandwidth is occupied, the second detection code corresponding to the video data is calculated, the second detection code and the first detection code are compared, when the second detection code and the first detection code are equal, the video data transmission is determined to be correct, and when the second detection code and the first detection code are unequal, the video data transmission is determined to be incorrect, the detection efficiency and the accuracy are greatly improved, the compatibility is strong, and the application scene is various.
As another aspect, an embodiment of the present disclosure provides a vehicle-mounted video data transmission system. Referring to fig. 5, a block diagram of a vehicle-mounted video data transmission system according to an embodiment of the present disclosure is provided, where the vehicle-mounted video data transmission system 200 includes a serializer 300 and a deserializer 100 according to the corresponding embodiment of fig. 1 to 4, and the serializer 300 is capable of transmitting video data, where the video data includes first path mapping data mapped on a first differential data channel, second path mapping data mapped on a second differential data channel, third path mapping data mapped on a third differential data channel, and fourth path mapping data mapped on a fourth differential data channel, and the fourth path mapping data includes a data synchronization sequence, and the data synchronization sequence is provided with a first detection code.
It should be noted that, in this embodiment, the descriptions of the same content as those in other embodiments may refer to the descriptions in other embodiments, which are not repeated here.
According to the vehicle-mounted video data transmission system provided by the embodiment of the disclosure, the data synchronization sequence is included in the fourth path of mapping data corresponding to the video data, and the first detection code is arranged in the data synchronization sequence, so that no additional interface signal is required to be added or the existing code stream data structure is changed, no bandwidth is occupied, the second detection code corresponding to the video data is calculated, the second detection code and the first detection code are compared, when the second detection code and the first detection code are equal, the video data transmission is determined to be correct, and when the second detection code and the first detection code are unequal, the video data transmission is determined to be wrong, the detection efficiency and the accuracy are greatly improved, the compatibility is strong, and the application scene is various.
As still another aspect, an embodiment of the present disclosure provides a vehicle-mounted video data transmission method. Please refer to fig. 6, which is a flowchart of a vehicle-mounted video data transmission method according to an embodiment of the present disclosure, wherein the method may be used for the deserializer 100 of the corresponding embodiment of fig. 1 to 4, and specifically includes the following steps:
S101, receiving video data transmitted through oLDI interfaces, wherein the video data comprises first path mapping data mapped on a first differential data channel, second path mapping data mapped on a second differential data channel, third path mapping data mapped on a third differential data channel and fourth path mapping data mapped on a fourth differential data channel, the fourth path mapping data comprises a data synchronization sequence, and a first detection code is arranged in the data synchronization sequence.
Illustratively, such as shown in fig. 4, in the embodiment of the disclosure, the data synchronization sequence is a 130-bit data packet, which may include synchronization header information (e.g., header), a first detection code (e.g., ECC), and so on. For another example, the first detection code and the second detection code are error checking error correcting codes.
S102, calculating a second detection code corresponding to the video data.
S103, decoding the data synchronization sequence to obtain a first detection code, comparing the first detection code with a second detection code, determining that the video data is transmitted correctly when the first detection code and the second detection code are equal, and determining that the video data is transmitted incorrectly when the first detection code and the second detection code are unequal.
Illustratively, the embodiments of the present disclosure may perform 1-bit error correction on video data when detecting that 1-bit error exists in the video data, and may report an error interrupt to the master when detecting that 2-bit error exists in the video data.
It should be noted that, in this embodiment, the descriptions of the same steps and the same content as those in other embodiments may refer to the descriptions in other embodiments, and are not repeated here.
According to the vehicle-mounted video data transmission method, the data synchronization sequence is contained in the fourth path of mapping data corresponding to the video data, and the first detection code is arranged in the data synchronization sequence, so that no additional interface signal is needed or an existing code stream data structure is changed, no bandwidth is occupied, the second detection code corresponding to the video data is calculated, the second detection code is compared with the first detection code, when the second detection code is equal to the first detection code, the video data is determined to be transmitted correctly, and when the second detection code is unequal to the first detection code, the video data is determined to be transmitted incorrectly, the detection efficiency and accuracy are greatly improved, the compatibility is strong, and the application scene is various.
As a further aspect, the disclosed embodiments provide a computer readable storage medium for storing program code for executing any one of the implementations of the vehicle-mounted video data transmission methods of the corresponding embodiments of fig. 1 to 4 described above.
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the systems, apparatuses and modules described above may refer to the corresponding processes in the foregoing method embodiments, which are not repeated herein.
In the several embodiments provided in the present disclosure, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, and for example, the division of the modules is merely a logical function division, and there may be additional divisions when actually implemented, for example, multiple modules or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or modules, which may be in electrical, mechanical, or other forms. The modules illustrated as separate components may or may not be physically separate, and components shown as modules may or may not be physical units, may be located in one place, or may be distributed over multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional module in each embodiment of the present disclosure may be integrated in one processing unit, or each module may exist alone physically, or two or more units may be integrated in one module. The integrated units may be implemented in hardware or in software functional units. And the integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer-readable storage medium.
Based on such understanding, the technical solution of the present disclosure may be embodied in essence or a part contributing to the prior art or all or part of the technical solution, in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method for transmitting vehicle-mounted video data of the various embodiments of the present disclosure. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-only memory (ROM), a random access memory (RandomAccess Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
It should be noted that the above embodiments are merely for illustrating the technical solution of the disclosure, and are not limiting; although the present disclosure has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present disclosure.