CN114582044A - Method and device for processing and acquiring data in vehicle - Google Patents

Method and device for processing and acquiring data in vehicle Download PDF

Info

Publication number
CN114582044A
CN114582044A CN202011374095.5A CN202011374095A CN114582044A CN 114582044 A CN114582044 A CN 114582044A CN 202011374095 A CN202011374095 A CN 202011374095A CN 114582044 A CN114582044 A CN 114582044A
Authority
CN
China
Prior art keywords
event
data
electronic control
monitoring
control unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011374095.5A
Other languages
Chinese (zh)
Inventor
林少栋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Robert Bosch GmbH
Original Assignee
Robert Bosch GmbH
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Robert Bosch GmbH filed Critical Robert Bosch GmbH
Priority to CN202011374095.5A priority Critical patent/CN114582044A/en
Publication of CN114582044A publication Critical patent/CN114582044A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C5/00Registering or indicating the working of vehicles
    • G07C5/08Registering or indicating performance data other than driving, working, idle, or waiting time, with or without registering driving, working, idle or waiting time
    • G07C5/0841Registering performance data
    • G07C5/085Registering performance data using electronic data carriers

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a method and a device for processing and acquiring data in a vehicle. A method of processing data in a vehicle comprising: receiving event information related to a monitoring event to be monitored in a vehicle; acquiring local synchronous event data of each electronic control unit related to the monitoring event indicated by the event information; and time synchronizing all the acquired local synchronous event data to obtain time synchronized data. According to the method for processing and acquiring data in the vehicle, the event data which is locally synchronized at the electronic control unit related to the monitoring event to be monitored can be acquired through the event information related to the monitoring event to be monitored in the vehicle, and in addition, the integrally synchronized event data can be quickly and accurately acquired through integrally synchronizing the locally synchronized event data acquired from different electronic control units, so that the accuracy and efficiency of data collection and synchronization for a specific monitoring event are improved.

Description

