Signal packaging method and device, computer device and storage medium

By acquiring and grouping signal attribute information, and using priority configuration files to query target PDUs in PDUs for signal packaging, the problem of low automation in signal packaging in existing technologies is solved, realizing an efficient and flexible signal packaging process, reducing costs and design cycles.

CN116800695BActive Publication Date: 2026-05-08BEIJING JINGWEI HIRAIN TECH CO INC
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
BEIJING JINGWEI HIRAIN TECH CO INC
Filing Date
2023-07-21
Publication Date
2026-05-08

AI Technical Summary

Technical Problem

In the design of automotive CAN and CAN-FD bus networks, the existing technology suffers from low automation in the signal packaging process, which still requires manual processing when facing complex requirements, resulting in extended design cycles and reduced flexibility.

Method used

By acquiring the signals to be packaged and their attribute information, grouping and prioritizing are performed based on the attribute information. The target PDU is queried from the created PDUs using the priority configuration file, and the signals are packaged according to the priority strategy, dynamically adjusting the packaging order and focus.

Benefits of technology

It simplifies signal packet processing, improves the accuracy and flexibility of the packetization process, reduces the cost caused by priority changes, and supports flexible configuration and subsequent strategy modifications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116800695B_ABST
    Figure CN116800695B_ABST
Patent Text Reader

Abstract

This invention relates to the field of vehicle communication technology, and discloses a signal packetization method, apparatus, computer equipment, and storage medium. The method includes acquiring a signal to be packetized and its attribute information; grouping the signals to be packetized based on the attribute information, determining the signal groups to be packetized and their priorities; querying existing PDUs based on the size of the signal groups to be packetized to determine the target PDU corresponding to each signal group; and packetizing the signals within the signal groups to be packetized into the target PDU based on a priority configuration file and the priorities of the signal groups to be packetized, thereby obtaining the packetization result. The priority configuration file represents the correspondence between priorities and packetization strategies. This method flexibly configures the packetization order and focus according to different signal packetization strategy requirements, reducing the cost caused by priority changes during signal packetization and providing a basis for subsequent modifications to signal packetization priority strategies.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of vehicle communication, and more specifically to signal packaging methods, devices, computer equipment, and storage media. Background Technology

[0002] In the design phase of automotive CAN and CAN-FD bus networks, the issue of PDU (Protocol Data Unit) signal packaging frequently arises. This involves abstracting different types of message data into data packets with unified IDs and names, and arranging them into appropriate PDUs. While some automated solutions exist for signal packaging during the design process, allowing the sending and receiving ECUs to package signals into corresponding PDUs based on signal length for easy transmission by the CAN / CAN-FD bus controller, manual packaging remains a common method for handling complex signal packaging requirements. Summary of the Invention

[0003] In view of this, the present invention provides a signal packaging method, apparatus, computer equipment, and storage medium to solve the problem of PDU signal packaging.

[0004] In a first aspect, the present invention provides a signal packing method, the method comprising:

[0005] Obtain the signal to be packaged and its attribute information;

[0006] Based on the attribute information, the signals to be packaged are grouped to determine the signal groups to be packaged and their priorities.

[0007] Based on the size of the signal group to be packaged, query the existing PDUs to determine the target PDU corresponding to the signal group to be packaged;

[0008] Based on the priority configuration file and the priority of the signal group to be packaged, the signals to be packaged in the signal group to be packaged are packaged into the target PDU to obtain the packaging result. The priority configuration file is used to represent the correspondence between priority and packaging strategy.

[0009] The signal packing method provided in this invention groups signals based on their attribute information, enabling unified packing management of signals of the same or similar types. This simplifies the signal packing process. Furthermore, it queries existing PDUs based on the size of the signal group to be packed, ensuring the accuracy of the obtained target PDUs. Since the packing of signals is based on a priority configuration file, only this configuration file needs to be adjusted when the packing strategy is changed, avoiding adjustments to the entire packing process. The packing order and focus can be flexibly configured according to different signal packing strategy requirements, reducing the cost associated with priority changes during signal packing and providing a basis for future modifications to the signal packing priority strategy.

[0010] In some optional implementations, obtaining the attribute information of the signal to be packaged includes:

[0011] Obtain a signal demand table and a signal forwarding demand table. The signal demand table is used to represent the first attribute information of the signal to be packaged, and the signal forwarding demand table is used to represent the second attribute information of the signal to be packaged that has a routing relationship.

[0012] The signal demand table and the signal forwarding demand table are parsed to obtain the first attribute information and the second attribute information of the signal to be packaged. The attribute information of the signal to be packaged includes the first attribute information and the second attribute information.

[0013] The signal packetization method provided in this embodiment of the invention, since some signals to be packetized have routing relationships while others do not, uses a signal demand table and a signal forwarding demand table to represent the first attribute information and the second attribute information of the signals to be packetized, respectively, to achieve unified management of different types of attribute information.

[0014] In some optional implementations, the step of grouping the signals to be packaged based on the attribute information and determining the signal groups to be packaged and the priorities of the signal groups to be packaged includes:

[0015] Based on the first attribute information, the signals to be packaged are grouped to obtain an initial packaged signal group;

[0016] Based on the second attribute information, the signals to be packaged in the initial packaged signal group are grouped and adjusted to obtain the signal group to be packaged.

[0017] The priority of the signal group to be packaged is determined by using the correspondence between priority and attribute information.

[0018] The signal packing method provided in this embodiment of the invention improves the accuracy of the initial packed signal group by grouping all the signals to be packed using the first attribute information, since the first attribute information corresponds to all the signals to be packed. Furthermore, by adjusting the signals to be packed within the initial packed signal group in combination with the second attribute information, the accuracy of the obtained signals to be packed is further improved.

