CN111130674B - Synchronous signal acquisition method for automobile electronic control unit, electronic equipment, server and storage medium - Google Patents

Synchronous signal acquisition method for automobile electronic control unit, electronic equipment, server and storage medium Download PDF

Info

Publication number
CN111130674B
CN111130674B CN201910929545.3A CN201910929545A CN111130674B CN 111130674 B CN111130674 B CN 111130674B CN 201910929545 A CN201910929545 A CN 201910929545A CN 111130674 B CN111130674 B CN 111130674B
Authority
CN
China
Prior art keywords
signals
electronic control
control unit
time service
synchronous
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.)
Active
Application number
CN201910929545.3A
Other languages
Chinese (zh)
Other versions
CN111130674A (en
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.)
Beijing Didi Infinity Technology and Development Co Ltd
Original Assignee
Beijing Didi Infinity Technology and Development Co Ltd
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 Beijing Didi Infinity Technology and Development Co Ltd filed Critical Beijing Didi Infinity Technology and Development Co Ltd
Priority to CN201910929545.3A priority Critical patent/CN111130674B/en
Priority to PCT/CN2019/129477 priority patent/WO2021056903A1/en
Publication of CN111130674A publication Critical patent/CN111130674A/en
Application granted granted Critical
Publication of CN111130674B publication Critical patent/CN111130674B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0638Clock or time synchronisation among nodes; Internode synchronisation
    • H04J3/0658Clock or time synchronisation among packet nodes
    • H04J3/0661Clock or time synchronisation among packet nodes using timestamps
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention discloses a method for synchronously acquiring signals of an automobile electronic control unit, electronic equipment, a server and a storage medium, wherein the method comprises the following steps: setting a reference time service source for the multiple groups of signals, and synchronously sampling the multiple groups of signals based on the reference time service source; and marking and packaging the synchronously sampled signals into data frames, and sending the data frames to a server. The invention sets a reference time service source between a plurality of ECUs in a single ECU. And then, respectively stamping time stamps on the sampled data by combining the reference time service sources of the two ECUs and a high-precision ECU internal clock, so as to determine that different signals from the ECUs are synchronized through the uniform time stamps.

Description

