Batch data processing method and device for vehicle electronic control unit and electronic equipment

By running script files in the vehicle electronic control unit to extract signal characteristic information and form a structure array, the problems of low data processing efficiency and error prone in the prior art are solved, batch data numerical conversion and numerical range constraints are realized, and processing efficiency and reliability are improved.

CN119575854APending Publication Date: 2025-03-07CONTINENTAL SMART CORE TECH (SHANGHAI) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411280914.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-12
Publication Date
2025-03-07

AI Technical Summary

Technical Problem

The prior art is low efficiency and error-prone in data processing between vehicle electronic control units, especially under the AUTOSAR architecture, the signal mapping table has complex encoding and high failure rate.

Method used

By running a predetermined script file, signal characteristic information is extracted from the communication data definition file of the control system and the RTE generation file, a signal structure is formed, and the structure array is formed, and the received signal is subjected to numerical range constraints and numerical conversion within a predetermined period based on the array.

Benefits of technology

The batched data numerical conversion and numerical range constraints are realized, which reduces the probability of errors in manual encoding and improves the efficiency and reliability of data processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119575854A_ABST
    Figure CN119575854A_ABST
Patent Text Reader

Abstract

The invention provides a batch data processing method and device for a vehicle electronic control unit and electronic equipment, the vehicle electronic control unit is driven to operate based on a control system, and the control system is a software system based on AUTOSAR. The method comprises the following steps: extracting first-class feature information of each signal from a communication data definition file corresponding to a control system by running a predetermined script file, extracting second-class feature information of each signal from an RTE generation file, and respectively forming a signal structure body for each signal; forming a structural body array by all the signal structural bodies; when the data is sent, a sending signal from the application software layer module is obtained through the RTE module, and when the data is received, a receiving signal is obtained through the BSW module; and carrying out numerical range constraint and numerical conversion on the sending signal or the receiving signal received in the preset period according to the preset period based on the structure array.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication and data processing between various electronic control units of a vehicle, and in particular to a batch data processing method, device, electronic equipment, computer storage medium and computer program product for a vehicle electronic control unit. Background Art

[0002] With the rapid development of autonomous driving technology and the gradual improvement of the degree of automotive electrification, the number of electronic control units (ECUs) continues to grow, and the amount of data exchanged between ECUs continues to increase.

[0003] AUTOSAR (Automotive Open System Architecture) is an open standard software architecture for automotive electronic control units (ECUs). In related technologies, when using the AUTOSAR architecture for project development, the transmission and processing of a large number of signals between the electronic control unit (ECU) and the control area network (CAN bus) needs to be achieved through the mutual numerical conversion between physical values ​​and original values. This process not only involves the accurate numerical conversion of data, but also needs to consider the constraints of the numerical range to ensure the effectiveness and reliability of the signal during transmission.

[0004] At present, there are two main types of processing methods: the first is to implement data processing by defining data types when configuring the real-time runtime environment (RTE); the second method is to perform numerical conversion and constraints by writing code when receiving and sending data. Although the first processing method can meet basic needs, it lacks flexibility. The biggest disadvantage is that the efficiency of configuration is low, so it is rarely used in actual project development. The second method usually requires a signal mapping table for the sender and the receiver. Considering the large number of signals and the error-proneness of manual coding, this method has a relatively high failure rate, so it faces certain challenges in application. Summary of the invention

[0005] The present invention is completed to solve the above-mentioned problems, and its purpose is to provide a batch data processing method, device, electronic device, computer storage medium and computer program product for a vehicle electronic control unit, which can use scripts to batch realize data processing such as data value conversion and value range constraints.

