Method and apparatus for processing, obtaining data in a vehicle

By receiving and synchronizing data from the electronic control units in the vehicle, and using world timestamps and corrected timestamps, the problems of inaccurate and inefficient time synchronization in vehicle data processing are solved, achieving fast and accurate data collection and synchronization.

CN114582044BActive Publication Date: 2026-04-14ROBERT BOSCH GMBH
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
ROBERT BOSCH GMBH
Filing Date
2020-11-30
Publication Date
2026-04-14

AI Technical Summary

Technical Problem

Existing technologies suffer from inaccurate time synchronization and low data processing efficiency when processing vehicle data, especially when processing multi-event related data, which is prone to errors and takes a long time.

Method used

By receiving event information related to monitored events, the system obtains local synchronized event data from each electronic control unit and performs time synchronization. It then uses a world timestamp and a correction timestamp to correct the data, ensuring accurate overall synchronization of all local synchronized event data.

Benefits of technology

It enables fast and accurate synchronization of vehicle data, improving the accuracy and efficiency of data collection and synchronization, and is suitable for multi-event monitoring scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114582044B_ABST
    Figure CN114582044B_ABST
Patent Text Reader

Abstract

The application discloses a method and device for processing and obtaining data in a vehicle. The method for processing data in a vehicle comprises: receiving event information related to a monitoring event to be monitored in the vehicle; obtaining local synchronous event data of each electronic control unit related to the monitoring event indicated by the event information; and performing time synchronization on all obtained local synchronous event data to obtain time synchronous data. According to the method for processing and obtaining data in a vehicle, event data which is locally synchronized at an electronic control unit related to a monitoring event to be monitored can be obtained through event information related to the monitoring event to be monitored in the vehicle, and in addition, overall synchronous event data can be quickly and accurately obtained by performing overall synchronization on locally synchronized event data obtained from different electronic control units, thereby improving the accuracy and efficiency of data collection and synchronization for a specific monitoring event.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of vehicles, and in particular, to a method and apparatus for processing data in a vehicle and for acquiring data in a vehicle. Background Technology

[0002] With the development of technology, there are more and more electronic control units (ECUs) in vehicles to perform different functions. By analyzing the data related to the ECUs in a vehicle, relevant information about the vehicle's operating status, such as information related to operational events that occur in the vehicle, can be obtained for purposes such as vehicle monitoring and fault analysis.

[0003] Typically, when obtaining information related to specific events in a vehicle that are desired by collecting data from ECUs, it is necessary to first collect data from each ECU, then perform time synchronization processing on this data, and then judge and classify this time-synchronized data so that the data corresponds to different events.

[0004] However, when data related to a large number of events is desired, or when there is a significant amount of data related to the events for which information is sought, the above methods of acquiring and processing ECU data are prone to large errors during time synchronization, resulting in inaccurate time synchronization. Furthermore, classifying the data from each ECU using these methods typically consumes a considerable amount of time, leading to low data processing efficiency.

[0005] Therefore, existing methods for processing and acquiring data in vehicles cannot meet the needs for accurate time synchronization and efficient data processing. Summary of the Invention

[0006] The purpose of this invention is to provide a method and apparatus for processing data in a vehicle, as well as a method and apparatus for acquiring data in a vehicle.

[0007] According to one aspect of the present invention, a method for processing data in a vehicle is provided, the method comprising: receiving event information related to a monitoring event to be monitored in the vehicle; acquiring local synchronized event data of various electronic control units related to the monitoring event indicated by the event information; and synchronizing all acquired local synchronized event data in time to obtain time synchronized data.

[0008] Optionally, the step of time synchronization of all acquired local synchronization event data to obtain time synchronization data includes: determining the electronic control unit corresponding to each received local synchronization event data; adding an electronic control unit tag corresponding to the determined electronic control unit and a world timestamp corresponding to the acquisition time of the local synchronization event data to each local synchronization event data to obtain time synchronization data including the following items: each local synchronization event data, the corresponding electronic control unit tag, and the world timestamp.

[0009] Optionally, the local synchronization event data is data related to the monitoring event that is time-synchronized using the local time of the corresponding electronic control unit. The local synchronization event data includes: at least one event data, a local timestamp for each event data, and a source type for each event data. The step of time-synchronizing all acquired local synchronization event data to obtain time synchronization data further includes: obtaining a correction timestamp for correcting the world timestamp added to each local synchronization event data by using predetermined data included in at least one event data in each acquired local synchronization event data and the source type of the predetermined data. The obtained time synchronization data further includes the correction timestamp.

