Data processing method and device, equipment, storage medium, program product and vehicle
By adding verification information to the vehicle acquisition data and performing gain compensation, the problem of reliability in vehicle acquisition data transmission under Serdes technology is solved, and the effect of improving data transmission reliability is achieved.
Patent Information
- Application Number
- CN202411856516.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-16
- Publication Date
- 2025-04-11
AI Technical Summary
The reliability of Serdes technology in transmitting data in vehicle-mounted systems is affected by factors such as signal integrity, transmission distance, noise interference, etc., which leads to the attenuation of the data collected by the vehicle during the transmission process, affecting the reliability of the data.
By adding verification information to the vehicle acquisition data, we can judge whether the vehicle acquisition data is biased during the Serdes transmission process, and when the deviation meets the preset conditions, gain compensation is performed on the restored data to reduce attenuation during the data transmission process.
The deviation of vehicle data collected during transmission is reduced through gain compensation, and the reliability of vehicle data collected under Serdes technology is improved.
Smart Images

Figure CN119796232A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of vehicle-mounted systems, and in particular, relates to a data processing method, device, equipment, storage medium, program product and vehicle. Background Art
[0002] In modern vehicle systems, Serdes technology (Serializer / Deserializer) is widely used. Modern vehicles are often equipped with sensors such as radar, lidar, camera, ultrasonic sensor, etc., which generate a large amount of data. When transmitting data, Serdes first converts parallel data into serial data through the serializer at the sending end, and then transmits it to the deserializer at the receiving end through a coaxial cable or twisted pair. The deserializer then restores the serial data to parallel data.
[0003] At present, the vehicle-mounted system has high requirements for the reliability of data transmission of sensors such as cameras. The reliability of Serdes transmission will be affected by factors such as signal integrity, transmission distance, noise interference, and the vehicle's use environment and service life. The transmission reliability of Serdes may decay with the vehicle's use environment and time. Therefore, how to ensure the reliability of vehicle-collected data under Serdes transmission is a technical problem that needs to be solved urgently. Summary of the invention
[0004] The embodiments of the present application provide a data processing method, apparatus, device, storage medium, program product and vehicle, which can ensure the reliability of vehicle collected data.
[0005] In a first aspect, an embodiment of the present application provides a data processing method, the method comprising:
[0006] Acquire restored data corresponding to the vehicle collected data, wherein the restored data is obtained by restoring the serial data of the vehicle collected data; the serial data is used for transmission of the vehicle collected data; the restored data includes verification information of the vehicle collected data;
[0007] Determining whether a deviation between the restored data and the vehicle collected data satisfies a preset condition based on the verification information;
[0008] In response to the deviation between the restored data and the vehicle collected data satisfying a preset condition, gain compensation is performed on the restored data to obtain the restored data after gain compensation.
[0009] In a second aspect, an embodiment of the present application provides a data processing device, the device comprising:
[0010] An acquisition module is used to acquire restored data corresponding to the vehicle collected data, wherein the restored data is obtained by restoring the serial data of the vehicle collected data; the serial data is used for transmitting the vehicle collected data; and the restored data includes verification information of the vehicle collected data;
[0011] A determination module, which determines whether a deviation between the restored data and the vehicle collected data satisfies a preset condition based on the verification information;
[0012] The compensation module performs gain compensation on the restored data in response to a deviation between the restored data and the vehicle collected data satisfying a preset condition to obtain the restored data after gain compensation.
[0013] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor and a memory storing computer program instructions; when the processor executes the computer program instructions, the data processing method described in the first aspect is implemented.
[0014] In a fourth aspect, an embodiment of the present application provides a computer storage medium, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the data processing method described in the first aspect is implemented.
[0015] In a fifth aspect, an embodiment of the present application provides a computer program product. When instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes the data processing method as described in the first aspect.
[0016] In a sixth aspect, an embodiment of the present application provides a vehicle, comprising an on-board host and a sensor; the sensor is used for collecting vehicle data; and the on-board host is used to execute the data processing method as described in the first aspect.
[0017] The data processing method, apparatus, device, storage medium, program product and vehicle of the embodiments of the present application add verification information to the vehicle collected data in advance so as to accurately determine whether the vehicle collected data has deviated during the transmission through Serdes through the verification information. When it is determined through the verification information that the deviation between the restored data corresponding to the received vehicle collected data and the original vehicle collected data meets the preset conditions, gain compensation is performed on the restored data. The difference between the restored data and the original vehicle collected data is reduced through gain compensation, the attenuation of the vehicle collected data during the transmission process is reduced, and the reliability of the vehicle collected data under Serdes transmission is ensured. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0019] Figure 1 This is a statistical diagram of foreign base station distribution information provided by an embodiment of the present application;
[0020] Figure 2 This is a structural diagram of data transmission of an in-vehicle system provided by an embodiment of the present application;
[0021] Figure 3 This is a schematic diagram of a flow chart of gain compensation each time provided by an embodiment of the present application;
[0022] Figure 4 It is a structural schematic diagram of a data processing method and device provided by an embodiment of the present application;
[0023] Figure 5 It is a structural schematic diagram of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION
[0024] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.
[0025] 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. Moreover, the terms "include", "comprise" 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 "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0026] As described in the background technology, the current vehicle-mounted system has high requirements for the reliability of data transmission of sensors such as cameras. The reliability of Serdes transmission will be affected by factors such as signal integrity, transmission distance, noise interference, and the vehicle's use environment and service life. The transmission reliability of Serdes may decay with the vehicle's use environment, time, etc. Therefore, how to ensure the reliability of vehicle-collected data under Serdes transmission is a technical problem that needs to be solved urgently.
[0027] To solve the problems in the prior art, the present invention provides a data processing method, device, equipment, computer storage medium, computer program product and vehicle. The data processing method provided by the present invention is first introduced below.
[0028] Figure 1 FIG. 1 is a flow chart of a data processing method provided by an embodiment of the present application. Figure 1 As shown, the method comprises the following steps:
[0029] S101, obtaining restored data corresponding to vehicle collected data, wherein the restored data is obtained by restoring serial data of the vehicle collected data; the serial data is used for transmission of the vehicle collected data; and the restored data includes verification information of the vehicle collected data.
[0030] In the specific implementation, in the embodiment of the present application, the vehicle collection data mainly refers to the data collected by various sensors equipped by the vehicle, and these sensors include radar, laser radar, ultrasonic sensor, camera and other sensors. In the vehicle-mounted system, after the sensor collects various vehicle collection data, the collected vehicle collection data can be converted into serial data through Serdes technology, and then the serial data is transmitted to the vehicle-mounted host through a coaxial line or a twisted pair. The vehicle-mounted host obtains the restored data corresponding to the vehicle collection data by means of data restoration such as deserialization of the serial data, thereby realizing the transmission of the vehicle collection data. Considering that when data is transmitted through Serdes technology, due to the influence of factors such as signal integrity, transmission distance, noise interference, etc., the transmission reliability of Serdes may decay with the use environment and time of the vehicle, resulting in a deviation between the restored data obtained by the vehicle-mounted host and the corresponding vehicle collection data. In order to further improve the stability of data transmission through Serdes technology, in this embodiment, verification information will be added to the vehicle collection data in advance, and the verification information is used to verify whether the obtained restored data deviates from the original vehicle collection data.
[0031] It should be noted that since verification information is added to the vehicle collected data in advance, when the vehicle collected data is transmitted to the vehicle host through Serdes technology, the vehicle host deserializes the transmitted serial data, and the restored data obtained also corresponds to the above verification information.
[0032] In some embodiments, reference Figure 2 After the sensor 01 collects the vehicle data, it sends the vehicle data to the serializer 001, which converts the vehicle data into serial data, and then transmits the serial data to the deserializer 002 via a coaxial cable or a twisted pair cable. The deserializer 002 deserializes the serial data into restored data, and then the vehicle host 02 obtains the restored data from the deserializer 002.
[0033] S102: Determine whether the deviation between the restored data and the vehicle collected data meets a preset condition based on the verification information.
[0034] During specific implementation, after the restored data is obtained, it can be determined whether the deviation between the restored data and the vehicle collected data meets the preset conditions based on the verification information included in the restored data. It should be noted that the preset conditions can be set as needed, and the tolerance for data transmission deviation in the embodiment of the present application can be controlled by setting the preset conditions. For example, in one example, the preset condition can be that the preset condition is met as long as the restored data deviates from the vehicle collected data, that is, at this time, there is zero tolerance for data transmission deviation. In an example, the preset condition can also be set to a certain serious degree of deviation between the restored data and the vehicle collected data, for example, the amount of data with deviation in the restored data is greater than a certain threshold, etc.
[0035] In order to accurately determine whether the deviation between the restored data and the vehicle collected data meets the preset conditions, in some embodiments, the restored data includes multiple frames of data; determining whether the deviation between the restored data and the vehicle collected data meets the preset conditions based on the verification information specifically includes:
[0036] For the target frame data in the restored data, determining whether the target frame data is error frame data based on the verification information; the target frame data is any frame data in the restored data;
[0037] Determining whether a deviation between the restored data and the vehicle collected data meets a preset condition based on the number of consecutive error frame data included in the restored data;
[0038] Among them, when the number of continuous error frame data included in the above-mentioned restored data is greater than or equal to a preset threshold, the deviation between the above-mentioned restored data and the above-mentioned vehicle collected data meets the preset conditions; when the number of continuous error frame data included in the above-mentioned restored data is less than the preset threshold, the deviation between the above-mentioned restored data and the above-mentioned vehicle collected data does not meet the preset conditions.
[0039] During specific implementation, in an embodiment of the present application, the setting of the preset condition may be related to the number of consecutive error frame data. When the number of the consecutive error frame data is greater than or equal to the preset threshold, it can be considered that the deviation between the restored data and the vehicle collected data meets the preset condition; when the number of the consecutive error frame data is less than the preset threshold, it can be considered that the deviation between the restored data and the vehicle collected data does not meet the preset condition. The specific preset threshold can be set as needed, and there is no limitation on this. In one example, the preset threshold can be set to 5. It should be noted that in an embodiment of the present application, the vehicle collected data includes multiple frames of data, and the corresponding restored data also includes multiple frames of data; wherein each frame of data is data sent once by the vehicle collected data, and then the vehicle collected data consisting of multiple frames of data is obtained by continuously sending multiple data. Since the restored data is obtained by deserializing the serial data of the vehicle collected data, the restored data also consists of multiple frames of data.
[0040] When determining whether the deviation between the restored data and the vehicle collected data meets the preset condition, for each frame of data in the restored data, determine whether the frame of data is error frame data based on the above verification information; then count the number of consecutive error frame data included in the restored data, and determine whether the deviation between the restored data and the vehicle collected data meets the preset condition based on the number of consecutive error frame data. For example, if there are 5 consecutive frames of error frame data in a certain restored data, if the preset threshold at this time is 5, it is determined that the deviation between the current restored data and the vehicle collected data meets the preset condition.
[0041] In order to accurately determine whether each frame of data in the restored data is deviated, in some embodiments, the verification information includes at least one of the following: the first cyclic redundancy check code of each frame of data in the vehicle collected data, identification information at the beginning and end of each frame of data in the vehicle collected data, the first hash value of each frame of data in the vehicle collected data, and a preset range of the data volume of a single frame of data included in the vehicle collected data; determining whether the target frame data is error frame data based on the verification information specifically includes:
[0042] Performing CRC check on the target frame data to obtain a second cyclic redundancy check code of the target frame data; determining whether the target frame data is error frame data based on the first cyclic redundancy check code corresponding to the target frame data and the second cyclic redundancy check code;
[0043] or, determining whether the target frame data is error frame data based on the completeness of the identification information at the beginning and the end of the target frame data;
[0044] Or, determining a second hash value of the target frame data by a hash function, and determining whether the target frame data is error frame data based on the first hash value corresponding to the target frame data and the second hash value;
[0045] Or, based on the data amount of the target frame data and the preset range, it is determined whether the target frame data is error frame data.
[0046] During specific implementation, in the embodiment of the present application, it can be determined in a variety of ways whether each frame data in the restored data is an error frame data. For this purpose, various forms of verification information can be set, for example, the verification information can include the first cyclic redundancy check code of each frame data in the vehicle collected data, that is, the CRC (Cyclic Redundancy Check, cyclic redundancy check) verification is performed on each frame data in the vehicle collected data in advance to obtain the first cyclic redundancy verification code of each frame data, and then the first cyclic redundancy check code is transmitted to the vehicle-mounted host together as the verification information. Correspondingly, when the verification information includes the first cyclic redundancy check code of each frame data in the vehicle collected data, the target frame data of the restored data can be firstly CRC-checked to obtain the second cyclic redundancy check code of the target frame data, and then the first cyclic redundancy check code corresponding to the target frame data is compared with the second cyclic redundancy check code to see if they are consistent. If they are consistent, it means that there is no problem with the current target frame data. If they are inconsistent, the current target frame data is determined to be error frame data.
[0047] In some embodiments, the verification information includes identification information at the beginning and end of each frame data in the vehicle collected data, that is, before transmitting the vehicle collected data, identification information is added to the beginning and end of each frame data in the vehicle collected data in advance, so that under normal circumstances, if no data transmission abnormality occurs, the beginning and end of each frame data in the restored data should also include the above identification information. When the beginning and end of the target frame data in the original data do not include complete identification information, the current target frame data can be determined as error frame data; when the beginning and end of the target frame data in the original data include complete identification information, the current target frame data can be determined as normal frame data, that is, no abnormality occurs during the data transmission process.
[0048] In some embodiments, the verification information includes the first hash value of each frame data in the vehicle collected data, that is, before transmitting the vehicle collected data, the first hash value of each frame data in the vehicle collected data can be calculated in advance by a hash function, and the first hash value can be transmitted together as the verification information. After the restored data is obtained, the second hash value of the target frame data of the restored data is first calculated by a hash function, and the second hash value is compared with the first hash value corresponding to the target frame data. If the two are equal, it means that there is no problem with the data transmission, and the target frame data can be determined as normal frame data. If the two are different, it means that the data transmission is abnormal. At this time, the target frame data can be determined as error frame data.
[0049] In some embodiments, the verification information includes a preset range of the data volume of a single frame of data included in the vehicle collected data, that is, the preset range of the data volume of the unit data under normal circumstances can be determined in advance through experiments or sensor parameters. Then, when it is determined that the data volume of the single frame of restored data is not within the above preset range, it means that an error has occurred in the data received during the transmission process. Therefore, when the data volume of the target frame of restored data does not belong to the above preset range, the target frame data can be determined as error frame data.
[0050] It should be noted that in the embodiments of the present application, any one of the above methods for determining whether the target frame data is error frame data can be used. In some embodiments, the above multiple methods for determining whether the target frame data is error frame data can be combined together to jointly determine whether the target frame data is error frame data, and there is no limitation on this.
[0051] S103, in response to the deviation between the restored data and the vehicle collected data satisfying a preset condition, performing gain compensation on the restored data to obtain the restored data after gain compensation.
[0052] In specific implementation, after determining whether the deviation between the restored data and the vehicle collected data meets the preset conditions, when it is determined that the deviation between the restored data and the vehicle collected data meets the preset conditions, in order to reduce the deviation between the restored data and the vehicle collected data so that the on-board host can obtain the real vehicle collected data, in this embodiment, the restored data is gain compensated to obtain the above-mentioned restored data after gain compensation. In some embodiments, the restored data can be gain compensated by the equalizer of the on-board host. It should be noted that in some embodiments, any gain value can be selected as needed to perform gain compensation on the restored data. For example, any gain value can be selected from 0.1 to 1 dB based on experience, and there is no limitation on this.
[0053] In order to accurately perform gain compensation on the restored data, in some embodiments, gain compensation is performed on the restored data, specifically including:
[0054] Obtaining multiple preset gain values corresponding to the restored data;
[0055] The restored data is subjected to multiple gain compensations based on the multiple preset gain values.
[0056] During specific implementation, the inventor of the present application discovered through research that, for vehicle collection data, it is not the case that a steady increase in the gain compensation value will steadily improve the gain compensation effect. Therefore, in an embodiment of the present application, multiple preset gain values corresponding to the restored data are determined in advance through experiments, rather than gradually increasing the gain value with a fixed step size based on a certain gain value. Thus, when performing gain compensation, those gain values that are invalid or have no obvious effect are skipped. Therefore, in an embodiment of the present application, multiple preset gain values corresponding to the restored data are first obtained; then, the restored data is gain compensated multiple times according to these preset gain values, that is, each time gain compensation is performed, the gain value for this gain compensation is first determined from multiple preset gain values, rather than determining the gain value with a fixed increase step size.
[0057] In some embodiments, reference Figure 3 , each gain compensation includes the following steps:
[0058] S1031, obtaining the current accumulated gain compensation value of the restored data.
[0059] S1032, determining a target compensation value for this gain compensation based on the current accumulated gain compensation value and a plurality of preset gain values; and performing gain compensation on the restored data based on the target compensation value.
[0060] S1033, determining whether the deviation between the restored data obtained after the gain compensation and the vehicle collected data meets a preset condition.
[0061] In specific implementation, in order to accurately perform gain compensation on the restored data, each time gain compensation is performed, the current cumulative gain compensation value of the restored data will be obtained first, and the current cumulative gain compensation value is the superposition of all gain values that have been gain compensated for the restored data before this gain compensation. When this gain compensation is the first gain compensation, the current cumulative gain compensation value is 0. When the current cumulative gain compensation value is determined, the target compensation value of this gain compensation can be determined according to the current cumulative gain compensation value and multiple preset gain values. The target compensation value, that is, the gain value for this gain compensation, can first determine an alternative preset gain value that is larger than the current cumulative gain compensation value from multiple preset gain values when determining the target compensation, and then determine a target preset gain value as needed from all the alternative preset gain values. The difference between the target preset gain value and the current cumulative gain compensation value is the target compensation value. After determining the target compensation value, the restored data can be gain compensated according to the target compensation value. In order to determine the effect after this gain compensation, it is necessary to determine whether the deviation between the restored data obtained after this gain compensation and the vehicle collected data meets the preset conditions after this gain compensation. If the deviation between the restored data obtained after this gain compensation and the vehicle collected data meets the preset condition, it means that this gain compensation has not achieved the effect of eliminating the deviation, so it is necessary to continue to perform the next gain compensation. If the deviation between the restored data obtained after this gain compensation and the vehicle collected data does not meet the preset condition, it means that this gain compensation has achieved the effect of eliminating the deviation, and the next gain compensation can be stopped.
[0062] In order to accurately determine the multiple preset gain values corresponding to the restored data, in some embodiments, before obtaining the multiple preset gain values corresponding to the restored data, the method further includes:
[0063] Obtaining the maximum output power and the minimum output power of the circuit system corresponding to the restored data;
[0064] Determine a gain compensation range corresponding to the restored data based on the maximum output power and the minimum output power;
[0065] Obtain the change range of the eye opening width of the restored data under different gain compensation conditions;
[0066] Based on the variation range of the eye opening width of the restored data under different gain compensation conditions and the gain compensation range, a plurality of preset gain values corresponding to the restored data are determined.
[0067] In specific implementation, in this embodiment, in order to accurately determine the multiple preset gain values corresponding to the restored data, the gain compensation range corresponding to the restored data can be first determined according to the maximum output power and the minimum output power of the circuit system corresponding to the restored data. In some embodiments, the gain compensation range corresponding to the restored data can be determined by the following formula:
[0068]
[0069] Among them, G max Indicates the maximum value of the gain compensation range corresponding to the restored data, G min Indicates the minimum value of the gain compensation range corresponding to the restored data, P max Indicates the maximum output power of the circuit system corresponding to the restored data, P min Represents the minimum output power of the circuit system corresponding to the restored data, P in Indicates the minimum input power of the circuit system corresponding to the restored data.
[0070] After determining the gain compensation range corresponding to the restored data, further obtain the change amplitude of the eye opening width of the restored data under different gain compensations. In one example, the change amplitude of the eye opening width of the restored data under different gain compensations can be measured by an oscilloscope, that is, different gain compensations are performed on the restored data through different gain values, and then the change amplitude of the eye opening width of the restored data under different gain compensations is measured by an oscilloscope, and the gain values of each gain compensation corresponding to the change amplitude of the eye opening width is determined within the gain compensation range when the change amplitude of the eye opening width is greater than the preset change amplitude, and the gain values of these gain compensations are determined as multiple preset gain values corresponding to the restored data. The above preset change amplitude can be set as needed, and there is no limitation on this.
[0071] In some embodiments, determining the target compensation value of this gain compensation based on the current accumulated gain compensation value and the plurality of preset gain values specifically includes:
[0072] In response to determining that the current accumulated gain compensation value is less than a preset gain threshold, acquiring a data amount of a single frame of data in the restored data;
[0073] Determining a target preset gain value from the plurality of preset gain values based on a difference between the data amount of the single frame data and the preset data amount;
[0074] The target compensation value of this gain compensation is determined based on the target preset gain value and the current accumulated gain compensation value.
[0075] In the specific implementation, considering that the implementation of this application is to gradually achieve the final compensation effect through multiple gain compensations, therefore, in order to improve the efficiency of gain compensation, when the gain compensation is just started, the compensation value can be appropriately increased, so as to approach the final gain compensation effect as soon as possible. Therefore, in the embodiment of the present application, each time the gain compensation is performed, it will first be judged whether the current cumulative gain compensation value is less than the preset threshold value, and the judgment can be used to determine whether the current gain compensation is in the early or late stage of compensation. The preset gain threshold value can be set as needed, and there is no limitation on this. When it is determined that the current gain compensation value is less than the preset gain threshold value, it means that it is in the early stage of gain compensation at this time, and the gain value of gain compensation can be appropriately increased. The specific increased gain value can be judged by the size of the deviation of the restored data. In general, the larger the deviation of the restored data, the larger the gap that needs to be compensated for the gain compensation at present, so the gain value of the gain compensation can be appropriately increased this time. In an example, the present application determines the size of the deviation of the restored data by the size of the difference between the data amount of the single frame data in the restored data and the preset data amount of the standard. That is, the difference between the data amount of the single frame data and the preset data amount is positively correlated with the target preset gain value. After determining the target preset gain value from multiple preset gain values by the difference between the data amount of a single frame of data in the restored data and the preset data amount, the target preset gain value can be subtracted from the current accumulated gain compensation value to obtain the target compensation value of this gain compensation.
[0076] In some embodiments, after performing gain compensation on the restored data, the data processing method of the embodiment of the present application further includes:
[0077] After the gain compensation is performed on the restored data for a preset time period, reducing the gain value of the gain compensation performed on the restored data;
[0078] Determine based on the verification information whether the deviation between the restored data after reducing the gain value and the vehicle collected data meets a preset condition;
[0079] In response to the deviation between the restored data after the gain value is reduced and the vehicle collected data meeting a preset condition, restoring the gain value for gain compensation of the restored data;
[0080] In response to the deviation between the restored data after the gain value is reduced and the vehicle collected data not satisfying a preset condition, the gain value for gain compensation of the restored data is adjusted to 0.
[0081] In the specific implementation, it is considered that in the implementation of the present application, since the vehicle-mounted system itself does not know what causes the data transmission deviation, when the cause of the vehicle data collection error is eliminated, in order to save energy consumption for gain compensation and avoid unnecessary gain compensation, you can try to reduce the gain value of the restored data for gain compensation after a period of gain compensation, and then judge whether the cause of the data transmission deviation disappears. If it disappears, the gain compensation can be stopped, and if it does not disappear, the gain compensation is restored. In one example, in the embodiment of the present application, it is determined whether the cause of the data transmission deviation disappears by whether the deviation between the restored data and the vehicle collected data after the gain value is reduced meets the preset conditions. When it is determined that the deviation between the restored data and the vehicle collected data after the gain value is reduced meets the preset conditions, it means that the cause of the transmission deviation has not disappeared at this time, so it is necessary to restore the gain value of the restored data for gain compensation. When the deviation between the restored data and the vehicle collected data after the gain value is reduced does not meet the preset conditions, it means that the cause of the transmission deviation has been eliminated at this time, so the gain compensation for the restored data can be ended by adjusting the gain value of the restored data for gain compensation to 0.
[0082] The data processing method of the embodiment of the present application adds verification information to the vehicle collection data in advance so as to accurately determine whether the vehicle collection data has deviated during the transmission through Serdes through the verification information. When it is determined through the verification information that the deviation between the restored data corresponding to the received vehicle collection data and the original vehicle collection data meets the preset conditions, gain compensation is performed on the restored data. The difference between the restored data and the original vehicle collection data is reduced through gain compensation, the attenuation of the vehicle collection data during the transmission process is reduced, and the reliability of the vehicle collection data under Serdes transmission is ensured.
[0083] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, the present application also provides a data processing method device.
[0084] refer to Figure 4 , the data processing method device comprises:
[0085] The acquisition module 201 acquires the restored data corresponding to the vehicle collected data, where the restored data is obtained by restoring the serial data of the vehicle collected data; the serial data is used for the transmission of the vehicle collected data; the restored data includes the verification information of the vehicle collected data;
[0086] A determination module 202, determining whether a deviation between the restored data and the vehicle collected data meets a preset condition based on the verification information;
[0087] The compensation module 203 performs gain compensation on the restored data in response to the deviation between the restored data and the vehicle collected data meeting a preset condition to obtain the restored data after gain compensation.
[0088] In some embodiments, the compensation module includes:
[0089] An acquisition unit, for acquiring a plurality of preset gain values corresponding to the restored data;
[0090] A compensation unit, performing multiple gain compensations on the restored data based on multiple preset gain values;
[0091] Each gain compensation includes:
[0092] Get the current accumulated gain compensation value of the restored data;
[0093] Determine a target compensation value for this gain compensation based on the current accumulated gain compensation value and a plurality of preset gain values; and perform gain compensation on the restored data based on the target compensation value;
[0094] Determine whether the deviation between the restored data obtained after the gain compensation and the vehicle collected data meets the preset conditions;
[0095] When the deviation between the restored data obtained after the current gain compensation and the vehicle collected data meets the preset conditions, the next gain compensation is started.
[0096] In some embodiments, the data processing method device in the embodiments of the present application further includes a preset gain module, which is used to:
[0097] Obtain the maximum output power and the minimum output power of the circuit system corresponding to the restored data;
[0098] Determine a gain compensation range corresponding to the restored data based on the maximum output power and the minimum output power;
[0099] Obtain the change range of the eye opening width of the restored data under different gain compensation;
[0100] Based on the variation range of the eye opening width of the restored data under different gain compensations and the gain compensation range, a plurality of preset gain values corresponding to the restored data are determined.
[0101] In some embodiments, the compensation unit is specifically configured to:
[0102] In response to determining that the current accumulated gain compensation value is less than a preset gain threshold, acquiring a data amount of a single frame of data in the restored data;
[0103] Determining a target preset gain value from a plurality of preset gain values based on a difference between a data amount of a single frame of data and a preset data amount;
[0104] The target compensation value of this gain compensation is determined based on the target preset gain value and the current accumulated gain compensation value.
[0105] In some embodiments, the data processing method device in the embodiment of the present application further includes a gain cancellation module, which is used to:
[0106] After a preset time period of performing gain compensation on the restored data, reducing the gain value of the gain compensation on the restored data;
[0107] Determine based on the verification information whether the deviation between the restored data after reducing the gain value and the vehicle collected data meets a preset condition;
[0108] In response to the deviation between the restored data after the gain value is reduced and the vehicle collected data meeting a preset condition, restoring the gain value for gain compensation of the restored data;
[0109] In response to the fact that the deviation between the restored data after the gain value is reduced and the vehicle collected data does not meet the preset condition, the gain value for gain compensation of the restored data is adjusted to 0.
[0110] In some embodiments, the restored data includes multiple frames of data; and the determining module includes:
[0111] A verification unit, for target frame data in the restored data, determines whether the target frame data is error frame data based on the verification information; the target frame data is any frame data in the restored data;
[0112] a determination unit, which determines whether a deviation between the restored data and the vehicle collected data meets a preset condition based on the number of consecutive error frame data included in the restored data;
[0113] Among them, when the number of consecutive error frame data included in the restored data is greater than or equal to a preset threshold, the deviation between the restored data and the vehicle collected data meets the preset conditions; when the number of consecutive error frame data included in the restored data is less than the preset threshold, the deviation between the restored data and the vehicle collected data does not meet the preset conditions.
[0114] In some embodiments, the verification information includes at least one of the following: a first cyclic redundancy check code of each frame of data in the vehicle collected data, identification information at the beginning and end of each frame of data in the vehicle collected data, a first hash value of each frame of data in the vehicle collected data, and a preset range of the amount of data of a single frame of data included in the vehicle collected data; the above-mentioned verification unit is specifically used to:
[0115] Performing CRC check on the target frame data to obtain a second cyclic redundancy check code of the target frame data; determining whether the target frame data is error frame data based on the first cyclic redundancy check code and the second cyclic redundancy check code corresponding to the target frame data;
[0116] or, determining whether the target frame data is error frame data based on the completeness of the identification information at the beginning and the end of the target frame data;
[0117] Or, determining a second hash value of the target frame data by a hash function, and determining whether the target frame data is error frame data based on the first hash value and the second hash value corresponding to the target frame data;
[0118] Or, based on the data amount of the target frame data and a preset range, it is determined whether the target frame data is error frame data.
[0119] For the convenience of description, the above device is described in terms of functions divided into various modules. Of course, when implementing the present application, the functions of each module can be implemented in the same or multiple software and / or hardware.
[0120] The data processing method device of the above embodiment is used to implement the corresponding data processing method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be described in detail here.
[0121] Figure 5 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application is shown.
[0122] In some embodiments the electronic device may include a processor 301 and a memory 302 storing computer program instructions.
[0123] Specifically, the processor 301 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
[0124] The memory 302 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 302 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, the memory 302 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 302 may be inside or outside the integrated gateway disaster recovery device. In a specific embodiment, the memory 302 is a non-volatile solid-state memory.
[0125] In certain embodiments, memory 302 includes a read-only memory (ROM). The ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically alterable ROM (EAROM), or flash memory, or a combination of two or more of the above, where appropriate.
[0126] The memory may include read-only memory (ROM), random access memory (RAM), magnetic disk storage media devices, optical storage media devices, flash memory devices, electrical, optical or other physical / tangible memory storage devices. Thus, typically, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to an aspect of the present disclosure.
[0127] The processor 301 implements any one of the data processing methods in the above embodiments by reading and executing computer program instructions stored in the memory 302 .
[0128] In one example, the electronic device may further include a communication interface 303 and a bus 310. Figure 5 As shown, the processor 301, the memory 302, and the communication interface 303 are connected via a bus 310 and communicate with each other.
[0129] The communication interface 303 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.
[0130] Bus 310 includes hardware, software or both, and the parts of online data flow billing equipment are coupled to each other. For example, but not limitation, bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front-end bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 310 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the present application considers any suitable bus or interconnection.
[0131] The electronic device of the above embodiment is used to implement the corresponding data processing method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be described in detail here.
[0132] In addition, in combination with the data processing method in the above embodiments, the present application embodiment may provide a computer storage medium for implementation. The computer storage medium stores computer program instructions; when the computer program instructions are executed by a processor, any one of the data processing methods in the above embodiments is implemented.
[0133] The computer instructions stored in the storage medium of the above embodiments are used to enable the computer to execute the data processing method described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0134] An embodiment of the present application also provides a computer program product, including a computer program, and when the computer program is processed and executed, it implements any one of the data processing methods in the above embodiments.
[0135] In some embodiments, the computer program instructions may be executed by one or more processors of a computer so that the computer and / or the processor execute the data processing method described in the above embodiments. Corresponding to the execution subject corresponding to each step in each embodiment of the data processing method, the processor executing the corresponding step may belong to the corresponding execution subject.
[0136] The computer program product of the above embodiment is used to enable the computer and / or the processor to execute the data processing method described in any of the above embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0137] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments and methods, the present application further provides a vehicle, including an on-board host and a sensor; the sensor is used for collecting vehicle data; the sensor can be any sensor configured on the vehicle, for example, radar, laser radar, camera, ultrasonic sensor, etc. The on-board host is used to execute any of the data processing methods in the above-mentioned embodiments.
[0138] The vehicle of the above-mentioned embodiment is used to enable the vehicle-mounted host to execute the data processing method described in any of the above embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0139] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.
[0140] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present application are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.
[0141] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.
[0142] Aspects of the present disclosure are described above with reference to the flowchart and / or block diagram of the method, device (system) and computer program product according to the embodiment of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the implementation of the function / action specified in one or more boxes of the flowchart and / or block diagram. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field programmable logic circuit. It can also be understood that each box in the block diagram and / or flowchart and the combination of boxes in the block diagram and / or flowchart can also be implemented by dedicated hardware that performs a specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.
[0143] The above is only a specific implementation of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.
Claims
1. A data processing method, characterized in that: include: Acquire restored data corresponding to the vehicle collected data, wherein the restored data is obtained by restoring serial data of the vehicle collected data; The serial data is used for transmission of the vehicle collected data; the restored data includes verification information of the vehicle collected data; Determining whether a deviation between the restored data and the vehicle collected data satisfies a preset condition based on the verification information; In response to the deviation between the restored data and the vehicle collected data satisfying a preset condition, gain compensation is performed on the restored data to obtain the restored data after gain compensation.
2. The method according to claim 1, characterized in that Performing gain compensation on the restored data specifically includes: Acquire a plurality of preset gain values corresponding to the restored data; Performing multiple gain compensations on the restored data based on the multiple preset gain values; Each gain compensation includes: Obtaining a current accumulated gain compensation value of the restored data; Determining a target compensation value for this gain compensation based on the current accumulated gain compensation value and the plurality of preset gain values; and performing gain compensation on the restored data based on the target compensation value; Determining whether the deviation between the restored data obtained after the gain compensation and the vehicle collected data meets a preset condition; Wherein, when the deviation between the restored data obtained after the current gain compensation and the vehicle collected data meets a preset condition, the next gain compensation is started.
3. The method according to claim 2, characterized in that Before obtaining a plurality of preset gain values corresponding to the restored data, the method further includes: Obtaining the maximum output power and the minimum output power of the circuit system corresponding to the restored data; Determining a gain compensation range corresponding to the restored data based on the maximum output power and the minimum output power; Obtaining the change amplitude of the eye opening width of the restored data under different gain compensations; Based on the variation of the eye opening width of the restored data under different gain compensations and the gain compensation range, a plurality of preset gain values corresponding to the restored data are determined.
4. The method according to claim 2, characterized in that: Determining a target compensation value for this gain compensation based on the current accumulated gain compensation value and the plurality of preset gain values specifically includes: In response to determining that the current accumulated gain compensation value is less than a preset gain threshold, acquiring a data amount of a single frame of data in the restored data; Determining a target preset gain value from the plurality of preset gain values based on a difference between the data amount of the single frame data and the preset data amount; A target compensation value for this gain compensation is determined based on the target preset gain value and the current accumulated gain compensation value.
5. The method according to claim 1, characterized in that After performing gain compensation on the restored data, the method further includes: After a preset time period of performing gain compensation on the restored data, reducing a gain value of gain compensation on the restored data; Determining, based on the verification information, whether a deviation between the restored data after reducing the gain value and the vehicle collected data meets a preset condition; In response to the deviation between the restored data after the gain value is reduced and the vehicle collected data meeting a preset condition, restoring the gain value for gain compensation of the restored data; In response to the deviation between the restored data after the gain value is reduced and the vehicle collected data not satisfying a preset condition, the gain value for gain compensation of the restored data is adjusted to 0.
6. The method according to claim 1, characterized in that The restored data includes multiple frames of data; determining whether the deviation between the restored data and the vehicle collected data meets a preset condition based on the verification information specifically includes: For the target frame data in the restored data, determining whether the target frame data is error frame data based on the verification information; the target frame data is any frame data in the restored data; determining whether a deviation between the restored data and the vehicle collected data meets a preset condition based on the number of consecutive error frame data included in the restored data; Among them, when the number of consecutive error frame data included in the restored data is greater than or equal to a preset threshold, the deviation between the restored data and the vehicle collected data meets the preset condition; when the number of consecutive error frame data included in the restored data is less than the preset threshold, the deviation between the restored data and the vehicle collected data does not meet the preset condition.
7. The method according to claim 6, characterized in that The verification information includes at least one of the following: a first cyclic redundancy check code of each frame of data in the vehicle collected data, identification information located at the beginning and end of each frame of data in the vehicle collected data, a first hash value of each frame of data in the vehicle collected data, and a preset range of the data volume of a single frame of data included in the vehicle collected data; Determining whether the target frame data is error frame data based on the verification information specifically includes: Performing a CRC check on the target frame data to obtain a second cyclic redundancy check code of the target frame data; determining whether the target frame data is error frame data based on the first cyclic redundancy check code and the second cyclic redundancy check code corresponding to the target frame data; or, determining whether the target frame data is error frame data based on the completeness of identification information at the beginning and the end of the target frame data; Or, determining a second hash value of the target frame data by a hash function, and determining whether the target frame data is error frame data based on a first hash value and the second hash value corresponding to the target frame data; Or, based on the data amount of the target frame data and the preset range, it is determined whether the target frame data is error frame data.
8. A data processing device, characterized in that: The device comprises: An acquisition module is used to acquire restored data corresponding to the vehicle collected data, wherein the restored data is obtained by restoring the serial data of the vehicle collected data; the serial data is used for transmitting the vehicle collected data; and the restored data includes verification information of the vehicle collected data; A determination module, which determines whether a deviation between the restored data and the vehicle collected data satisfies a preset condition based on the verification information; The compensation module performs gain compensation on the restored data in response to a deviation between the restored data and the vehicle collected data satisfying a preset condition to obtain the restored data after gain compensation.
9. An electronic device, characterized in that: The device comprises: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, the data processing method according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the data processing method according to any one of claims 1 to 7 is implemented.
11. A computer program product, characterized in that When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes the data processing method according to any one of claims 1 to 7.
12. A vehicle, characterized in that: The vehicle includes an on-board host and a sensor; The sensor is used for collecting vehicle data; The vehicle-mounted host is used to execute the data processing method as described in any one of claims 1-7.