[0006] According to one aspect of the present invention, there is provided a batch data processing method for a vehicle electronic control unit, characterized in that the vehicle electronic control unit is driven and operated based on a control system, and the control system is a software system based on AUTOSAR, and the method comprises: extracting the first type of characteristic information of each signal from a communication data definition file corresponding to the control system, extracting the second type of characteristic information of each signal from an RTE generated file by running a predetermined script file, and forming a signal structure for each signal based on the first type of characteristic information and the second type of characteristic information; forming all the signal structures into a structure array; when sending data, obtaining a sending signal from an application software layer module via an RTE module, and when receiving data, obtaining a receiving signal via a BSW module; and performing numerical range constraints and numerical conversion on the sending signal or the receiving signal received in the predetermined period based on the structure array at a predetermined period.

[0007] Preferably, the first type of characteristic information includes: signal name, frame ID, minimum value, maximum value, factor, offset, and signal period.

[0008] Preferably, based on the structure array, the numerical range constraint and numerical conversion are performed on the transmission signal or the reception signal received in the predetermined period in a predetermined period. When sending data, it includes: extracting the maximum value, minimum value, factor and offset corresponding to the transmission signal from the structure array; judging whether the physical value of the transmission signal is less than the minimum value or greater than the maximum value, if the physical value of the transmission signal is less than the minimum value or greater than the maximum value, updating the physical value to a preset default value; and converting the physical value of the transmission signal to the original value. When receiving data, it includes: extracting the maximum value, minimum value, factor and offset corresponding to the reception signal from the structure array; converting the original value of the reception signal into a physical value; and judging whether the converted physical value is less than the minimum value or greater than the maximum value, if the converted physical value is less than the minimum value or greater than the maximum value, updating the physical value to a preset default value.

[0009] Preferably, the second type of characteristic information includes RTE interface information.

[0010] Preferably, all the signal structures are grouped into a structure array, and the signal structures are arranged in order from small to large storage space, thereby forming a structure array.

[0011] Preferably, the physical value of the transmitted signal is converted into an original value, and the physical value is converted into the original value by the following formula:

[0012] Original value = (physical value – offset1) / factor1

[0013] Among them, factor1 is the factor corresponding to the sending signal, and offset1 is the offset corresponding to the sending signal.

[0014] Preferably, the original value of the received signal is converted into a physical value by using the following formula:

[0015] Physical value = original value * factor2 + offset2

[0016] Among them, factor2 is the factor corresponding to the received signal, and offset2 is the offset corresponding to the received signal.

[0017] Preferably, the predetermined script file is written in Python language.

[0018] According to another aspect of the present invention, there is provided a batch data processing device for a vehicle electronic control unit, characterized in that the vehicle electronic control unit is driven and operated based on a control system, and the control system is a software system based on AUTOSAR, comprising: a structure acquisition module, used to extract the first type of characteristic information of each signal from the communication data definition file corresponding to the control system by running a predetermined script file, extract the second type of characteristic information of each signal from the RTE generation file, and form a signal structure for each signal based on the first type of characteristic information and the second type of characteristic information; a composition module, used to form a structure array of all the signal structures; an acquisition module, used to acquire the sending signal from the application software layer module via the RTE module when sending data, and acquire the receiving signal via the BSW module when receiving data; and a processing module, used to perform numerical range constraints and numerical conversion on the sending signal or the receiving signal received in the predetermined period based on the structure array at a predetermined period.

[0019] According to another aspect of the present invention, an electronic device is provided, comprising a processor and a memory, wherein the memory stores at least one instruction or at least one program, and the at least one instruction or at least one program is loaded by the processor and executes the method described in the above aspect.

[0020] According to another aspect of the present invention, a computer storage medium is provided, wherein at least one instruction or at least one program is stored in the storage medium, and the at least one instruction or the at least one program is loaded by a processor and executes the method according to the above aspect of claim 1.

[0021] According to another aspect of the present invention, a computer program product is provided, comprising at least one instruction or at least one program segment, wherein the at least one instruction or the at least one program segment is loaded by a processor and executes the method according to the above aspect of claim 1 . BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 It is a flow chart of a batch data processing method for a vehicle electronic control unit provided by an embodiment of the present invention.

[0023] Figure 2 It is a schematic diagram of a flow chart of batch data processing of a sending signal in an embodiment of the present invention.