[0010] Optionally, the monitoring event includes at least one monitoring event, wherein the local synchronization event data further includes: a monitoring event tag corresponding to the monitoring event, wherein the step of time synchronization of all acquired local synchronization event data to obtain time synchronization data further includes: determining the monitoring event corresponding to each local synchronization event data according to the monitoring event tag of each local synchronization event data, and classifying each local synchronization event data according to the at least one monitoring event, wherein the obtained time synchronization data includes each local synchronization event data classified according to the at least one monitoring event, the corresponding electronic control unit tag, the world timestamp, and the correction timestamp.

[0011] Optionally, the source type includes local type and external type, the predetermined data is an initial synchronization signal, wherein the initial synchronization signal is a signal generated by the highest priority electronic control unit that indicates the time when the highest priority electronic control unit generates event data, wherein the priority indicates the action response order of the electronic control unit related to the monitoring event, and wherein the corrected timestamp is used to correct the world timestamp added for non-highest priority electronic control units.

[0012] Optionally, the method further includes: determining whether local synchronization event data of all electronic control units related to the monitoring event has been acquired; if it is determined that local synchronization event data of all electronic control units related to the monitoring event has been acquired, sending the acquired time synchronization data; if it is determined that local synchronization event data has not been acquired from all electronic control units related to the monitoring event, determining whether a predetermined time has elapsed since the acquisition of local synchronization event data began; if it is determined that the predetermined time has elapsed, adding a loss flag to indicate that the electronic control units that have not acquired local synchronization event data have been acquired, and sending the acquired time synchronization data and the loss flag.

[0013] Optionally, the step of receiving event information related to a monitoring event to be monitored in the vehicle includes: receiving event information by receiving a selection operation for selecting a monitoring event; and / or receiving event information from a server.

[0014] According to another aspect of the present invention, a method for acquiring data in a vehicle via an electronic control unit in the vehicle is provided, the method comprising: receiving event information related to a monitoring event to be monitored in the vehicle; determining, in response to receiving the event information, whether the electronic control unit is related to the monitoring event; and, if it is determined that the electronic control unit is related to the monitoring event, acquiring local synchronized event data related to the monitoring event.

[0015] Optionally, in response to receiving event information, the step of determining whether the electronic control unit is related to the monitoring event includes: determining whether the monitoring event belongs to an event in a pre-stored reference event corresponding to the electronic control unit; if the monitoring event belongs to an event in the reference event, determining that the electronic control unit is related to the monitoring event.

[0016] Optionally, when it is determined that the electronic control unit is related to a monitoring event, the step of obtaining local synchronized event data related to the monitoring event includes: determining whether a monitoring event has occurred in the vehicle; if it is determined that a monitoring event has occurred in the vehicle, obtaining at least one event data related to the monitoring event; and using the local time of the electronic control unit to time synchronize the at least one event data to obtain local synchronized event data including: at least one event data and a local timestamp for each event data.

[0017] Optionally, when it is determined that the electronic control unit is related to the monitoring event, the step of obtaining local synchronized event data related to the monitoring event further includes: determining the source type of the at least one event data, wherein the source type includes local type and external type, and the local synchronized event data further includes the source type of each event data.

[0018] Optionally, when it is determined that the electronic control unit is related to the monitoring event, the step of acquiring local synchronized event data related to the monitoring event further includes: determining the priority of the electronic control unit among all electronic control units related to the monitoring event, wherein the priority indicates the action response order of the electronic control unit related to the monitoring event, wherein when the electronic control unit is not the highest priority electronic control unit, the at least one event data acquired by the electronic control unit includes an external type initial synchronization signal, wherein the initial synchronization signal is a signal generated by the highest priority electronic control unit that indicates the time when the highest priority electronic control unit generates the event data.

[0019] Optionally, the monitoring events to be monitored include at least one monitoring event. In the case that the electronic control unit is determined to be related to the monitoring event, the step of obtaining local synchronized event data related to the monitoring event further includes: classifying the obtained at least one event data according to the at least one monitoring event, and adding a corresponding monitoring event label to each classified event data, wherein the local synchronized event data is local synchronized event data classified according to the at least one monitoring event.

[0020] According to another aspect of the present invention, an apparatus for processing data in a vehicle is provided, the apparatus comprising: an information receiving unit configured to receive event information related to a monitoring event to be monitored in the vehicle; a data acquisition unit configured to acquire local synchronized event data of various electronic control units related to the monitoring event indicated by the event information; and a synchronization unit configured to perform time synchronization on all acquired local synchronized event data to obtain time synchronized data.

[0021] According to another aspect of the present invention, an apparatus for acquiring data in a vehicle via an electronic control unit in the vehicle is provided. The apparatus includes: an event information receiving unit configured to receive event information related to a monitoring event to be monitored in the vehicle; a judging unit configured to determine, in response to receiving the event information, whether the electronic control unit is related to the monitoring event; and a local data acquisition unit configured to acquire local synchronized event data related to the monitoring event if it is determined that the electronic control unit is related to the monitoring event.