Method and device for processing and acquiring data in vehicle
Technical Field
The present invention relates to the field of vehicles, and in particular, to a method and apparatus for processing data in a vehicle and a method and apparatus for acquiring data in a vehicle.
Background
With the development of technology, there are more and more Electronic Control Units (ECUs) for implementing different functions in vehicles. Relevant operational status information of the vehicle, such as information relating to operational events occurring in the vehicle, may be obtained by analyzing data relating to the ECU in the vehicle for purposes of monitoring, fault analysis, etc. of the vehicle.
Generally, in obtaining information about a specific event desired to be known in a vehicle by collecting data of ECUs, it is necessary to first collect data from the respective ECUs, then perform time synchronization processing on the data, and then judge and classify the time-synchronized data so that the data correspond to different events.
However, when it is desired to obtain data related to more events, or when there is more data for the events desired to be known, the above manner of obtaining and processing the data of the ECU is prone to large errors in performing time synchronization, resulting in inaccurate time synchronization. In addition, when the data of each ECU is classified in the above manner, a large amount of time is generally consumed, resulting in low data processing efficiency.
Thus, existing ways of processing and acquiring data in a vehicle do not meet the need for accurate time synchronization and efficient processing of the data.
Disclosure of Invention
The invention aims to provide a method and a device for processing data in a vehicle and a method and a device for acquiring data in the vehicle.
According to an aspect of the invention, there is provided a method of processing data in a vehicle, the method comprising: receiving event information related to a monitoring event to be monitored in a vehicle; acquiring local synchronous event data of each electronic control unit related to the monitoring event indicated by the event information; and time synchronizing all the acquired local synchronous event data to obtain time synchronized data.
Optionally, the step of time-synchronizing all the acquired local synchronization event data to obtain time-synchronized data includes: determining an electronic control unit corresponding to each received local synchronous event data; adding an electronic control unit tag corresponding to the determined electronic control unit and a world time stamp 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, a corresponding electronic control unit tag, and a world time stamp.
Optionally, the local synchronization event data is data related to the monitoring event that is time-synchronized using a local time of the corresponding electronic control unit, and the local synchronization event data includes: at least one event data, a local timestamp of each event data, and a source type of each event data, wherein the step of time-synchronizing all acquired local synchronized event data to obtain time-synchronized data further comprises: acquiring a correction time stamp for correcting the world time stamp added to each local synchronous event data by predetermined data included in at least one of the acquired local synchronous event data and a source type of the predetermined data, wherein the acquired time synchronous data further includes: and correcting the time stamp.
Optionally, the monitoring event includes at least one monitoring event, wherein locally synchronizing the event data further includes: a monitoring event tag corresponding to a monitoring event, wherein the step of performing time synchronization on all the obtained local synchronization event data to obtain time synchronization data further comprises: and determining the monitoring event corresponding to each local synchronous event data according to the monitoring event label of each local synchronous event data, and classifying each local synchronous event data according to the at least one monitoring event, wherein the obtained time synchronous data comprises each local synchronous event data classified according to the at least one monitoring event, a corresponding electronic control unit label, a world time stamp and a correction time stamp.
Optionally, the source type includes a local type and an external type, and the predetermined data is an initial synchronization signal, wherein the initial synchronization signal is a signal generated by an electronic control unit with the highest priority and indicating a time when the electronic control unit with the highest priority generates event data, wherein the priority indicates an action response sequence of the electronic control unit related to the monitoring event, and wherein the modified timestamp is used for modifying a world timestamp added for a non-electronic control unit with the highest priority.
Optionally, the method further comprises: determining whether local synchronous event data of all electronic control units related to the monitoring event are acquired; under the condition that local synchronous event data of all electronic control units related to the monitoring event are determined to be acquired, transmitting the acquired time synchronous data; determining whether a predetermined time has elapsed since the local synchronous event data was acquired from the start of acquisition, in a case where it is determined that the local synchronous event data has not been acquired from all the electronic control units related to the monitoring event; and in the case where it is determined that the predetermined time has elapsed, adding a loss flag indicating that the electronic control unit that has not acquired the local synchronization event data, and transmitting the acquired time synchronization data and the loss flag.
Optionally, the step of receiving event information related to a monitoring event to be monitored in the vehicle comprises: receiving event information by receiving a selection operation for selecting a monitoring event; and/or receive event information from a server.
According to another aspect of the present invention, there is provided a method of acquiring data in a vehicle by an electronic control unit in the vehicle, the method comprising: receiving event information related to a monitoring event to be monitored in a vehicle; determining whether the electronic control unit is associated with a monitoring event in response to receiving event information; and in the event that it is determined that the electronic control unit is relevant to a monitoring event, obtaining local synchronization event data relevant to the monitoring event.
Optionally, in response to receiving the event information, the step of determining whether the electronic control unit is associated with a monitoring event comprises: and determining whether the monitoring event belongs to an event in pre-stored reference events corresponding to the electronic control unit, and determining that the electronic control unit is related to the monitoring event under the condition that the monitoring event belongs to the event in the reference events.
Optionally, in a case where it is determined that the electronic control unit is related to a monitoring event, the step of acquiring local synchronization event data related to the monitoring event includes: determining whether a monitoring event occurs in the vehicle; in the event that a monitoring event is determined to occur in the vehicle, acquiring at least one event data related to the monitoring event; time synchronizing the at least one event data using the local time of the electronic control unit to obtain locally synchronized event data comprising: at least one event data and a local timestamp for each event data.
Optionally, in a case that it is determined that the electronic control unit is related to a monitoring event, the step of acquiring local synchronization event data related to the monitoring event further includes: determining a source type of the at least one event data, wherein the source type comprises a local type and an external type, and wherein the local synchronization event data further comprises the source type of each event data.
Optionally, in a case where it is determined that the electronic control unit is related to a monitoring event, the step of acquiring local synchronization event data related to the monitoring event further includes: determining the priority of the electronic control units in all electronic control units related to the monitoring event, wherein the priority indicates the action response sequence of the electronic control units related to the monitoring event, and when the electronic control units are electronic control units with non-highest priority, the electronic control units acquire at least one event data including an initial synchronization signal of an external type, wherein the initial synchronization signal is a signal generated by the electronic control unit with the highest priority and indicates the time when the electronic control unit with the highest priority generates the event data.
Optionally, the monitoring events to be monitored include at least one monitoring event, wherein, in a case that it is determined that the electronic control unit is related to a monitoring event, the step of acquiring local synchronization event data related to a monitoring event further includes: 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, wherein the local synchronous event data is the local synchronous event data classified according to the at least one monitoring event.
According to another aspect of the present invention, there is provided an apparatus for processing data in a vehicle, the apparatus comprising: an information receiving unit configured to be able to receive event information related to a monitoring event to be monitored in a vehicle; a data acquisition unit configured to be able to acquire local synchronization event data of each electronic control unit related to the monitoring event indicated by the event information; and a synchronization unit configured to be able to obtain time synchronization data by time-synchronizing all the acquired local synchronization event data.
According to another aspect of the present invention, there is provided an apparatus for acquiring data in a vehicle by an electronic control unit in the vehicle, the apparatus comprising: an event information receiving unit configured to be able to receive event information related to a monitoring event to be monitored in a vehicle; a determination unit configured to be able to determine whether the electronic control unit is related to a monitoring event in response to receiving event information; and a local data acquisition unit configured to be able to acquire local synchronization event data related to a monitoring event if it is determined that the electronic control unit is related to the monitoring event.
According to another aspect of the invention, a computer-readable storage medium is provided, in which a computer program is stored which, when being executed by a processor, causes the processor to carry out the method of processing data in a vehicle or the method of acquiring data in a vehicle by an electronic control unit in a vehicle according to the invention.
According to the method and the device for processing and acquiring data in the vehicle, the event data which is locally synchronized at the electronic control unit related to the monitoring event to be monitored can be acquired through the event information related to the monitoring event to be monitored in the vehicle, and in addition, the integrally synchronized event data can be quickly and accurately acquired through integrally synchronizing the locally synchronized event data acquired from different electronic control units, so that the accuracy and the efficiency of data collection and synchronization for a specific monitoring event are improved.
Drawings
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, in which:
FIG. 1 shows a flow chart of a method of processing data in a vehicle according to an exemplary embodiment of the invention.
Fig. 2 shows a flow chart of a method for acquiring data in a vehicle by an electronic control unit in the vehicle according to an exemplary embodiment of the invention.
Fig. 3 shows a block diagram of an arrangement for processing data in a vehicle according to an exemplary embodiment of the present invention.
Fig. 4 shows a block diagram of an arrangement for acquiring data in a vehicle by means of an electronic control unit in the vehicle according to an exemplary embodiment of the invention.
Detailed Description
In the following, some exemplary embodiments of the 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 invention.
FIG. 1 shows a flow chart of a method of processing data in a vehicle according to an exemplary embodiment of the invention.
Referring to fig. 1, in step S11, event information related to a monitoring event to be monitored in a vehicle is received.
As an example, step S11 may include: receiving event information by receiving a selection operation for selecting a monitoring event; and/or receive event information from a server.
For example, the event information may be received by displaying a list including a plurality of monitoring events, and by receiving a selection operation for selecting a monitoring event to be monitored from the plurality of monitoring events in the list, and/or may be received by receiving the event information from a server (cloud).
In step S12, local synchronization event data of each Electronic Control Unit (ECU) related to the monitoring event indicated by the event information is acquired.
For example, there may be electronic control units in the vehicle for various functions, and for a particular monitored event (e.g., an emergency braking event, a steering event, etc.), there may be one or more electronic control units associated with the particular monitored event. As an example, the local synchronizing event data may be read from the respective electronic control units related to the monitoring event in step S12, or the local synchronizing event data transmitted therefrom may be received from the respective electronic control units related to the monitoring event.
As an example, the local synchronization event data may be data related to a monitoring event that is time-synchronized using the local time of the corresponding electronic control unit. Here, the local synchronization event data may include, as examples, at least one event data acquired by the corresponding electronic control unit, a local time stamp (e.g., relative time stamp) of each event data, a source type of each event data, and the like.
In step S13, all the acquired local synchronization event data are time-synchronized to obtain time-synchronized data.
Here, since the local synchronization event data obtained in step S12 is the monitoring event-related data that is time-synchronized using the local time of the corresponding electronic control unit, it is possible to more efficiently time-synchronize all the local synchronization event data acquired in step S13 as a whole, for example, with the world time.
As an example, step S13 may include: determining an electronic control unit corresponding to each received local synchronous event data; adding an electronic control unit tag corresponding to the determined electronic control unit and a world time stamp (e.g., absolute time stamp) corresponding to the acquisition time of the local synchronous event data to each local synchronous event data to obtain time synchronous data including: each local synchronization event data, a corresponding electronic control unit tag, and a world time stamp.
As an example, the electronic control unit corresponding to the local synchronous event data may be determined by a bus ID (e.g., a caidd) of a bus for acquiring each local synchronous event data. For example, a mapping table of all electronic control units in the vehicle and the corresponding bus IDs may be stored in advance, and by referring to the mapping table, the electronic control unit corresponding to the bus ID of the bus for acquiring the local synchronization event data may be obtained. Alternatively, for example, the local synchronization event data may further include a bus ID, and the corresponding electronic control unit may be determined by the bus ID in the local synchronization event data.
Further, since there may be a difference between local times of the respective electronic control units and/or between the local time of the electronic control units and the universal time, there may be an error in the universal time stamp added to the respective local synchronization event data. To reduce the error, step S13 may further include, as an example: acquiring a correction time stamp for correcting the world time stamp added to each local synchronous event data by predetermined data included in at least one of the acquired local synchronous event data and a source type of the predetermined data. In this case, the time synchronization data obtained at step S13 may further include: and correcting the time stamp.
As an example, the source type may include a local type and an external type, and the predetermined data may be an initial synchronization signal, wherein the initial synchronization signal may be a signal generated by an electronic control unit with a highest priority indicating a time when the electronic control unit with the highest priority generates event data, wherein the priority indicates an action response order of the electronic control unit with respect to the monitoring event, and wherein the modified timestamp is used to modify a world timestamp added for an electronic control unit with a non-highest priority.
For example, at least one of the local synchronization event data may include local data generated by the electronic control unit acquired by the corresponding electronic control unit, the local data being of a local type. Furthermore, at least one of the local synchronization event data may further include external data acquired by the electronic control unit from the other electronic control unit, the external data being of an external type. As an example, the source type may be marked by adding a synchronization priority (synchronization priority) to each event data, e.g., the local type may be marked by adding a synchronization priority of value "0" to the event data, and the external type may be marked by adding a synchronization priority of value "1" to the event data. It should be understood that the source type may also be marked in any other way.
Here, since the electronic control units related to the monitoring event have a priority corresponding to the order of action response, for example, the electronic control unit of higher priority between the electronic control units related to the monitoring event acts earlier in response to the monitoring event, the added world time stamp can be corrected by causing the electronic control unit of highest non-priority to acquire the initial synchronization signal from the electronic control unit of highest priority and determining the error of the world time stamp added for each local synchronization event data, that is, determining the correction time stamp, by using the initial synchronization signal and the local time stamp of each electronic control unit of highest non-priority, so that time synchronization can be performed more accurately when each local synchronization event data is time-synchronized as a whole.
Furthermore, because there are many monitoring events that can be monitored in a vehicle, it may be desirable to monitor more than one event. For example, when a selection operation for selecting a plurality of monitoring events is received at step S11, or event information indicating a plurality of 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, a case may arise where it is desired to monitor more than one event at the same time. Here, when event information is received through a selection operation and event information is received from a server, each monitoring event indicated by all the event information may be obtained by combining all the received event information.
To this end, the monitoring event may include at least one monitoring event, as an example. In this case, as an example, the local synchronization event data may further include: a monitoring event tag corresponding to a monitoring event. In this case, step S13 may further include: and determining the monitoring event corresponding to each local synchronous event data according to the monitoring event label of each local synchronous event data, and classifying each local synchronous event data according to the at least one monitoring event. At this time, the time synchronization data obtained at step S31 may include each local synchronization event data classified by the at least one monitoring event, a corresponding electronic control unit tag, a world time stamp, and a correction time stamp. In other words, the time-synchronized data obtained at step S13 may be time-synchronized data divided by each monitoring event.
For example, table 1 below shows one example of locally synchronized event data:
TABLE 1
CANID Usecase ID Relative time stamp Synchronization signal Synchronization priority Signal’s data
The CANID in Table 1 may represent a bus ID of a bus for acquiring a local Synchronization event, the Ussease ID may represent a monitoring event tag, the Relative time stamp may represent a local time stamp, the Synchronization Signal may represent an initial Synchronization Signal, the Synchronization priority may represent a source type, and the Signal's data may represent event data other than the initial Synchronization Signal.
It should be appreciated that the above is only one example of locally synchronized event data, and that any other form of data capable of representing locally synchronized event data in accordance with the present invention may be used, depending on the actual needs.
For example, table 2 below shows one example of time synchronization data:
TABLE 2
Figure BDA0002805947340000081
The usedase ID shown in table 2 may represent a monitoring event tag, the ended absolute time stamp may represent a correction time stamp, the Synchronization Signal may represent an initial Synchronization Signal for the monitoring event, the ECU label a, the ECU label B, the ECU label C may represent an electronic control unit tag, the absolute time stamp a, the absolute time stamp B, the absolute time stamp C may represent a world time stamp, the Synchronization priority a, the Synchronization priority B may represent a source type, and the Signal 'data a, the Signal' data B may represent event data other than the corresponding initial Synchronization Signal. Main signal data can be used only for indicating Main data related to the monitoring event, and the indication can be deleted in practical application.
It should be understood that table 2 is merely an example of time synchronization data classified for one monitoring event, and any other form of data capable of representing time synchronization data according to the present invention may be used according to actual needs.
After the time synchronization data is obtained at step S13, in order to facilitate the user to obtain the time synchronization data in time, the method of processing data in a vehicle according to the present invention may further include, as an example: determining whether local synchronous event data of all electronic control units related to the monitoring event are acquired; under the condition that local synchronous event data of all electronic control units related to the monitoring event are determined to be acquired, transmitting the acquired time synchronous data; determining whether a predetermined time has elapsed since the local synchronous event data was acquired from the start of acquisition, in a case where it is determined that the local synchronous event data has not been acquired from all the electronic control units related to the monitoring event; and in the case where it is determined that the predetermined time has elapsed, adding a loss flag indicating that the electronic control unit that has not acquired the local synchronization event data, and transmitting the acquired time synchronization data and the loss flag.
For example, when the event information is received by receiving a selection operation for selecting a monitoring event in step S11, the time synchronization data divided by each monitoring event obtained in step S13 may be packaged to be transmitted to a corresponding user terminal or to a display unit of the vehicle for display.
When the event information is received from the server (e.g., cloud) in step S11, the time synchronization data divided by each monitoring event obtained in step S13 may be packaged and transmitted to the server (e.g., cloud).
When event information is received by receiving a selection operation for selecting a monitoring event and event information is received from a server (e.g., a cloud) in step S11, a data portion corresponding to the selection operation among the time-synchronized data obtained in step S13 may be packaged and transmitted to a corresponding user terminal or transmitted to a display unit of a vehicle for display, and a data portion corresponding to the event information received from the server (e.g., a cloud) among the time-synchronized data obtained in S13 may be packaged and transmitted to the server (e.g., a cloud).
Here, it should be understood that the above steps may be performed by any one or more electronic control units in the vehicle, and that the one or more electronic control units may be the same as or different from the above electronic control units related to the monitoring event.
According to the method for processing data in a vehicle of the present invention, event data locally synchronized at an electronic control unit related to a monitored event to be monitored can be obtained through event information related to the monitored event to be monitored in the vehicle, and furthermore, integrally synchronized event data can be quickly and accurately obtained by integrally synchronizing locally synchronized event data obtained from different electronic control units, thereby improving the accuracy and efficiency of data collection and synchronization for a specific monitored event.
Fig. 2 shows a flow chart of a method for acquiring data in a vehicle by an electronic control unit in the vehicle according to an exemplary embodiment of the invention.
Here, the steps of fig. 2 may be performed for each of all electronic control units in the vehicle.
Referring to fig. 2, in step S21, event information related to a monitoring event to be monitored in a vehicle is received.
For example, the electronic control unit may receive event information from the electronic control unit for performing step S11 in fig. 1.
In step S22, in response to receiving the event information, it is determined whether the electronic control unit is related to a monitoring event.
As an example, step S22 may include: and determining whether the monitoring event belongs to an event in pre-stored reference events corresponding to the electronic control unit, and determining that the electronic control unit is related to the monitoring event under the condition that the monitoring event belongs to the event in the reference events.
For example, whether the monitoring event belongs to an event in the reference events corresponding to the electronic control unit can be determined through a pre-stored mapping table of each electronic control unit and the reference events, and then whether the electronic control unit is related to the monitoring event can be determined.
In the case where it is determined at step S22 that the electronic control unit is not associated with a monitoring event (corresponding to "no" in fig. 2), the method of acquiring data in a vehicle according to the present invention may be ended.
In the case where it is determined in step S22 that the electronic control unit is related to a monitoring event (corresponding to "yes" in fig. 2), step S23 is performed: local synchronization event data associated with the monitoring event is obtained.
As an example, step S23 may include: determining whether a monitoring event occurs in the vehicle; in the event that a monitoring event is determined to occur in the vehicle, acquiring at least one event data related to the monitoring event; time synchronizing the at least one event data using the local time of the electronic control unit to obtain locally synchronized event data comprising: at least one event data and a local timestamp for each event data.
For example, a monitoring event may have a plurality of features, and at least one feature of the plurality of features may correspond to one sub-event, and an electronic control unit may correspond to one or more sub-events. In this case, whether the monitoring event occurs may be determined by determining whether a corresponding sub-event occurs in the electronic control unit. Further, as another example, whether a monitoring event occurs in the vehicle may be determined by receiving a signal indicating whether the monitoring event occurs.
Here, the at least one event data acquired by the electronic control unit may include local data locally generated by the electronic control unit and external data received from other electronic control units, and thus, as an example, step S23 may further include: a source type of the at least one event data is determined, wherein the source type may include a local type and an external type. In this case, the local synchronous event data acquired at step S23 may further include a source type of each event data.
Further, in order to facilitate overall time synchronization of the local synchronization event data of the respective electronic control units in the vehicle related to the monitoring event in the future, as an example, the step S23 may further include: determining the priority of the electronic control units in all electronic control units related to the monitoring event, wherein the priority indicates the action response sequence of the electronic control units related to the monitoring event, and when the electronic control units are electronic control units with non-highest priority, the electronic control units acquire at least one event data including an initial synchronization signal of an external type, wherein the initial synchronization signal is a signal generated by the electronic control unit with the highest priority and indicates the time when the electronic control unit with the highest priority generates the event data.
The initial synchronization signal here can be used to improve the synchronization accuracy when the local synchronization event data of the individual electronic control units are synchronized in time as a whole, as described with reference to fig. 1.
Furthermore, because there are many monitoring events that can be monitored in a vehicle, it may be desirable to monitor more than one event at a time, for which purpose, 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 tag to each classified event data, at this time, the local synchronous event data acquired in step S23 is the local synchronous event data classified according to the at least one monitoring event.
Examples of local synchronization event data have been shown above with reference to table 1 and will not be described here.
According to the method for acquiring data in the vehicle through the electronic control unit in the vehicle, the event data which is locally synchronized at the electronic control unit related to the monitoring event to be monitored can be acquired through the event information related to the monitoring event to be monitored in the vehicle, so that the accuracy and efficiency of data collection and synchronization for the specific monitoring event can be improved.
Fig. 3 shows a block diagram of an arrangement for processing data in a vehicle according to an exemplary embodiment of the present invention.
Referring to fig. 3, an apparatus for processing data in a vehicle according to an exemplary embodiment of the present invention includes: an information receiving unit 11, a data acquisition unit 12, and a synchronization unit 13.
The information receiving unit 11 is configured to be able to receive event information related to a monitoring event to be monitored in the vehicle.
The data acquisition unit 12 is configured to be able to acquire local synchronization event data of the respective electronic control units related to the monitoring event indicated by the event information.
The synchronization unit 13 is configured to be able to obtain time synchronization data by time-synchronizing all the acquired local synchronization event data.
The above information receiving unit 11, data acquisition unit 12, and synchronization unit 13 may be units in any one or more electronic control units in the vehicle.
The acquisition of the event information, the acquisition of the local synchronization event data, and the acquisition of the time synchronization data have been described in detail above with reference to fig. 1, and are not described again here.
According to the apparatus for processing data in a vehicle of the present invention, event data locally synchronized at an electronic control unit related to a monitored event to be monitored can be obtained through event information related to the monitored event to be monitored in the vehicle, and furthermore, integrally synchronized event data can be quickly and accurately obtained by integrally synchronizing locally synchronized event data obtained from different electronic control units, thereby improving accuracy and efficiency of data collection and synchronization for a specific monitored event.
Fig. 4 shows a block diagram of an arrangement for acquiring data in a vehicle by means of an electronic control unit in the vehicle according to an exemplary embodiment of the invention.
Referring to fig. 4, an apparatus for acquiring data in a vehicle by an electronic control unit in the vehicle according to an exemplary embodiment of the present invention includes: an event information receiving unit 21, a judging unit 22, and a local data acquiring unit 23.
The event information receiving unit 21 is configured to be able to receive event information related to a monitoring event to be monitored in the vehicle.
The determination unit 22 is configured to be able to determine whether the electronic control unit is related to a monitoring event in response to receiving the event information.
The local data acquisition unit 23 is configured to be able to acquire local synchronization event data related to a monitoring event if it is determined that the electronic control unit is related to the monitoring event.
The above event information receiving unit 21, the judging unit 22, and the local data acquiring unit 23 may be units in respective electronic control units in the vehicle.
The above-mentioned details of the acquisition of the event information, the judgment of whether the electronic control unit is related to the monitoring event, and the acquisition of the local synchronous event data have been described with reference to fig. 2, and are not described herein again.
According to the apparatus for acquiring data in a vehicle by an electronic control unit in a vehicle of the present invention, event data locally synchronized at the electronic control unit related to a monitoring event to be monitored can be acquired through event information related to the monitoring event to be monitored in the vehicle, so that the accuracy and efficiency of data collection and synchronization for a specific monitoring event can be improved.
There is also provided in accordance with an exemplary embodiment of the invention a computer-readable recording medium storing a computer program which, when executed by a processor, causes the processor to implement a method of processing data in a vehicle or a method of acquiring data in a vehicle by an electronic control unit in a vehicle in accordance with the invention. The computer readable recording medium is any data storage device that can store data read by a computer system. Examples of the computer-readable recording medium include: read-only memory, random access memory, read-only optical disks, magnetic tapes, floppy disks, optical data storage devices, and carrier waves (such as data transmission through the internet via wired or wireless transmission paths). The computer readable recording medium can also be distributed over network coupled computer systems so that the computer readable code is stored and executed in a distributed fashion. In addition, functional programs, codes, and code segments for accomplishing the present invention can be easily construed by programmers of ordinary skill in the art to which the present invention pertains within the scope of the present invention.
Furthermore, each unit in the above-described apparatuses and devices according to exemplary embodiments of the present invention may be implemented as a hardware component or a software module. Further, the respective units may be implemented by using, for example, a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), or a processor according to the processing performed by the respective units defined by those skilled in the art.
Although the invention is illustrated and described herein with reference to specific embodiments, the invention is not intended to be limited to the details shown. Rather, various modifications may be made in the details within the scope of the invention.
List of reference numerals
S11 receives event information related to a monitoring event to be monitored in a vehicle
S12 obtains local synchronization event data of each electronic control unit related to the monitoring event indicated by the event information
S13 time-synchronizes all the acquired local synchronization event data to obtain time-synchronized data
S21 receives event information related to a monitoring event to be monitored in a vehicle
S22 in response to receiving the event information, determining whether the electronic control unit is related to a monitoring event
S23 obtaining the correlation with the monitoring event under the condition that the electronic control unit is determined to be correlated with the monitoring event
Locally synchronizing event data
11 information receiving unit
12 data acquisition unit
13 synchronization unit
21 event information receiving unit
22 judging unit
23 local data acquisition unit

