Data processing method, device, equipment, medium and vehicle-mounted data acquisition equipment and system
By obtaining standard second pulse signals and standard time information, the local crystal oscillator counting information is used to update the current local time of the on-board digital acquisition equipment, solving the problem of timestamp synchronization caused by network time inaccuracy, and improving the accuracy and efficiency of data processing.
Patent Information
- Application Number
- CN202410117319.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-26
- Publication Date
- 2024-11-22
- Estimated Expiration
- 2044-01-26
AI Technical Summary
In existing vehicle-mounted digital procurement equipment, the inaccuracy of network time affects the data processing effect, resulting in poor accuracy of timestamp synchronization, and affects the accuracy of data playback, betting and analysis.
By obtaining standard second pulse signal and standard time information, the current local time is updated according to the counting information of the local crystal oscillator when the preset abnormality judgment condition is met, ensuring the accuracy and accuracy of time and avoiding time calculation in abnormal situations.
Improve the time dimension accuracy of data processing, ensure that data processing is carried out under accurate timestamps, and enhance the accuracy of data playback, betting and analysis.
Smart Images

Figure CN118157803B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing, and specifically to a data processing method, device, equipment, medium, and vehicle-mounted data acquisition equipment and system. Background Art
[0002] In the process of vehicle domain control development, some vehicle road running data is often needed as a basis. For example, these data can be used to back-inject domain control, or the development of domain control can be supported by viewing and analyzing these data.
[0003] In order to collect vehicle road running data, the existing technology usually installs an on-board data acquisition device on the vehicle. A mainboard is usually provided in the on-board data acquisition device. However, the current local time on the existing on-board data acquisition device usually uses the network time as the current time. Due to the influence of network environment and other factors, the network time may not be the most accurate time, which in turn affects the processing effect of the data collected by the on-board acquisition device. Summary of the invention
[0004] The embodiments of the present application provide a data processing method, apparatus, device, medium, and vehicle-mounted data acquisition equipment and system to ensure the accuracy of the current local time of the vehicle-mounted data acquisition equipment and improve the data processing effect.
[0005] In a first aspect, the present application provides a data processing method, comprising:
[0006] Obtain standard second pulse signal and standard time information;
[0007] If the preset abnormality judgment condition is met, the current local time of the on-board data acquisition device is updated according to the counting information of the local crystal oscillator of the on-board data acquisition device; the abnormality judgment condition is used to indicate that at least one of the standard second pulse signal and the standard time information is abnormal or is presumed to be abnormal;
[0008] If the abnormality judgment condition is not met, the current local time is updated according to the standard time information, the standard second pulse signal and the counting information of the local crystal oscillator of the vehicle-mounted data acquisition device;
[0009] The data to be processed received by the vehicle-mounted data acquisition device from the vehicle is processed based on the current local time.
[0010] In a second aspect, the present application also provides a vehicle-mounted data acquisition device for executing the data processing method described in any one of the first aspects.
[0011] In a third aspect, the present application also provides a vehicle-mounted data acquisition system, comprising the vehicle-mounted data acquisition device described in the second aspect, and a sensor installed on the vehicle, at least part of the data to be processed originates from the sensor, and the sensor includes: a camera and / or a radar.
[0012] In a fourth aspect, the present application provides a data processing device, including:
[0013] An acquisition module is used to acquire standard second pulse signals and standard time information;
[0014] A first updating module is used to update the current local time of the vehicle-mounted data acquisition device according to the counting information of the local crystal oscillator of the vehicle-mounted data acquisition device if a preset abnormality judgment condition is met; the abnormality judgment condition is used to indicate that at least one of the standard second pulse signal and the standard time information is abnormal or is presumed to be abnormal;
[0015] A second updating module is used to update the current local time according to the standard time information, the standard second pulse signal and the counting information of the local crystal oscillator of the vehicle-mounted data acquisition device if the abnormal judgment condition is not met;
[0016] The processing module is used to process the to-be-processed data received by the vehicle-mounted data acquisition device from the vehicle based on the current local time.
[0017] In a fifth aspect, the present application further provides an electronic device, the electronic device comprising:
[0018] one or more processors;
[0019] Memory; and
[0020] One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor to implement the data processing method according to any one of the first aspects.
[0021] In a sixth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program is loaded by a processor to execute the data processing method described in any one of the first aspects.
[0022] The embodiments of the present application provide a data processing method, apparatus, device, medium, and vehicle-mounted data acquisition equipment and system. By acquiring a standard second pulse signal and standard time information, when a preset abnormal judgment condition is met, the current local time of the vehicle-mounted data acquisition equipment is updated according to the counting information of the local crystal oscillator of the vehicle-mounted data acquisition equipment, thereby avoiding calculating the current local time based on the standard second pulse signal and / or standard time information when an abnormality occurs or is likely to occur, thereby ensuring that the updated current local time has high accuracy, and when the abnormal judgment condition is not met, the current local time is updated according to the standard time information, the standard second pulse signal, and the counting information of the local crystal oscillator of the vehicle-mounted data acquisition equipment, so that the updated current local time has high accuracy and precision, and under the time dimension of the more accurate updated current local time, data processing is performed on the to-be-processed data received by the vehicle-mounted data acquisition equipment from the vehicle, thereby ensuring the accuracy of the data processing in the time dimension and improving the data processing effect. Since it is detected whether the preset abnormal judgment conditions are met, the time calculation method is switched, that is, the time is calculated using the corresponding time method for different detection results, ensuring that the calculated time has high accuracy, and the current local time is updated to the calculated time, making the updated current local time more accurate. Under the time dimension of the updated current local time, data processing is performed on the data to be processed, ensuring the accuracy of data processing in the time dimension, and improving the data processing effect. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0024] in:
[0025] Figure 1 It is a structural block diagram of the vehicle-mounted data acquisition device provided in an embodiment of the present application;
[0026] Figure 2 It is a schematic diagram of an embodiment of a data processing method provided in an embodiment of the present application;
[0027] Figure 3 It is a structural block diagram of the vehicle-mounted data acquisition system provided in the embodiment of the present application;
[0028] Figure 4 is a schematic diagram of the structure of an embodiment of a data processing device provided in an embodiment of the present application;
[0029] Figure 5 It is a schematic diagram of the structure of an embodiment of an electronic device provided in the embodiments of the present application. DETAILED DESCRIPTION
[0030] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0031] In the description of the present application, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the accompanying drawings, which are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present application. In addition, the terms "first" and "second" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the said features. In the description of the present application, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.
[0032] In this application, the word "exemplary" is used to mean "used as an example, illustration, or description." Any embodiment described in this application as "exemplary" is not necessarily to be construed as being preferred or advantageous over other embodiments. The following description is given to enable any technician in the field to implement and use the present application. In the following description, details are listed for the purpose of explanation. It should be understood that a person of ordinary skill in the art can recognize that the present application can be implemented without using these specific details. In other instances, well-known structures and processes will not be elaborated in detail to avoid obscuring the description of the present application with unnecessary details. Therefore, the present application is not intended to be limited to the embodiments shown, but is consistent with the widest scope consistent with the principles and features disclosed in the present application.
[0033] The inventor of the present application has discovered that in one technology, different dimensions of time are used to timestamp images and other data respectively. For example, a camera timestamps an image according to its own time, and a main processing module of a vehicle-mounted data acquisition device timestamps bus data according to its own time. Since the data stored on the disk (images and bus data) are usually played back or annotated based on timestamps, that is, data with the same timestamp is expected to be played back or annotated synchronously, if there is a significant difference in time between the image and bus data, for example, a difference of several minutes, then: it is possible that the main processing module receives the bus data at time t1 with its own time, and timestamps it with t1. The camera triggers exposure at time t1 with its own time, and timestamps the corresponding image with t1. At this time, although both are timestamps of t1, the actual time difference between the two is several minutes, and the synchronization accuracy is poor. Similarly, if the triggering and timestamp recording are not implemented in the same dimension of time, similar problems will occur. For example, if the main processing module timestamps the incoming video images according to its own time, and the camera trigger is calculated according to another time dimension, if there is a significant difference in the time of the two dimensions, it may even happen that the timestamp on the image is numerically earlier than the trigger time. This problem will lead to at least one inaccurate processing in subsequent re-annotation, playback, analysis, real-time data visualization, etc.
[0034] In another technology, the main processing module usually uses the network time as the current time. However, due to the influence of network environment and other factors, the network time may not be the accurate time, which affects the accuracy of data synchronization.
[0035] In another technology, a video module may be provided in the vehicle-mounted data acquisition equipment. The video module is connected between the main processing module and the camera. The timestamp can be calculated through the video module. For example, the video module receives timing (PTP timing or PCIe timing) to obtain the current time. Then, when the camera is triggered and / or the image is received, the image is timestamped based on the current time. However, in the case where there are multiple video modules, if the timestamps are calculated separately by the video modules, the video modules need to be equipped with corresponding circuit modules, which unnecessarily increases the burden on the video modules. The second pulse signal used as the basis for calculating the current time is a low-power pulse signal, which is difficult to support the needs of multiple video modules. Moreover, when different video modules calculate the current time by themselves, it is difficult to ensure the uniformity of time.
[0036] The data processing method provided in the embodiments of the present application is applied to vehicle-mounted data acquisition equipment, such as Figure 1As shown, it is a structural block diagram of the vehicle-mounted data acquisition device 100. The vehicle-mounted data acquisition device can be detachably installed on the vehicle, such as on the back seat or trunk of the vehicle, and is electrically connected to various objects on the vehicle through corresponding lines to collect data of the vehicle's road running, wherein the various objects include, for example, a vehicle bus (for example, at least one of CAN, LIN, Flexray bus, vehicle Ethernet, DSI, PSI5, etc., and the corresponding data transmission module can also be understood as a bus adapter), and various sensors installed on the vehicle (for example, at least one of a camera, a radar, etc.), and the sensors may include sensors originally installed on the vehicle, and may also include sensors installed separately.
[0037] In one example, the vehicle-mounted data acquisition device 100 includes a synchronous timing module 101, a main processing module 102, and a plurality of data transmission modules 103. In other examples, the vehicle-mounted data acquisition device 100 may not be provided with a synchronous timing module 101. In other examples, the type and number of data transmission modules may be changed according to demand, and a data transmission module may not be provided. The data transmission module may be used for the transmission of corresponding data, and the content and / or format of the data may also be arbitrarily changed during the transmission process.
[0038] If the vehicle-mounted data acquisition device 100 includes a synchronous timing module 101, the synchronous timing module 101 and multiple data transmission modules 103 are respectively connected to the main processing module 102, the synchronous timing module 101 can be used to provide timing for the main processing module 102, the multiple data transmission modules 103 can include a video module, which is directly or indirectly connected between the main processing module and the camera to transfer the video data from the camera as the data to be processed to the main processing module 102, and the multiple data transmission modules 103 can also include a bus module, which is directly or indirectly connected between the main processing module 101 and the vehicle bus, wherein the bus module can be one or more, and a single bus module can be used to connect only one bus or multiple buses. When transmitting the data to be processed, the bus module and the video module can also perform signal conversion on the data, for example, the bus module converts the data of the vehicle bus (such as CAN, LIN, FLEXRAY, vehicle Ethernet, DSI, PSI) into a PCIe signal or an Ethernet signal, and gives it to the main processing module, for example, the video module converts the video data of the camera into a PCIe signal or an HDMI signal, and gives it to the main processing module 101.
[0039] In an embodiment of the present application, based on the standard second pulse signal and standard time information, when the preset abnormal judgment condition is met, the current local time of the on-board data acquisition device is updated according to the counting information of the local crystal oscillator of the on-board data acquisition device, thereby avoiding calculating the current local time based on the standard second pulse signal and / or standard time information when an abnormality occurs or is likely to occur, thereby ensuring that the updated current local time has high accuracy, and when the abnormal judgment condition is not met, the current local time is updated according to the standard time information, the standard second pulse signal and the counting information of the local crystal oscillator of the on-board data acquisition device, so that the updated current local time has high accuracy and precision, and under the time dimension of the updated current local time, data processing is performed on the to-be-processed data received by the on-board data acquisition device from the vehicle to ensure the accuracy of the data processing in the time dimension.
[0040] like Figure 2 As shown, in one embodiment, a data processing method is provided, and the data processing method specifically includes the following steps:
[0041] 202, obtain a standard second pulse signal and standard time information.
[0042] The standard second pulse signal may be a pulses per second (PPS) signal, which is a synchronous pulse signal with a time period of 1 second, and a pulse width of, for example, 5 ms to 100 ms.
[0043] The standard time information may be a Coordinated Universal Time (UTC) that records the hour, minute, second, year, month, and day.
[0044] The above step 202 may be implemented by the synchronous timing module or the main processing module.
[0045] Specifically, the standard second pulse signal and standard time information can be obtained through the second pulse signal and recommended positioning information (Recommended Minimum Specific GPS, GPRMC) data fed back by the GPS (Global Positioning System) on the vehicle-mounted data acquisition equipment, and the feedback of the GPS (Global Positioning System) of the vehicle-mounted data acquisition equipment is determined as the standard second pulse signal. The GPRMC data is a time synchronization message of the GPRMC standard output through a standard serial port, which records the Coordinated Universal Time (UTC) of hours, minutes, seconds, years, months, and days. The GPRMC data is generally sent through a serial port with a baud rate of 9600, and the sending, receiving, and processing time are at the ms (millisecond) level, which is the key to time synchronization. The Coordinated Universal Time recorded in the hours, minutes, seconds, years, months, and days is extracted from the GPRMC data, and the Coordinated Universal Time is determined as the standard time information, so that the standard second pulse signal and standard time information are obtained.
[0046] 204. If the preset abnormal judgment condition is met, the current local time of the on-board data acquisition device is updated according to the counting information of the local crystal oscillator of the on-board data acquisition device; the abnormal judgment condition is used to indicate that at least one of the standard second pulse signal and the standard time information is abnormal or is presumed to be abnormal.
[0047] The preset abnormality judgment condition is a pre-set judgment condition for judging whether the standard second pulse signal or the standard time information has an abnormality, that is, the abnormality judgment condition is used to indicate that at least one of the standard second pulse signal and the standard time information has an abnormality or is presumed to have an abnormality. For such an abnormality, some exemplary situations are given below:
[0048] Exemplarily, one or more of the following situations may be considered abnormal: the change amplitude of the time interval between adjacent rising edges of the standard second pulse signal is too large (for example, greater than the first threshold), the time interval is too large (for example, greater than the second threshold), the time interval is too small (for example, less than the third threshold), the change amplitude of the standard time information is too large (for example, greater than the fourth threshold), the statistics of the time interval of the standard second pulse signal (such as the mean, standard deviation, median, variance, etc.) are not in the standard statistics interval, etc. In addition, it may also be necessary to consider whether the above situations continue to occur. Judging whether there is an abnormality based on the standard second pulse signal and the standard time information itself can realize the judgment more intuitively and provide a reliable basis for switching the current local time update mode, but the current local time update mode can usually be switched only when the abnormality actually occurs.
[0049] As another example, since the quality of the signal is often closely related to the geographical location, when the vehicle is in or about to enter a location where an abnormality is presumed to occur, it can also be determined that at least one of the standard second pulse signal and the standard time information is abnormal; this judgment of the location can be made based on the location itself, or based on the lighting conditions of the external environment and other information that can reflect a specific location (such as entering or exiting a tunnel). If the geographical location is used as a basis, in addition to providing a reliable basis for switching the current local time update mode, it can also facilitate pre-switching, such as pre-switching the current local time update mode when the vehicle is about to enter a location where an abnormality is presumed to occur.
[0050] The above step 204 can be implemented by the synchronous timing module (such as the synchronous timing board), or by the main processing module (such as the main control board), or by the synchronous timing module and the main processing module. For example, the main control board feeds back the judgment result of the abnormal judgment condition to the synchronous timing board, and the synchronous timing board updates the current local time, and then provides time to the main control board.
[0051] The local crystal oscillator is a crystal oscillator. If the vehicle-mounted data acquisition equipment adopts a synchronous timing module, the local crystal oscillator can be integrated in the synchronous timing module of the vehicle-mounted data acquisition equipment (such as a synchronous timing board). In other examples, if the vehicle-mounted data acquisition equipment does not adopt a synchronous timing module, the local crystal oscillator can also be the crystal oscillator of the main processing module (such as a main control board). The crystal oscillator converts the clock signal into counting information based on the crystal oscillation period through its high-precision and stable oscillation characteristics. For example, a crystal oscillator can count 1000 in 1s. Every time the crystal oscillator counts 1000, it can be determined that 1s has passed. However, the count may fluctuate. For example, a count of 1000 may be a little more or a little less than 1s. That is, to actually count to 1s, the count may be slightly more than 1000, or slightly less than 1000.
[0052] The current local time is the time when the vehicle-mounted data acquisition equipment is maintained locally, that is, the local time used by the main processing module, which can be calculated by the main processing module, or calculated by the synchronization timing module and timed to the main processing module. Furthermore, because the local time of the main processing module and the synchronization timing module are synchronized, they can all be understood as the current local time. Since the current local time may be affected by the environmental network, additional loss problems, etc., resulting in inaccurate time, the current local time on the vehicle-mounted data acquisition equipment is not accurate enough. Therefore, it is necessary to calculate the accurate time and update the current local time to the calculated accurate time to ensure the accuracy of the current local time.
[0053] Specifically, the preset abnormality judgment condition is met, indicating that at least one of the standard second pulse signal and the standard time information is abnormal or is presumed to be abnormal. At this time, it is difficult to accurately use the standard second pulse signal to trigger the local crystal oscillator to clear and restart. Therefore, the current local time of the on-board data acquisition equipment is updated using the timing information of the local crystal oscillator, that is, the calculated accurate time is calculated according to the timing result corresponding to the timing information, and the current local time of the on-board data acquisition equipment is updated to the calculated accurate time, thereby realizing the update of the current local time. Since the preset abnormality judgment condition is met, that is, at least one of the standard second pulse signal and the standard time information is abnormal or is presumed to be abnormal, the accurate time is calculated using the timing information of the local crystal oscillator, and the current local time is updated to the calculated accurate time, thereby ensuring the accuracy of the updated current local time.
[0054] 206 , if the abnormality judgment condition is not met, the current local time is updated according to the standard time information, the standard second pulse signal and the counting information of the local crystal oscillator of the vehicle-mounted data acquisition device.
[0055] Specifically, when the abnormal judgment condition is not met, it indicates that there is no abnormality in the standard second pulse signal and the standard time information, that is, the standard second pulse signal and the standard time information are both normal signals. The accurate time is calculated through the standard time information, the standard second pulse signal, and the counting information of the local crystal oscillator of the on-board data acquisition equipment, and the current local time of the on-board data acquisition equipment is updated to the calculated accurate time, thereby realizing the update of the current local time. Since the time in milliseconds and dimensions below the millisecond level (such as microseconds) calculated through normal standard time information and the standard second pulse signal and the crystal oscillator information of the local crystal oscillator has a higher accuracy, it is ensured that the calculated time is the accurate time, and the current local time is updated to the calculated accurate time, thereby ensuring the accuracy of the updated current local time.
[0056] The above step 206 can be implemented by the synchronous timing module, or by the main processing module, or jointly by the synchronous timing module and the main processing module. For example, the main processing module feeds back the judgment result of the abnormal judgment condition to the synchronous timing module, and the synchronous timing module updates the current local time and then gives time to the main processing module.
[0057] It should be noted that, in an example, steps 202 and 206 can be executed in a continuous loop, that is, for each acquisition of the standard second pulse signal and the standard time information, when the abnormal judgment condition is not met, the current local time is updated according to the standard time information, the standard second pulse signal and the counting information of the local crystal oscillator of the vehicle-mounted data acquisition equipment until the abnormal judgment condition is not met, thereby achieving periodic updating of the current local time and further improving the accuracy of the updated current local time.
[0058] In a specific implementation, in step 206, the updating of the current local time according to the standard time information, the standard second pulse signal and the counting information of the local crystal oscillator of the vehicle-mounted data acquisition device may include the following steps 206A-206B, which are as follows:
[0059] 206A, obtaining a timing result corresponding to a counting information number when the local crystal oscillator is reset to zero and starts timing at a rising edge of the standard second pulse signal;
[0060] 206B, add the standard time information and the timing result to obtain an absolute current time, and use the absolute current time as the current local time.
[0061] The standard time information includes hours, minutes, seconds, years, months and days. The rising edge time of the standard second pulse signal and the recommended positioning information data corresponding to the standard time information are sent at the same time, with an error of ns level.
[0062] The absolute current time refers to the accurate time calculated based on the standard time information, the standard second pulse signal and the counting information of the local crystal oscillator of the vehicle-mounted data acquisition equipment, and is used to update the current local time to ensure the accuracy of the updated current local time.
[0063] As can be seen from the description of the local crystal oscillator in step 204, the timing result is milliseconds and microseconds. Since the local crystal oscillator may fluctuate in counting the 1s time, the timing result corresponding to the counting information of the local crystal oscillator clearing and starting timing is triggered by the standard second pulse signal to improve the accuracy of the timing result.
[0064] Specifically, the timing result corresponding to the counting information of the local crystal oscillator being cleared and starting timing at the rising edge of the standard second pulse signal is obtained, so as to realize the calculation of millisecond and microsecond time by using the local crystal oscillator. Then, the timing result is added to the standard time information, that is, the millisecond and microsecond time calculated by the local crystal oscillator is added to the hour, minute, second, year, month and day to obtain the absolute current time, and the absolute current time is used as the current local time to realize the update of the current local time. Since the calculated absolute current time has better accuracy and precision than the current local time, the absolute current time is used as the current local time, which improves the accuracy of the current local time.
[0065] Step 208 : Processing the to-be-processed data received by the vehicle-mounted data acquisition device from the vehicle based on the updated current local time.
[0066] Among them, the data to be processed is the road running data of the vehicle collected by the on-board data acquisition equipment on the vehicle, such as video data collected by the camera, which is transmitted on the vehicle bus and thus captured by the on-board data acquisition equipment. The synchronous timing module in the on-board data acquisition equipment receives the data to be processed. Specifically, the synchronous timing module in the on-board data acquisition equipment receives the data to be processed, and processes the data to be processed under the time dimension of the current local time after the update, wherein the data processing includes but is not limited to at least one of data re-injection, playback, analysis, and real-time visualization of data. Since the updated current local time is more accurate, the data to be processed are all based on the accurate time, which ensures the accuracy of data processing in the time dimension and improves the data processing effect.
[0067] In this embodiment, since the updated current local time has higher accuracy and precision, data processing is performed on the unprocessed data received by the on-board data acquisition equipment from the vehicle under the time dimension of the more accurate updated current local time, thereby ensuring the accuracy of data processing in the time dimension and improving the data processing effect.
[0068] In a specific implementation, in step 208, the data to be processed may include first data to be processed that needs to be stored on a disk, and the data processing of the data to be processed received by the vehicle-mounted data acquisition device from the vehicle based on the updated current local time may include the following steps 208A to 208B, which are as follows:
[0069] 208A, adding a timestamp to the first to-be-processed data based on the updated current local time;
[0070] 208B, storing the first to-be-processed data and the corresponding timestamp on a disk.
[0071] The timestamp refers to the timestamp of the updated current local time in the time dimension.
[0072] In one example, both step 208A and step 208B are implemented by the main processing module. In another example, step 208A can be implemented by the data transmission module. For example, the video data as the first data to be processed can be time-stamped by the video module, and then the main processing module implements step 208B to achieve disk storage. At this time, the data transmission module can be synchronized with the timing module or the main processing module to synchronize the current local time. In addition, when time-stamping the image frame of the video data, it can be based on the current local time when the image frame is received, or it can be based on the current local time when the image frame is triggered to collect. Regardless of how it is implemented, it is a processing process implemented by the vehicle-mounted data acquisition equipment executing the data processing method. Because it is implemented with the accurate current local time, it can ensure the unity of the time dimension and avoid various problems caused by the difference in the time dimension.
[0073] Specifically, the data to be processed is timestamped according to the updated current local time to obtain the timestamp of the first data to be processed, and the first data to be processed and the corresponding timestamp are stored on disk so that the data to be processed can be processed according to the timestamp later. Since the timestamp of the data to be processed is based on the more accurate updated current local time to realize timestamp recording, the timestamp corresponding to the data to be processed also has higher accuracy, thereby improving the processing effect of the data to be processed.
[0074] In one example, the synchronization timing module in the vehicle-mounted data acquisition equipment can use the updated current local time to synchronize the main processing module (for example, based on the PTP protocol). The main processing module performs the required processing on the data to be processed based on the updated current local time obtained through the timing, including but not limited to: adding a timestamp to the received data and then storing the data and the timestamp on the disk. It can also realize data collection, preprocessing, rendering and presentation based on the updated current local time, thereby ensuring the accuracy of the timestamp corresponding to the data and improving the effect of data processing.
[0075] It is worth noting that after adding a timestamp to the data to be processed based on the updated current local time, the data to be processed may also be subjected to a timestamp-based data analysis process according to the timestamp corresponding to the data to be processed.
[0076] The timestamp-based data analysis process may be at least one of data reinsertion, playback, analysis, and real-time data visualization.
[0077] Specifically, after adding a timestamp to the data to be processed, at least one of the following processes, such as reinsertion, playback, analysis, and real-time data visualization, is performed on the data to be processed according to the timestamp corresponding to the data to be processed, to ensure the accuracy of the data processing effect.
[0078] In a specific implementation, the following steps 210 to 212 may also be included, as follows:
[0079] 210, obtaining current location information of the vehicle, wherein the current location information includes the geographical location of the vehicle and / or the corresponding current location category;
[0080] 212. Determine whether the abnormality judgment condition is met based on the preset signal abnormality position information and the current position information; the preset signal abnormality position information indicates the position where at least one of the standard second pulse signal and the standard time information is presumed to be abnormal.
[0081] The signal abnormality position information may include, for example, a preset signal abnormality position category data table, in which a plurality of signal abnormality position categories are recorded. If the current position category belongs to the signal abnormality position category, it is determined that the abnormality judgment condition is satisfied.
[0082] The location category refers to the location type of the current geographical location of the vehicle, such as an underground garage, a tunnel, a road, a bridge, an overpass, etc.
[0083] The preset signal anomaly location category data table refers to a table that records the location categories where signal anomalies exist in advance. For example, the location categories where signal anomalies exist include at least one of tunnels, underground garages, and viaducts. Since the standard pulse-per-second signal may have problems, especially when a vehicle enters a location corresponding to a location type with poor signal (such as a tunnel, underground garage, etc.), it may cause loss or delay of the standard pulse-per-second signal. Therefore, the preset signal anomaly location category data table can be used to detect whether the abnormality judgment condition is met.
[0084] Specifically, the current geographic location of the vehicle can be obtained through the positioning device, and the corresponding current location category can be determined according to the current geographic location. Then, it is determined whether the current location category exists in the signal abnormal location category data table, and whether the abnormal judgment condition is met according to the judgment result. When the judgment result is that the current location category exists in the signal abnormal location category data table, it is determined that the abnormal judgment condition is met, otherwise, it is determined that the abnormal judgment condition is not met.
[0085] The current location information may not include the current location category, and the signal abnormality location information may also include the abnormal geographical location range without including the signal abnormality location category. For example, the current geographical location in the current location information may be the longitude and latitude coordinates, or the first area range represented by the longitude and latitude, and the signal abnormality location information may be the second area range represented by the longitude and latitude. Furthermore, it is possible to determine whether the abnormality judgment condition is met based on whether the longitude and latitude coordinates of the current location information fall within the second area range. For example, if it falls within the second area range, it is considered that the abnormality judgment condition is met, that is, it is presumed that an abnormality has occurred. It is also possible to determine whether the abnormality judgment condition is met based on how much proportion of the first area range falls within the second area range. For example, if the proportion is greater than the proportion threshold, it is determined that the abnormality judgment condition is met.
[0086] In a further example, the first area range includes, for example, the most recent historical driving trajectory of the vehicle, and the first area range includes, for example, an estimated driving trajectory that the vehicle will travel in the future (which can be obtained based on navigation information). The historical driving trajectory and the estimated driving trajectory can be a trajectory of a fixed length or a trajectory of a fixed driving duration. Furthermore, if the proportion of the historical driving trajectory and / or the estimated driving trajectory that falls within the second area range is greater than the proportion threshold, it is considered that the abnormality judgment condition is met, that is, it is presumed that an abnormality has occurred. It can be seen that if the estimated driving trajectory is introduced, the current time information update mode can be switched in advance, which has better timeliness and avoids the lag of switching after the abnormality occurs.
[0087] In a specific implementation, the following steps 214 to 216 may also be included, as follows:
[0088] 214, detecting a change in illumination of an external environment where the vehicle is located;
[0089] 216. Determine whether the abnormality determination condition is met according to the illumination change amount.
[0090] The illumination change refers to the change between the illumination of the external environment in A and the illumination of the external environment in B when the vehicle enters another geographical location B from one geographical location A during the road running. Since the standard second pulse signal may have problems, especially when the vehicle enters a location with poor signal (such as a tunnel, underground garage, etc.), the standard second pulse signal may be lost or delayed. When the vehicle enters a location with poor signal (such as a tunnel, underground garage, etc.), the illumination of the external environment will change significantly. Therefore, it is possible to detect whether the abnormal judgment conditions are met by detecting the illumination change of the vehicle in the external environment.
[0091] Specifically, the change in illumination of the vehicle in the external environment can be detected, and based on the change in illumination, it can be determined whether the abnormal judgment condition is met. When the change in illumination is greater than a preset change threshold, it is determined that the abnormal judgment condition is met; otherwise, it is determined that the abnormal judgment condition is not met.
[0092] In a specific implementation, if the data processing of the data to be processed includes real-time visual display of the second data to be processed, that is, the second data to be processed is the data to be processed that needs to be visually displayed; further, step 208 may also include the following steps 208C to 208G, which are as follows:
[0093] 208C: adding a timestamp to the second data to be processed based on the current local time, so as to use the data to be processed with the timestamp as the first target data;
[0094] 208D: Based on the current local time, refresh the cycle information once every specified time interval, the cycle information including a first target cycle, a second target cycle, and a third target cycle;
[0095] 208E: after each refreshing of the cycle information, the first target data whose timestamp is in the third target cycle in the first target data is used as the new second target data;
[0096] 208F: After each refreshing of the cycle information, pre-processing the second target data whose timestamp is in the second target cycle for visual display is performed to obtain third target data;
[0097] 208G: After each refresh of the cycle information, the third target data whose timestamp is in the first target cycle is visually displayed.
[0098] Wherein, each time the cycle information is refreshed, the change amplitude of the cycle information matches the specified duration, the end point of the first target cycle matches the starting point of the second target cycle, and the end point of the second target cycle matches the starting point of the third target cycle;
[0099] If the current local time is t0, then the first target period may be the interval from t1 to (t1+△t1), the second target period may be the interval from (t1+△t1) to (t1+△t1+△t2), and the third target period may be the interval from (t1+△t1+△t2) to (t1+△t1+△t2+△t3);
[0100] in:
[0101] t1+△t1+△t2+△t3≤t0, or: t1+△t1+△t2≤t0; the relationship between the size of time can be understood as: the earlier the time, the smaller it is. For example, because the Lth minute of a certain day of a certain month of a certain year is before the L+1th minute of a certain day of a certain month of a certain year, the Lth minute of that day of a certain month of a certain year is smaller than the L+1th minute of that day of a certain month of a certain year.
[0102] △t1, △t2, △t3, and T may be the same, that is, the specified duration of the refresh interval, the duration of the first target cycle, the duration of the second target cycle, and the duration of the third target cycle are the same. Of course, they may also be different.
[0103] In one example, △t1=△t2=△t3=T is taken. For t0, the first target period may be t0-3T to t0-2T, the second target period may be t0-2T to t0-T, and the third target period may be t0-T to t0;
[0104] In another example, △t1=△t2=△t3=T is taken. For t0, the first target period may be t0-2.5T to t0-1.5T, the second target period may be t0-1.5T to t0-0.5T, and the third target period may be t0-0.5T to t0+0.5T.
[0105] In another example, Δt1=Δt2=Δt3=T is assumed. For t0, the first target period may be t0-2T to t0-T, the second target period may be t0-T to t0, and the third target period may be t0 to t0+T.
[0106] It can be seen that if after a certain refresh cycle information, the current local time is t0, the first target cycle, the second target cycle, and the third target cycle are shown in the above sections, then:
[0107] After the specified interval length T, that is, after the next refresh cycle information, the current local time changes to t0+T (T represents the specified duration of the refresh interval), the first target period changes to the interval from t1+T to (t1+△t1+T), the second target period changes to the interval from (t1+△t1+T) to (t1+△t1+△t2+T), and the third target period changes to the interval from (t1+△t1+△t2+T) to (t1+△t1+△t2+△t3+T).
[0108] Furthermore, taking data X with a timestamp t_X added as the first target data and the second target data as an example, assuming that before the cycle information is refreshed for the nth time, t_X is in the third target cycle, and step 208E needs to be executed. Before the cycle information is refreshed for the nth time, because t_X is always in the third target cycle, the data X will not be preprocessed for visual display. After the cycle information is refreshed for the nth time, t_X may be in the second target cycle, and step 208F needs to be executed. After preprocessing the data X, data X' (i.e., the third target data) can be obtained, and its timestamp is still t_X. Before the cycle information is refreshed for the n+1th time, t_X is still in the second target cycle and will not enter the first target cycle. Therefore, step 208G will not be executed for the data X'. After the cycle information is refreshed for the n+1th time, t_X may be in the first target cycle, and step 208G needs to be executed to perform visual display.
[0109] It can be seen that for the same data, when the first target data is used as the second target data and when the second target data is preprocessed as the third target data, the timestamp of the data is always kept unchanged. That is, in the above paragraph, whether it is data X or X' obtained after preprocessing, its timestamp is the same timestamp t_X. Because the timestamp is added based on the current local time, the accurate current local time can ensure that the update of the periodic information and the timestamp are always relatively accurate. The data can be processed at different levels effectively and at a relatively standardized rhythm according to the processing process of steps 208E, 208F, and 208G until it is finally visualized.
[0110] Steps 208E, 208F, and 208G may be implemented using different threads, which helps to implement different levels of processing in parallel.
[0111] In one example, the main processing module may run at least three threads, including a preparation thread, a processing thread, and an interaction thread, which are respectively used to implement steps 208E, 208F, and 208G.
[0112] In an example of step 208E, the first target data whose timestamp is in the third target period can be added to a first database, or the first target data can be marked with a first mark to be determined as the second target data; in an example of step 208F, the second target data can be extracted from the first database, or the second target data can be extracted based on the first mark, preprocessed to obtain the third target data, and then the third target data can be added to the second database, or marked with a second mark to be determined as the third target data; in an example of step 208G, the third target data can be extracted from the third database, or the third target data can be extracted based on the second mark, and the third target data whose timestamp is in the first target period can be visualized.
[0113] The above process is only an example, and the actual implementation process may not be limited to that shown above.
[0114] Unlike steps 208C-208G, in the prior art, if it is necessary to realize the collection of the first target data, preprocessing and visualization of the visualization display, it is often based on the data, without considering its timestamp, and without introducing periodic information. Preprocessing is performed after the collection, and visualization is performed after the preprocessing is completed. At this time, it may cause: taking preprocessing and visualization as an example, if the preprocessing is relatively simple and the visualization process is relatively complicated, it will lead to more and more data to be preprocessed and more and more data to be visualized. When the number exceeds a certain limit, it is easy to cause the program to crash. Correspondingly, it is necessary to continuously allocate resources to meet the needs of data collection, preprocessing, and visualization processing, or select hardware and software with suitable performance to ensure that each processing link will not crash.
[0115] During steps 208C-208G, after the data enters a level of processing (e.g., preprocessing), the data will not enter the next level of processing (e.g., visual display) before the cycle information is refreshed, but will be constrained by both the timestamp and the cycle information. Therefore, the above situation can be effectively avoided to ensure the reliability of the program. In addition, for the data to be processed, in some examples, at least part of the first data to be processed and at least part of the second data to be processed can be the same data, that is, both visual display and disk storage are required; in other examples, at least part of the first data to be processed and at least part of the second data to be processed can also be different data.
[0116] It should be noted that the modules mentioned in the embodiments of the present application may be boards, the main processing module may be a main control board, the video module may be a video board, the bus module may be a bus board, the synchronous timing module may be a synchronous timing board, the data transmission module may be a data transmission board, and some of the modules may also be integrated on one board.
[0117] In the above data processing method, by acquiring the standard second pulse signal and standard time information, when the preset abnormal judgment condition is met, the current local time of the on-board data acquisition device is updated according to the counting information of the local crystal oscillator of the on-board data acquisition device, thereby avoiding calculating the current local time based on the standard second pulse signal and / or standard time information when an abnormality occurs or may occur, thereby ensuring that the updated current local time has high accuracy, and when the abnormal judgment condition is not met, the current local time is updated according to the standard time information, the standard second pulse signal and the counting information of the local crystal oscillator of the on-board data acquisition device, so that the updated current local time has high accuracy and precision, and under the time dimension of the more accurate updated current local time, the data to be processed received by the on-board data acquisition device from the vehicle is processed, thereby ensuring the accuracy of the data processing in the time dimension and improving the data processing effect. Since it is detected whether the preset abnormal judgment conditions are met, the time calculation method is switched, that is, the time is calculated using the corresponding time method for different detection results, ensuring that the calculated time has high accuracy, and the current local time is updated to the calculated time, making the updated current local time more accurate. Under the time dimension of the updated current local time, data processing is performed on the data to be processed, ensuring the accuracy of data processing in the time dimension, and improving the data processing effect.
[0118] In one embodiment, a vehicle-mounted data acquisition device is provided, which is used to execute the data processing method in the above embodiment.
[0119] Based on the same inventive concept as one or more of the above embodiments, the following embodiment discloses a vehicle-mounted data acquisition device, such as Kunyi's AD station series products, recorder products, etc. The vehicle-mounted data acquisition device can be provided with a synchronous timing module, a main processing module, and a data transmission module (such as a video module, a bus module). The vehicle-mounted data acquisition device can be installed in the trunk, back seat, etc. of the vehicle, and directly or indirectly connected to the bus and sensor of the vehicle itself. The main processing module and / or synchronous timing module in the vehicle-mounted data acquisition device of this embodiment executes the data processing method described in any of the above embodiments, which can ensure the accuracy of data processing in the time dimension, thereby improving the data processing effect.
[0120] like Figure 3 As shown, in one embodiment, a vehicle-mounted data acquisition system is proposed, which includes the vehicle-mounted data acquisition device in the above embodiment, and a sensor installed on the vehicle, at least part of the data to be processed comes from the sensor, and the sensor includes: a camera and / or a radar.
[0121] Specifically, Figure 3The structure diagram of the vehicle-mounted data acquisition system 200 in this embodiment includes the above Figure 1 The provided vehicle-mounted data acquisition device 100 and the sensor 201 installed on the vehicle, the sensor 201 can be a camera, a radar or a combination of the two, and the sensor 201 can obtain the data to be processed. Continuing to take the above-mentioned vehicle-mounted acquisition device as Kunyi's AD station device as an example, the vehicle-mounted data acquisition system 200 in this embodiment includes the vehicle-mounted data acquisition device 100 and the sensor 201 installed on the vehicle. The vehicle-mounted data acquisition device 100 is similar to a computer host, including a synchronous timing module, a main processing module, a video module, and a bus module. The vehicle-mounted data acquisition device 100 is placed in the trunk, back seat, etc. of the car, and is directly or indirectly connected to the vehicle's own bus and sensor. Sensors such as cameras and radars are installed on the vehicle. The main processing module and / or synchronous timing module in the vehicle-mounted data acquisition device 100 of this embodiment executes the data processing method described in any of the above embodiments, which can ensure the accuracy of data processing in the time dimension, and thus can improve the processing efficiency of the vehicle-mounted data acquisition system for the data to be processed.
[0122] like Figure 4 As shown, in one embodiment, a data processing device is provided, and the data processing device 400 includes:
[0123] An acquisition module 402 is used to acquire a standard second pulse signal and standard time information;
[0124] The first updating module 404 is used to update the current local time of the vehicle-mounted data acquisition device according to the counting information of the local crystal oscillator of the vehicle-mounted data acquisition device if a preset abnormality judgment condition is met; the abnormality judgment condition is used to indicate that at least one of the standard second pulse signal and the standard time information is abnormal or is presumed to be abnormal;
[0125] A second updating module 406 is configured to update the current local time according to the standard time information, the standard second pulse signal and the counting information of the local crystal oscillator of the vehicle-mounted data acquisition device if the abnormality judgment condition is not met;
[0126] The processing module 408 is used to process the to-be-processed data received by the vehicle-mounted data acquisition device from the vehicle based on the updated current local time.
[0127] In one embodiment, the second updating module 406 is specifically used for:
[0128] Obtaining a timing result corresponding to the counting information that the local crystal oscillator is reset to zero and starts timing at the rising edge of the standard second pulse signal;
[0129] The standard time information and the timing result are added to obtain an absolute current time, and the absolute current time is used as the current local time.
[0130] In one embodiment, the data processing device 400 further includes:
[0131] The first determination module is used to determine whether the abnormal determination condition is met according to at least one of the change amplitude of the time interval between adjacent rising edges of the standard second pulse signal and the change amplitude of the standard time information.
[0132] In one embodiment, the data processing device 400 further includes:
[0133] A second determination module is used to obtain current location information of the vehicle, wherein the current location information includes the geographical location of the vehicle and / or the corresponding current location category;
[0134] According to the preset signal abnormality position information and the current position information, it is determined whether the abnormality judgment condition is met; the preset signal abnormality position information indicates that at least one of the standard second pulse signal and the standard time information is presumed to be the position where the abnormality occurs.
[0135] In one embodiment, the data processing device 400 further includes:
[0136] A third determination module is used to detect the amount of change in illumination of the external environment where the vehicle is located;
[0137] According to the amount of illumination change, it is determined whether the abnormality determination condition is met.
[0138] In one embodiment, the data to be processed includes first data to be processed, and the processing module 408 is specifically used to:
[0139] Adding a timestamp to the first data to be processed based on the updated current local time;
[0140] The first to-be-processed data and the corresponding timestamp are stored on a disk.
[0141] In one embodiment, the data to be processed includes second data to be processed, and the processing module 408 is specifically used to:
[0142] adding a timestamp to the second data to be processed based on the current local time, so as to use the data to be processed with the timestamp as the first target data;
[0143] Based on the current local time, the cycle information is refreshed once every specified time interval, the cycle information includes a first target cycle, a second target cycle, and a third target cycle; the end point of the first target cycle matches the start point of the first target cycle, and the end point of the second target cycle matches the start point of the third target cycle;
[0144] After each time the cycle information is refreshed, the first target data whose timestamp is in the first target cycle in the first target data is used as new second target data;
[0145] After each refreshing of the cycle information, the second target data with a timestamp in the second target cycle in the second target data is preprocessed for visual display to obtain third target data;
[0146] Each time the cycle information is refreshed, the third target data whose timestamp is within the third target cycle in the third target data is visually displayed.
[0147] The embodiment of the present application further provides an electronic device, which integrates any one of the data processing devices provided in the embodiment of the present application, and the electronic device includes:
[0148] one or more processors;
[0149] Memory; and
[0150] One or more applications, wherein the one or more applications are stored in the memory and are configured so that the processor executes the steps of the data processing method described in any of the above data processing method embodiments.
[0151] The present application also provides an electronic device that integrates any data processing device provided in the present application. Figure 5 As shown, it shows a schematic diagram of the structure of the electronic device involved in the embodiment of the present application, specifically:
[0152] The electronic device may include components such as a processor 501 with one or more processing cores, a memory 502 with one or more computer-readable storage media, a power supply 503, and an input unit 504. Those skilled in the art will appreciate that Figure 5 The electronic device structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0153] The processor 501 is the control center of the electronic device, and uses various interfaces and lines to connect various parts of the entire electronic device. By running or executing software programs and / or modules stored in the memory 502, and calling data stored in the memory 502, the processor 501 performs various functions of the electronic device and processes data, thereby monitoring the electronic device as a whole. Optionally, the processor 501 may include one or more processing cores; preferably, the processor 501 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 501.
[0154] The memory 502 can be used to store software programs and modules. The processor 501 executes various functional applications and data processing by running the software programs and modules stored in the memory 502. The memory 502 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 502 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 502 may also include a memory controller to provide the processor 501 with access to the memory 502.
[0155] The electronic device also includes a power supply 503 for supplying power to each component. Preferably, the power supply 503 can be logically connected to the processor 501 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. The power supply 503 can also include any combination of one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators, etc.
[0156] The electronic device may further include an input unit 504, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
[0157] Although not shown, the electronic device may further include a display unit, etc., which will not be described in detail herein. Specifically in this embodiment, the processor 501 in the electronic device will load the executable files corresponding to the processes of one or more application programs into the memory 502 according to the following instructions, and the processor 501 will run the application programs stored in the memory 502 to implement various functions.
[0158] The embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the data processing method in any of the above embodiments is implemented, for example, including:
[0159] Obtain standard second pulse signal and standard time information;
[0160] If the preset abnormality judgment condition is met, the current local time of the on-board data acquisition device is updated according to the counting information of the local crystal oscillator of the on-board data acquisition device; the abnormality judgment condition is used to indicate that at least one of the standard second pulse signal and the standard time information is abnormal or is presumed to be abnormal;
[0161] If the abnormality judgment condition is not met, the current local time is updated according to the standard time information, the standard second pulse signal and the counting information of the local crystal oscillator of the vehicle-mounted data acquisition device;
[0162] The data to be processed received by the vehicle-mounted data acquisition device from the vehicle is processed based on the updated current local time.
[0163] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0164] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0165] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A data processing method, characterized in that: include: Obtain standard second pulse signal and standard time information; If the preset abnormality judgment condition is met, the current local time of the on-board data acquisition device is updated according to the counting information of the local crystal oscillator of the on-board data acquisition device; the abnormality judgment condition is used to indicate that at least one of the standard second pulse signal and the standard time information is abnormal or is presumed to be abnormal; If the abnormality judgment condition is not met, the current local time is updated according to the standard time information, the standard second pulse signal and the counting information of the local crystal oscillator of the vehicle-mounted data acquisition device; Performing data processing on the data to be processed received by the on-board data acquisition device from the vehicle based on the updated current local time, the data to be processed includes second data to be processed, wherein the data processing on the data to be processed received by the on-board data acquisition device from the vehicle based on the updated current local time includes: adding a timestamp to the second data to be processed based on the current local time, so as to use the data to be processed with the timestamp as the first target data; Based on the current local time, the cycle information is refreshed once every specified time interval, and the change amplitude of the cycle information matches the specified time interval each time the cycle information is refreshed, and the cycle information includes a first target cycle, a second target cycle, and a third target cycle; the end point of the first target cycle matches the starting point of the second target cycle, and the end point of the second target cycle matches the starting point of the third target cycle; After each refreshing of the cycle information, the first target data whose timestamp is in the third target cycle in the first target data is used as new second target data; After each refreshing of the cycle information, the second target data with a timestamp in the second target cycle in the second target data is preprocessed for visual display to obtain third target data; Each time the cycle information is refreshed, the third target data whose timestamp is in the first target cycle in the third target data is visualized and displayed.
2. The data processing method according to claim 1, characterized in that: The updating of the current local time according to the standard time information, the standard second pulse signal and the counting information of the local crystal oscillator of the vehicle-mounted data acquisition device includes: Obtaining a timing result corresponding to the counting information that the local crystal oscillator is reset to zero and starts timing at the rising edge of the standard second pulse signal; The standard time information and the timing result are added to obtain an absolute current time, and the absolute current time is used as the current local time.
3. The data processing method according to claim 1, characterized in that: Also includes: Whether the abnormality judgment condition is met is determined based on at least one of the change amplitude of the time interval between adjacent rising edges of the standard second pulse signal and the change amplitude of the standard time information.
4. The data processing method according to claim 1, characterized in that: Also includes: Acquiring current location information of the vehicle, wherein the current location information includes the geographic location of the vehicle and / or the corresponding current location category; Determining whether the abnormality judgment condition is met according to the preset signal abnormality position information and the current position information; The preset signal abnormality position information indicates a position where at least one of the standard second pulse signal and the standard time information is estimated to be abnormal.
5. The data processing method according to claim 1, characterized in that: Also includes: Detecting a change in illumination of an external environment of the vehicle; According to the amount of illumination change, it is determined whether the abnormality determination condition is met.
6. The data processing method according to any one of claims 1 to 5, characterized in that: The data to be processed includes first data to be processed, and the data processing of the data to be processed received by the vehicle-mounted data acquisition device from the vehicle based on the updated current local time includes: Adding a timestamp to the first data to be processed based on the updated current local time; The first to-be-processed data and the corresponding timestamp are stored on a disk.
7. A vehicle-mounted data acquisition device, characterized in that: It includes a synchronous timing module, a main processing module and multiple data transmission modules, the synchronous timing module and the multiple data transmission modules are respectively connected to the main processing module, the synchronous timing module is used to provide time for the main processing module, and the main processing module is used to execute the data processing method described in any one of claims 1 to 6.
8. A vehicle-mounted data acquisition system, characterized in that: The vehicle-mounted data acquisition device according to claim 7 and a sensor installed on the vehicle, wherein at least part of the data to be processed originates from the sensor, and the sensor includes: a camera and / or a radar.
9. A data processing device, characterized in that: The data processing device comprises: An acquisition module is used to acquire standard second pulse signals and standard time information; A first updating module is used to update the current local time of the on-board data acquisition device according to the counting information of the local crystal oscillator of the on-board data acquisition device if a preset abnormality judgment condition is met; the abnormality judgment condition is used to indicate that at least one of the standard second pulse signal and the standard time information is abnormal or is presumed to be abnormal; A second updating module is used to update the current local time according to the standard time information, the standard second pulse signal and the counting information of the local crystal oscillator of the vehicle-mounted data acquisition device if the abnormal judgment condition is not met; A processing module is used to process the data to be processed received by the vehicle-mounted data acquisition device from the vehicle based on the current local time, wherein the data to be processed includes second data to be processed, wherein the processing module is specifically used to: adding a timestamp to the second data to be processed based on the current local time, so as to use the data to be processed with the timestamp as the first target data; Based on the current local time, the cycle information is refreshed once every specified time interval, and the change amplitude of the cycle information matches the specified time interval each time the cycle information is refreshed, and the cycle information includes a first target cycle, a second target cycle, and a third target cycle; the end point of the first target cycle matches the starting point of the second target cycle, and the end point of the second target cycle matches the starting point of the third target cycle; After each refreshing of the cycle information, the first target data whose timestamp is in the third target cycle in the first target data is used as new second target data; After each refreshing of the cycle information, the second target data with a timestamp in the second target cycle in the second target data is preprocessed for visual display to obtain third target data; Each time the cycle information is refreshed, the third target data whose timestamp is in the first target cycle in the third target data is visualized and displayed.
10. An electronic device, characterized in that: The invention comprises a processor and a memory, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the steps of the data processing method according to any one of claims 1 to 6 are implemented.
11. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the data processing method according to any one of claims 1 to 6 are implemented.