[0022] According to another aspect of the present invention, a computer-readable storage medium storing a computer program is provided, wherein, when executed by a processor, the computer program causes the processor to implement a method for processing data in a vehicle according to the present invention or a method for acquiring data in a vehicle via an electronic control unit in the vehicle.

[0023] According to the method and apparatus for processing and acquiring data in a vehicle, the present invention can obtain event data that has been locally synchronized at an electronic control unit related to a monitoring event to be monitored by means of event information related to the monitoring event to be monitored in the vehicle. Furthermore, it can quickly and accurately obtain overall synchronized event data by synchronizing the locally synchronized event data obtained from different electronic control units, thereby improving the accuracy and efficiency of data collection and synchronization for specific monitoring events. Attached Figure Description

[0024] The foregoing and other aspects of the invention will be more fully understood from the following detailed description taken in conjunction with the accompanying drawings, including:

[0025] Figure 1 A flowchart illustrating a method for processing data in a vehicle according to an exemplary embodiment of the present invention is shown.

[0026] Figure 2 A flowchart illustrating a method for acquiring data in a vehicle via an electronic control unit according to an exemplary embodiment of the present invention is shown.

[0027] Figure 3 A block diagram of an apparatus for processing data in a vehicle according to an exemplary embodiment of the present invention is shown.

[0028] Figure 4 A block diagram of an apparatus for acquiring data in a vehicle via an electronic control unit in the vehicle, according to an exemplary embodiment of the present invention, is shown. Detailed Implementation

[0029] Below, some exemplary embodiments of the present invention will be described in more detail with reference to the accompanying drawings in order to better understand the basic ideas and advantages of the present invention.

[0030] Figure 1 A flowchart of a method for processing data in a vehicle according to an exemplary embodiment of the present invention is shown.

[0031] Reference Figure 1 In step S11, event information related to the monitoring events to be monitored in the vehicle is received.

[0032] As an example, step S11 may include: receiving event information by receiving a selection operation for selecting a monitoring event; and / or receiving event information from a server.

[0033] For example, event information can be received by displaying a list of multiple monitoring events and by receiving a selection operation to select a monitoring event to be monitored from the multiple monitoring events in the list, and / or by receiving event information from a server (cloud).

[0034] In step S12, local synchronized event data of each electronic control unit (ECU) related to the monitoring event indicated by the event information is acquired.

[0035] For example, a vehicle may contain electronic control units (ECUs) for various functions, and for a specific monitoring event (e.g., an emergency braking event, a steering event, etc.), there may be one or more ECUs associated with that specific monitoring event. As an example, in step S12, local synchronized event data may be read from each ECU associated with the monitoring event, or local synchronized event data sent by each ECU associated with the monitoring event may be received.

[0036] As an example, locally synchronized event data can be data related to monitored events that is time-synchronized using the local time of the corresponding electronic control unit. Here, as an example, locally synchronized event data may include at least one event data acquired by the corresponding electronic control unit, the local timestamp of each event data (e.g., a relative timestamp), and the source type of each event data, etc.

[0037] In step S13, all acquired local synchronization event data are synchronized by time to obtain time synchronization data.

[0038] Here, since the local synchronization event data obtained in step S12 is data related to the monitoring event that is time-synchronized using the local time of the corresponding electronic control unit, the time synchronization of all the obtained local synchronization event data can be performed more efficiently in step S13, for example, by using world time.

[0039] As an example, step S13 may include: determining the electronic control unit corresponding to each received local synchronization event data; adding an electronic control unit tag corresponding to the determined electronic control unit and a world timestamp (e.g., absolute timestamp) corresponding to the acquisition time of the local synchronization event data to each local synchronization event data to obtain time synchronization data including: each local synchronization event data, the corresponding electronic control unit tag and the world timestamp.

[0040] As an example, the electronic control unit (ECU) corresponding to the local synchronization event data can be determined by the bus ID (e.g., CAN ID) of the bus used to acquire the local synchronization event data. For example, a mapping table of all ECUs in the vehicle and their corresponding bus IDs can be pre-stored, and the ECU corresponding to the bus ID of the bus used to acquire the local synchronization event data can be obtained by referring to the mapping table. Alternatively, the local synchronization event data may also include a bus ID, and the corresponding ECU can be determined by the bus ID in the local synchronization event data.

