Vehicle body signal data transmission method, device, equipment and medium
Through automated scripts, the signal generation and transmission of SOME/IP and IPCP signals are solved, signal conflicts and disorder problems are improved, development efficiency and cost reduction.
Patent Information
- Application Number
- CN202510203261.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-24
- Publication Date
- 2025-05-27
AI Technical Summary
In the prior art, SOME/IP signals and IPCP signals may conflict on the transmission path, and due to the wide variety of signals and complex structure, the risk of signal disorder increases under the traditional management method.
The signal is generated through automated scripts, and the SOME/IP signal is separated and transmitted from the IPCP signal. The signal file is parsed and the target code file is generated using preset body signal template files and scripts, and finally the file is packaged and sent to the target unit.
It greatly improves development efficiency, avoids conflicts between signals, reduces development costs, and reduces data transmission problems caused by development naming conflicts through standardized naming.
Smart Images

Figure CN120050276A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of automotive electronics technology, and particularly relates to a method, device, equipment and medium for transmitting body signal data. Background Technique
[0002] With the increasing complexity of in-vehicle functions, the communication requirements between various electronic control units (ECUs) or domains are constantly increasing, and cross-domain information transmission has become the key to realizing the intelligent functions of modern vehicles. The instrument panel of modern vehicles not only needs to display traditional vehicle status information, but also needs to be able to receive and display data from other domains in real time, such as song playing information from the Android system, as well as real-time traffic conditions and navigation instructions provided by Amap Navigation. These cross-domain information transmission requirements require the in-vehicle communication system to have high flexibility and scalability.
[0003] To meet these functional requirements, the in-vehicle communication system uses the SOME / IP protocol and the IPCP protocol to transmit relevant data from the Android system to the microcontroller unit (MCU) and the dimming control pin (DIM) to ensure the accurate transmission and display of the required information. However, in the prior art, SOME / IP signals and IPCP signals may conflict during the transmission process, resulting in data transmission problems. In addition, due to the large number and complex content of the signals that need to be maintained, the risk of signal confusion is also increased. Summary of the Invention
[0004] The purpose of the present invention is to provide a method, device, equipment and medium for transmitting body signal data, which solves the technical problems that SOME / IP signals and IPCP signals may conflict in the transmission path in the prior art, and the risk of signal confusion is increased under the traditional management method due to the large number and complex structure of the signals.
[0005] To solve the above technical problems, the present invention is realized through the following technical solutions:
[0006] The present invention provides a method for transmitting body signal data, which includes:
[0007] Obtain a signal database document, where the signal database document includes definition information of different types of body signals;
[0008] Extract the required body signal definition information from the signal database document by using a preset body signal template file to generate a body signal file in a preset format;
[0009] Parse the vehicle body signal file using a preset script, and generate a corresponding target code file according to the parsing result;
[0010] Move the header file and related files of the target code file to the target path, and package and send all files under the target path to the target unit, where the target unit includes an MCU and a DIM.
[0011] In an embodiment of the present invention, the method further includes:
[0012] Obtain the interface definition document of the target unit;
[0013] According to the target code file, extract the required interface definition information from the interface definition document using a preset interface template file to generate an interface file in a preset format;
[0014] Parse the interface file using a preset script, and generate a corresponding interface code file according to the parsing result;
[0015] Send the interface code file to the target unit.
[0016] In an embodiment of the present invention, the extracting the required vehicle body signal definition information from the signal database document using a preset vehicle body signal template file to generate a vehicle body signal file in a preset format includes:
[0017] Determine the associated preset vehicle body signal template file according to the vehicle body signal type, and the preset vehicle body signal template file has predefined the specific formats required for different vehicle body signal types;
[0018] Extract the required vehicle body signal definition information from the signal database document and fill it into the associated preset vehicle body signal template file;
[0019] Perform format conversion processing on the preset vehicle body signal template file filled with information to generate a vehicle body signal file in a preset format.
[0020] In an embodiment of the present invention, the vehicle body signal types include vehicle configuration signals, CB / PA signals, transparent transmission signals, and SOME / IP signals.
[0021] In an embodiment of the present invention, the parsing the vehicle body signal file using a preset script, and generating a corresponding target code file according to the parsing result includes:
[0022] Parse the vehicle body signal file into python dictionary data using a preset script;
[0023] Concatenate the parsed Python dictionary data according to the format of the vehicle body signal file;
[0024] Open the corresponding code file by means of a file stream, and append the parsed signal code to the corresponding code file to generate the target code file.
[0025] In one embodiment of the present invention, the step of opening the corresponding code file by means of a file stream, and appending the parsed signal code to the corresponding code file to generate the target code file includes:
[0026] Obtain the unique identifier of the corresponding code file;
[0027] According to the unique identifier of the corresponding code file, open the corresponding code file by means of a file stream, and append the parsed signal code to the corresponding code file to generate the target code file.
[0028] In one embodiment of the present invention, the step of moving the header file and related files of the target code file to the target path, and packing and sending all the files under the target path to the target unit includes:
[0029] Obtain the header file of the target code file, the specific format file generated during the code generation process, and the code interpreter matching the target code file;
[0030] Move the header file of the target code file to the first sub-directory under the target path, move the specific format file to the second sub-directory under the target path, and move the code interpreter to the third sub-directory under the target path, where the first sub-directory, the second sub-directory, and the third sub-directory are sibling sub-directories under the target path;
[0031] Pack and send all the files under the target path to the target unit.
[0032] Based on the same inventive concept, another embodiment of the present invention further provides a vehicle body signal data transmission device, the device includes:
[0033] A data acquisition module, configured to acquire a signal database document, where the signal database document includes vehicle body signal definition information of different types;
[0034] A data extraction module, configured to extract the required vehicle body signal definition information from the signal database document by using a preset vehicle body signal template file to generate a vehicle body signal file in a preset format;
[0035] A data parsing module, configured to parse the vehicle body signal file by using a preset script and generate a corresponding target code file according to the parsing result;
[0036] A data output module, configured to move the header file and related files of the target code file to a target path, and package and send all the files under the target path to a target unit, where the target unit includes an MCU and a DIM.
[0037] Based on the same inventive concept, another embodiment of the present invention further provides an electronic device, where the electronic device includes:
[0038] One or more processors;
[0039] A storage device, configured to store one or more programs, and when the one or more programs are executed by the one or more processors, enable the electronic device to implement the vehicle body signal data transmission method described in any of the above embodiments.
[0040] Based on the same inventive concept, another embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor of a computer, enable the computer to execute the vehicle body signal data transmission method described in any of the above embodiments.
[0041] As described above, a vehicle body signal data transmission method provided by the present invention includes obtaining a signal database document, where the signal database document includes vehicle body signal definition information of different types, extracting the required vehicle body signal definition information from the signal database document by using a preset vehicle body signal template file to generate a vehicle body signal file in a preset format, parsing the vehicle body signal file by using a preset script, generating a corresponding target code file according to the parsing result, moving the header file and related files of the target code file to a target path, and packaging and sending all the files under the target path to a target unit, where the target unit includes an MCU and a DIM. The method automatically generates signals by using a script, greatly improving the development efficiency. At the same time, the SOME / IP signal and the IPCP signal are transmitted separately to avoid signal conflicts. In addition, naming conflicts in development are avoided by standardizing naming, saving development costs overall. Of course, any product implementing the present invention does not necessarily need to achieve all the above advantages at the same time. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention, and those of ordinary skill in the art can also obtain other drawings without creative efforts based on these drawings.
[0043] Figure 1 A flowchart of a method for transmitting vehicle body signal data provided by an exemplary embodiment of the present application.
[0044] Figure 2 A system block diagram of a method for transmitting vehicle body signal data provided by an exemplary embodiment of the present application.
[0045] Figure 3 A schematic structural diagram of a vehicle body signal data transmission device provided by another exemplary embodiment of the present application.
[0046] Figure 4 A schematic structural diagram of an electronic device provided by another exemplary embodiment of the present application. Detailed implementation manners
[0047] The following uses specific specific examples to illustrate the implementation manners of the present invention. Those skilled in the art can easily understand other advantages and effects of the present invention from the content disclosed in this specification. The present invention can also be implemented or applied through other different specific implementation manners. Various details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that, without conflict, the following embodiments and the features in the embodiments can be combined with each other.
[0048] It should be noted that the drawings provided in the following embodiments only illustrate the basic concept of the present invention in a schematic manner. Therefore, only the components related to the present invention are shown in the drawings, rather than being drawn according to the number, shape, and size of the components in actual implementation. The type, quantity, and ratio of each component in actual implementation can be arbitrarily changed, and the component layout type may also be more complex.
[0049] In the following description, a large number of details are discussed to provide a more thorough explanation of the embodiments of the present invention. However, it is obvious to those skilled in the art that the embodiments of the present invention can be implemented without these specific details. In other embodiments, well-known structures and devices are shown in the form of block diagrams rather than in detail to avoid making the embodiments of the present invention difficult to understand.
[0050] In order to solve the technical problems that may occur in the transmission path of SOME / IP signals and IPCP signals in the prior art, and the risk of signal disorder increases due to a large number of signal types and complex structures under the traditional management method, the present invention proposes a method for transmitting vehicle body signal data, which generates signals through an automated script and separates and transmits SOME / IP signals and IPCP signals, thereby greatly improving the development efficiency and effectively avoiding conflicts between signals.
[0051] Please refer to Figure 1 As shown, in an exemplary embodiment of the present application, the vehicle body signal data transmission method includes the following steps:
[0052] S100: Obtain a signal database document, where the signal database document includes vehicle body signal definition information of different types;
[0053] S200: Use a preset vehicle body signal template file to extract the required vehicle body signal definition information from the signal database document to generate a vehicle body signal file in a preset format;
[0054] S300: Use a preset script to parse the vehicle body signal file and generate a corresponding target code file according to the parsing result;
[0055] S400: Move the header file and related files of the target code file to the target path, and package and send all the files under the target path to the target unit, where the target unit includes an MCU and a DIM.
[0056] In an exemplary embodiment of the present application, the vehicle body signal data transmission method further includes:
[0057] Obtain an interface definition document of the target unit;
[0058] According to the target code file, use a preset interface template file to extract the required interface definition information from the interface definition document to generate an interface file in a preset format;
[0059] Use a preset script to parse the interface file and generate a corresponding interface code file according to the parsing result;
[0060] Send the interface code file to the target unit.
[0061] The steps in the above vehicle body signal data transmission method will be elaborated in detail below.
[0062] It should be noted that the DIM is the Dimming Control Pin. The Microcontroller Unit (MCU) usually integrates a large number of peripherals and functional modules. The interaction between each functional module needs to be implemented through complex interfaces. Manually writing the code for these interfaces is not only time-consuming and laborious but also error-prone. Due to the large number of interfaces, it is difficult to ensure the consistency of the manually written code, increasing the difficulty of later maintenance and modification. By writing a code generation tool in Python, it is possible to automatically generate code related to the MCU function interaction interface. The code generation tool usually relies on templates or configuration files and can generate code in a specific format according to different inputs. The automated code generation tool can significantly reduce the time for manually writing code, enabling developers to focus more on function implementation and algorithm optimization. Since the code generation tool can generate code according to preset rules and templates, the generated code usually has high consistency, which helps to reduce the workload of later maintenance and modification and improve the readability and maintainability of the code.
[0063] The code generation tool is mainly applied to generate the set, get, and callback interface codes of the Manager layer and is also applicable to the encoding and decoding process of network data. The MCU can use the document as input to generate code in a specific format. It should be noted that the set, get, and callback interfaces of the Manager layer are usually used to implement data interaction between the MCU and external devices or modules. Through the code generation tool, the code for the corresponding interfaces can be automatically generated, thus simplifying the development process. When the MCU communicates with external devices or the network, it is necessary to encode and decode the data. The code generation tool can automatically generate the corresponding encoding and decoding codes according to the communication protocol to ensure the correct transmission and processing of the data.
[0064] Please refer to Figure 2 As shown, the internal architecture of the System on Chip (SOC) includes the API layer, JAVA layer, and Native layer. The API (Application Programming Interface) layer serves as the interface between the SOC and external applications, allowing external applications to access the functions and services of the SOC in a standard manner. The JAVA layer is responsible for implementing various functions and business logics of the SOC, including data processing modules, communication control modules, user interface modules, etc. Through the JAVA layer, the SOC can process requests from the API layer and return corresponding results. The Native layer is responsible for implementing functions related to hardware, such as hardware drivers, interrupt handling, and underlying communication protocols. The Native layer may also include some high-performance computing modules for processing complex computing tasks.
[0065] First, step S100 is executed, that is, a signal database document is obtained, and the signal database document includes body signal definition information of different types.
[0066] Specifically, a signal database (SDB) document at a preset position is obtained. The SDB document includes key information such as interface definitions between electronic control units (ECUs) and time requirements for signal transmission. The interface definitions between the ECUs include information such as signal names, data types, and physical ranges, providing clear specifications for data exchange between the ECUs. The time requirements for signal transmission include signal sending periods, response times, etc., ensuring the real-time performance and accuracy of communication.
[0067] In an exemplary embodiment of the present application, the body signals include vehicle configuration signals, CB / PA signals, pass-through signals, and SOME / IP signals.
[0068] Specifically, in this embodiment, the body signals include vehicle configuration signals based on the IPCP protocol, TX and RX pass-through signals based on the IPCP protocol, TX and RX signals based on the SOME / IP protocol, and CB / PA signals additionally modified by each module of the software component. It should be noted that the application form for vehicle configuration signals based on the IPCP protocol is associated with the signal_generator / config / CarConfig.xlsx file; the application form for TX pass-through signals based on the IPCP protocol is associated with the signal_generator / config / DHU / 20R3 / TX.xlsx file, and the application form for RX pass-through signals based on the IPCP protocol is associated with the signal_generator / config / DHU / 20R3 / RX.xlsx file; the application form for TX signals based on the SOME / IP protocol is associated with the signal_generator / config / DHU / 20R3 / TXSOMEIP.xlsx, and the application form for RX signals based on the SOME / IP protocol is associated with the signal_generator / config / DHU / 20R3 / RXSOMEIP.xlsx; the application form for CB / PA signals additionally modified by each module of the software component is associated with cbpa_generator / inputdoc / *.xlsx, where *.xlsx indicates that there are multiple Excel files, and each Excel file contains CB / PA signal information for a specific module.
[0069] Next, step S200 is executed, that is, the required vehicle body signal definition information is extracted from the signal database document by using a preset vehicle body signal template file to generate a vehicle body signal file in a preset format.
[0070] In an exemplary embodiment of the present application, in step S200, the extracting the required vehicle body signal definition information from the signal database document by using a preset vehicle body signal template file to generate a vehicle body signal file in a preset format further includes the following steps:
[0071] S210: Determine the associated preset vehicle body signal template file according to the vehicle body signal type, and the preset vehicle body signal template file has predefined the specific formats required for different vehicle body signal types;
[0072] S220: Extract the required vehicle body signal definition information from the signal database document and fill it into the associated preset vehicle body signal template file;
[0073] S230: Perform format conversion processing on the preset vehicle body signal template file filled with information to generate a vehicle body signal file in a preset format.
[0074] Specifically, according to the specific type of the vehicle body signal, determine the associated preset vehicle body signal template file, and the preset vehicle body signal template file has predefined the specific formats and structures required for different vehicle body signal types. In this embodiment, the preset vehicle body signal template file is the Excel application form associated with different types of vehicle body signals. For example, if the vehicle body signal is a TX transparent transmission signal based on the IPCP protocol, the preset vehicle body signal template file is the signal_generator / config / DHU / 20R3 / TX.xlsx file. Extract the required vehicle body signal definition information from the SDB document and fill it into the associated preset vehicle body signal template file, and then perform format conversion processing on the preset vehicle body signal template file filled with information to generate a corresponding vehicle body signal xml file for subsequent further processing.
[0075] Immediately afterwards, step S300 is executed, that is, the vehicle body signal file is parsed by using a preset script, and a corresponding target code file is generated according to the parsing result.
[0076] In an exemplary embodiment of the present application, in step S300, the parsing the vehicle body signal file by using a preset script and generating a corresponding target code file according to the parsing result further includes the following steps:
[0077] S310: Parse the vehicle body signal file into python dictionary data by using a preset script;
[0078] S320: Concatenate the parsed Python dictionary data according to the format of the vehicle body signal file;
[0079] S330: Open the corresponding code file by means of a file stream, and append the parsed signal code to the corresponding code file to generate the target code file.
[0080] In an exemplary embodiment of the present application, in step S330, the step of opening the corresponding code file by means of a file stream, and append the parsed signal code to the corresponding code file to generate the target code file further includes the following steps:
[0081] S331: Obtain the unique identifier of the corresponding code file;
[0082] S332: According to the unique identifier of the corresponding code file, open the corresponding code file by means of a file stream, and append the parsed signal code to the corresponding code file to generate the target code file.
[0083] Specifically, use a preset script to parse the vehicle body signal xml file, and generate a corresponding target code file according to the parsing result. Taking the addition of transparent transmission signals as an example, open TX.xlsx in the signal_generator / config / DHU / 20R3 / TX.xlsx directory and fill in the corresponding information, convert the xlsx to xml and replace the previous version of the xml file in the current directory, and then enter the vendor / ecarx / packages / service / ECarXCar / tools / directory to execute several preset scripts. In this embodiment, the number of preset scripts is three. Of course, in other embodiments, according to different application scenarios and actual requirements, the number of preset scripts is different. Taking one of the scripts as an example for detailed description, for example, the generate_signal_all_and_app.py script in the vendor / ecarx / packages / service / ECarXCar / tools / signal_generator / directory, use this script to parse the content in the vehicle body signal xml file into Python dictionary data, and concatenate the parsed Python dictionary data according to the format of the vehicle body signal xml file, then obtain the unique identifier of the corresponding code file, and according to the unique identifier, open the corresponding code file by means of a file stream, and append the parsed signal code to the corresponding code file to generate a new code file as the target code file.
[0084] Finally, step S400 is executed, that is, the header file and related files of the target code file are moved to the target path, and all files under the target path are packaged and sent to the target unit, where the target unit includes an MCU and a DIM.
[0085] In an exemplary embodiment of the present application, in step S400, the moving the header file and related files of the target code file to the target path and packaging and sending all files under the target path to the target unit further includes the following steps:
[0086] S410: Obtain the header file of the target code file, the specific format file generated during the code generation process, and the code interpreter matching the target code file;
[0087] S420: Move the header file of the target code file to the first sub-directory under the target path, move the specific format file to the second sub-directory under the target path, and move the code interpreter to the third sub-directory under the target path, where the first sub-directory, the second sub-directory, and the third sub-directory are sibling sub-directories under the target path.
[0088] S430: Package and send all files under the target path to the target unit.
[0089] It should be noted that before moving the header file of the target code file to the first sub-directory under the target path, all other files except the AudioProtocol.h file in the first sub-directory need to be deleted. After receiving all the packaged files, the MCU processes them, thus realizing the data transmission of the vehicle body signals.
[0090] In summary, the present invention provides a method for vehicle body signal data transmission. By obtaining a signal database document, which includes the definition information of different types of vehicle body signals, using a preset vehicle body signal template file to extract the required vehicle body signal definition information from the signal database document to generate a vehicle body signal file in a preset format, using a preset script to parse the vehicle body signal file, and generating a corresponding target code file according to the parsing result, moving the header file and related files of the target code file to the target path, and packaging and sending all files under the target path to the target unit, where the target unit includes an MCU and a DIM. The method automatically generates signals using a script, greatly improving the development efficiency. At the same time, the SOME / IP signal and the IPCP signal are separated and transmitted, avoiding signal conflicts. In addition, by standardizing the naming, the data transmission problems caused by naming conflicts in development are avoided, saving the development cost as a whole.
[0091] Based on the same inventive concept, please refer to Figure 3 As shown, another embodiment of the present invention further provides a vehicle body signal data transmission device 11, and the device includes:
[0092] A data acquisition module 111, configured to acquire a signal database document, where the signal database document includes body signal definition information of different types;
[0093] A data extraction module 112, configured to extract the required body signal definition information from the signal database document by using a preset vehicle body signal template file to generate a vehicle body signal file in a preset format;
[0094] A data parsing module 113, configured to parse the vehicle body signal file by using a preset script and generate a corresponding target code file according to the parsing result;
[0095] A data output module 114, configured to move the header file and related files of the target code file to a target path, and package and send all the files under the target path to a target unit, where the target unit includes an MCU and a DIM.
[0096] Based on the same inventive concept, please refer to Figure 4 As shown, another embodiment of the present invention further provides an electronic device 1, and the electronic device 1 may include a memory 12, a processor 13, and a bus, and may further include a computer program stored in the memory 12 and operable on the processor 13, such as a vehicle body signal data transmission program.
[0097] Among them, the memory 12 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, a mobile hard disk, a multimedia card, a card-type memory (such as an SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disc, etc. The memory 12 may be an internal storage unit of the electronic device 1 in some embodiments, such as the mobile hard disk of the electronic device 1. The memory 12 may also be an external storage device of the electronic device 1 in other embodiments, such as a plug-in mobile hard disk, a Smart Media Card (SMC), a Secure Digital (SD) card, a Flash Card, etc. equipped on the electronic device 1. Further, the memory 12 may also include both the internal storage unit and the external storage device of the electronic device 1. The memory 12 can be used not only to store application software installed in the electronic device 1 and various types of data, such as the code for vehicle body signal data transmission, etc., but also to temporarily store data that has been output or will be output.
[0098] In some embodiments, the processor 13 may be composed of an integrated circuit. For example, it may be composed of a single packaged integrated circuit, or may be composed of multiple packaged integrated circuits with the same or different functions, including a combination of one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and various control chips. The processor 13 is the control core of the electronic device 1. It uses various interfaces and circuits to connect all components of the entire electronic device 1. By running or executing programs or modules (such as vehicle body signal data transmission programs, etc.) stored in the memory 12, and by calling the data stored in the memory 12, it executes various functions of the electronic device 1 and processes data.
[0099] The processor 13 executes the operating system of the electronic device 1 and various installed application programs. The processor 13 executes the application programs to implement the steps in the above vehicle body signal data transmission method.
[0100] Exemplarily, the computer program may be divided into one or more modules. The one or more modules are stored in the memory 12 and executed by the processor 13 to complete this application. The one or more modules may be a series of computer program instruction segments capable of completing specific functions, and these instruction segments are used to describe the execution process of the computer program in the electronic device 1. For example, the computer program may be divided into a data acquisition module 111, a data extraction module 112, a data parsing module 113, and a data output module 114.
[0101] The above integrated unit implemented in the form of software function modules may be stored in a computer-readable storage medium. The computer-readable storage medium may be non-volatile or volatile. The above software function modules are stored in a storage medium and include several instructions to enable a computer device (which may be a personal computer, a computer device, or a network device, etc.) or a processor to execute some functions of the vehicle body signal data transmission method described in various embodiments of this application.
[0102] The above embodiments merely illustrate the principles and effects of the present invention and are not used to limit the present invention. Any person familiar with this technology can modify or change the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or changes completed by those with ordinary knowledge in the technical field without departing from the spirit and technical ideas disclosed by the present invention should still be covered by the claims of the present invention.
Claims
1. A vehicle body signal data transmission method, characterized in that: include: Acquire a signal database document, wherein the signal database document includes different types of vehicle body signal definition information; Extracting required vehicle body signal definition information from the signal database document using a preset vehicle body signal template file to generate a vehicle body signal file in a preset format; Analyze the vehicle body signal file using a preset script, and generate a corresponding target code file according to the analysis result; The header file and related files of the target code file are moved to the target path, and all files under the target path are packaged and sent to the target unit, which includes the MCU and DIM.
2. The vehicle body signal data transmission method according to claim 1, characterized in that: The method further comprises: Get the interface definition document of the target unit; According to the target code file, and using a preset interface template file, the required interface definition information is extracted from the interface definition document to generate an interface file in a preset format; Utilize a preset script to parse the interface file, and generate a corresponding interface code file according to the parsing result; The interface code file is sent to the target unit.
3. The vehicle body signal data transmission method according to claim 1, characterized in that: The method of extracting the required vehicle body signal definition information from the signal database document using the preset vehicle body signal template file to generate a vehicle body signal file in a preset format includes: Determining an associated preset body signal template file according to the body signal type, wherein the preset body signal template file has predefined specific formats required for different body signal types; Extracting the required vehicle body signal definition information from the signal database document and filling it into the associated preset vehicle body signal template file; The preset vehicle body signal template file filled with information is format converted to generate a vehicle body signal file in a preset format.
4. The vehicle body signal data transmission method according to claim 3, characterized in that: The vehicle body signal types include vehicle configuration signals, CB / PA signals, transparent transmission signals and SOME / IP signals.
5. The vehicle body signal data transmission method according to claim 1, characterized in that: The method of parsing the vehicle body signal file using a preset script and generating a corresponding target code file according to the parsing result includes: Parsing the vehicle body signal file into Python dictionary data using a preset script; The parsed python dictionary data is spliced according to the format of the vehicle body signal file; The corresponding code file is opened by means of a file stream, and the signal code obtained by parsing is appended to the corresponding code file to generate the target code file.
6. The vehicle body signal data transmission method according to claim 5, characterized in that: The step of opening the corresponding code file by means of a file stream and appending the parsed signal code to the corresponding code file to generate the target code file includes: Get the unique identifier of the corresponding code file; According to the unique identifier of the corresponding code file, the corresponding code file is opened by means of a file stream, and the signal code obtained by parsing is appended to the corresponding code file to generate the target code file.
7. The vehicle body signal data transmission method according to claim 1, characterized in that: The step of moving the header file and related files of the target code file to the target path, and packaging all files under the target path and sending them to the target unit includes: Obtaining a header file of the target code file, a specific format file generated during code generation, and a code interpreter matching the target code file; Move the header file of the target code file to the first subdirectory under the target path, move the specific format file to the second subdirectory under the target path, and move the code interpreter to the third subdirectory under the target path, wherein the first subdirectory, the second subdirectory, and the third subdirectory are subdirectories of the same level under the target path; All files under the target path are packaged and sent to the target unit.
8. A vehicle body signal data transmission device, characterized in that: The device comprises: A data acquisition module, used to acquire a signal database document, wherein the signal database document includes different types of vehicle body signal definition information; A data extraction module, used to extract the required body signal definition information from the signal database document using a preset body signal template file to generate a body signal file in a preset format; A data analysis module, used to analyze the vehicle body signal file using a preset script, and generate a corresponding target code file according to the analysis result; The data output module is used to move the header file and related files of the target code file to the target path, and package all files under the target path and send them to the target unit, which includes the MCU and the DIM.
9. An electronic device, characterized in that: The electronic device comprises: one or more processors; A storage device for storing one or more programs, which, when executed by the one or more processors, enables the electronic device to implement the vehicle body signal data transmission method as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a processor of a computer, the computer is caused to execute the vehicle body signal data transmission method as claimed in any one of claims 1 to 7.