Synchronous signal acquisition method for automobile electronic control unit, electronic equipment, server and storage medium
Technical Field
The invention relates to the technical field of vehicle correlation, in particular to a method for synchronously acquiring signals of an automobile electronic control unit, electronic equipment, a server and a storage medium.
Background
In various distributed controller data access and big data analysis scenes such as the Internet of Things (IoT) and the like, and scenes such as controlled object modeling and the like, increasingly large controllers need to be connected in parallel to a cloud, and the controlled object is analyzed, controlled and protected through an intelligent algorithm of the cloud.
However, in the process of implementing the present invention, the inventor finds that there is a time domain misalignment problem when a large amount of data is uploaded by different Electronic Control Units (ECUs) in a time-sharing manner, and thus the quality of data received from the cloud is poor, and accurate modeling cannot be performed by using the data.
An electric vehicle has tens of ECU units, hundreds of sensors. The ECUs perform parallel calculation through the existing vehicle-mounted high-speed bus and exchange data mutually so as to coordinate and control the safe operation of the whole vehicle. The internet of vehicles collects a plurality of ECU data from a vehicle body bus, and uploads the data after data packaging by the Tbox, and the data uploaded by each ECU is asynchronous because no obvious synchronization mechanism exists among the ECUs. When the cloud end is used for modeling units such as a power battery and a motor controller based on data such as current and voltage, the models cannot be combined due to data asynchronism, and great errors exist. The following is a typical example:
Pack_Vol Current Cell 1 Cell 2 Cell 3 Cell 4 Cell 5 Cell 6 Cell 7 Cell 8
24.825 45 3210 3110 3200 3200 3200 3300 3250 3200
24.725 20 3210 3215 3215 3200 3200 3305 3255 3205
the ideal model would be Pack _ Vol ═ Cell1+ Cell2 … + Cell 8. But in practice Pack Vol is much smaller than the sum of Cellx. The reason for this problem is that the Cellx signal is not synchronized with the Pack _ Vol signal, e.g., 10ms samples in the former and 500ms samples in the latter, resulting in errors in the model.
Disclosure of Invention
Based on this, it is necessary to provide a method, an electronic device, and a storage medium for synchronously acquiring signals of an automotive electronic control unit, aiming at the technical problem of asynchronous sampling times of a plurality of signals in the prior art.
The invention provides a synchronous signal acquisition method for an automobile electronic control unit, which comprises the following steps:
setting a reference time service source for the multiple groups of signals, and synchronously sampling the multiple groups of signals based on the reference time service source;
and marking and packaging the synchronously sampled signals into data frames, and sending the data frames to a server.
Further, the setting of a reference time service source for multiple groups of signals and the synchronous sampling of multiple groups of signals based on the reference time service source specifically include:
for sets of signals sampled by the same electronic control unit:
using the absolute time of the satellite navigation system and/or a reference clock source of a main controller chip in the electronic control unit as a reference time service source;
acquiring sampling periods of a plurality of groups of signals sampled by the electronic control unit, and determining the least common multiple of the plurality of groups of sampling periods as a basic synchronous sampling period;
and at the time of starting the basic synchronous sampling period, synchronously sampling a plurality of groups of signals by the same electronic control unit based on the reference time service source.
Furthermore, the marking and packaging the synchronously sampled signals into data frames specifically includes:
and packaging a plurality of groups of signals synchronously sampled by the same electronic control unit into the same data frame.
Still further, the encapsulating the multiple groups of signals synchronously sampled by the same electronic control unit into the same data frame specifically includes:
and if the data frames need to perform the packetization operation, setting a synchronous identifier in each packetized data frame, wherein signals encapsulated by the data frames with the same synchronous identifier are synchronous sampled signals.
Further, the setting of a reference time service source for multiple groups of signals and the synchronous sampling of multiple groups of signals based on the reference time service source specifically include:
for a plurality of sets of signals respectively sampled by a plurality of electronic control units:
taking the absolute time of a satellite navigation system as time service time;
and determining a reference time service source of each electronic control unit according to the time service time and the minimum clock compensation of each electronic control unit, and synchronously sampling multiple groups of signals based on the reference time service source.
Furthermore, the marking and packaging the synchronously sampled signals into data frames specifically includes:
calculating synchronous identification according to the reference time service source of each electronic control unit and the least common multiple of the sampling period of the multiple groups of signals respectively sampled by the electronic control units;
and encapsulating the synchronous sampled signal into a data frame and marking the synchronous identification.
Further, still include:
and taking the decapsulated signals of the data frames with the same synchronization identification as a synchronization signal sequence to carry out synchronization operation.
The invention provides an electronic device for controlling synchronous signal acquisition of an automobile electronic control unit, which comprises:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to:
setting a reference time service source for the multiple groups of signals, and synchronously sampling the multiple groups of signals based on the reference time service source;
and marking and packaging the synchronously sampled signals into data frames, and sending the data frames to a server.
Further, the setting of a reference time service source for multiple groups of signals and the synchronous sampling of multiple groups of signals based on the reference time service source specifically include:
for sets of signals sampled by the same electronic control unit:
using the absolute time of the satellite navigation system and/or a reference clock source of a main controller chip in the electronic control unit as a reference time service source;
acquiring sampling periods of a plurality of groups of signals sampled by the electronic control unit, and determining the least common multiple of the plurality of groups of sampling periods as a basic synchronous sampling period;
and at the time of starting the basic synchronous sampling period, synchronously sampling a plurality of groups of signals by the same electronic control unit based on the reference time service source.
Furthermore, the marking and packaging the synchronously sampled signals into data frames specifically includes:
and packaging a plurality of groups of signals synchronously sampled by the same electronic control unit into the same data frame.
Still further, the encapsulating the multiple groups of signals synchronously sampled by the same electronic control unit into the same data frame specifically includes:
and if the data frames need to perform the packetization operation, setting a synchronous identifier in each packetized data frame, wherein signals encapsulated by the data frames with the same synchronous identifier are synchronous sampled signals.
Further, the setting of a reference time service source for multiple groups of signals and the synchronous sampling of multiple groups of signals based on the reference time service source specifically include:
for a plurality of sets of signals respectively sampled by a plurality of electronic control units:
taking the absolute time of a satellite navigation system as time service time;
and determining a reference time service source of each electronic control unit according to the time service time and the minimum clock compensation of each electronic control unit, and synchronously sampling multiple groups of signals based on the reference time service source.
Furthermore, the marking and packaging the synchronously sampled signals into data frames specifically includes:
calculating synchronous identification according to the reference time service source of each electronic control unit and the least common multiple of the sampling period of the multiple groups of signals respectively sampled by the electronic control units;
and encapsulating the synchronous sampled signal into a data frame and marking the synchronous identification.
Further, the processor is further capable of:
and taking the decapsulated signals of the data frames with the same synchronization identification as a synchronization signal sequence to carry out synchronization operation.
The invention provides a signal synchronous operation method of an automobile electronic control unit, which comprises the following steps:
receiving a data frame;
and performing synchronous operation by taking the signals decapsulated from the data frames with the same synchronous identification as a synchronous signal sequence, setting a reference time service source for the multiple groups of signals by an electronic control unit of the automobile, synchronously sampling the multiple groups of signals based on the reference time service source, marking and encapsulating the synchronously sampled signals into data frames, and then transmitting the data frames.
The invention provides a server for controlling signal synchronous operation of an automobile electronic control unit, which comprises:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to:
receiving a data frame;
and performing synchronous operation by taking the signals decapsulated from the data frames with the same synchronous identification as a synchronous signal sequence, setting a reference time service source for the multiple groups of signals by an electronic control unit of the automobile, synchronously sampling the multiple groups of signals based on the reference time service source, marking and encapsulating the synchronously sampled signals into data frames, and then transmitting the data frames.
The invention provides a storage medium which stores computer instructions for executing all the steps of the synchronous signal acquisition method of the automobile electronic control unit when a computer executes the computer instructions.
The present invention provides a storage medium storing computer instructions for performing all the steps of the method for signal synchronization operation of an automotive electronic control unit as described above when a computer executes the computer instructions.
The invention sets a reference time service source between a plurality of ECUs in a single ECU. And then, respectively stamping time stamps on the sampled data by combining the reference time service sources of the two ECUs and a high-precision ECU internal clock, so as to determine that different signals from the ECUs are synchronized through the uniform time stamps.
Drawings
FIG. 1 is a flowchart illustrating a method for synchronously acquiring signals from an automotive electronic control unit according to an embodiment of the present invention;
FIG. 2 is a system diagram of the preferred embodiment of the present invention;
FIG. 3 is a flowchart illustrating a method for synchronously acquiring signals from an electronic control unit of an automobile according to a second embodiment of the present invention;
FIG. 4 is a schematic diagram of data frame storage of signals sampled by the same electronic control unit according to the present invention;
FIG. 5 is a schematic diagram of the present invention illustrating the storage of data frame packets of signals sampled by the same electronic control unit;
FIG. 6 is a flowchart illustrating a method for synchronously acquiring signals from an electronic control unit of an automobile according to a third embodiment of the present invention;
FIG. 7 is a schematic diagram of the calculation of synchronization marks between a plurality of electronic control units according to the present invention;
FIG. 8 is a schematic diagram of data frame storage of signals sampled by a plurality of electronic control units according to the present invention;
fig. 9 is a schematic diagram of a hardware structure of an electronic device for controlling synchronous signal acquisition of an automotive electronic control unit according to a fourth embodiment of the present invention;
FIG. 10 is a flowchart illustrating a method for synchronizing signals of an electronic control unit of a vehicle according to an embodiment of the present invention;
FIG. 11 is a diagram illustrating a data frame de-encapsulation and re-assembly signal according to the present invention;
fig. 12 is a schematic diagram of a hardware structure of a server for controlling signal synchronization operation of an electronic control unit of a vehicle according to an eighth embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the figures and specific examples.
Example one
Fig. 1 is a flowchart illustrating a method for synchronously acquiring signals of an automotive electronic control unit according to an embodiment of the present invention, including:
step S101, setting a reference time service source for a plurality of groups of signals, and synchronously sampling the plurality of groups of signals based on the reference time service source;
and step S102, marking and packaging the synchronous sampled signal into a data frame, and sending the data frame to a server.
Specifically, as shown in fig. 2, step S101 is executed inside a single ECU1, ECU2, and ECU3 or among ECU1, ECU2, and ECU3, a reference time source is set for a plurality of sets of signals, a plurality of sets of signals from ECU1, ECU2, or ECU3 are synchronously sampled based on the reference time source, step S102 is executed, the synchronously sampled signals are marked and packaged into data frames, and are preferably transmitted to a remote server 5, such as an IoT cloud platform, through a telematics box (TBox), and the server 5 obtains raw sampled data with high synchronization. These original sampled signals (data) are synchronized by the server 5 on the synchronously sampled signals. Synchronization operations include, but are not limited to: and combining the models 6 based on data such as current, voltage and the like for units such as a power battery, a motor controller and the like.
In a scene needing high data synchronism, the invention adds a synchronous method at an IoT equipment end to ensure the data synchronism inside a single ECU and among a plurality of ECUs, thereby providing an algorithm model with a high-quality data source.
The invention sets a reference time service source between a plurality of ECUs in a single ECU. And then, respectively stamping time stamps on the sampled data by combining the reference time service sources of the two ECUs and a high-precision ECU internal clock, so as to determine that different signals from the ECUs are synchronized through the uniform time stamps.
Example two
Fig. 3 is a flowchart illustrating a method for synchronously acquiring signals of an automotive electronic control unit according to a second embodiment of the present invention, including:
for sets of signals sampled by the same electronic control unit:
step S301, using the absolute time of the satellite navigation system and/or the reference clock source of the main controller chip in the electronic control unit as the reference time service source;
step S302, acquiring sampling periods of a plurality of groups of signals sampled by the electronic control unit, and determining the least common multiple of the plurality of groups of sampling periods as a basic synchronous sampling period;
step S303, at the time of starting the basic synchronous sampling period, synchronously sampling a plurality of groups of signals by the same electronic control unit based on the reference time service source;
step S304, packaging a plurality of groups of signals synchronously sampled by the same electronic control unit into the same data frame;
step S305, if the data frames need to perform the packetization operation, setting a synchronous identifier in each packetized data frame, wherein signals encapsulated by the data frames with the same synchronous identifier are synchronous sampled signals;
and step S306, sending to the server.
Specifically, a set of signals from the interior of the ECU is determined, and a reference clock source of a main controller chip in the interior of the ECU is uniformly used. The least common multiple of the period of each signal is calculated, and then the time of the least common multiple is used as the basic synchronous sampling period.
And synchronously sampling the signals to be sampled at the moment of starting the basic synchronous sampling period. In order to improve the synchronism, the sampling synchronization of each signal is fully ensured to start, and the sampling synchronization is not preempted by blockage or other tasks, so that the sampling time of each signal is ensured to be as consistent as possible.
After all the samples are completed, the synchronously sampled signals are packaged into a uniform data frame (data packet). Signals in the same data frame can avoid the asynchronous problem caused by communication time delay and a packet mechanism. The invention takes a common Controller Area Network (CAN) bus data frame in an automobile as a default communication data frame, and the following steps are the same. As shown in fig. 4, wherein the signals pack _ vol and curr are two signals inside the same controller, synchronized within the same data frame. 0x7B0 is the address of the data frame in memory.
When the data packet needing synchronization exceeds 8 bytes in length, the data packet needs to be packetized for processing. Between the packets in which the synchronization signal is distributed, a 1-byte counter is set as the synchronization ID between the packets. As shown in fig. 5, the signals cell _ volx (x ═ 1,2,3, … …) and curr are two sets of signals in the same controller, and are synchronized in different data frames, and since cell _ volx is dispersed in a plurality of data frames, when Cnt in a plurality of messages is the same, it means that the set of signals (data) is the signals collected at the same time. Cnt is a synchronous identifier and can be set as the acquisition time. 0x7B0, 0x7B1, 0x7B2 are addresses of different data frames in the memory.
The embodiment realizes the sampling synchronization of the internal signals of the single ECU. And encapsulating the synchronously sampled signals into a unified data packet. Signals in the same data packet can avoid the asynchronous problem caused by communication delay and a packet packaging mechanism. The synchronous signal can be conveniently recovered by the server through the synchronous identification mark among a plurality of data frames.
EXAMPLE III
Fig. 6 is a flowchart illustrating a method for synchronously acquiring signals of an automotive electronic control unit according to a third embodiment of the present invention, including:
for a plurality of sets of signals respectively sampled by a plurality of electronic control units:
step S601, taking the absolute time of the satellite navigation system as time service time;
step S602, determining a reference time service source of each electronic control unit according to the time service time and the minimum clock compensation of each electronic control unit, and synchronously sampling a plurality of groups of signals based on the reference time service source;
step S603, calculating a synchronous identifier according to the reference time service source of each electronic control unit and the least common multiple of the sampling period of the multiple groups of signals respectively sampled by the electronic control units;
step S604, packaging the synchronous sampled signal into a data frame and marking the synchronous identification;
step S605, sending to the server.
And determining signals needing synchronization among the plurality of ECUs, and timing all the ECUs in the bus by adopting the absolute time of the GPS. Considering the limited bandwidth of the CAN bus, the time service frequency is controlled to be more than 1S. In order to ensure high synchronism, a GPS is used as a reference, and a main controller chip reference time clock source in the ECU is used as a timer to perform synchronous sampling period processing.
Then, considering the problem of data bandwidth, the absolute timestamp needs at least 4 bytes to represent, and one frame of CAN message only has 8 bytes, so a way of converting the absolute timestamp into a simple time sequence to represent the synchronous ID is used here, which effectively reduces the load rate. Fig. 7 shows a process in which three ECUs calculate synchronization IDs from GPS time and a reference clock source, and GPS time is distributed to a Vehicle controller 72 (VCU), a Motor controller 73 (MCU), and a Battery management System 74 (BMS) via a Host Unit 71 (HU). The sys _ tickx (x is 0,1,2) is the minimum clock compensation inside the VCU, the MCU and the BMS, the clock compensation is increased every 1ms, the time (x is 0,1,2) is the synchronous GPS time service received inside the VCU, the MCU and the BMS, the time is increased according to each sys _ tickx, the Cycle is the least common multiple of the sampling periods of the plurality of signals, the calculation formula is Cnt time/Cycle% 256, x is 0,1,2, and% is the residue operation.
After the synchronization ID is calculated, signals needing synchronization among the ECUs are respectively put into corresponding data frames and sent to the cloud. The transmitted data frames are shown in fig. 8, where the signals pack _ vol and Motor _ vol are two sets of signals between different controllers, and are synchronized in different data frames, and absolute time is acquired from the GPS, and then synchronization identifier Cnt1 is calculated according to the period to perform synchronization. 0x7B0, 0x7B1, 0x7B2 and 0x7C0 are addresses of different data frames in the memory respectively.
In the embodiment, a GPS is used as a reference, and a main controller chip reference time clock source inside the ECU is used as a timer to perform synchronous sampling period processing, so as to ensure high synchronism. Meanwhile, the absolute time stamp is converted into a simple time sequence to represent the synchronous ID, so that the load rate is effectively reduced.
Example four
Fig. 9 is a schematic diagram of a hardware structure of an electronic device for controlling synchronous signal acquisition of an automotive electronic control unit according to a fourth embodiment of the present invention, including:
at least one processor 901; and the number of the first and second groups,
a memory 902 communicatively connected to the at least one processor 901; wherein the content of the first and second substances,
the memory 902 stores instructions executable by the one processor to cause the at least one processor to:
setting a reference time service source for the multiple groups of signals, and synchronously sampling the multiple groups of signals based on the reference time service source;
and marking and packaging the synchronously sampled signals into data frames, and sending the data frames to a server.
Fig. 9 illustrates an example of a processor 901.
The electronic device may further include: an input device 903 and a display device 904.
The processor 901, the memory 902, the input device 903, and the display device 904 may be connected by a bus or other means, and are illustrated as being connected by a bus.
The memory 902, serving as a non-volatile computer-readable storage medium, may be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as program instructions/modules corresponding to the method for synchronously acquiring signals of an automotive electronic control unit in the embodiment of the present application, for example, the method flow shown in fig. 1. The processor 901 executes various functional applications and data processing by running nonvolatile software programs, instructions and modules stored in the memory 902, that is, the method for synchronously acquiring signals of the electronic control unit of the automobile in the above embodiment is implemented.
The memory 902 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the signal synchronous acquisition method of the automotive electronic control unit, and the like. Further, the memory 902 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, the memory 902 may optionally include a memory remotely located from the processor 901, and such remote memory may be connected via a network to a device that performs the automotive electronic control unit signal synchronization acquisition method. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 903 may receive input user clicks and generate signal inputs related to user settings and function controls of the vehicle ecu signal synchronization acquisition method. The display device 904 may include a display screen or the like.
When the one or more modules are stored in the memory 902 and executed by the one or more processors 901, the method for synchronously acquiring the signals of the electronic control unit of the automobile in any of the above-mentioned method embodiments is executed.
The invention sets a reference time service source between a plurality of ECUs in a single ECU. And then, respectively stamping time stamps on the sampled data by combining the reference time service sources of the two ECUs and a high-precision ECU internal clock, so as to determine that different signals from the ECUs are synchronized through the uniform time stamps.
EXAMPLE five
A fifth embodiment of the present invention provides an electronic device for controlling synchronous signal acquisition of an automotive electronic control unit, including:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the one processor to cause the at least one processor to:
for sets of signals sampled by the same electronic control unit:
using the absolute time of the satellite navigation system and/or a reference clock source of a main controller chip in the electronic control unit as a reference time service source;
acquiring sampling periods of a plurality of groups of signals sampled by the electronic control unit, and determining the least common multiple of the plurality of groups of sampling periods as a basic synchronous sampling period;
at the time of starting a basic synchronous sampling period, synchronously sampling a plurality of groups of signals by the same electronic control unit based on the reference time service source;
packaging a plurality of groups of signals synchronously sampled by the same electronic control unit into the same data frame;
if the data frames need to perform the subpackage operation, setting a synchronous identifier in each data frame after subpackage, wherein signals packaged by the data frames with the same synchronous identifier are synchronous sampling signals;
and sending to the server.
The embodiment realizes the sampling synchronization of the internal signals of the single ECU. And encapsulating the synchronously sampled signals into a unified data packet. Signals in the same data packet can avoid the asynchronous problem caused by communication delay and a packet packaging mechanism. The synchronous signal can be conveniently recovered by the server through the synchronous identification mark among a plurality of data frames.
EXAMPLE six
A sixth embodiment of the present invention provides an electronic device for controlling synchronous signal acquisition of an automotive electronic control unit, including:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the one processor to cause the at least one processor to:
for a plurality of sets of signals respectively sampled by a plurality of electronic control units:
taking the absolute time of a satellite navigation system as time service time;
determining a reference time service source of each electronic control unit according to the time service time and the minimum clock compensation of each electronic control unit, and synchronously sampling a plurality of groups of signals based on the reference time service source;
calculating synchronous identification according to the reference time service source of each electronic control unit and the least common multiple of the sampling period of the multiple groups of signals respectively sampled by the electronic control units;
encapsulating the synchronously sampled signals into data frames and marking the synchronous identification;
and sending to the server.
In the embodiment, a GPS is used as a reference, and a main controller chip reference time clock source inside the ECU is used as a timer to perform synchronous sampling period processing, so as to ensure high synchronism. Meanwhile, the absolute time stamp is converted into a simple time sequence to represent the synchronous ID, so that the load rate is effectively reduced.
EXAMPLE seven
Fig. 10 is a flowchart illustrating a method for synchronizing signals of an electronic control unit of a vehicle according to an embodiment of the present invention, including:
step S1001, receiving a data frame;
and step S1002, synchronizing signals decapsulated from data frames with the same synchronization identifier as a synchronization signal sequence, wherein the data frames are set with reference time service sources for multiple groups of signals by an electronic control unit of the automobile, synchronously sampling the multiple groups of signals based on the reference time service sources, marking and encapsulating the synchronously sampled signals into data frames, and then sending the data frames.
Specifically, the server disassembles and reassembles the original data packets into a synchronization signal sequence according to the synchronization counter, and inputs the synchronization signal sequence to the model, as shown in fig. 11, for example, reassembles a signal with cnt being 1 into a set of synchronization signal sequences 1101, reassembles a signal with cnt being 2 into another set of synchronization signal sequences 1102, and then sends the signals in the same set of synchronization signal sequences to the model 1103 for synchronization calculation, for example, to the vehicle energy consumption model for calculation.
The invention sets a reference time service source between a plurality of ECUs in a single ECU. And then, respectively stamping time stamps on the sampled data by combining the reference time service sources of the two ECUs and a high-precision ECU internal clock, so as to determine that different signals from the ECUs are synchronized through the uniform time stamps.
Example eight
Fig. 12 is a schematic diagram of a hardware structure of a server for controlling signal synchronization operation of an electronic control unit of a vehicle according to an eighth embodiment of the present invention, including:
at least one processor 1201; and the number of the first and second groups,
a memory 1202 communicatively coupled to the at least one processor 1201; wherein the content of the first and second substances,
the memory 1202 stores instructions executable by the one processor to cause the at least one processor to:
receiving a data frame;
and performing synchronous operation by taking the signals decapsulated from the data frames with the same synchronous identification as a synchronous signal sequence, setting a reference time service source for the multiple groups of signals by an electronic control unit of the automobile, synchronously sampling the multiple groups of signals based on the reference time service source, marking and encapsulating the synchronously sampled signals into data frames, and then transmitting the data frames.
Fig. 12 illustrates an example of one processor 1201.
The electronic device may further include: an input device 1203 and a display device 1204.
The processor 1201, the memory 1202, the input device 1203, and the display device 1204 may be connected by a bus or other means, and are illustrated as being connected by a bus.
The memory 1202 is a non-volatile computer-readable storage medium, and can be used for storing non-volatile software programs, non-volatile computer-executable programs, and modules, such as program instructions/modules corresponding to the signal synchronization operation method of the electronic control unit of the vehicle in the embodiment of the present application, for example, the method flow shown in fig. 1. The processor 1201 executes various functional applications and data processing by executing nonvolatile software programs, instructions, and modules stored in the memory 1202, that is, implements the signal synchronization operation method of the automotive electronic control unit in the above-described embodiment.
The memory 1202 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the signal synchronization operation method of the automotive electronic control unit, and the like. Further, the memory 1202 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, the memory 1202 may optionally include a memory remotely located from the processor 1201 and such remote memory may be connected over a network to a device that performs the automotive electronic control unit signal synchronization operation method. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 1203 may receive input of user clicks and generate signal inputs related to user settings and function control of the signal synchronization operation method of the automotive electronic control unit. The display device 1204 may include a display screen or the like.
The method of the automotive ecu signal synchronization operation in any of the method embodiments described above is performed when the one or more modules are stored in the memory 1202 and executed by the one or more processors 1201.
The invention sets a reference time service source between a plurality of ECUs in a single ECU. And then, respectively stamping time stamps on the sampled data by combining the reference time service sources of the two ECUs and a high-precision ECU internal clock, so as to determine that different signals from the ECUs are synchronized through the uniform time stamps.
Example nine
A ninth embodiment of the present invention provides a storage medium storing computer instructions for executing all the steps of the method for synchronously acquiring signals of an automotive electronic control unit as described above when a computer executes the computer instructions.
Example ten
A tenth embodiment of the present invention provides a storage medium storing computer instructions for performing all the steps of the method for signal synchronization operation of an automotive electronic control unit as described above, when the computer executes the computer instructions.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (14)