[0041] Furthermore, since there may be differences between the local times of each electronic control unit and / or between the local time of the electronic control unit and world time, the world timestamps added to each local synchronization event data may contain errors. To reduce this error, as an example, step S13 may further include: obtaining a correction timestamp for correcting the world timestamps added to each local synchronization event data by using predetermined data included in at least one of the acquired local synchronization event data and the source type of said predetermined data. In this case, the time synchronization data obtained in step S13 may also include: the correction timestamp.

[0042] As an example, the source type may include local type and external type, the predetermined data may be an initial synchronization signal, wherein the initial synchronization signal may be a signal generated by the highest priority electronic control unit that indicates the time when the highest priority electronic control unit generates event data, wherein the priority indicates the order of action response of the electronic control unit in relation to the monitored event, and wherein the corrected timestamp is used to correct the world timestamp added for non-highest priority electronic control units.

[0043] For example, at least one event data in the local synchronization event data may include local data generated by the corresponding electronic control unit (ECU) and acquired by that ECU, which is of a local type. Furthermore, at least one event data in the local synchronization event data may also include external data acquired by the ECU from other ECUs, which is of an external type. As an example, the source type can be marked by adding a synchronization priority to each event data; for example, a synchronization priority value of "0" can be added to the event data to mark a local type, and a synchronization priority value of "1" can be added to the event data to mark an external type. It should be understood that the source type can also be marked in any other way.

[0044] Here, since the electronic control units related to the monitoring event have priorities corresponding to the order of action response, for example, higher-priority electronic control units respond to the monitoring event earlier, the initial synchronization signal from the highest-priority electronic control unit can be obtained by enabling the non-highest-priority electronic control unit to obtain the initial synchronization signal from the highest-priority electronic control unit. By using the initial synchronization signal and the local timestamps of each non-highest-priority electronic control unit, the error of the world timestamp added to each local synchronization event data can be determined, that is, the correction timestamp can be determined. This allows the added world timestamp to be corrected, enabling more accurate time synchronization when synchronizing the data of each local synchronization event as a whole.

[0045] Furthermore, since there are many monitoring events that can be monitored in a vehicle, there may be situations where it is desirable to monitor more than one event. For example, when a selection operation for selecting multiple monitoring events is received in step S11, or event information indicating multiple monitoring events is received from the server, or a selection operation for selecting at least one event is received and event information indicating at least one monitoring event is received from the server, there may be situations where it is desirable to monitor more than one event simultaneously. Here, when event information is received through a selection operation and when event information is received from the server, the individual monitoring events indicated by all the event information can be obtained by merging all the received event information.

[0046] Therefore, as an example, a monitoring event may include at least one monitoring event. In this case, as an example, the local synchronization event data may also include: a monitoring event tag corresponding to the monitoring event. In this case, step S13 may also include: determining the monitoring event corresponding to each local synchronization event data according to the monitoring event tag of each local synchronization event data, and classifying each local synchronization event data according to the at least one monitoring event. At this time, the time synchronization data obtained in step S31 may include each local synchronization event data classified according to the at least one monitoring event, the corresponding electronic control unit tag, the world timestamp, and the correction timestamp. In other words, the time synchronization data obtained in step S13 may be time synchronization data divided according to each monitoring event.

[0047] For example, Table 1 below shows an example of local synchronization event data:

[0048] Table 1

[0049] CANID Usecase ID Relative timestamp Synchronizationsignal Synchronizationpriority Signal's data …

[0050] In Table 1, CANID represents the bus ID of the bus used to acquire local synchronization events, Usecase ID represents the monitoring event tag, Relative time stamp represents the local timestamp, Synchronization signal represents the initial synchronization signal, Synchronization priority represents the source type, and Signal's data represents event data other than the initial synchronization signal.

[0051] It should be understood that the above is only one example of local synchronization event data, and any other form of data that can represent local synchronization event data according to the present invention can be used as needed.

[0052] For example, Table 2 below shows an example of time synchronization data:

[0053] Table 2

[0054]

[0055] Table 2 shows that Usecase ID represents the monitoring event label, Amended absolute time stamp represents the corrected timestamp, Synchronization signal represents the initial synchronization signal for the monitoring event, ECUlabel A, ECU label B, and ECU label C represent electronic control unit labels, Absolutetime stamp A, Absolutetime stamp B, and Absolutetime stamp C represent the world timestamp, Synchronizationpriority A and Synchronization priority B represent the source type, and Signal's data A and Signal's data B represent event data other than the corresponding initial synchronization signal. Main signal data can only be used to indicate the main data related to the monitoring event; this indication can be deleted in practical applications.

[0056] It should be understood that Table 2 shows only an example of time synchronization data for a single monitoring event category, and any other form of data capable of representing the time synchronization data according to the present invention may be used as needed.