[0024] Figure 3 It is a schematic diagram of a flow chart of batch data processing of received signals in an embodiment of the present invention.

[0025] Figure 4 It is a structural block diagram of a batch data processing device for a vehicle electronic control unit provided by an embodiment of the present invention.

[0026] Figure 5 It is a structural block diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0027] The present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the relevant invention, rather than to limit the invention. It should also be noted that, for ease of description, only the parts related to the relevant invention are shown in the accompanying drawings.

[0028] Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by those of ordinary skill in the art. It will also be understood that terms such as those defined in commonly used dictionaries should be interpreted as having a meaning consistent with their meaning in the context of the relevant art and the present invention, and will not be interpreted as having an idealized or overly formal meaning unless explicitly defined as such herein.

[0029] The present invention provides a batch data processing method, device, electronic device, computer storage medium and computer program product for a vehicle electronic control unit, which can realize data processing such as data value conversion and value range constraint by using script batch. Among them, the method and the device are based on the same concept. Since the principles of solving problems by the method and the device are similar, the implementation of the device and the method can refer to each other, and the repeated parts will not be repeated.

[0030] Figure 1It is a flow chart of a batch data processing method for a vehicle electronic control unit provided by an embodiment of the present invention. This specification provides method operation steps such as the embodiments or flow charts, but more or fewer operation steps may be included based on conventional or non-creative labor. The order of steps listed in the embodiments is only one way of executing the order of many steps and does not represent the only execution order. When the actual system or server product is executed, it can be executed in the order of the method shown in the embodiments or the drawings or in parallel (for example, in a parallel processor or multi-threaded processing environment).

[0031] The method can be applied to a computer device, which refers to an electronic device with data calculation and processing capabilities. The method can include the following steps.

[0032] S11: By running a predetermined script file, the first type of characteristic information of each signal is extracted from the communication data definition file corresponding to the control system, the second type of characteristic information of each signal is extracted from the RTE generation file, and a signal structure is formed for each signal based on the first type of characteristic information and the second type of characteristic information.

[0033] The control system is a control system running in an electronic control unit of a vehicle, the electronic control unit is driven and operated based on the control system, and the vehicle includes an electronic control unit. The control system may be a software system based on AUTOSAR.

[0034] AUTOSAR is an open and standardized automotive electronic software architecture. It is a global development partner organization composed of automobile manufacturers, suppliers, service providers and other companies in the automotive electronics, semiconductor and software industries. It has established an open automotive electronic control unit (ECU) standard software architecture. AUTOSAR has made a standard package of the software bottom layer of the automotive electronic control unit (ECU), so that developers can share a set of bottom-level software. They only need to modify some parameters to match different hardware and different application layer software.

[0035] The control system includes a basic software layer module (Basic Software, BSW), an application software layer module (Application Layer) and a real-time operating environment layer module (RTE).

[0036] The communication data definition file can be a DBC file. DBC file is a commonly used CAN bus data definition file, which is often used in the communication of electronic control units (ECUs) in the CAN bus network. Its main function is to describe signal names, physical values, signal lengths, transmission cycles, calculation formulas, units and other information. This information can help different ECUs communicate with each other and ensure the accuracy and reliability of information. Using DBC files can simplify the CAN communication process, thereby improving the reliability and efficiency of the CAN bus system.

[0037] In some embodiments, the first type of characteristic information of each signal is extracted from the DBC file corresponding to the control system, and the second type of characteristic information of each signal is extracted from the RTE generated file. Among them, the first type of characteristic information includes: signal name, frame ID, minimum value, maximum value, factor, offset, signal period, etc. Among them, the two values ​​of factor and offset are used for the conversion between the original value and the physical value of the signal, and the minimum value and maximum value specify the range of the signal value. The second type of characteristic information includes RTE interface information. RTE interface information is an interface in the automotive software system, which is mainly used for communication and data exchange between components. The RTE module is one of the core components in the AUTOSAR architecture. It is responsible for managing and scheduling communication and data exchange between various software components. In the RTE module, the interface is a bridge for communication between software components, and defines the format and rules of data exchange. Each interface has a unique identifier for referencing and identifying the corresponding interface in the software component.

[0038] Each signal adopts a unified structural structure, and a signal structure is formed for each signal based on the first type of characteristic information and the second type of characteristic information.

[0039] In addition, the predetermined script file can be written in Python language. Of course, the present invention is not limited to this, and the predetermined script file can also be written in other languages.

[0040] S12: All signal structures are organized into a structure array.

[0041] In some implementations, all signal structures may be arranged in order of storage space from small to large to form a structure array, so that it can be conveniently called. This step may be executed by a predetermined script file or by other modules.

[0042] S13: When sending data, the sending signal from the application software layer module is obtained via the RTE module, and when receiving data, the receiving signal is obtained via the BSW module.

[0043] The application software layer module is connected to the RTE module and interacts with it. When the electronic control unit (ECU) sends data to the CAN bus, the RTE module obtains the sending signal from the application software layer module. The application software layer module here can include various functional systems, such as lane change warning system (Lane Change Warning), adaptive cruise control system (Adaptive Cruise Control), automatic emergency braking system (Automatic Emergency Braking), lane keeping assist system (Lane Keeping Assist), etc. The application software layer module can send the sending signals of the various functional systems it contains to the outside. When receiving data from the CAN bus, the receiving signal is obtained through the BSW module.

[0044] S14: Based on the structure array, a numerical range constraint and numerical conversion are performed on the transmission signal or the reception signal received in the predetermined period in a predetermined period.

[0045] In this step, batch data processing is performed on the transmission signal or the reception signal received in the predetermined period at a predetermined period. The predetermined period may be, for example, 10 ms, but the present invention is not limited thereto.

[0046] Figure 2 This is a flow chart of batch data processing of a transmission signal in an embodiment of the present invention. Figure 2 Describes the batch data processing performed on the sending signal when sending data.

[0047] S141: Extract the maximum value, minimum value, factor and offset corresponding to the transmitted signal from the structure array.

[0048] Specifically, the maximum value, minimum value, factor and offset corresponding to the transmitted signal can be extracted from the structure array obtained in step S12 according to the signal name in the transmitted signal.

[0049] S142: Determine whether the physical value of the transmitted signal is less than a minimum value or greater than a maximum value. If the physical value of the transmitted signal is less than the minimum value or greater than the maximum value, update the physical value to a preset default value.

[0050] Determine whether the physical value contained in the transmitted signal is outside the range of the signal value, that is, determine whether the physical value contained in the transmitted signal is less than the minimum value corresponding to the transmitted signal or greater than the maximum value corresponding to the transmitted signal. The minimum value and the minimum value here are both extracted and obtained in step S141. If the physical value contained in the transmitted signal is less than the minimum value or greater than the maximum value, the physical value of the transmitted signal is updated to a preset default value. The preset default value can be preset by other modules.

[0051] S142: Convert the physical value of the transmitted signal into an original value.

[0052] Specifically, the physical value is converted to the original value using the following formula:

[0053] Original value = (physical value – offset1) / factor1

[0054] Wherein, factor1 is the factor corresponding to the transmitted signal, and offset1 is the offset corresponding to the transmitted signal. Both factor1 and offset1 are extracted in step S141. If the physical value is updated in step S142, then this is the updated physical value; if the physical value is not updated in step S142, then this is the physical value contained in the transmitted signal.

[0055] Figure 3 1 is a flow chart of batch data processing of received signals in an embodiment of the present invention. Figure 3 Describes the batch data processing performed on the received signal when receiving data.

[0056] S144: Extract the maximum value, minimum value, factor and offset corresponding to the received signal from the structure array.

[0057] Similar to the transmitted signal, the maximum value, minimum value, factor and offset corresponding to the received signal are extracted from the structure array obtained in step S12 according to the signal name in the received signal.

[0058] S145: Convert the original value of the received signal into a physical value.