1. A synchronous signal acquisition method for an automobile electronic control unit is characterized by comprising the following steps:
setting a reference time service source for the multiple groups of signals, and synchronously sampling the multiple groups of signals based on the reference time service source;
marking and packaging the synchronously sampled signals into data frames, and sending the data frames to a server;
the method for setting the reference time service source for the multiple groups of signals and synchronously sampling the multiple groups of signals based on the reference time service source specifically comprises the following steps:
for sets of signals sampled by the same electronic control unit:
using the absolute time of the satellite navigation system and/or a reference clock source of a main controller chip in the electronic control unit as a reference time service source;
acquiring sampling periods of a plurality of groups of signals sampled by the electronic control unit, and determining the least common multiple of the plurality of groups of sampling periods as a basic synchronous sampling period;
at the time of starting a basic synchronous sampling period, synchronously sampling a plurality of groups of signals by the same electronic control unit based on the reference time service source;
for a plurality of sets of signals respectively sampled by a plurality of electronic control units:
and taking the absolute time of the satellite navigation system as time service time, determining a reference time service source of each electronic control unit according to the time service time and the minimum clock compensation of each electronic control unit, and synchronously sampling multiple groups of signals based on the reference time service source.
2. The method for synchronously acquiring signals of an automotive electronic control unit according to claim 1, wherein the marking and encapsulating the synchronously sampled signals into data frames specifically comprises:
and packaging a plurality of groups of signals synchronously sampled by the same electronic control unit into the same data frame.
3. The method for synchronously acquiring signals of an automotive electronic control unit according to claim 2, wherein the step of encapsulating a plurality of groups of signals synchronously sampled by the same electronic control unit into the same data frame specifically comprises:
and if the data frames need to perform the packetization operation, setting a synchronous identifier in each packetized data frame, wherein signals encapsulated by the data frames with the same synchronous identifier are synchronous sampled signals.
4. The method for synchronously acquiring signals of an automotive electronic control unit according to claim 1, wherein the marking and encapsulating the synchronously sampled signals into data frames specifically comprises:
calculating synchronous identification according to the reference time service source of each electronic control unit and the least common multiple of the sampling period of the multiple groups of signals respectively sampled by the electronic control units;
and encapsulating the synchronous sampled signal into a data frame and marking the synchronous identification.
5. The synchronous signal acquisition method for the automotive electronic control unit according to claim 1, further comprising:
and taking the decapsulated signals of the data frames with the same synchronization identification as a synchronization signal sequence to carry out synchronization operation.
6. An electronic device for controlling synchronous signal acquisition of an automotive electronic control unit, comprising:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to:
setting a reference time service source for the multiple groups of signals, and synchronously sampling the multiple groups of signals based on the reference time service source;
marking and packaging the synchronously sampled signals into data frames, and sending the data frames to a server;
the method for setting the reference time service source for the multiple groups of signals and synchronously sampling the multiple groups of signals based on the reference time service source specifically comprises the following steps:
for sets of signals sampled by the same electronic control unit:
using the absolute time of the satellite navigation system and/or a reference clock source of a main controller chip in the electronic control unit as a reference time service source;
acquiring sampling periods of a plurality of groups of signals sampled by the electronic control unit, and determining the least common multiple of the plurality of groups of sampling periods as a basic synchronous sampling period;
at the time of starting a basic synchronous sampling period, synchronously sampling a plurality of groups of signals by the same electronic control unit based on the reference time service source;
for a plurality of sets of signals respectively sampled by a plurality of electronic control units:
and taking the absolute time of the satellite navigation system as time service time, determining a reference time service source of each electronic control unit according to the time service time and the minimum clock compensation of each electronic control unit, and synchronously sampling multiple groups of signals based on the reference time service source.
7. The electronic device for controlling synchronous signal acquisition of an automotive electronic control unit according to claim 6, wherein the marking and encapsulating of the synchronously sampled signal into a data frame specifically comprises:
and packaging a plurality of groups of signals synchronously sampled by the same electronic control unit into the same data frame.
8. The electronic device for controlling synchronous signal acquisition of an electronic control unit of an automobile according to claim 7, wherein the step of encapsulating a plurality of groups of signals synchronously sampled by the same electronic control unit into the same data frame specifically comprises:
and if the data frames need to perform the packetization operation, setting a synchronous identifier in each packetized data frame, wherein signals encapsulated by the data frames with the same synchronous identifier are synchronous sampled signals.
9. The electronic device for controlling synchronous signal acquisition of an automotive electronic control unit according to claim 6, wherein the marking and encapsulating of the synchronously sampled signal into a data frame specifically comprises:
calculating synchronous identification according to the reference time service source of each electronic control unit and the least common multiple of the sampling period of the multiple groups of signals respectively sampled by the electronic control units;
and encapsulating the synchronous sampled signal into a data frame and marking the synchronous identification.
10. The electronic device for controlling synchronous acquisition of signals of an automotive electronic control unit according to claim 6, characterized in that the processor is further capable of:
and taking the decapsulated signals of the data frames with the same synchronization identification as a synchronization signal sequence to carry out synchronization operation.
11. A signal synchronous operation method for an automobile electronic control unit is characterized by comprising the following steps:
receiving a data frame;
the method comprises the steps that signals decapsulated from data frames with the same synchronous identification are used as synchronous signal sequences to carry out synchronous operation, a reference time service source is set for multiple groups of signals by an electronic control unit of an automobile, the multiple groups of signals are synchronously sampled based on the reference time service source, and the synchronously sampled signals are marked and encapsulated into data frames to be sent;
the method for setting the reference time service source for the multiple groups of signals and synchronously sampling the multiple groups of signals based on the reference time service source specifically comprises the following steps:
for sets of signals sampled by the same electronic control unit:
using the absolute time of the satellite navigation system and/or a reference clock source of a main controller chip in the electronic control unit as a reference time service source;
acquiring sampling periods of a plurality of groups of signals sampled by the electronic control unit, and determining the least common multiple of the plurality of groups of sampling periods as a basic synchronous sampling period;
at the time of starting a basic synchronous sampling period, synchronously sampling a plurality of groups of signals by the same electronic control unit based on the reference time service source;
for a plurality of sets of signals respectively sampled by a plurality of electronic control units:
and taking the absolute time of the satellite navigation system as time service time, determining a reference time service source of each electronic control unit according to the time service time and the minimum clock compensation of each electronic control unit, and synchronously sampling multiple groups of signals based on the reference time service source.
12. A server for controlling signal synchronization operation of an electronic control unit of an automobile, comprising:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to:
receiving a data frame;
the method comprises the steps that signals decapsulated from data frames with the same synchronous identification are used as synchronous signal sequences to carry out synchronous operation, a reference time service source is set for multiple groups of signals by an electronic control unit of an automobile, the multiple groups of signals are synchronously sampled based on the reference time service source, and the synchronously sampled signals are marked and encapsulated into data frames to be sent;
the method for setting the reference time service source for the multiple groups of signals and synchronously sampling the multiple groups of signals based on the reference time service source specifically comprises the following steps:
for sets of signals sampled by the same electronic control unit:
using the absolute time of the satellite navigation system and/or a reference clock source of a main controller chip in the electronic control unit as a reference time service source;
acquiring sampling periods of a plurality of groups of signals sampled by the electronic control unit, and determining the least common multiple of the plurality of groups of sampling periods as a basic synchronous sampling period;
at the time of starting a basic synchronous sampling period, synchronously sampling a plurality of groups of signals by the same electronic control unit based on the reference time service source;
for a plurality of sets of signals respectively sampled by a plurality of electronic control units:
and taking the absolute time of the satellite navigation system as time service time, determining a reference time service source of each electronic control unit according to the time service time and the minimum clock compensation of each electronic control unit, and synchronously sampling multiple groups of signals based on the reference time service source.
13. A storage medium storing computer instructions for performing all the steps of the method for synchronous acquisition of signals of an automotive ecu as claimed in any one of claims 1 to 5 when the computer executes the computer instructions.
14. A storage medium storing computer instructions for performing all the steps of the method for signal synchronization operation of an automotive ecu as claimed in claim 11 when the computer executes the computer instructions.
CN201910929545.3A 2019-09-29 2019-09-29 Synchronous signal acquisition method for automobile electronic control unit, electronic equipment, server and storage medium Active CN111130674B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910929545.3A CN111130674B (en) 2019-09-29 2019-09-29 Synchronous signal acquisition method for automobile electronic control unit, electronic equipment, server and storage medium
PCT/CN2019/129477 WO2021056903A1 (en) 2019-09-29 2019-12-27 Method for synchronously collecting signals of electronic control unit of automobile, electronic device, server, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910929545.3A CN111130674B (en) 2019-09-29 2019-09-29 Synchronous signal acquisition method for automobile electronic control unit, electronic equipment, server and storage medium