[0057] After obtaining the time synchronization data in step S13, to facilitate timely access to the time synchronization data by the user, as an example, the method for processing data in a vehicle according to the present invention may further include: determining whether local synchronization event data of all electronic control units related to the monitoring event has been obtained; if it is determined that local synchronization event data of all electronic control units related to the monitoring event has been obtained, sending the obtained time synchronization data; if it is determined that local synchronization event data has not been obtained from all electronic control units related to the monitoring event, determining whether a predetermined time has elapsed since the acquisition of the local synchronization event data began; if it is determined that the predetermined time has elapsed, adding a loss flag to indicate that the electronic control units that have not acquired the local synchronization event data have been obtained, and sending the obtained time synchronization data and the loss flag.

[0058] For example, when receiving event information by receiving a selection operation for selecting monitoring events in step S11, the time synchronization data obtained in step S13, divided according to each monitoring event, can be packaged and sent to the corresponding user terminal or to the display unit of the vehicle for display.

[0059] When receiving event information from a server (e.g., the cloud) in step S11, the time synchronization data obtained in step S13, divided according to each monitoring event, can be packaged and sent to the server (e.g., the cloud).

[0060] When receiving event information by receiving a selection operation for selecting a monitoring event in step S11 and receiving event information from a server (e.g., the cloud), the data portion of the time synchronization data obtained in step S13 corresponding to the selection operation can be packaged and sent to the corresponding user terminal or to the display unit of the vehicle for display, and the data portion of the time synchronization data obtained in S13 corresponding to the event information received from the server (e.g., the cloud) can be packaged and sent to the server (e.g., the cloud).

[0061] Here, it should be understood that the above steps can be performed by any one or more electronic control units in the vehicle, and the one or more electronic control units can be the same as or different from the electronic control units related to the monitoring events mentioned above.

[0062] According to the method for processing data in a vehicle according to the present invention, event data that has been locally synchronized at the electronic control unit related to the monitoring event to be monitored can be obtained through event information related to the monitoring event to be monitored in the vehicle. In addition, it is possible to quickly and accurately obtain overall synchronized event data by synchronizing the locally synchronized event data obtained from different electronic control units, thereby improving the accuracy and efficiency of data collection and synchronization for specific monitoring events.

[0063] Figure 2 A flowchart illustrating a method for acquiring data in a vehicle via an electronic control unit according to an exemplary embodiment of the present invention is shown.

[0064] Here, execution can be performed on each of the electronic control units in the vehicle. Figure 2 The steps.

[0065] Reference Figure 2 In step S21, event information related to the monitoring events to be monitored in the vehicle is received.

[0066] For example, the electronic control unit can be used to perform Figure 1 In step S11, the electronic control unit receives event information.

[0067] In step S22, in response to receiving event information, it is determined whether the electronic control unit is related to the monitoring event.

[0068] As an example, step S22 may include: determining whether the monitoring event belongs to an event in a pre-stored reference event corresponding to the electronic control unit; if the monitoring event belongs to an event in the reference event, determining that the electronic control unit is related to the monitoring event.

[0069] For example, by using a pre-stored mapping table between each electronic control unit and a reference event, it can be determined whether a monitored event belongs to the reference event corresponding to that electronic control unit, and thus whether that electronic control unit is related to the monitored event.

[0070] In step S22, if it is determined that the electronic control unit is not related to the monitoring event (corresponding to...) Figure 2 The method of acquiring data from a vehicle according to the present invention can be terminated if the "No" is selected in the text.

[0071] In step S22, if it is determined that the electronic control unit is related to the monitored event (corresponding to...) Figure 2 If the "Yes" is selected, proceed to step S23: Obtain local synchronized event data related to the monitored event.

[0072] As an example, step S23 may include: determining whether a monitoring event has occurred in the vehicle; if a monitoring event has occurred in the vehicle, acquiring at least one event data related to the monitoring event; and synchronizing the at least one event data with the local time of the electronic control unit to obtain locally synchronized event data including at least one event data and a local timestamp for each event data.

[0073] For example, a monitored event may have multiple characteristics, and at least one of these characteristics may correspond to a sub-event, with an electronic control unit (ECU) corresponding to one or more sub-events. In this case, whether a monitored event has occurred can be determined by determining whether the corresponding sub-event has occurred in the ECU. Furthermore, as another example, whether a monitored event has occurred in the vehicle can be determined by receiving a signal indicating whether a monitored event has occurred.

[0074] Here, the at least one event data acquired by the electronic control unit may include local data generated locally by the electronic control unit and external data received from other electronic control units. Therefore, as an example, step S23 may also include: determining the source type of the at least one event data, wherein the source type may include local type and external type. In this case, the local synchronization event data acquired in step S23 may also include the source type of each event data.