[0059] Specifically, the raw value is converted to the physical value by the following formula:

[0060] Physical value = original value * factor2 + offset2

[0061] Wherein, factor2 is the factor corresponding to the received signal, and offset2 is the offset corresponding to the received signal. Both factor2 and offset2 are extracted in step S144.

[0062] S146: Determine whether the physical value obtained by conversion is less than the minimum value or greater than the maximum value. If the physical value obtained by conversion is less than the minimum value or greater than the maximum value, update the physical value to a preset default value.

[0063] It is determined whether the physical value of the received signal converted in step S145 is outside the range of the signal value, that is, whether the physical value of the received signal converted is less than the minimum value corresponding to the received signal or greater than the maximum value corresponding to the received signal. The minimum value and the minimum value here are both extracted in step S144. If the physical value of the received signal converted is less than the minimum value or greater than the maximum value, the physical value is updated to a preset default value. The preset default value can be preset by other modules.

[0064] Through the batch data processing method for a vehicle electronic control unit involved in the above-mentioned embodiment of the present invention, data processing such as data value conversion and value range constraints can be realized in batches using scripts, thereby reducing the error probability compared to manual configuration and reducing development costs.

[0065] Figure 4 1 is a block diagram of a batch data processing device for a vehicle electronic control unit provided by an embodiment of the present invention. Figure 4 As shown, the batch data processing device 200 for a vehicle electronic control unit includes: a structure acquisition module 201 , a composition module 202 , an acquisition module 203 and a processing module 204 .

[0066] Among them, the structure acquisition module 201 is used to extract the first type of characteristic information of each signal from the communication data definition file corresponding to the control system by running a predetermined script file, and extract the second type of characteristic information of each signal from the RTE generation file, and form a signal structure for each signal based on the first type of characteristic information and the second type of characteristic information. The composition module 202 is used to form a structure array of all the signal structures. The acquisition module 203 is used to obtain the sending signal from the application software layer module via the RTE module when sending data, and to obtain the receiving signal via the BSW module when receiving data. The update unit 204 is used to perform numerical range constraints and numerical conversion on the sending signal or receiving signal received in the predetermined period based on the structure array at a predetermined period.

[0067] Figure 5 is a structural block diagram of an electronic device provided by an embodiment of the present invention. Figure 5 As shown, the present invention also provides an electronic device 300, which includes a processor and a memory, wherein the memory stores at least one instruction or at least one program, and the at least one instruction or the at least one program is loaded by the processor and executes the method described in the above embodiment.

[0068] The present invention also provides a computer storage medium, in which at least one instruction or at least one program is stored, and the at least one instruction or at least one program is loaded by a processor to execute the method described in the above embodiment.

[0069] The present invention also provides a computer program product, comprising at least one instruction or at least one program segment, characterized in that the at least one instruction or the at least one program segment is loaded by a processor and executes the method described in the above embodiment.

[0070] Optionally, in this embodiment, the storage medium may be located in at least one of the multiple network servers of the computer network. Optionally, in this embodiment, the storage medium may include, but is not limited to, various media that can store program codes, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk, or an optical disk.

[0071] Those skilled in the art should be able to appreciate that the modules, units and method steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software or a combination of the two. In order to clearly illustrate the interchangeability of electronic hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in electronic hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0072] Although the present invention has been described with reference to the current specific embodiments, those skilled in the art should recognize that the scope of the invention involved in the present invention is not limited to the technical solutions formed by the specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the inventive concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present invention (but not limited to) by each other.

Claims

1. A batch data processing method for a vehicle electronic control unit, characterized in that: The vehicle electronic control unit is driven and operated based on a control system, and the control system is a software system based on AUTOSAR. The method includes: By running a predetermined script file, extracting first-type characteristic information of each signal from a communication data definition file corresponding to the control system, extracting second-type characteristic information of each signal from an RTE generated file, and forming a signal structure for each signal based on the first-type characteristic information and the second-type characteristic information; All the signal structures are combined into a structure array; When sending data, obtaining a sending signal from the application software layer module via the RTE module, and when receiving data, obtaining a receiving signal via the BSW module; and Based on the structure array, a numerical range constraint and numerical conversion are performed on a transmission signal or a reception signal received in a predetermined period in a predetermined period.