Publications (2)

Publication Number Publication Date
CN111130674A CN111130674A (en) 2020-05-08
CN111130674B true CN111130674B (en) 2021-04-13

Family

ID=70495325

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910929545.3A Active CN111130674B (en) 2019-09-29 2019-09-29 Synchronous signal acquisition method for automobile electronic control unit, electronic equipment, server and storage medium

Country Status (2)

Country Link
CN (1) CN111130674B (en)
WO (1) WO2021056903A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111791232B (en) * 2020-06-03 2021-02-05 中南民族大学 Robot chassis control system and method based on time hard synchronization
CN111768610A (en) * 2020-06-24 2020-10-13 北京恒通安泰科技有限公司 Data acquisition device and data acquisition method for rail weighbridge and rail weighbridge
CN113359557B (en) * 2021-06-11 2022-11-11 北京空间飞行器总体设计部 Method for controlling data acquisition time sequence

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202383296U (en) * 2011-12-22 2012-08-15 华为技术有限公司 Satellite navigation signal simulator
CN106850115A (en) * 2017-03-07 2017-06-13 中国地质大学(武汉) A kind of Multi-channel data acquisition synchronization system and method
CN109305046A (en) * 2018-09-30 2019-02-05 湖南中车时代通信信号有限公司 The transmission control system and method for train traction location data
CN109471356A (en) * 2018-09-27 2019-03-15 中国移动通信集团江苏有限公司 Processing method, device, equipment, medium and the system of time signal
CN109905194A (en) * 2019-02-21 2019-06-18 初速度(苏州)科技有限公司 A kind of vehicle-mounted terminal system and synchronization data obtaining method, device

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9274207B2 (en) * 2006-02-01 2016-03-01 Zih Corp. System and method for determining signal source location in wireless local area network
JP2007307949A (en) * 2006-05-16 2007-11-29 Toyota Motor Corp Brake vibration damping device
US8417472B2 (en) * 2008-12-19 2013-04-09 02Micro Inc. Synchronized data sampling systems and methods
CN108011904B (en) * 2016-10-31 2021-04-20 比亚迪股份有限公司 Information sending method, receiving method, device and information receiving and sending system
CN108377266A (en) * 2018-02-07 2018-08-07 安徽星网软件技术有限公司 A kind of Real-time Data Transfer Method and system based on car networking
CN109849686B (en) * 2019-02-22 2020-04-14 北京理工大学 Trusted network control chassis system and control method of electric automobile

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202383296U (en) * 2011-12-22 2012-08-15 华为技术有限公司 Satellite navigation signal simulator
CN106850115A (en) * 2017-03-07 2017-06-13 中国地质大学(武汉) A kind of Multi-channel data acquisition synchronization system and method
CN109471356A (en) * 2018-09-27 2019-03-15 中国移动通信集团江苏有限公司 Processing method, device, equipment, medium and the system of time signal
CN109305046A (en) * 2018-09-30 2019-02-05 湖南中车时代通信信号有限公司 The transmission control system and method for train traction location data
CN109905194A (en) * 2019-02-21 2019-06-18 初速度(苏州)科技有限公司 A kind of vehicle-mounted terminal system and synchronization data obtaining method, device