[0075] Furthermore, to facilitate the overall time synchronization of local synchronous event data of various electronic control units in the vehicle related to the monitored event in the future, as an example, step S23 may also include: determining the priority of the electronic control unit among all electronic control units related to the monitored event, wherein the priority indicates the action response order of the electronic control unit related to the monitored event, wherein when the electronic control unit is not the highest priority electronic control unit, the at least one event data acquired by the electronic control unit includes an external type initial synchronization signal, wherein the initial synchronization signal is a signal generated by the highest priority electronic control unit that indicates the time when the highest priority electronic control unit generates the event data.

[0076] The initial synchronization signal here can be referenced as follows. Figure 1 The aforementioned location is used to improve the synchronization accuracy when performing overall time synchronization of local synchronization event data of each electronic control unit.

[0077] Furthermore, since there are many monitoring events that can be monitored in a vehicle, there may be situations where it is desirable to monitor more than one event simultaneously. Therefore, as an example, the monitoring events to be monitored may include at least one monitoring event. In this case, step S23 may further include: classifying the acquired at least one event data according to the at least one monitoring event, and adding a corresponding monitoring event label to each classified event data. In this case, the local synchronization event data acquired in step S23 is the local synchronization event data classified according to the at least one monitoring event.

[0078] The examples of local synchronization event data have been shown in Table 1 above, and will not be repeated here.

[0079] According to the method of acquiring data in a vehicle through an electronic control unit in the vehicle, the present invention can obtain event data that has been locally synchronized at the electronic control unit related to the monitoring event to be monitored by means of event information related to the monitoring event to be monitored in the vehicle, thereby improving the accuracy and efficiency of data collection and synchronization for specific monitoring events.

[0080] Figure 3 A block diagram of an apparatus for processing data in a vehicle according to an exemplary embodiment of the present invention is shown.

[0081] Reference Figure 3 According to an exemplary embodiment of the present invention, an apparatus for processing data in a vehicle includes: an information receiving unit 11, a data acquisition unit 12, and a synchronization unit 13.

[0082] The information receiving unit 11 is configured to receive event information related to the monitoring events to be monitored in the vehicle.

[0083] The data acquisition unit 12 is configured to acquire local synchronized event data of each electronic control unit related to the monitoring event indicated by the event information.

[0084] Synchronization unit 13 is configured to obtain time synchronization data by synchronizing all acquired local synchronization event data.

[0085] The information receiving unit 11, data acquisition unit 12 and synchronization unit 13 mentioned above can be any one or more units in the electronic control unit of the vehicle.

[0086] The above has been referred to Figure 1 The acquisition of event information, local synchronization event data, and time synchronization data have been described in detail, and will not be repeated here.

[0087] The apparatus for processing data in a vehicle according to the present invention can obtain event data that has been locally synchronized at an electronic control unit related to a monitoring event to be monitored, by means of event information related to the monitoring event to be monitored in the vehicle. Furthermore, it can quickly and accurately obtain overall synchronized event data by synchronizing the locally synchronized event data obtained from different electronic control units as a whole, thereby improving the accuracy and efficiency of data collection and synchronization for specific monitoring events.

[0088] Figure 4 A block diagram of an apparatus for acquiring data in a vehicle via an electronic control unit in the vehicle, according to an exemplary embodiment of the present invention, is shown.

[0089] Reference Figure 4 According to an exemplary embodiment of the present invention, an apparatus for acquiring data in a vehicle through an electronic control unit in a vehicle includes: an event information receiving unit 21, a judgment unit 22, and a local data acquisition unit 23.

[0090] The event information receiving unit 21 is configured to receive event information related to the monitoring events to be monitored in the vehicle.

[0091] The determination unit 22 is configured to determine whether the electronic control unit is related to the monitored event in response to receiving event information.

[0092] The local data acquisition unit 23 is configured to acquire local synchronized event data related to the monitoring event when it is determined that the electronic control unit is related to the monitoring event.

[0093] The event information receiving unit 21, the judgment unit 22, and the local data acquisition unit 23 mentioned above can be units in the corresponding electronic control units in the vehicle.

[0094] The above has been referred to Figure 2 The acquisition of event information, the determination of whether the electronic control unit is related to the monitored event, and the acquisition of locally synchronized event data are described in detail, and will not be repeated here.

[0095] The apparatus according to the present invention acquires data in a vehicle through an electronic control unit in the vehicle, and can obtain event data that has been locally synchronized at the electronic control unit related to the monitoring event to be monitored by means of event information related to the monitoring event to be monitored in the vehicle, thereby improving the accuracy and efficiency of data collection and synchronization for specific monitoring events.