Claims (16)

1. A method of processing data in a vehicle, the method comprising:
receiving event information related to a monitoring event to be monitored in a vehicle;
acquiring local synchronous event data of each electronic control unit related to the monitoring event indicated by the event information; and
and performing time synchronization on all the acquired local synchronization event data to obtain time synchronization data.
2. The method of claim 1, wherein time synchronizing all acquired local synchronization event data to obtain time synchronized data comprises:
determining an electronic control unit corresponding to each received local synchronous event data;
adding, to each local synchronizing event data, an electronic control unit tag corresponding to the determined electronic control unit and a world time stamp corresponding to the acquisition time of the local synchronizing event data to obtain time synchronizing data including: each local synchronization event data, a corresponding electronic control unit tag, and a world time stamp.
3. The method of claim 2, wherein the locally synchronized event data is data related to the monitoring event that is time synchronized using a local time of the respective electronic control unit, the locally synchronizing event data comprising: at least one event data, a local timestamp of each event data, and a source type of each event data,
wherein, the step of performing time synchronization on all the acquired local synchronization event data to obtain time synchronization data further comprises:
acquiring a corrected time stamp for correcting the world time stamp added to each local synchronous event data by predetermined data included in at least one of the acquired local synchronous event data and a source type of the predetermined data,
wherein the obtained time synchronization data further comprises: and correcting the time stamp.
4. The method of claim 3, wherein the monitoring event comprises at least one monitoring event, wherein locally synchronizing the event data further comprises: a monitoring event tag corresponding to the monitoring event,
wherein, the step of performing time synchronization on all the acquired local synchronization event data to obtain time synchronization data further comprises: determining the monitoring event corresponding to each local synchronous event data according to the monitoring event label of each local synchronous event data, classifying each local synchronous event data according to the at least one monitoring event,
wherein the obtained time synchronization data comprises respective local synchronization event data, corresponding electronic control unit tags, world time stamps and correction time stamps, sorted by the at least one monitoring event.
5. The method of claim 3, wherein the source type includes a local type and an external type, the predetermined data is an initial synchronization signal,
wherein the initial synchronization signal is a signal generated by the electronic control unit with the highest priority and indicating the time when the electronic control unit with the highest priority generates the event data, wherein the priority indicates the action response sequence of the electronic control unit related to the monitoring event,
wherein the correction time stamp is used to correct the world time stamp added for the electronic control unit of which the non-priority is the highest.
6. The method of claims 1-5, wherein the method further comprises:
determining whether local synchronous event data of all electronic control units related to the monitoring event are acquired;
under the condition that local synchronous event data of all electronic control units related to the monitoring event are determined to be acquired, transmitting the acquired time synchronous data;
determining whether a predetermined time has elapsed since the local synchronization event data was acquired from the start of acquisition, in a case where it is determined that the local synchronization event data has not been acquired from all the electronic control units related to the monitoring event;
and in the case where it is determined that the predetermined time has elapsed, adding a loss flag indicating that the electronic control unit that has not acquired the local synchronization event data, and transmitting the acquired time synchronization data and the loss flag.
7. The method according to any one of claims 1-5, wherein the step of receiving event information relating to a monitoring event to be monitored in the vehicle comprises:
receiving event information by receiving a selection operation for selecting a monitoring event; and/or
Event information is received from a server.
8. A method of acquiring data in a vehicle by an electronic control unit in the vehicle, the method comprising:
receiving event information related to a monitoring event to be monitored in a vehicle;
determining whether the electronic control unit is associated with a monitoring event in response to receiving event information; and
in the event that it is determined that the electronic control unit is associated with a monitoring event, local synchronization event data associated with the monitoring event is obtained.
9. The method of claim 8, wherein determining whether the electronic control unit is associated with a monitoring event in response to receiving event information comprises:
determining whether the monitoring event belongs to an event among reference events stored in advance corresponding to the electronic control unit,
in the event that it is determined that a monitoring event belongs to an event of the reference events, it is determined that the electronic control unit is related to the monitoring event.
10. The method of claim 8, wherein in the event that the electronic control unit is determined to be associated with a monitoring event, the step of obtaining local synchronization event data associated with the monitoring event comprises:
determining whether a monitoring event occurs in the vehicle;
in the event that a monitoring event is determined to occur in the vehicle, acquiring at least one event data related to the monitoring event;
time synchronizing the at least one event data using the local time of the electronic control unit to obtain locally synchronized event data comprising: at least one event data and a local timestamp for each event data.
11. The method of claim 10, wherein, in the event that the electronic control unit is determined to be associated with a monitoring event, the step of obtaining local synchronization event data associated with the monitoring event further comprises:
determining a source type of the at least one event data, wherein the source type includes a local type and an external type,
wherein the local synchronization event data further includes a source type of each event data.
12. The method of claim 11, wherein in the event that the electronic control unit is determined to be associated with a monitoring event, the step of obtaining local synchronization event data associated with the monitoring event further comprises:
determining a priority of the electronic control units among all electronic control units related to a monitoring event, wherein the priority indicates an action response sequence of the electronic control units related to the monitoring event,
when the electronic control unit is an electronic control unit with a non-highest priority, the at least one piece of event data acquired by the electronic control unit comprises an initial synchronization signal of an external type, wherein the initial synchronization signal is a signal generated by the electronic control unit with the highest priority and indicating the time when the electronic control unit with the highest priority generates the event data.
13. The method according to any one of claims 10-12, wherein the monitoring events to be monitored include at least one monitoring event,
wherein, in the event that it is determined that the electronic control unit is relevant to a monitoring event, the step of obtaining local synchronization event data relevant to the monitoring event further comprises:
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,
wherein the local synchronous event data is the local synchronous event data classified according to the at least one monitoring event.
14. An apparatus for processing data in a vehicle, the apparatus comprising:
an information receiving unit configured to be able to receive event information related to a monitoring event to be monitored in a vehicle;
a data acquisition unit configured to be able to acquire local synchronization event data of each electronic control unit related to the monitoring event indicated by the event information; and
a synchronization unit configured to be able to obtain time synchronization data by time-synchronizing all the acquired local synchronization event data.
15. An apparatus for acquiring data in a vehicle by an electronic control unit in the vehicle, the apparatus comprising:
an event information receiving unit configured to be able to receive event information related to a monitoring event to be monitored in a vehicle;
a determination unit configured to be able to determine whether the electronic control unit is related to a monitoring event in response to receiving event information; and
a local data acquisition unit configured to be able to acquire local synchronization event data related to a monitoring event if it is determined that the electronic control unit is related to the monitoring event.
16. A computer-readable recording medium storing a computer program, wherein the computer program, when executed by a processor, causes the processor to implement the method according to any one of claims 1 to 7 or the method according to any one of claims 8 to 13.
CN202011374095.5A 2020-11-30 2020-11-30 Method and device for processing and acquiring data in vehicle Pending CN114582044A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011374095.5A CN114582044A (en) 2020-11-30 2020-11-30 Method and device for processing and acquiring data in vehicle

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011374095.5A CN114582044A (en) 2020-11-30 2020-11-30 Method and device for processing and acquiring data in vehicle