2. The batch data processing method for a vehicle electronic control unit according to claim 1, characterized in that: The first type of characteristic information includes: signal name, frame ID, minimum value, maximum value, factor, offset, and signal period.

3. The batch data processing method for a vehicle electronic control unit according to claim 2, characterized in that: Based on the structure array, a transmission signal or a reception signal received in the predetermined period is subjected to a numerical range constraint and a numerical conversion in a predetermined period. When sending data, include: Extract the maximum value, minimum value, factor and offset corresponding to the transmitted signal from the structure array; Determine whether the physical value of the transmitted signal is less than a minimum value or greater than a maximum value, and if the physical value of the transmitted signal is less than the minimum value or greater than the maximum value, update the physical value to a preset default value; and converting the physical value of the transmitted signal into an original value, When receiving data, include: Extract the maximum value, minimum value, factor and offset corresponding to the received signal from the structure array; converting the raw value of the received signal into a physical value; and It is determined whether the converted physical value is less than a minimum value or greater than a maximum value. If the converted physical value is less than the minimum value or greater than the maximum value, the physical value is updated to a preset default value.

4. The batch data processing method for a vehicle electronic control unit according to any one of claims 1 to 3, characterized in that: The second type of characteristic information includes RTE interface information.

5. The batch data processing method for a vehicle electronic control unit according to any one of claims 1 to 3, characterized in that: All the signal structures are combined into a structure array. The signal structures are arranged in order of small to large storage space to form a structure array.

6. The batch data processing method for a vehicle electronic control unit according to claim 3, characterized in that: Convert the physical value of the transmitted signal into an original value, The physical value is converted to the original value by the following formula: Original value = (physical value – offset1) / factor1 Among them, factor1 is the factor corresponding to the sending signal, and offset1 is the offset corresponding to the sending signal.

7. The batch data processing method for a vehicle electronic control unit according to claim 3, characterized in that: Convert the original value of the received signal into a physical value, The raw value is converted to a physical value using the following formula: Physical value = original value * factor2 + offset2 Among them, factor2 is the factor corresponding to the received signal, and offset2 is the offset corresponding to the received signal.

8. The batch data processing method for a vehicle electronic control unit according to any one of claims 1 to 3, characterized in that: The predetermined script file is written in Python language.

9. A batch data processing device for a vehicle electronic control unit, characterized in that: The vehicle electronic control unit is driven and operated based on a control system, which is an AUTOSAR-based software system, including: A structure acquisition module, used to extract the first type of characteristic information of each signal from the communication data definition file corresponding to the control system by running a predetermined script file, extract the second type of characteristic information of each signal from the RTE generated file, and form a signal structure for each signal based on the first type of characteristic information and the second type of characteristic information; A composition module, used for composing all the signal structures into a structure array; an acquisition module, used to acquire a sending signal from the application software layer module via the RTE module when sending data, and to acquire a receiving signal via the BSW module when receiving data; and The processing module is used to perform numerical range constraints and numerical conversion on the transmission signal or the reception signal received in the predetermined period based on the structure array in the predetermined period.

10. An electronic device, characterized in that: The electronic device comprises a processor and a memory, wherein the memory stores at least one instruction or at least one program, and the at least one instruction or the at least one program is loaded by the processor and executes the method according to any one of claims 1 to 8.

11. A computer storage medium, characterized in that: The storage medium stores at least one instruction or at least one program, and the at least one instruction or the at least one program is loaded by a processor and executes the method according to any one of claims 1 to 8.

12. A computer program product, comprising at least one instruction or at least one program, characterized in that: The at least one instruction or the at least one program is loaded by a processor and executes the method according to any one of claims 1 to 8.