[0096] According to exemplary embodiments of the present invention, a computer-readable recording medium storing a computer program is also provided, wherein the computer program, when executed by a processor, causes the processor to implement a method for processing data in a vehicle according to the present invention, or a method for acquiring data in a vehicle via an electronic control unit in the vehicle. The computer-readable recording medium is any data storage device capable of storing data read by a computer system. Examples of computer-readable recording media include: read-only memory, random access memory, read-only optical disk, magnetic tape, floppy disk, optical data storage device, and carrier waves (such as data transmission via the Internet through wired or wireless transmission paths). The computer-readable recording medium can also be distributed across a network-connected computer system, thereby enabling distributed storage and execution of computer-readable code. Furthermore, the functional programs, code, and code segments that perform the present invention can be readily interpreted by a programmer of ordinary skill in the art related to the present invention within the scope of the invention.

[0097] Furthermore, the various units in the above-described apparatus and device according to exemplary embodiments of the present invention can be implemented as hardware components or software modules. Moreover, those skilled in the art can implement each unit, for example, using a field-programmable gate array (FPGA), an application-specific integrated circuit (ASIC), or a processor, depending on the processing performed by each defined unit.

[0098] Although the invention has been described and illustrated herein with reference to specific embodiments, the invention is not limited to the details shown. Rather, various modifications to these details can be made within the scope of the invention.

[0099] List of reference numerals

[0100] S11 receives event information related to the monitored events in the vehicle.

[0101] S12 Acquires local synchronized event data from various electronic control units related to the monitoring event indicated by the event information.

[0102] S13 performs time synchronization on all acquired local synchronization event data to obtain time synchronization data.

[0103] S21 receives event information related to the monitored events in the vehicle.

[0104] S22 In response to receiving the event information, determines whether the electronic control unit is related to the monitored event.

[0105] S23 If it is determined that the electronic control unit is related to the monitoring event, acquire local synchronized event data related to the monitoring event.

[0106] 11 Information Receiving Unit

[0107] 12 Data Acquisition Unit

[0108] 13 Synchronization Unit

[0109] 21 Event Information Receiving Unit

[0110] 22 Judgment Unit

[0111] 23 Local Data Acquisition Unit

Claims

1. A method for processing data in a vehicle, the method comprising: Receive event information related to the monitored events in the vehicle; Acquire local synchronized event data from various electronic control units related to the monitoring events indicated by the event information; as well as All acquired local synchronization event data are synchronized by time to obtain time synchronization data. The steps for synchronizing all acquired local synchronization event data to obtain time synchronization data include: Determine the electronic control unit corresponding to each received local synchronization event data; Add the corresponding electronic control unit (ECU) tag and the world timestamp corresponding to the acquisition time of the local synchronization event data to each local synchronization event data to obtain time synchronization data including the following: each local synchronization event data, the corresponding ECU tag, and the world timestamp.

2. The method of claim 1, wherein, Locally synchronized event data refers to monitoring event-related data that is time-synchronized using the local time of the corresponding electronic control unit. Locally synchronized event data includes: at least one event data point, a local timestamp for each event data point, and the source type for each event data point. The step of synchronizing all acquired local synchronization event data to obtain time synchronization data also includes: By acquiring predetermined data included in at least one of the local synchronization event data and the source type of the predetermined data, a correction timestamp for correcting the world timestamp added to each local synchronization event data is obtained. The time synchronization data obtained also includes: corrected timestamps.

3. The method of claim 2, wherein, Monitoring events include at least one monitoring event, wherein the locally synchronized event data also includes: the monitoring event tag corresponding to the monitoring event. The step of synchronizing all acquired local synchronization event data to obtain time synchronization data further includes: determining the monitoring event corresponding to each local synchronization event data based on the monitoring event tag of each local synchronization event data, and classifying each local synchronization event data according to the at least one monitoring event. The obtained time synchronization data includes local synchronization event data categorized according to the at least one monitoring event, corresponding electronic control unit tags, world timestamps, and correction timestamps.

4. The method of claim 2, wherein, The source type includes local and external types, and the predetermined data is the initial synchronization signal. The initial synchronization signal is generated by the highest-priority electronic control unit (ECU) and indicates the time when the highest-priority ECU generates event data. The priority indicates the order in which the ECU responds to actions related to the monitored event. Among them, the corrected timestamp is used to correct the world timestamp added for non-highest priority electronic control units.

5. The method of any one of claims 1-4, wherein, The method further includes: Determine whether local synchronized event data of all electronic control units related to the monitored event has been acquired; Once it is determined that local synchronization event data of all electronic control units related to the monitored event has been obtained, the obtained time synchronization data is sent. If it is determined that local synchronized event data has not been obtained from all electronic control units related to the monitored event, determine whether a predetermined time has elapsed since the start of obtaining local synchronized event data. If the predetermined time has elapsed, a loss flag is added to the electronic control unit to indicate that local synchronization event data has not been acquired, and the acquired time synchronization data and the loss flag are sent.

6. The method of any one of claims 1-4, wherein, The steps for receiving event information related to monitored events in a vehicle include: Receive event information by receiving a selection operation for selecting monitored events; and / or Receive event information from the server.

7. A method for acquiring data in a vehicle via an electronic control unit in the vehicle, the method comprising: Receive event information related to the monitored events in the vehicle; In response to receiving event information, determine whether the electronic control unit is related to the monitored event; as well as If it is determined that the electronic control unit is related to the monitoring event, then local synchronized event data related to the monitoring event is acquired. The step of determining whether the electronic control unit is related to the monitored event in response to receiving event information includes: Determine whether the monitored event belongs to a pre-stored reference event corresponding to the electronic control unit. If it is determined that the monitored event belongs to the reference events, then the electronic control unit is determined to be related to the monitored event.

8. The method of claim 7, wherein, When it is determined that the electronic control unit is related to the monitoring event, the steps for obtaining local synchronized event data related to the monitoring event include: Determine if any surveillance events occurred in the vehicle; If a monitoring event is determined to have occurred in the vehicle, acquire at least one event data related to the monitoring event; The at least one event data is time-synchronized using the local time of the electronic control unit to obtain locally synchronized event data including at least one event data and a local timestamp for each event data.

9. The method of claim 8, wherein, In cases where it is determined that the electronic control unit is related to the monitoring event, the step of obtaining local synchronized event data related to the monitoring event further includes: Determine the source type of the at least one event data, wherein the source type includes local type and external type. Locally synchronized event data also includes the source type of each event data.

10. The method of claim 9, wherein, In cases where it is determined that the electronic control unit is related to the monitoring event, the step of obtaining local synchronized event data related to the monitoring event further includes: The priority of the electronic control unit (ECU) among all ECUs related to the monitored event is determined, wherein the priority indicates the order in which the ECU responds to actions related to the monitored event. Wherein, when the electronic control unit is not the highest priority electronic control unit, the at least one event data acquired by the electronic control unit includes an external type initial synchronization signal, wherein the initial synchronization signal is a signal generated by the highest priority electronic control unit that indicates the time when the highest priority electronic control unit generates event data.

11. The method of any of claims 8-10, wherein, The monitoring events to be monitored include at least one monitoring event. Wherein, when it is determined that the electronic control unit is related to the monitoring event, the step of obtaining local synchronized event data related to the monitoring event further includes: The acquired event data is classified according to the at least one monitoring event, and a corresponding monitoring event label is added to each classified event data. Among them, the local synchronization event data is local synchronization event data classified according to the at least one monitoring event.

12. An apparatus for processing data in a vehicle, the apparatus comprising: An information receiving unit is configured to receive event information related to the monitored events to be monitored in the vehicle; The data acquisition unit is configured to acquire local synchronized event data of each electronic control unit related to the monitoring event indicated by the event information; as well as The synchronization unit is configured to obtain time synchronization data by synchronizing all acquired local synchronization event data. The steps for synchronizing all acquired local synchronization event data to obtain time synchronization data include: Determine the electronic control unit corresponding to each received local synchronization event data; Add the corresponding electronic control unit (ECU) tag and the world timestamp corresponding to the acquisition time of the local synchronization event data to each local synchronization event data to obtain time synchronization data including the following: each local synchronization event data, the corresponding ECU tag, and the world timestamp.

13. An apparatus for acquiring data in a vehicle via an electronic control unit in the vehicle, the apparatus comprising: An event information receiving unit is configured to receive event information related to the monitored events to be monitored in the vehicle; A judgment unit is configured to determine whether the electronic control unit is related to the monitored event in response to receiving event information; as well as A local data acquisition unit is configured to acquire local synchronized event data related to a monitoring event when it is determined that the electronic control unit is related to the monitoring event. The step of determining whether the electronic control unit is related to the monitored event in response to receiving event information includes: Determine whether the monitored event belongs to a pre-stored reference event corresponding to the electronic control unit. If it is determined that the monitored event belongs to the reference events, then the electronic control unit is determined to be related to the monitored event.

14. A computer-readable recording medium storing a computer program, wherein, When the computer program is executed by a processor, it causes the processor to perform the method according to any one of claims 1 to 6 or the method according to any one of claims 7 to 11.

Citation Information

Patent Citations

  • Vehicle diagnostic system and method

    GB2527810A