Signal packaging method and device, computer equipment and storage medium
By directly packaging project signals using the PDU component information of the target platform signal in the on-board network, the complex and time-consuming problem of signal packaging process is solved, efficiency is improved, resources are saved, and system performance is improved.
Patent Information
- Application Number
- CN202411187214.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-27
- Publication Date
- 2025-01-10
AI Technical Summary
In vehicle network design, the signal packaging process is complex and time-consuming, especially when multiple signals need to be transmitted between different electronic control units, the prior art is difficult to efficiently manage and package.
By obtaining the project signal to be packaged, and generating a matching PDU based on the protocol data unit (PDU) component information of the target platform signal, the project signal is packaged into the PDU. If the project signal matches the target platform signal name, the target platform will be directly used The PDU component information of the signal is packaged; if it does not match, the user is prompted to input component information to generate a PDU.
It greatly improves the packaging efficiency of project signals that are the same as platform signals, reduces the need to repeatedly create component information, saves the storage resources of computer equipment, and improves system performance.
Smart Images

Figure CN119299475A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle communication technology, and in particular to a signal packaging method, device, computer equipment and storage medium. Background Art
[0002] In-vehicle network signal packaging technology is a vital component of modern automotive electronic systems, which aims to effectively manage and transmit data between various electronic control units (ECUs) inside the vehicle. When designing an in-vehicle network, there is a lot of signal data under one network segment, and the signal definition and packaging involved become complicated and time-consuming. Summary of the invention
[0003] The present application proposes a signal packaging method, apparatus, computer equipment and storage medium to improve the efficiency of signal packaging.
[0004] In a first aspect, an embodiment of the present application provides a signal packaging method, the method comprising: obtaining a project signal to be packaged; if the signal name of the project signal matches the signal name of a target platform signal, generating a first PDU according to the component information corresponding to the protocol data unit PDU used to package the target platform signal, the target platform signal being any one of a plurality of packaged platform signals; and packaging the project signal into the first PDU.
[0005] In the second aspect, an embodiment of the present application provides a signal packaging device, which includes: a signal acquisition module, a PDU generation module and a signal packaging module. The signal acquisition module is used to acquire the project signal to be packaged; the PDU generation module is used to generate a first PDU according to the component information corresponding to the protocol data unit PDU used to package the target platform signal if the signal name of the project signal matches the signal name of the target platform signal, and the target platform signal is any platform signal among the packaged multiple platform signals; the signal packaging module is used to package the project signal into the first PDU.
[0006] In a third aspect, an embodiment of the present application provides a computer device, comprising: one or more processors; a memory; one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the above-mentioned method.
[0007] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a program code is stored. The program code can be called by a processor to execute the above method.
[0008] In the solution provided by the present application, a project signal to be packaged is obtained; if the signal name of the project signal matches the signal name of the target platform signal, a first PDU is generated according to the component information corresponding to the protocol data unit PDU used to package the target platform signal, and the target platform signal is any platform signal among the packaged multiple platform signals; the project signal is packaged into the first PDU. In this way, the packaging efficiency of the project signal that is the same as the platform signal is greatly improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0010] Figure 1 A flow chart of a signal packaging method provided in an embodiment of the present application is shown.
[0011] Figure 2 A schematic flow chart of a signal packaging method provided in another embodiment of the present application is shown.
[0012] Figure 3 A working principle diagram of packaging project signals with the same name provided in an embodiment of the present application is shown.
[0013] Figure 4 It is a block diagram of a signal packaging device provided according to an embodiment of the present application.
[0014] Figure 5 It is a block diagram of a computer device according to an embodiment of the present application for executing the signal packaging method according to an embodiment of the present application.
[0015] Figure 6 It is a storage unit of an embodiment of the present application for storing or carrying program codes for implementing the signal packaging method according to an embodiment of the present application. DETAILED DESCRIPTION
[0016] In order to enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0017] It should be noted that in some processes described in the specification, claims and the above-mentioned drawings of the present application, multiple operations that appear in a specific order are included, and these operations may not be executed or executed in parallel in the order in which they appear in this article. The sequence numbers of operations such as S110, S120, etc. are only used to distinguish different operations, and the sequence numbers themselves do not represent any execution order. In addition, these processes may include more or less operations, and these operations may be executed in sequence or in parallel. And, the terms "first", "second", etc. in the specification, claims and the above-mentioned drawings of the present application are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described here can be implemented in an order other than those illustrated or described here. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or server that includes a series of steps or sub-modules is not necessarily limited to those steps or sub-modules explicitly listed, but may include other steps or sub-modules that are not explicitly listed or that are inherent to these processes, methods, products, or devices.
[0018] The inventor proposes a signal packaging method, device, computer equipment and storage medium. The signal packaging method provided in the embodiment of the present application is described in detail below.
[0019] Please refer to Figure 1 , Figure 1 A flow chart of a signal packaging method provided in an embodiment of the present application. Figure 1 The signal packaging method provided in the embodiment of the present application is described in detail. The signal packaging method may include the following steps:
[0020] Step S110: Obtain the project signal to be packaged.
[0021] The present application may be a signal packaging method implemented based on the PREEvision platform, which is deployed in a computer device, wherein PREEvision is a model-based graphical electronic and electrical architecture development tool that can be used to develop the electronic and electrical architecture of a vehicle at the whole vehicle or system level. After completing the design of the vehicle electrical architecture in the PRE Evision platform, the signals transmitted between the electronic control units (Electronic Control Unit, ECU) in the vehicle electrical architecture can be defined and packaged. In other words, the above-mentioned project signals to be packaged can be data that needs to be transmitted between the electronic control units in the vehicle electrical architecture currently designed for any vehicle. It should be noted that the project signals to be packaged may include one or more project signals, and this embodiment does not limit this. Among them, the project signals to be packaged can be given according to user needs.
[0022] Among them, when the project signal to be packaged includes multiple project signals, different project signals can be signals transmitted between different electronic control unit combinations, or different types of signals transmitted between the same electronic control unit combinations, or signals transmitted between the same electronic control unit combinations in different network segments. This embodiment does not impose any restrictions on this.
[0023] Step S120: If the signal name of the project signal matches the signal name of the target platform signal, a first PDU is generated according to the component information corresponding to the protocol data unit PDU used to package the target platform signal, and the target platform signal is any platform signal among the packaged multiple platform signals.
[0024] It is understandable that different vehicle electrical architectures are generally designed for different types of vehicles, and multiple vehicle electrical architectures are often designed for the same type of vehicle, and then each vehicle electrical architecture is scored, and finally the vehicle electrical architecture with the highest score is selected as the target electrical architecture vehicle of the type of vehicle. Although there are differences between different vehicle electrical architectures, generally some electronic control units have the same design connections, and some data signals transmitted between electronic control units are also the same.
[0025] Based on this, the signal packaging function is first optimized for the PREEvision platform, and the Metric (i.e., secondary development) data processing function is added. In addition, the PREEvision platform generally pre-stores multiple shared platform signals and multiple component information, and there is a one-to-one correspondence between multiple platform signals and multiple component information (artifacts). Among them, each component information often also contains multiple component attribute parameters, and then based on the multiple component attribute parameters, a protocol data unit (PDU) can be generated for packaging the platform signal corresponding to each component information.
[0026] For example, the PREEvision platform may include platform signal A and platform signal B, as well as component information A and component information B, wherein platform signal A is a signal transmitted between electronic control unit 1 and electronic control unit 2 in the vehicle electrical architecture, and platform signal B is a signal transmitted between electronic control unit 2 and electronic control unit 3. At this time, component information A can generate PDU-A for packaging platform signal A, so that after platform signal A is packaged into PDU-A, electronic control unit 1 transmits it to electronic control unit 2. Component information B can generate PDU-B for packaging platform signal B, so that after platform signal B is packaged into PDU-B, electronic control unit 2 transmits it to electronic control unit 3.
[0027] For another example, the PREEvision platform may include platform signal 1 and platform signal 2, as well as component information 1 and component information 2, wherein platform signal 1 is the first signal transmitted between the electronic control unit 1 and the electronic control unit 2 in the vehicle electrical architecture, and platform signal 2 is the second signal transmitted between the electronic control unit 1 and the electronic control unit 2, and the first signal is different from the second signal. At this time, component information 1 can generate PDU-1 for packaging platform signal 1, so that after the platform signal 1 is packaged into PDU-1, the electronic control unit 1 transmits it to the electronic control unit 2. Component information 2 can generate PDU-2 for packaging platform signal 2, so that after the platform signal 2 is packaged into PDU-2, the electronic control unit 1 transmits it to the electronic control unit 2.
[0028] Based on this, after obtaining the project signal to be packaged, in order to improve the packaging efficiency of the project signal to be packaged, it is possible to first detect whether there is a target platform signal with the same signal name as the project signal among multiple platform signals. If it is detected that there is a target platform signal with the same signal name as the project signal to be packaged (i.e., matching), it can be determined that the project signal to be packaged and the target platform signal are the same signal, and therefore, a PDU identical to the PDU used to package the target platform signal can be generated to package the project signal. In other words, the component information corresponding to the protocol data unit PDU used to package the target platform signal can be obtained, and the first PDU can be generated based on the component information corresponding to the protocol data unit PDU used to package the target platform signal.
[0029] Optionally, before step S120, the computer device may respond to a signal import operation based on the target display area input and use the multiple signals imported by the signal import operation as multiple platform signals; that is, the user may select multiple signals pre-stored in the PREEvision platform by mouse identification and drag the multiple signals to the Contextblock, and correspondingly, the computer device may respond to the drag operation and use the multiple signals as the aforementioned multiple platform signals.
[0030] Step S130: Pack the project signal into the first PDU.
[0031] Furthermore, the project signal to be packaged can be quickly packaged into the first PDU generated above.
[0032] Optionally, if the project signal to be packaged includes multiple project signals, and the signal name of each project signal is the same as the signal name of a platform signal, then the first PDU corresponding to each project signal can be generated according to the content of step S120, and then each project signal is packaged into the first PDU corresponding to each project signal. Obviously, this application is aimed at the scenario where project signals with the same name as platform signals appear when designing multi-project product lines, and can realize the packaging of each project signal more quickly, thereby greatly improving the packaging efficiency; and there is no need to repeatedly create the same component information, which saves the storage resources of the computer device to a certain extent, thereby improving the system performance of the computer device.
[0033] In this embodiment, a project signal to be packaged is obtained; if the signal name of the project signal matches the signal name of the target platform signal, a first PDU is generated according to the component information corresponding to the protocol data unit PDU used to package the target platform signal, and the target platform signal is any platform signal among the packaged multiple platform signals; the project signal is packaged into the first PDU. In this way, the packaging efficiency of the project signal that is the same as the platform signal is greatly improved.
[0034] Please refer to Figure 2 , Figure 2 A flow chart of a signal packaging method provided in another embodiment of the present application. Figure 2 The signal packaging method provided in the embodiment of the present application is described in detail. The signal packaging method may include the following steps:
[0035] Step S210: Obtain the project signal to be packaged.
[0036] In this embodiment, the step S210 may refer to the contents in the aforementioned embodiments, which will not be described in detail here.
[0037] Step S220: If the signal name of the project signal matches the signal name of the target platform signal, the component information corresponding to the PDU used to package the target platform signal is copied from the setting folder to the project folder corresponding to the project signal.
[0038] In this embodiment, a corresponding project folder will be created in advance for the project signal to be packaged. For example, if the project signal to be packaged includes project signal A and project signal B, a corresponding project folder A will be created in advance for project signal A, and a corresponding project folder B will be created for project signal B. In addition, for each of the multiple platform signals mentioned above, a corresponding platform signal folder is also generated, and the platform signal folder corresponding to each platform signal in the multiple platform signals is a subfolder in the pre-established setting folder. In the platform signal folder corresponding to each platform signal, component information corresponding to the PDU used to package the platform signal will be stored. The component information may include a variety of component attributes, and the multiple component attributes include at least signal mapping parameters and PDU mapping parameters, and the signal mapping parameters include at least start bit parameters and bit length parameters.
[0039] Specifically, the various component attributes may include signal IPDU Assignment attributes, signal IPDU attributes, PDU Frame Assignment attributes, controller area network bus (Controller Area Network CAN) Frame attributes, and CAN Identifier List attributes. Among them, the signal IPDU Assignment attribute may include a signal name (Name), a start bit parameter, and an assigned signal (Assigned Signal); the PDU Frame Assignment attribute may include a name (Name), a bit length parameter (Bit Length), and an assigned PDU-Frame (PDU-FrameAssignment); the PDU Frame Assignment attribute may include a name (Name) and a data unit (PDU); the CANFrame attribute may include a name (Name) and a message identifier (Frame IDs); and the CAN Identifier List attribute may include a name (Name) and a message identifier (Frame ID).
[0040] Based on this, you can first automatically create multiple component attributes in the component information in the project folder corresponding to the project signal, and then copy the parameter value of each attribute parameter of the multiple component attributes in the component information corresponding to the PDU used to package the target platform signal, and paste the parameter value of each attribute parameter to the corresponding attribute parameter in the component information created in the project folder. In other words, for the project signal with the same name as the platform signal, automatically create multiple component attributes for generating the first PDU, and automatically and quickly fill in the attribute parameters in the multiple component attributes without manual filling, which greatly improves the efficiency of PDU creation, and then improves the efficiency of packaging project signals with the same name as the platform signal.
[0041] Step S230: In the project folder corresponding to the project signal, the first PDU is generated according to the component information corresponding to the PDU used to package the target platform signal.
[0042] Furthermore, the first PDU can be directly generated in the project folder corresponding to the project signal according to the component information corresponding to the PDU used to package the target platform signal. Figure 3As shown, the project signals to be packaged include the project signal corresponding to project 1, the project signal corresponding to project 2, and the project signal corresponding to project 3. If it is detected that the project signals corresponding to each of project 1, project 2, and project 3 are the same as the signal name of one of the platform signals among the multiple platform signals, then the first PDU1 for packaging the project signal corresponding to project 1, the first PDU2 for packaging the project signal corresponding to project 2, and the first PDU3 for packaging the project signal corresponding to project 3 can be created respectively in the manner of steps S220 to S230. It should be noted that if the project signals corresponding to project 1, project 2, and project 3 are the same signal, then the first PDU1, the first PDU2, and the first PDU3 created above are all the same PDU; conversely, if the project signals corresponding to project 1, project 2, and project 3 are three different signals, then the first PDU1, the first PDU2, and the first PDU3 created above are also three different PDUs.
[0043] Step S240: Map the item signal into the first PDU according to the start bit parameter and the bit length parameter.
[0044] Step S250: Create a target message.
[0045] Step S260: Map the first PDU to the target message according to the PDU mapping parameters, and generate a message identifier of the target message.
[0046] In this embodiment, a PDU is generally a data frame of a preset byte length, for example, a data frame of 8 bytes (i.e., 64 bits). A data frame generally contains multiple signals, and the position and length of each signal in the PDU need to be determined according to its start bit and length. Therefore, after generating the first PDU, the project signal can be mapped to the target position in the first PDU according to the start bit parameter and the bit length parameter. Then, the target message is created according to the parameters in the CAN Frame attribute and the parameters in the CAN Identifier List attribute; finally, the first PDU is mapped to the target message according to the signal IPDU attribute and the PDU Frame Assignment attribute, and the message identifier of the target message is generated.
[0047] Step S270: If the signal name of the project signal does not match the signal name of the target platform signal, a prompt message is output to prompt the user to input the target component information corresponding to the project signal.
[0048] Optionally, if there is no target platform signal in the plurality of platform signals whose signal name is the same as the name of the project signal, that is, there is no target platform signal whose signal name matches the name of the project signal, then it is impossible to automatically generate a PDU for packaging the project signal. Then, the computer device may output a prompt message, which may include the signal name of the project signal and a prompt text, thereby prompting the user to input parameter values of various attribute parameters in the plurality of attributes in the target component information corresponding to the project signal.
[0049] It should be noted that the prompt information may be outputted in the form of display on a display interface of a computer device, or in the form of voice broadcast via an audio broadcast accessory of the computer device, which is not limited in this embodiment.
[0050] Step S280: Generate a second PDU according to the target component information input based on the prompt information.
[0051] Step S290: Pack the project signal into the second PDU.
[0052] Based on this, the user can input the target construction information according to the output prompt information, that is, the user manually assigns values to the various parameters contained in the multiple attributes, and generates the second PDU according to the multiple attributes after the assignment. Then, the computer device packages the project signal into the generated second PDU. Similarly, after generating the second PDU, the project signal can be mapped to the target position in the second PDU according to the start bit parameter and the bit length parameter in the input target construction information. Then, create the target message according to the parameters in the CAN Frame attribute and the parameters in the CAN Identifier List attribute in the target construction information; finally, map the second PDU to the target message according to the signal IPDU attribute and the PDU FrameAssignment attribute in the target construction information, and generate the message identifier of the target message, thereby completing the encapsulation and packaging of the project signal.
[0053] In this embodiment, the project signal to be packaged is obtained; if the signal name of the project signal matches the signal name of the target platform signal, a first PDU is generated according to the component information corresponding to the protocol data unit PDU used to package the target platform signal, and the target platform signal is any platform signal among the packaged multiple platform signals; the project signal is packaged into the first PDU. In this way, the packaging efficiency of the project signal that is the same as the platform signal is greatly improved. In addition, if the signal name of the project signal does not match the signal name of the target platform signal, a prompt message is output to prompt the user to input the target component information corresponding to the project signal, and then a second PDU is generated based on the target component information input based on the prompt message, and the project signal is packaged into the second PDU. In other words, for project signals that are different from the platform signal, the user is promptly prompted to input the required target construction information, so that the corresponding PDU is quickly generated based on the input target construction information, so as to quickly realize the packaging of the project signal.
[0054] Please refer to Figure 4 , which shows a structural block diagram of a signal packaging device 300 provided in an embodiment of the present application. The device 300 may include: a signal acquisition module 310, a PDU generation module 320 and a signal packaging module 330.
[0055] The signal acquisition module 310 is used to acquire the project signal to be packaged.
[0056] The PDU generation module 320 is used to generate a first PDU according to the component information corresponding to the protocol data unit PDU used to package the target platform signal if the signal name of the project signal matches the signal name of the target platform signal, and the target platform signal is any platform signal among the packaged multiple platform signals.
[0057] The signal packaging module 330 is used to package the project signal into the first PDU.
[0058] In some embodiments, the PDU generation module 320 may specifically include: an information copying unit and a PDU generation unit. The information copying unit may be specifically used to copy the component information corresponding to the PDU used to package the target platform signal from the setting folder to the project folder corresponding to the project signal if the signal name of the project signal matches the signal name of the target platform signal. The PDU generation unit may be specifically used to generate the first PDU in the project folder corresponding to the project signal according to the component information corresponding to the PDU used to package the target platform signal.
[0059] In some implementations, the component information includes signal mapping parameters, and the signal mapping parameters include at least a start bit parameter and a bit length parameter. The signal packaging module 330 may be specifically configured to map the project signal into the first PDU according to the start bit parameter and the bit length parameter.
[0060] In this manner, the component information also includes a PDU mapping parameter. The signal packaging device 300 may also include: a message creation unit and a message mapping unit. The message creation unit may be specifically used to create a target message after mapping the project signal to the first PDU according to the start bit parameter and the bit length parameter. The message mapping unit may be used to map the first PDU to the target message according to the PDU mapping parameter, and generate a message identifier of the target message.
[0061] In some embodiments, the signal packaging device 300 may further include: a prompt module. The prompt module may be used to output a prompt message after obtaining the target project signal to be packaged, if the signal name of the project signal does not match the signal name of the target platform signal, to prompt the user to input the target component information corresponding to the project signal. The PDU generation module 320 may be used to generate a second PDU based on the target component information input based on the prompt message. The signal packaging module 330 may be used to package the project signal into the second PDU.
[0062] In this manner, the PDU generation module 320 may be specifically configured to generate the second PDU of a set byte length according to the target component information in the project folder corresponding to the project signal.
[0063] In some embodiments, the signal packaging device 300 may further include: a signal import module. The signal import module may be specifically used to, in response to a signal import operation based on a target display area input, use the multiple signals imported by the signal import operation as the multiple platform signals before generating the first PDU according to the component information corresponding to the protocol data unit PDU used to package the target platform signal if the signal name of the project signal matches the signal name of the target platform signal.
[0064] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and modules can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.
[0065] In several embodiments provided in the present application, the coupling between modules may be electrical, mechanical or other forms of coupling.
[0066] In addition, each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software functional modules.
[0067] In summary, the project signal to be packaged is obtained; if the signal name of the project signal matches the signal name of the target platform signal, a first PDU is generated according to the component information corresponding to the protocol data unit PDU used to package the target platform signal, and the target platform signal is any platform signal among the packaged multiple platform signals; the project signal is packaged into the first PDU. In this way, the packaging efficiency of the project signal that is the same as the platform signal is greatly improved.
[0068] The following will be combined Figure 5 A computer device provided by the present application is described.
[0069] Reference Figure 5 , Figure 5 The structural block diagram of a computer device 400 provided in an embodiment of the present application is shown, and the above method provided in an embodiment of the present application can be executed by the computer device 400. The computer device can be an electronic terminal with a data processing function, and the electronic terminal includes but is not limited to a tablet computer, a laptop computer, and a desktop computer; of course, the computer device can also be a server, and the server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, network acceleration services (Content Delivery Network, CDN), and big data and artificial intelligence platforms.
[0070] The computer device 400 in the embodiment of the present application may include one or more of the following components: a processor 401, a memory 402, and one or more applications, wherein the one or more applications may be stored in the memory 402 and configured to be executed by one or more processors 401, and the one or more programs are configured to execute the method as described in the aforementioned method embodiment.
[0071] The processor 401 may include one or more processing cores. The processor 401 uses various interfaces and lines to connect the various parts of the entire computer device 400, and executes various functions and processes data of the computer device 400 by running or executing instructions, programs, code sets or instruction sets stored in the memory 402, and calling data stored in the memory 402. Optionally, the processor 401 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 401 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem can also be integrated into the processor 401 and implemented separately through a communication chip.
[0072] The memory 402 may include a random access memory (RAM) or a read-only memory (ROM). The memory 402 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 402 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc. The data storage area may also store data (such as the various corresponding relationships described above) created by the computer device 400 during use.
[0073] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and modules can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.
[0074] In several embodiments provided in the present application, the coupling or direct coupling or communication connection between the modules shown or discussed may be an indirect coupling or communication connection through some interfaces, devices or modules, which may be electrical, mechanical or other forms.
[0075] In addition, each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software functional modules.
[0076] Please refer to Figure 6 , which shows a structural block diagram of a computer-readable storage medium provided in an embodiment of the present application. The computer-readable medium 500 stores program codes, which can be called by a processor to execute the method described in the above method embodiment.
[0077] The computer readable storage medium 500 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer readable storage medium 500 includes a non-transitory computer-readable storage medium. The computer readable storage medium 500 has storage space for program code 510 that performs any method step of the above method. These program codes can be read from or written to one or more computer program products. The program code 510 can be compressed, for example, in an appropriate form.
[0078] In some embodiments, a computer program product or computer program is provided, the computer program product or computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium. A processor of an electronic device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the electronic device performs the steps in the above-mentioned method embodiments.
[0079] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A signal packaging method, characterized in that: The method comprises: Get the signal of the project to be packaged; If the signal name of the project signal matches the signal name of the target platform signal, generating a first PDU according to the component information corresponding to the protocol data unit PDU used to package the target platform signal, wherein the target platform signal is any platform signal among the packaged multiple platform signals; The project signal is packaged into the first PDU.
2. The method according to claim 1, characterized in that If the signal name of the project signal matches the signal name of the target platform signal, generating a first PDU according to the component information corresponding to the protocol data unit PDU used to package the target platform signal, including: If the signal name of the project signal matches the signal name of the target platform signal, copying the component information corresponding to the PDU used to package the target platform signal from the setting folder to the project folder corresponding to the project signal; In a project folder corresponding to the project signal, the first PDU is generated according to component information corresponding to the PDU used to package the target platform signal.
3. The method according to claim 1, characterized in that The component information includes signal mapping parameters, and the signal mapping parameters include at least a start bit parameter and a bit length parameter; The step of packaging the project signal into the first PDU comprises: The item signal is mapped into the first PDU according to the start bit parameter and the bit length parameter.
4. The method according to claim 3, characterized in that The component information also includes PDU mapping parameters; After mapping the item signal into the first PDU according to the start bit parameter and the bit length parameter, the method further includes: Create a target message; According to the PDU mapping parameters, the first PDU is mapped to the target message, and a message identifier of the target message is generated.
5. The method according to any one of claims 1 to 4, characterized in that: After obtaining the target item signal to be packaged, the method further includes: If the signal name of the project signal does not match the signal name of the target platform signal, outputting prompt information to prompt the user to input the target component information corresponding to the project signal; generating a second PDU according to the target component information input based on the prompt information; The project signal is packaged into the second PDU.
6. The method according to claim 5, characterized in that The step of generating a second PDU according to the target component information input based on the prompt information includes: In the project folder corresponding to the project signal, the second PDU of a set byte length is generated according to the target component information.
7. The method according to any one of claims 1 to 4, characterized in that: Before generating the first PDU according to the component information corresponding to the protocol data unit PDU for packaging the target platform signal if the signal name of the project signal matches the signal name of the target platform signal, the method further includes: In response to a signal importing operation based on the target display area input, a plurality of signals imported by the signal importing operation are used as the plurality of platform signals.
8. A signal packaging device, characterized in that: The device comprises: A signal acquisition module, used to acquire the project signal to be packaged; A PDU generation module, configured to generate a first PDU according to component information corresponding to a protocol data unit PDU for packaging the target platform signal if the signal name of the project signal matches the signal name of a target platform signal, wherein the target platform signal is any platform signal among the packaged multiple platform signals; A signal packaging module is used to package the project signal into the first PDU.
9. A computer device, characterized in that: The computer device comprises: one or more processors; Memory; One or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program code, which can be called by a processor to execute the method according to any one of claims 1 to 7.