[0019] In some optional implementations, the step of querying the created PDUs based on the size of the signal group to be packaged to determine the target PDU corresponding to the signal group to be packaged includes:

[0020] Obtain the remaining size of the created PDU;

[0021] The size of each signal to be packaged in the signal group to be packaged is obtained, and the sizes of each signal to be packaged in the signal group to be packaged are summed to obtain the required size of the signal group to be packaged.

[0022] The target PDU is determined based on the required size of the signal group to be packaged and the remaining size of the created PDUs.

[0023] The signal packing method provided in this embodiment of the invention includes multiple signals to be packed within a signal group to be packed. The sum of the sizes of the multiple signals to be packed represents the required size of the signal group to be packed. The target PDU is obtained by using the relationship between the required size and the remaining size of the created PDU, thereby ensuring that the target PDU can accommodate the packed signals.

[0024] In some optional implementations, the step of packaging the signals to be packaged within the signal group to be packaged into the target PDU based on the priority configuration file and the priority of the signal group to be packaged, to obtain the packaging result, includes:

[0025] Based on the priority configuration file and the priority of the signal group to be packaged, the target packaging strategy for the signal group to be packaged is determined;

[0026] Based on the target packaging strategy, the signals to be packaged in the signal group to be packaged are packaged to obtain packaged signals;

[0027] If the size of the packaged signal is less than the remaining size of the target PDU, the packaged signal is added to the target PDU to obtain the packaged result.

[0028] The signal packing method provided in this embodiment of the invention indicates that the target PDU can accommodate the packed signal when the size of the packed signal is less than the remaining size of the target PDU, and ensures that the packed signals corresponding to the same group of signals to be packed exist in the same target PDU.

[0029] In some optional implementations, the step of packaging the signals to be packaged within the signal group to be packaged into the target PDU based on the priority configuration file and the priority of the signal group to be packaged, to obtain the packaging result, further includes:

[0030] If the size of the packaged signal is greater than the remaining size of the target PDU, a new PDU is created and the packaged signal is added to the new PDU to obtain the packaged result.

[0031] The signal packing method provided in this embodiment of the invention will create a new PDU only when the remaining size of the target PDU is insufficient to accommodate the target signal, so as to maintain a high bus load rate and utilization.

[0032] In some optional implementations, the step of packaging the signals to be packaged within the signal group to be packaged into the target PDU based on the priority configuration file and the priority of the signal group to be packaged, to obtain the packaging result, further includes:

[0033] Obtain the signals to be packaged that have routing relationships within the group of signals to be packaged;

[0034] If the target network segment or sending network segment of a signal to be packaged with a routing relationship changes after packaging, a packaging judgment reminder is issued to determine whether the signal to be packaged needs to be packaged now.

[0035] The signal packaging method provided in this embodiment of the invention still faces the situation of splitting and repackaging signals with routing relationships after the target network segment or sending network segment changes. In this case, no judgment is made on whether packaging is necessary, and the user needs to be prompted so that the user can determine whether to apply the packaging strategy after routing based on the actual design of the vehicle.

[0036] Secondly, embodiments of the present invention also provide a signal packaging device, the device comprising:

[0037] The acquisition module is used to acquire the signal to be packaged and the attribute information of the signal to be packaged;

[0038] A grouping module is used to group the signals to be packaged based on the attribute information, and to determine the signal groups to be packaged and the priority of the signal groups to be packaged.

[0039] The query module is used to query the created PDUs based on the size of the signal group to be packaged, and determine the target PDU corresponding to the signal group to be packaged;

[0040] The packaging module is used to package the signals to be packaged in the signal group to be packaged into the target PDU based on the priority configuration file and the priority of the signal group to be packaged, so as to obtain the packaging result. The priority configuration file is used to represent the correspondence between priority and packaging strategy.

[0041] The signal packing device provided in this invention groups signals based on their attribute information, enabling unified packing management of signals of the same or similar types. This simplifies the signal packing process. Furthermore, it queries existing PDUs based on the size of the signal group to be packed, ensuring the accuracy of the obtained target PDUs. Since the packing of signals is based on a priority configuration file, only this configuration file needs to be adjusted when the packing strategy is changed, avoiding adjustments to the entire packing process. The packing order and focus can be flexibly configured according to different signal packing strategy requirements, reducing costs caused by priority changes during signal packing and providing a basis for future modifications to signal packing priority strategies.

[0042] Thirdly, the present invention provides a computer device, comprising: a memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the computer instructions to perform the signal packing method described in the first aspect or any corresponding embodiment thereof.

[0043] Fourthly, the present invention provides a computer-readable storage medium storing computer instructions for causing a computer to perform the signal packing method described in the first aspect or any corresponding embodiment thereof.

[0044] It should be noted that the computer device and computer-readable storage medium provided in the embodiments of the present invention are used to execute the signal packing method described in any of the above embodiments. Therefore, the beneficial effects of the above signal packing method are also applicable to the computer device and computer-readable storage medium, and therefore will not be repeated here. Attached Figure Description

[0045] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0046] Figure 1This is a schematic flowchart of a signal packaging method according to an embodiment of the present invention;

[0047] Figure 2 This is a flowchart illustrating another signal packaging method according to an embodiment of the present invention;

[0048] Figure 3 This is a flowchart illustrating another signal packaging method according to an embodiment of the present invention;

[0049] Figure 4 This is a structural block diagram of a signal packaging device according to an embodiment of the present invention;

[0050] Figure 5 This is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. Detailed Implementation

[0051] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0052] Signal packaging often involves numerous coexisting situations. For example, functional safety signals need to be packaged together with the signals they affect; CRC (Cyclic Redundancy Check) and RC (Redundancy Check) signals need to be placed in designated locations within the PDU (usually the lower four bits); signal packaging becomes even more complex when dealing with routing conditions, requiring consideration of whether the routing type is PDU routing or signal routing, and whether the source and destination are consistent after routing. The numerous rule entries can easily lead to conflicts and difficulty in determining which rule to prioritize. Secondly, the signal packaging rules of different manufacturers differ in their focus, making it difficult to summarize a universal rule description, which also increases the difficulty of developing related automated packaging scripts. Thirdly, related technologies need to reserve margin for potentially added signals while minimizing the number of newly created PDUs to maintain high bus load and utilization, requiring a high degree of intelligence in the packaging scripts. Finally, CAN and CAN-FD messages often appear mixed on the bus. For CAN messages, due to their fixed length, logically implementing packetization is relatively convenient. However, for CAN-FD messages, their variable length increases the difficulty of setting the default length when adding new PDUs. If the bit length is set too short, scalability is reduced, and subsequent signal packetization may result in related logical messages being unable to compete for space and being included. If the bit length is set too long, the default PDU length will be excessive, leading to wasted resources. Overall, because the signal packetization methods in related technologies follow customized logic, they may become unsuitable after changing scenarios or rules, greatly delaying the network communication design cycle and significantly reducing the flexibility and reusability of the packetization program.

[0053] Based on this, embodiments of the present invention provide a signal packaging method. This method involves grouping signals to be packaged and configuring a priority profile to package the signals into a packaged form. The packaging order and focus can be flexibly configured according to different signal packaging strategy requirements, reducing the cost associated with priority changes during signal packaging and providing a basis for subsequent modifications to signal packaging priority strategies.

[0054] According to an embodiment of the present invention, a signal packaging method embodiment is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.

[0055] This embodiment provides a signal packaging method that can be used in computer devices, such as computers and tablets. Figure 1 This is a flowchart of a signal packing method according to an embodiment of the present invention, such as... Figure 1 As shown, the process includes the following steps:

[0056] Step S101: Obtain the signal to be packaged and its attribute information.

[0057] The signals to be packaged are given based on user requirements. For example, before packaging the signals, the user's requirements are obtained, resulting in the signals to be packaged. These signals are then represented using a signal requirement table. Of course, the representation of the signals to be packaged is not limited to this; other methods can also be used, and no restrictions are placed on them here.

[0058] The attribute information of the signal to be packaged includes, but is not limited to, the transmission period, the signal group to be transmitted, and the transmitting node. For signals with routing relationships, the attribute information also includes routing information, such as routing type, sending network segment, and destination network segment. Routing types include PDU routing and signal routing. PDU routing forwarding does not affect the PDU structure after signal packaging, while signal routing forwarding is equivalent to repackaging the signal, which changes the sending and destination network segments of the signal itself.

[0059] The attribute information of the signal to be packaged can be provided by the user when requesting the signal to be packaged. For example, for signal A to be packaged, its corresponding transmission period, the signal group to be transmitted, and the transmitting node, etc., should be provided. If signal A to be packaged also has a routing relationship, the routing information of signal A to be packaged should also be provided, etc.

[0060] The attribute information of the signal to be packaged and the packaging information can be represented in the same signal requirement table, or they can be represented in different requirement tables, etc. There are no restrictions on this. The specific settings can be made according to the actual requirements.

[0061] Step S102: Group the signals to be packaged based on attribute information, and determine the signal groups to be packaged and their priorities.

[0062] The purpose of grouping signals to be packaged is to manage identical or similar signals in a unified manner. Specifically, signals with the same attributes are grouped into the same group, or signals with attribute values ​​within the same range are grouped into the same group. For example, signals with the same transmission period are placed in the same group, such as 10ms, 20ms, 50ms, 100ms, 500ms, signals greater than 1s, and event-type signals. Alternatively, signals with the same transmission group field are placed in the same group. In other words, grouping is based on attributes such as transmission period, transmission group, and transmission node for subsequent priority ranking.

[0063] After identifying the signal groups to be packaged, their priorities are determined based on their corresponding attribute information. For example, shorter transmission cycles correspond to higher priorities. The priority of a signal group can be determined through a mapping between priorities and attribute information; that is, by setting priorities corresponding to specific attributes, the mapping between priorities and attribute information is obtained. By querying this mapping using the attribute information for each signal group to be packaged, the priority of that signal group can be determined.

[0064] Step S103: Based on the size of the signal group to be packaged, query the created PDUs to determine the target PDU corresponding to the signal group to be packaged.

[0065] Since the signals to be packaged need to be placed into a PDU, to ensure high bus load and utilization, pre-created PDUs should be used to hold the packaged signals as much as possible. Based on this, a search is performed among the pre-created PDUs according to the size of the signal group to be packaged, to ensure that the target PDU found can accommodate the packaged signals.

[0066] Each PDU is created based on length requirements. That is, the initial length of the PDU is known. After the packaged signal is added, the size of the packaged signal is also known, thus the remaining size of each created PDU can be obtained. The size of the packaged signal group is compared with the remaining size of each created PDU, and the created PDUs with a remaining size greater than the size of the packaged signal group are selected as the target PDUs.

[0067] It should be noted that the target PDUs selected here can be one or more. If there are multiple target PDUs, the largest remaining created PDU can be selected as the target PDU. Alternatively, all of the selected created PDUs can be selected as target PDUs for further selection in subsequent steps.

[0068] Step S104: Based on the priority configuration file and the priority of the signal group to be packaged, the signals to be packaged in the signal group to be packaged are packaged into the target PDU to obtain the packaging result.

[0069] The priority configuration file is used to represent the correspondence between priorities and packaging strategies.

[0070] The priority configuration file is obtained based on user requirements, or it may be provided by the user before signal packaging. This priority configuration file represents the correspondence between priorities and packaging strategies; different priorities correspond to different packaging strategies.

[0071] For example, the priority levels from low to high are L0 to L5, and their corresponding packaging strategies are as follows:

[0072] L0: Lowest priority. There is no suitable PDU to pack. A brand new PDU needs to be created and the packing signal is then placed into it.

[0073] L1: There is an existing PDU with the same sending node, receiving node, and period as the signal requirement table, which can meet the basic packetization requirements and does not require the creation of a new PDU.

[0074] L2: There exists a PDU with the same sending node, receiving node, and period as the one in the signal requirement table, and the same network segment has been reserved.

[0075] L3: In addition to retaining the same attributes as L2, it adds a description of signal group functions, that is, the rules that signals with the same fields in the specified function group need to be packaged into a specified PDU.

[0076] L4: According to the design pattern, signals that must be packaged into the same PDU include functional safety signals, i.e., the CRC and RC signals of the original signals; validity check signals, i.e., the original signals and their valid signals; and signals that are recommended to be packaged together and noted in the signal requirements table. The priority of this part can be flexibly customized through configuration files.

[0077] L5 (priority can be flexibly increased or decreased based on actual conditions): Considering the most complex cases, it is created by completely building a new PDU. Other rules can also be added to expand the signal packaging function.

[0078] It should be noted that the above is merely an illustration of the correspondence between priorities and packaging strategies, and does not limit the scope of protection of this invention. The specific settings are determined according to actual needs. The above correspondence between priorities and packaging strategies is represented through a priority configuration file, which is determined by the user based on actual requirements.

[0079] After determining the priority of the signal group to be packaged, the corresponding packaging strategy is determined using the priority configuration file. Based on the determined packaging strategy, the signals within the signal group are packaged to obtain packaged signals, which are then added to the target PDU to obtain the packaging result. Specifically, the signals to be packaged are packaged according to the determined priority, starting with the highest priority packaging strategy. The strategy checks whether the signal conforms to the highest priority packaging strategy (e.g., name matching, signal group requirement matching, specific position matching, sender / receiver matching). After determining the packaging strategy, the signals to be packaged are packaged. The packaging strategy requires specifying necessary information such as alignment, RC / CRC signal layout area, and default size of the new PDU. Packaging operations are then performed sequentially from high priority to low priority according to the rules to obtain the packaging result.

[0080] The signal packing method provided in this embodiment groups signals based on their attribute information, enabling unified packing management of signals of the same or similar types. This simplifies the signal packing process. Furthermore, it queries existing PDUs based on the size of the signal group to be packed, ensuring the accuracy of the obtained target PDUs. Since the packing of signals is based on a priority configuration file, only this configuration file needs to be adjusted when the packing strategy is changed, avoiding adjustments to the entire packing process. The packing order and focus can be flexibly configured according to different signal packing strategy requirements, reducing the cost associated with priority changes during signal packing and providing a basis for future modifications to the signal packing priority strategy.

[0081] This embodiment provides a signal packaging method that can be used in computer devices, such as computers and tablets. Figure 2 This is a flowchart of a signal packing method according to an embodiment of the present invention, such as... Figure 2 As shown, the process includes the following steps:

[0082] Step S201: Obtain the signal to be packaged and its attribute information.

[0083] Specifically, step S201 includes:

[0084] Step S2011: Obtain the signal demand table and the signal forwarding demand table.

[0085] The signal requirement table represents the first attribute information of the signal to be packaged, and the signal forwarding requirement table represents the second attribute information of the signal to be packaged that has a routing relationship.

[0086] The signal requirement table represents all signals to be packaged. The first attribute information of each signal to be packaged includes, but is not limited to, transmission period, signal group to be transmitted, and transmitting node. The transmitting node is the sender ECU field in the signal requirement table. The signal forwarding requirement table represents the second attribute information of signals to be packaged that have routing relationships with other signals in the signal requirement table. This second attribute information can also represent the routing information of signals to be packaged that have routing relationships, such as route type, sending network segment, and destination network segment.

[0087] For example, the signal requirement table records 100 signals to be packaged and their first attribute information. The signal forwarding requirement table records the second attribute information of 60 of these signals. These 60 signals to be packaged are signals with routing relationships.

[0088] Both the signal demand table and the signal forwarding demand table are set based on user requirements. For example, the signal demand table and the signal forwarding demand table are obtained from the user before signal packaging. Alternatively, the signal demand table and the signal forwarding demand table are determined through communication with the user.

[0089] In some optional implementations, prior to signal packetization, an Excel database containing a number of pre-packed PDUs and messages is retrieved. This Excel database includes information such as PDU name, PDU length, pre-packed signal groups and names, starting length, sender ECU field, receiver ECU field, sending network segment, and destination network segment.

[0090] The signal requirement table includes essential parameters such as the sending node, network segment, and transmission period, as well as descriptive fields such as functional group description and signal type identifier. The signal forwarding requirement table reflects the signal's secondary attribute information and possible routing types, including PDU routing and signal routing.

[0091] As mentioned above, the Excel database records several pre-packaged PDUs, i.e., pre-packaged signals. These pre-packaged signals can be manually assigned or automatically packaged. These signals must contain at least the following fields: pre-packaged PDU name, total PDU length, unused PDU length, transmission cycle, signal group (can be empty), included signal name, start bit position, signal length, sender ECU field, sender bus name, receiver ECU field, and receiver bus name. These fields are used as preset fields for subsequent signal packaging and serve as a reference. During subsequent automatic packaging, the preset fields are matched against the first and second attribute information of the signal to be packaged to determine the attribute values ​​of the preset fields.

[0092] Step S2012: Parse the signal demand table and the signal forwarding demand table to obtain the first attribute information and the second attribute information of the signal to be packaged.

[0093] The attribute information of the signal to be packaged includes first attribute information and second attribute information.

[0094] As mentioned above, the signal demand table represents the first attribute information, and the forwarding demand table represents the second attribute information. In step S2012, preset fields are obtained through analysis of the packaged signals. Based on this, the preset fields are used to query the signal demand table and the signal forwarding demand table to obtain the first and second attribute information of the signal to be packaged. That is, the preset fields represent the first attribute name and the second attribute name. By parsing the signal demand table and the signal forwarding demand table, the attribute values ​​corresponding to the first and second attribute names are obtained, thus obtaining the first and second attribute information of the signal to be packaged.

[0095] Step S202: Group the signals to be packaged based on attribute information, and determine the signal groups to be packaged and their priorities.

[0096] Specifically, step S202 includes:

[0097] Step S2021: Based on the first attribute information, the signals to be packaged are grouped to obtain the initial packaged signal group.

[0098] For example, the first attribute information includes the transmission period, the transmitted signal group, and the transmitting node. Based on this, signals to be packaged with the same transmission period are placed in the same initial packaged signal group; signals to be packaged with the same transmitted signal group field are placed in the same initial packaged signal group; and signals to be packaged with the same sender ECU field are placed in the same initial packaged signal group. If the same signal to be packaged includes both a transmission period and a transmitted signal group, then the initial packaged signal group is first divided according to the transmitted signal group, and then the transmission period, etc., are considered.

[0099] It should be noted that the grouping priority of each first attribute information is set according to actual needs, and no restrictions are imposed on it here. If the same signal to be packaged simultaneously satisfies multiple fields of first attribute information, then the signals to be packaged with multiple first attribute information are grouped according to the grouping priority to obtain the initial packaged signal group.

[0100] Step S2022: Based on the second attribute information, the signals to be packaged in the initial packaged signal group are grouped and adjusted to obtain the signal group to be packaged.

[0101] Since some signals to be packaged have routing relationships, meaning there are signals to be packaged with second attribute information, it is necessary to group and adjust the signals to be packaged within the initial signal group based on the second attribute information to obtain a new signal group. For example, if the second attribute information includes routing type, sending network segment, and destination network segment, then signals to be packaged with the same routing type, sending network segment, or destination network segment can be grouped into the same signal group.

[0102] Step S2023: Determine the priority of the signal group to be packaged by using the correspondence between priority and attribute information.

[0103] As mentioned above, there is a correspondence between attribute information and priority. Since the signal group to be packaged includes signals with the same attribute information, the priority of the signal group to be packaged can be determined by the correspondence between the attribute information and priority of the signals to be packaged. Determining the priority of the signal group to be packaged is used to determine the subsequent packaging strategy.

[0104] Step S203: Based on the size of the signal group to be packaged, query the existing PDUs to determine the target PDU corresponding to the signal group to be packaged. For details, please refer to [link to relevant documentation]. Figure 1 The description of step S103 in the illustrated embodiment will not be repeated here.

[0105] Step S204: Based on the priority configuration file and the priority of the signal group to be packaged, the signals to be packaged in the signal group to be packaged are packaged into the target PDU to obtain the packaging result.

[0106] The priority configuration file is used to represent the correspondence between priorities and packaging strategies. For details, please refer to [link to relevant documentation]. Figure 1 The description of step S104 in the illustrated embodiment will not be repeated here.

[0107] The signal packetization method provided in this embodiment addresses the issue that some signals to be packetized have routing relationships while others do not. It employs a signal demand table and a signal forwarding demand table to represent the first and second attribute information of the signals to be packetized, respectively, achieving unified management of different types of attribute information. Since the first attribute information corresponds to all signals to be packetized, grouping all signals using the first attribute information improves the accuracy of the initial packetized signal groups. Furthermore, by combining the second attribute information with adjustments to the signals within the initial packetized signal groups, the accuracy of the resulting packets is further enhanced.

[0108] This embodiment provides a signal packaging method that can be used in computer devices, such as computers and tablets. Figure 3 This is a flowchart of a signal packaging method according to an embodiment of the present invention, such as... Figure 3 As shown, the process includes the following steps:

[0109] Step S301: Obtain the signal to be packaged and its attribute information. For details, please refer to [link to relevant documentation]. Figure 2 The description of step S201 in the illustrated embodiment will not be repeated here.

[0110] Step S302: Group the signals to be packaged based on attribute information, and determine the groups of signals to be packaged and their priorities. For details, please refer to [link to relevant documentation]. Figure 2 The description of step S202 in the illustrated embodiment will not be repeated here.

[0111] Step S303: Based on the size of the signal group to be packaged, query the created PDUs to determine the target PDU corresponding to the signal group to be packaged.

[0112] Specifically, step S303 includes:

[0113] Step S3031: Obtain the remaining size of the created PDUs.

[0114] For each newly created PDU, its length is known. That is, the user specifies the length of the new PDU. Each time a packet signal is added to a new PDU, since the length of the packet signal is also known, the remaining size of the created PDU can be determined. After each addition of a packet signal, the remaining size of the created PDU needs to be updated in real time to ensure the accuracy of the remaining size of the created PDU.

[0115] Step S3032: Obtain the size of each signal to be packaged in the signal group to be packaged, and sum the sizes of each signal to be packaged in the signal group to be packaged to obtain the required size of the signal group to be packaged.

[0116] For each signal to be packaged within a signal group, its size is known. The required size of the signal group is obtained by summing the sizes of all signals within the group. For example, if the signal group includes three signals, signal 1 to signal 3, with signal 1 having a size of D1, signal 2 having a size of D2, and signal 3 having a size of D3, then the required size of the signal group is D1 + D2 + D3.

[0117] Step S3033: Determine the target PDU based on the required size of the signal group to be packaged and the remaining size of the PDUs already created.

[0118] The system queries the existing PDUs based on the required size of the signal group to be packaged. PDUs whose remaining size is greater than the required size of the signal group to be packaged are identified as target PDUs. It should be noted that the target PDUs retrieved here may be one or more, etc.

[0119] Step S304: Based on the priority configuration file and the priority of the signal group to be packaged, the signals to be packaged in the signal group to be packaged are packaged into the target PDU to obtain the packaging result.

[0120] The priority configuration file is used to represent the correspondence between priorities and packaging strategies.

[0121] Specifically, step S304 includes:

[0122] Step S3041: Based on the priority configuration file and the priority of the signal group to be packaged, determine the target packaging strategy for the signal group to be packaged.

[0123] After determining the priority of the signal group to be packaged, the target packaging strategy for the signal group to be packaged is obtained by querying the priority configuration file.

[0124] Step S3042: Pack the signals to be packed in the signal group to be packed according to the target packing strategy to obtain the packed signals.

[0125] The target packetization strategy is used to packetize the signal to be packetized into a packetized signal. However, some packetization strategies require adding a checksum signal, such as a CRC signal, to the signal to be packetized. This can alter the length of the resulting packetized signal, potentially resulting in the target PDU's remaining length being insufficient to accommodate the packetized signal. Of course, if multiple target PDUs are identified in step S3033, it is necessary to sequentially determine whether the remaining length of each target PDU is sufficient to accommodate the packetized signal.

[0126] Step S3043: If the size of the packaged signal is less than the remaining size of the target PDU, add the packaged signal to the target PDU to obtain the packaged result.

[0127] Step S3044: If the size of the packet signal is greater than the remaining size of the target PDU, create a new PDU and add the packet signal to the new PDU to obtain the packet result.

[0128] If the size of the packaged signal is smaller than the remaining size of the target PDU, the packaged signal is directly added to the target PDU to obtain the packaged result; otherwise, if the remaining size of all target PDUs is smaller than the size of the packaged signal, a new PDU needs to be created, and the packaged signal is added to the new PDU to obtain the packaged result.

[0129] Specifically, after the signal to be packaged is packaged, the packaged signal is obtained and then subjected to a second check, namely, checking whether the remaining size in the target PDU can fit the packaged signal. If the packaged signal cannot actually be placed into the target PDU due to the restrictions of other priority rules (for example, the size of packaged signal A can be packaged into the target PDU, but the high priority policy requires that the target PDU must have a CRC signal, and after adding the CRC signal, the remaining PDU space is not enough to fit the signal A with the CRC signal added), or if there are still extra signals after the allocation operation, then this type of situation requires the PDU to be re-established.

[0130] The signal packing method provided in this embodiment includes multiple signals to be packed within a signal group. The sum of the sizes of these multiple signals represents the required size of the signal group. The target PDU is obtained by using the relationship between this required size and the remaining size of the created PDU, thus ensuring that the target PDU can accommodate the packed signals. When the size of the packed signal is less than the remaining size of the target PDU, it indicates that the target PDU can accommodate the packed signal, and it ensures that the packed signals corresponding to the same signal group exist in the same target PDU. A new PDU is created only when the remaining size of the target PDU is insufficient to accommodate the target signals, in order to maintain a high bus load rate and utilization.

[0131] In some optional implementations, the signal packaging method further includes:

[0132] Step a1: Obtain the signals to be packaged that have routing relationships within the signal group to be packaged.

[0133] Step a2: If the target network segment or sending network segment of the signal to be packaged with routing relationship changes after packaging, a packaging judgment reminder is issued to determine whether the signal to be packaged needs to be packaged at present.

[0134] Specifically, for signals within a signal group that have a routing relationship, if the sending network segment or the target network segment changes, the signal may still be split and repackaged during subsequent routing. In this case, no judgment is made on whether to repackage, but the user should be prompted to determine whether to apply the repackaging strategy after routing based on the actual design of the vehicle.

[0135] The signal packaging method provided in this invention adopts a dynamic configuration approach, making the fixed strategies in traditional signal packaging methods more flexible. This allows for flexible configuration of the packaging order and focus based on different signal packaging strategy requirements, reducing the cost associated with priority changes during signal packaging and providing a basis for subsequent modifications to signal packaging priority strategies. This method changes the most complex part of the signal packaging strategy customization process: the requirement design. After the framework design is complete, users can continue to customize packaging priority strategies to meet their specific needs. For example, if a user needs to change the packaging strategy, they do not need to modify the framework flow of the signal packaging method; they only need to provide a new priority configuration file to implement packaging.

[0136] This embodiment also provides a signal packaging device for implementing the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that performs a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, hardware implementations, or a combination of software and hardware, are also possible and contemplated.

[0137] This embodiment provides a signal packetization device, such as... Figure 4 As shown, it includes:

[0138] The acquisition module 401 is used to acquire the signal to be packaged and its attribute information.

[0139] Grouping module 402 is used to group the signals to be packaged based on attribute information, and to determine the signal groups to be packaged and their priorities.

[0140] The query module 403 is used to query the created PDUs based on the size of the signal group to be packaged, and determine the target PDU corresponding to the signal group to be packaged.

[0141] The packaging module 404 is used to package the signals to be packaged in the signal group to be packaged into the target PDU based on the priority configuration file and the priority of the signal group to be packaged, so as to obtain the packaging result. The priority configuration file is used to represent the correspondence between priority and packaging strategy.

[0142] In some optional implementations, the acquisition module 401 includes:

[0143] The demand table acquisition unit is used to acquire a signal demand table and a signal forwarding demand table. The signal demand table is used to represent the first attribute information of the signal to be packaged, and the signal forwarding demand table is used to represent the second attribute information of the signal to be packaged with a routing relationship.

[0144] The parsing unit is used to parse the signal demand table and the signal forwarding demand table to obtain the first attribute information and the second attribute information of the signal to be packaged. The attribute information of the signal to be packaged includes the first attribute information and the second attribute information.

[0145] In some alternative implementations, the grouping module 402 includes:

[0146] The first grouping unit is used to group the signals to be packaged based on the first attribute information to obtain an initial packaged signal group;

[0147] The second grouping unit is used to adjust the grouping of the signals to be packaged in the initial packaged signal group based on the second attribute information to obtain the signal group to be packaged.

[0148] The priority unit is used to determine the priority of the signal group to be packaged by utilizing the correspondence between priority and attribute information.

[0149] In some optional implementations, the query module 403 includes:

[0150] The first acquisition unit is used to acquire the remaining size of the created PDU;

[0151] The second acquisition unit is used to acquire the size of each signal to be packaged in the signal group to be packaged, and to sum the sizes of each signal to be packaged in the signal group to be packaged to obtain the required size of the signal group to be packaged.

[0152] The target PDU determination unit is used to determine the target PDU based on the required size of the signal group to be packaged and the remaining size of the created PDUs.

[0153] In some alternative implementations, the packaging module 404 includes:

[0154] The packaging strategy determination unit is used to determine the target packaging strategy for the signal group to be packaged based on the priority configuration file and the priority of the signal group to be packaged.

[0155] The packaging unit is used to package the signals to be packaged in the signal group to be packaged based on the target packaging strategy to obtain packaged signals;

[0156] The first size comparison unit is used to add the packaged signal to the target PDU if the size of the packaged signal is smaller than the remaining size of the target PDU, so as to obtain the packaged result.

[0157] In some alternative implementations, the packaging module 404 further includes:

[0158] The second size comparison unit is used to create a new PDU and add the packing signal to the new PDU if the size of the packing signal is greater than the remaining size of the target PDU, so as to obtain the packing result.

[0159] In some alternative implementations, the packaging module 404 further includes:

[0160] The signal acquisition unit is used to acquire signals with routing relationships within the signal group to be packaged;

[0161] The reminder unit is used to issue a packing judgment reminder if the target network segment or sending network segment of the signal to be packed, which has a routing relationship, changes after packing, so as to determine whether the signal to be packed needs to be packed at present.

[0162] In this embodiment, the signal packaging device is presented in the form of a functional unit. Here, a unit refers to an ASIC circuit, a processor and memory that execute one or more software or fixed programs, and / or other devices that can provide the above functions.

[0163] Further functional descriptions of the above modules and units are the same as those in the corresponding embodiments described above, and will not be repeated here.

[0164] This invention also provides a computer device having the above-described features. Figure 4 The signal packaging device shown.

[0165] Please see Figure 5 , Figure 5 This is a schematic diagram of the structure of a computer device provided in an optional embodiment of the present invention, such as... Figure 5 As shown, the computer device includes one or more processors 10, memory 20, and interfaces for connecting the components, including high-speed interfaces and low-speed interfaces. The components communicate with each other via different buses and can be mounted on a common motherboard or otherwise installed as needed. The processors can process instructions executed within the computer device, including instructions stored in or on memory to display graphical information of a GUI on external input / output devices (such as display devices coupled to the interfaces). In some alternative implementations, multiple processors and / or multiple buses can be used with multiple memories and multiple memory modules, if desired. Similarly, multiple computer devices can be connected, each providing some of the necessary operations (e.g., as a server array, a group of blade servers, or a multiprocessor system). Figure 5 Take a processor 10 as an example.

[0166] Processor 10 may be a central processing unit, a network processor, or a combination thereof. Processor 10 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The programmable logic device may be a complex programmable logic device (CAMP), a field-programmable gate array (FPGA), a general-purpose array logic (GDA), or any combination thereof.

[0167] The memory 20 stores instructions executable by at least one processor 10 to cause the at least one processor 10 to perform the method shown in the above embodiments.

[0168] The memory 20 may include a program storage area and a data storage area. The program storage area may store the operating system and applications required for at least one function; the data storage area may store data created based on the use of the computer device. Furthermore, the memory 20 may include high-speed random access memory and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some alternative embodiments, the memory 20 may optionally include memory remotely located relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.

[0169] The memory 20 may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as flash memory, hard disk or solid-state drive; the memory 20 may also include a combination of the above types of memory.

[0170] The computer device also includes an input device 30 and an output device 40. The processor 10, memory 20, input device 30, and output device 40 can be connected via a bus or other means. Figure 5 Taking the example of a connection between China and Israel via a bus.

[0171] Input device 30 can receive input numerical or character information, and generate key signal inputs related to user settings and function control of the computer device, such as a touchscreen, keypad, mouse, trackpad, touchpad, joystick, one or more mouse buttons, trackball, joystick, etc. Output device 40 may include display devices, auxiliary lighting devices (e.g., LEDs), and haptic feedback devices (e.g., vibration motors). The aforementioned display devices include, but are not limited to, liquid crystal displays, light-emitting diodes, displays, and plasma displays. In some alternative embodiments, the display device may be a touchscreen.

[0172] This invention also provides a computer-readable storage medium. The methods described above according to embodiments of the invention can be implemented in hardware or firmware, or implemented as computer code that can be recorded on a storage medium, or implemented as computer code downloaded via a network and originally stored on a remote storage medium or a non-transitory machine-readable storage medium and then stored on a local storage medium. Thus, the methods described herein can be processed by software stored on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. The storage medium can be a magnetic disk, optical disk, read-only memory, random access memory, flash memory, hard disk, or solid-state drive, etc.; further, the storage medium can also include combinations of the above types of memory. It is understood that computers, processors, microprocessor controllers, or programmable hardware include storage components capable of storing or receiving software or computer code, which, when accessed and executed by the computer, processor, or hardware, implements the methods shown in the above embodiments.

[0173] Although embodiments of the invention have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations all fall within the scope defined by the appended claims.

Claims

1. A signal packetization method, characterized in that, The method includes: Obtain the signal to be packaged and its attribute information; Based on the attribute information, the signals to be packaged are grouped to determine the signal groups to be packaged and their priorities. Obtain the remaining size of the created PDUs, query the created PDUs based on the size of the signal group to be packaged, and determine the target PDU corresponding to the signal group to be packaged. The target PDU is an created PDU whose remaining size is greater than the size of the signal group to be packaged. Based on the priority configuration file and the priority of the signal group to be packaged, the signals to be packaged in the signal group to be packaged are packaged into the target PDU to obtain the packaging result. The priority configuration file is used to represent the correspondence between priority and packaging strategy.

2. The method according to claim 1, characterized in that, Obtaining the attribute information of the signal to be packaged includes: Obtain a signal demand table and a signal forwarding demand table. The signal demand table is used to represent the first attribute information of the signal to be packaged, and the signal forwarding demand table is used to represent the second attribute information of the signal to be packaged with routing relationship. The first attribute information includes the transmission period, the signal group to be transmitted, and the transmission node. The second attribute information includes the routing type, the transmission network segment, and the target network segment. The signal demand table and the signal forwarding demand table are parsed to obtain the first attribute information and the second attribute information of the signal to be packaged. The attribute information of the signal to be packaged includes the first attribute information and the second attribute information.

3. The method according to claim 2, characterized in that, The step of grouping the signals to be packaged based on the attribute information and determining the signal groups to be packaged and their priorities includes: Based on the first attribute information, the signals to be packaged are grouped to obtain an initial packaged signal group; Based on the second attribute information, the signals to be packaged in the initial packaged signal group are grouped and adjusted to obtain the signal group to be packaged. The priority of the signal group to be packaged is determined by using the correspondence between priority and attribute information.

4. The method according to claim 1, characterized in that, The step of querying the existing PDUs based on the size of the signal group to be packaged to determine the target PDU corresponding to the signal group to be packaged includes: The size of each signal to be packaged in the signal group to be packaged is obtained, and the sizes of each signal to be packaged in the signal group to be packaged are summed to obtain the required size of the signal group to be packaged. The target PDU is determined based on the required size of the signal group to be packaged and the remaining size of the created PDUs.

5. The method according to claim 1, characterized in that, The process of packaging the signals to be packaged within the signal group to be packaged into the target PDU based on the priority configuration file and the priority of the signal group to be packaged, to obtain the packaging result, includes: Based on the priority configuration file and the priority of the signal group to be packaged, the target packaging strategy for the signal group to be packaged is determined; Based on the target packaging strategy, the signals to be packaged in the signal group to be packaged are packaged to obtain packaged signals; If the size of the packaged signal is less than the remaining size of the target PDU, the packaged signal is added to the target PDU to obtain the packaged result.

6. The method according to claim 5, characterized in that, The step of packaging the signals to be packaged within the signal group to be packaged into the target PDU based on the priority configuration file and the priority of the signal group to be packaged, in order to obtain the packaging result, further includes: If the size of the packaged signal is greater than the remaining size of the target PDU, a new PDU is created and the packaged signal is added to the new PDU to obtain the packaged result.

7. The method according to any one of claims 1 to 6, characterized in that, The step of packaging the signals to be packaged within the signal group to be packaged into the target PDU based on the priority configuration file and the priority of the signal group to be packaged, in order to obtain the packaging result, further includes: Obtain the signals to be packaged that have routing relationships within the group of signals to be packaged; If the target network segment or sending network segment of a signal to be packaged with a routing relationship changes after packaging, a packaging judgment reminder is issued to determine whether the signal to be packaged needs to be packaged now.

8. A signal packetization device, characterized in that, The device includes: The acquisition module is used to acquire the signal to be packaged and the attribute information of the signal to be packaged; A grouping module is used to group the signals to be packaged based on the attribute information, and to determine the signal groups to be packaged and the priority of the signal groups to be packaged. The query module is used to obtain the remaining size of the created PDUs, and to query the created PDUs based on the size of the signal group to be packaged, to determine the target PDU corresponding to the signal group to be packaged, wherein the target PDU is an created PDU whose remaining size is greater than the size of the signal group to be packaged; The packaging module is used to package the signals to be packaged in the signal group to be packaged into the target PDU based on the priority configuration file and the priority of the signal group to be packaged, so as to obtain the packaging result. The priority configuration file is used to represent the correspondence between priority and packaging strategy.

9. A computer device, characterized in that, include: A memory and a processor are communicatively connected, the memory storing computer instructions, and the processor executing the computer instructions to perform the signal packing method of any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions for causing a computer to perform the signal packing method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Vehicular CAN FD network-oriented signal grouping and packaging method

    CN105915425A

  • Method and apparatus for communicating over networks

    CN107770239A