Also Published As

Publication number Publication date
CN111130674A (en) 2020-05-08
WO2021056903A1 (en) 2021-04-01

Similar Documents

Publication Publication Date Title
CN111130674B (en) Synchronous signal acquisition method for automobile electronic control unit, electronic equipment, server and storage medium
CN110329273B (en) Method and device for synchronizing data acquired by unmanned vehicle
CN106059701B (en) A kind of clock that Ethernet is triggered by capturing the Protocol Control frame testing time synchronizes the device of correction value
US7171579B2 (en) Method and device for exchanging data between at least two stations connected via a bus system
JP2017106911A (en) Device for supplying data to hardware-in-the-loop simulator
CN109981206B (en) Time synchronization method, device, system, terminal equipment and storage medium
US20110222561A1 (en) Systems and methods for providing time synchronization
CN103605349A (en) Remote data real-time collection, analysis and statistical system and method based on CAN-bus
CN110800272B (en) Cluster rendering method, device and system
US20160147568A1 (en) Method and apparatus for data transfer to the cyclic tasks in a distributed real-time system at the correct time
CN110463212A (en) The low latency pipeline being packaged for media to Ethernet frame
CN117295148B (en) Time synchronization method, central control host and wireless device
CN114063703A (en) Data synchronization method and device, data processing equipment and storage medium
CN109660310B (en) Clock synchronization method and device, computing equipment and computer storage medium
CN108683470B (en) Circuit and method for acquiring and updating transparent clock
CN102983959B (en) Method for realizing one-step mode and two-step mode for PTP (precision time synchronization protocol) in a plurality of MAC
CN108215907B (en) Battery management system and method
CN105141406A (en) Time synchronization method, time synchronization apparatus and simulation system
CN116015523A (en) Time synchronization method and device and electronic equipment
CN204069142U (en) A kind of multi-path video data synchronous acquisition controller
CN114928425A (en) Terminal device time synchronization system, method, device and storage medium
CN116828281A (en) Vehicle-mounted camera system data processing method, device, equipment and medium
CN112601193A (en) Data transmission method and related device thereof
JP6191480B2 (en) Data collection system
CN109802741B (en) Semi-physical simulation time synchronization method for angle measurement and speed measurement combined navigation

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
GR01 Patent grant
GR01 Patent grant