Publications (1)

Publication Number Publication Date
CN114582044A true CN114582044A (en) 2022-06-03

Family

ID=81767044

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011374095.5A Pending CN114582044A (en) 2020-11-30 2020-11-30 Method and device for processing and acquiring data in vehicle

Country Status (1)

Country Link
CN (1) CN114582044A (en)

Similar Documents

Publication Publication Date Title
CN109039819B (en) Time delay statistical method, device, system and storage medium
CN106874187B (en) Code coverage rate collection method and device
KR101459867B1 (en) System test apparatus
CN111274095A (en) Log data processing method, device, equipment and computer readable storage medium
US9009532B2 (en) Communication test apparatus and method
CN109710439B (en) Fault processing method and device
CN111176937A (en) Message middleware monitoring and warning system, method, terminal equipment and storage medium
JPWO2018066661A1 (en) Log analysis method, system and recording medium
CN104407966B (en) Statistical system and method for memory object number of JVM (JAVA virtual machine)
CN112241355B (en) Link tracking method, system, computer readable storage medium and electronic device
CN112148574B (en) Performance data acquisition method, computer equipment and storage medium
CN114582044A (en) Method and device for processing and acquiring data in vehicle
CN113342430B (en) Fault code processing method and device, terminal equipment and readable storage medium
CN113377610B (en) Performance monitoring method, device, computer equipment and storage medium
CN115545452A (en) Operation and maintenance method, operation and maintenance system, equipment and storage medium
CN111368104A (en) Information processing method, device and equipment
CN113360362B (en) Dynamic sql efficiency checking method and plug-in
CN112099738B (en) Hardware-based print data acquisition method and device
CN110069416B (en) Test data processing method and device and related equipment
CN112379116A (en) Method, device, storage medium and device for acquiring speed acquisition time
CN115794474A (en) Log problem positioning method, device and system and readable storage medium
CN117131453A (en) Abnormality diagnosis method and device, electronic equipment and storage medium
CN118467280A (en) Monitoring method and monitoring device for front-end abnormal codes and terminal equipment
CN116881081A (en) Acquisition configuration updating method, device and system of monitoring system and storage medium
CN113900667A (en) Program deployment method, data processing method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination