Vehicle-mounted network simulation boundary design method, device and equipment and storage medium
Through the in-vehicle network simulation boundary design method, initial parameters are obtained for simulation and network risks are identified, which solves the problem of being unable to identify network risks in the early stage of vehicle design, optimizes the network design, reduces the need for later changes, and reduces costs and complexity.
Patent Information
- Application Number
- CN202410746560.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-11
- Publication Date
- 2024-09-06
AI Technical Summary
The inability to identify network design risks in the early stages of vehicle design results in unnecessary network design changes in the later actual vehicle stage, which increases cost and complexity.
Through the vehicle network simulation boundary design method, the initial simulation boundary parameters are obtained, network communication simulation is performed, the target load rate and cycle deviation results are determined, the simulation boundary parameters are adjusted to identify network risks, the simulation process is formed and the real vehicle data is verified.
It effectively solves the problem of being unable to identify network risks in the early stage of vehicle design, optimizes the network design, reduces the need for later changes, and reduces costs and complexity.
Smart Images

Figure CN118612084A
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle technology, and in particular to a method, device, equipment and storage medium for designing a vehicle network simulation boundary. Background Art
[0002] With the rapid development of the automobile industry, more and more electronic control systems are applied to automobiles. The increase in the number of electronic control units leads to an increase in wiring harnesses, complex circuits, high costs, many faults, and difficult maintenance. In order to reduce wiring harnesses, reduce costs, and optimize the structure, an information transmission system with fewer wiring harnesses, faster information transmission, and strong controllability must be adopted. The application of CAN (Controller Area Network) bus in automobiles has the following advantages: information sharing, reduced wiring harnesses, and associated control. However, in the early stage of vehicle design without a real vehicle, it is impossible to identify risks in network design, resulting in changes to the vehicle's network design in the later stage of the real vehicle. Therefore, how to solve the problem of being unable to identify risks in network design without a real vehicle in the early stage of vehicle design has become a technical problem that needs to be solved urgently. Summary of the invention
[0003] The main purpose of this application is to provide a vehicle network simulation boundary design method, device, equipment and storage medium, aiming to solve the technical problem of how to identify risks in network design in the early stage of vehicle design without a real vehicle.
[0004] To achieve the above objectives, the present application proposes a vehicle network simulation boundary design method, the vehicle network simulation boundary design method comprising: When designing the vehicle network simulation boundary, obtaining initial simulation boundary parameters; Perform network communication simulation according to the initial simulation boundary parameters to obtain target load rate and cycle deviation results; Determine a target simulation boundary parameter according to the target load rate and the period deviation result; Network risk identification is performed according to the target simulation boundary parameters to obtain a risk identification result.
[0005] In one embodiment, the step of obtaining initial simulation boundary parameters includes: Determine network topology boundary parameters according to the network topology map and the first key information; determining a signal matrix boundary parameter according to the signal matrix and second key information, wherein the second key information is different from the first key information; Initial simulation boundary parameters are determined according to the network topology boundary parameters and the signal matrix boundary parameters.
[0006] In one embodiment, determining a target simulation boundary parameter according to the target load rate and the period deviation result includes: Determine a message adjustment strategy according to the target load rate, a first load rate threshold and a second load rate threshold, wherein the second load rate threshold is greater than the first load rate threshold; A target simulation boundary parameter is determined according to the message adjustment strategy and the period deviation result.
[0007] In one embodiment, determining the message adjustment strategy according to the target load rate, the first load rate threshold and the second load rate threshold includes: When the target load rate is less than a first load rate threshold, determining the message adjustment strategy to be a normal allocation strategy; When the target load rate is greater than or equal to the first load rate threshold and the target load rate is less than or equal to the second load rate threshold, determining that the message adjustment strategy is an identification code allocation strategy; When the target load rate is greater than the second load rate threshold, the message adjustment strategy is determined to be a message encapsulation strategy.
[0008] In one embodiment, determining a target simulation boundary parameter according to the message adjustment strategy and the period deviation result includes: When the message adjustment strategy is an identification code allocation strategy, the message to be adjusted is determined according to the cycle deviation result and the cycle deviation threshold; The identification code corresponding to the message to be adjusted is adjusted to determine the target simulation boundary parameter.
[0009] In one embodiment, after adjusting the identification code corresponding to the message to be adjusted and determining the target simulation boundary parameter, the method further includes: Perform network communication simulation according to the target simulation boundary parameters to obtain the adjustment period deviation corresponding to the message to be adjusted; The adjustment verification result is determined according to the cycle deviation threshold and the adjustment cycle deviation corresponding to the message to be adjusted.
[0010] In one embodiment, the network communication simulation is performed according to the initial simulation boundary parameters to obtain the target load rate and cycle deviation results, including: Perform network communication simulation according to the initial simulation boundary parameters to obtain the target load rate and the extreme value period corresponding to each message; Determine the period deviation of each message according to the preset period and the extreme period corresponding to each message; A period deviation result is determined according to the period deviation of each message.
[0011] In addition, to achieve the above purpose, the present application also proposes a vehicle network simulation boundary design device, the vehicle network simulation boundary design device comprising: An acquisition module, used to obtain initial simulation boundary parameters when designing the vehicle network simulation boundary; A simulation module, used to perform network communication simulation according to the initial simulation boundary parameters to obtain target load rate and cycle deviation results; A processing module, used for determining a target simulation boundary parameter according to the target load rate and the period deviation result; The identification module is used to identify network risks according to the target simulation boundary parameters to obtain risk identification results.
[0012] In addition, to achieve the above-mentioned purpose, the present application also proposes a vehicle network simulation boundary design device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, and the computer program is configured to implement the steps of the vehicle network simulation boundary design method as described above.
[0013] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by the processor, the steps of the vehicle network simulation boundary design method described above are implemented.
[0014] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, it implements the steps of the vehicle network simulation boundary design method as described above.
[0015] This application obtains initial simulation boundary parameters when designing the vehicle network simulation boundary; performs network communication simulation according to the initial simulation boundary parameters to obtain target load rate and cycle deviation results; determines target simulation boundary parameters according to the target load rate and the cycle deviation results; performs network risk identification according to the target simulation boundary parameters to obtain risk identification results. By determining the simulation boundary based on the vehicle network design elements, establishing the simulation dimension, forming the simulation process and method, and applying it to the actual vehicle to compare the actual vehicle data to verify the effectiveness, the problem of risk identification of network design in the early stage of vehicle design without an actual vehicle is solved. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0017] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0018] Figure 1 A flowchart diagram of the first embodiment of the vehicle network simulation boundary design method of the present application is provided; Figure 2 A schematic diagram of a communication message and topology matching process provided in Example 1 of the vehicle network simulation boundary design method of the present application; Figure 3 A schematic diagram of the vehicle network topology provided for the first embodiment of the vehicle network simulation boundary design method of the present application; Figure 4 A flow chart of the second embodiment of the vehicle network simulation boundary design method of the present application; Figure 5 A brief flow chart of the first embodiment of the vehicle network simulation boundary design method of the present application is provided; Figure 6 A schematic diagram of a design process guided by a load rate combined with a cycle deviation analysis strategy provided in Example 2 of the vehicle network simulation boundary design method of the present application; Figure 7 This is a schematic diagram of the module structure of the vehicle network simulation boundary design device according to an embodiment of the present application; Figure 8 Schematic diagram of the device structure of the hardware operating environment involved in the vehicle network simulation boundary design method in the embodiment of the present application.
[0019] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0020] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0021] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0022] The main solution of the embodiment of the present application is: when designing the vehicle network simulation boundary, obtain initial simulation boundary parameters; perform network communication simulation according to the initial simulation boundary parameters to obtain target load rate and cycle deviation results; determine target simulation boundary parameters according to the target load rate and the cycle deviation results; perform network risk identification according to the target simulation boundary parameters to obtain risk identification results.
[0023] With the rapid development of the automobile industry, more and more electronic control systems are applied to automobiles. The increase in the number of electronic control units leads to an increase in wiring harnesses, complex circuits, high costs, many faults, and difficult maintenance. In order to reduce wiring harnesses, reduce costs, and optimize the structure, an information transmission system with fewer wiring harnesses, faster information transmission, and strong controllability must be adopted. The application of CAN (Controller Area Network) bus in automobiles has the following advantages: information sharing, reduced wiring harnesses, and associated control. However, in the early stage of vehicle design without a real vehicle, it is impossible to identify the risks of network design, resulting in changes to the vehicle's network design in the later stage of the real vehicle. Therefore, how to solve the problem of identifying the risks of network design in the early stage of vehicle design without a real vehicle has become a technical problem that needs to be solved urgently.
[0024] This application obtains initial simulation boundary parameters when designing the vehicle network simulation boundary; performs network communication simulation according to the initial simulation boundary parameters to obtain target load rate and cycle deviation results; determines target simulation boundary parameters according to the target load rate and the cycle deviation results; performs network risk identification according to the target simulation boundary parameters to obtain risk identification results. By determining the simulation boundary based on the vehicle network design elements, establishing the simulation dimension, forming the simulation process and method, and applying it to the actual vehicle to compare the actual vehicle data to verify the effectiveness, the problem of being unable to identify risks in the network design in the early stage of vehicle design without an actual vehicle is solved.
[0025] It should be noted that the execution subject of this embodiment may be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or a vehicle network simulation boundary design device capable of realizing the above functions, etc. The following takes the vehicle network simulation boundary design device as an execution subject as an example to illustrate this embodiment and the following embodiments.
[0026] Based on this, the embodiment of the present application provides a vehicle network simulation boundary design method, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the vehicle network simulation boundary design method of the present application.
[0027] In this embodiment, the vehicle network simulation boundary design method includes steps S10 to S40: Step S10, when designing the vehicle network simulation boundary, obtaining initial simulation boundary parameters; It can be understood that the initial simulation boundary parameters refer to the key boundaries that need to be extracted during the whole vehicle network simulation, including network topology boundary parameters and signal matrix boundary parameters.
[0028] In specific implementation, this embodiment solves the problem of being unable to identify risks in network design in the early stage of vehicle design without a real vehicle through vehicle network simulation. When performing vehicle network simulation boundary design, it is necessary to perform simulation design based on the network topology diagram and the signal matrix, and then extract the key boundaries in the network topology diagram and the signal matrix to obtain the network topology boundary parameters and the signal matrix boundary parameters, that is, to obtain the initial simulation boundary parameters.
[0029] It should be noted that during simulation, the communication interface is matched to the controller node in the topology to trigger the simulation process, such as Figure 2 As shown, this embodiment proposes a simple matching method and a complete matching method. The simple matching method is to match all communication interfaces to 2 nodes for simulation; the complete matching method is to match all communication interfaces to corresponding nodes according to the network topology design. The simple matching method can be used only when considering the simulation indicators. When a problem occurs and the design is improved according to the message adjustment strategy proposed in this embodiment, the complete matching method can be used to indicate the nodes corresponding to the designed optimization measures, and notify the nodes to make improvements according to the optimization measures.
[0030] In a feasible implementation, step S10 may include steps A11 to A13: Step A11, determining a network topology boundary parameter according to the network topology map and the first key information; It can be understood that the first key information includes but is not limited to network segment information, ECU nodes, and communication methods, and the network topology boundary parameters refer to the key boundaries extracted from the network topology map.
[0031] In a specific implementation, the network topology diagram is as follows: Figure 3 As shown in the figure, the network topology is the communication relationship between various controllers on the car. According to the common functions of the vehicle, it is generally divided into chassis network segment, power network segment, audio and video network segment, and body network segment. During simulation, network segment information, ECU nodes, and communication methods between ECUs are extracted. The key boundaries that need to be extracted during simulation include: (1) Network segment division information: Each network segment is physically isolated by a gateway. Therefore, each network segment is simulated separately (the interaction between network segments depends on the performance of the gateway), and the simulation is determined to be based on the minimum simulation range of the network segment; (2) Node information: Each network segment node and node number are communication entities, which are used to build a simulation basic database and simulation model, determine the communication environment of the network segment or call it a communication model; (3) Communication mode: Each network segment has a unique communication mode, such as CAN, CANFD; communication rate, high-speed CAN, low-speed CAN, or CANFD 2M, 5M, etc., determine the configuration parameters of the simulation.
[0032] Step A12, determining a signal matrix boundary parameter according to the signal matrix and second key information, wherein the second key information is different from the first key information; It can be understood that the second key information includes but is not limited to the message sending mode, message sending length, message quantity and message ID, and the signal matrix boundary parameter refers to the key boundary extracted from the signal matrix.
[0033] In the specific implementation, the design of vehicle communication mainly considers the smoothness and reliability of communication. Therefore, when simulating the vehicle CAN network, the main focus is on the message attributes in the signal matrix, the message encapsulation signal, and the message determines the sending method of the internal encapsulated signal. The actual communication content is not concerned. The actual communication content is determined by the functional logic of each ECU. The key boundaries that need to be extracted during simulation include: (1) message sending method; (2) message sending length; (3) message number; (4) message ID. These four key boundaries determine the communication status of each message in the vehicle and affect the overall communication load of the vehicle.
[0034] Step A13, determining initial simulation boundary parameters according to the network topology boundary parameters and the signal matrix boundary parameters.
[0035] In the specific implementation, the network topology boundary parameters and the signal matrix boundary parameters are summarized to obtain initial simulation boundary parameters. The initial simulation boundary parameters include network segment division information, node information, communication mode, message sending mode, message sending length, message quantity, and message ID.
[0036] Step S20, performing network communication simulation according to the initial simulation boundary parameters to obtain target load rate and cycle deviation results; It can be understood that the target load rate refers to the ratio between the amount of data or load processed by the vehicle network per unit time and its maximum processing capacity, and the cycle deviation result refers to whether the cycle deviation is normal.
[0037] In the specific implementation, the communication simulation of the whole vehicle network is performed according to the obtained initial simulation boundary parameters (network segment division information, node information, communication mode, message sending mode, message sending length, number of messages, message ID), and the result of whether the ratio of the amount of data or load processed by the whole vehicle network per unit time and its maximum processing capacity and the periodic deviation of each message are normal is obtained according to the simulation results.
[0038] It should be noted that the design of the vehicle CAN communication network mainly considers the smoothness and reliability of communication. Therefore, when simulating the vehicle CAN network, the main focus is on the message attributes, message encapsulation signals, and the message determines the sending method of the internal encapsulated signal. The actual communication content is determined by the functional logic of each ECU. Among them, the overall indicator: evaluated by the load rate, can characterize the overall transmission load of the CAN bus. The higher the load rate, the more data needs to be sent, and the higher the probability of communication delay for low-priority messages. The factors that affect the load rate indicator in the simulation boundary are: a) Network topology: (1) Network segment division; (2) Node information; (3) Communication method. b) Signal matrix: (1) Message sending method; (2) Message sending length; (3) Message quantity.
[0039] In a feasible implementation, step S20 may include steps A21 to A23: Step A21, performing network communication simulation according to the initial simulation boundary parameters to obtain the target load rate and the extreme value period corresponding to each message; It can be understood that the extreme value cycle refers to the maximum cycle and the minimum cycle, and the minimum cycle and the maximum cycle are obtained through simulation software.
[0040] In the specific implementation, the communication simulation of the whole vehicle network is carried out through the initial simulation boundary parameters, and the ratio between the amount of data or load processed by the whole vehicle network per unit time and its maximum processing capacity and the maximum period and minimum period corresponding to each message are obtained according to the simulation results.
[0041] Step A22, determining the period deviation of each message according to the preset period and the extreme period corresponding to each message; It can be understood that the preset period refers to the design period corresponding to the message, and the period deviation is determined by the design period, maximum period and minimum period of the message.
[0042] In the specific implementation, cycle deviation: the communication timeliness evaluation of each message in the vehicle network environment. As the evaluation index of each message, it is the core index of network simulation, which characterizes the accuracy and real-time performance of the message transmission time on the bus. The concept of cycle deviation is proposed, and the cycle deviation calculation formula is introduced:
[0043] Among them, the minimum period (Tmin), the maximum period (Tmax), and the design period (T). The minimum period and the maximum period are obtained through simulation software. The factors affecting the period deviation index in the simulation boundary are: a) Network topology: communication method. b) Signal matrix: (1) Message sending method; (2) Message sending length; (3) Message number; (4) Message ID.
[0044] It should be noted that the cycle deviation index is designed as follows: (1) The maximum cycle deviation is designed based on the signal logic and functional impact; (2) The message cycle deviation adopts the requirement of the signal with the highest requirement (i.e. the smallest cycle deviation) in the message encapsulation.
[0045] Step A23, determining a period deviation result according to the period deviation of each message.
[0046] In a specific implementation, the periodic deviation corresponding to each message is obtained through the above method, and then the periodic deviation result is determined according to the periodic deviation threshold. For example, the periodic deviation threshold is 5%, the periodic deviation of the message is 3%, and the periodic deviation of the message is less than the periodic deviation threshold, indicating that the periodic deviation result corresponding to the periodic deviation of the message is a normal periodic deviation result, otherwise it is determined to be an abnormal periodic deviation result.
[0047] Step S30, determining a target simulation boundary parameter according to the target load rate and the cycle deviation result; It can be understood that the target simulation boundary parameter refers to the adjusted simulation boundary parameter.
[0048] In a specific implementation, whether there is an impact on the cycle deviation is determined by the target load rate and the cycle deviation result. When there is an impact on the cycle deviation, the simulation boundary of the vehicle network is adjusted according to the ID allocation strategy to obtain an adjusted simulation boundary.
[0049] Step S40, performing network risk identification according to the target simulation boundary parameters to obtain a risk identification result.
[0050] It can be understood that the risk identification result refers to the result of identifying whether there is a risk in the vehicle network communication.
[0051] In the specific implementation, after adjusting the simulation boundary according to the simulation results, the adjusted simulation boundary parameters are obtained, and then the adjusted simulation boundary parameters are used to verify whether there are risks in the network communication of the whole vehicle, that is, to identify whether there are risks in the network communication of the whole vehicle, and perform network communication simulation according to the adjusted simulation boundary parameters. According to the network communication simulation results, it is determined whether there are risks in the network communication of the whole vehicle, that is, to obtain risk identification results.
[0052] This embodiment obtains initial simulation boundary parameters when designing the vehicle network simulation boundary; performs network communication simulation according to the initial simulation boundary parameters to obtain target load rate and cycle deviation results; determines target simulation boundary parameters according to the target load rate and the cycle deviation results; performs network risk identification according to the target simulation boundary parameters to obtain risk identification results. By determining the simulation boundary based on the vehicle network design elements, establishing the simulation dimension, forming the simulation process and method, and applying it to the actual vehicle to compare the actual vehicle data to verify the effectiveness, the problem of risk identification of network design in the early stage of vehicle design without an actual vehicle is solved.
[0053] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 4 , step S30, the vehicle network simulation boundary design method further includes steps S31-S32: Step S31, determining a message adjustment strategy according to the target load rate, a first load rate threshold and a second load rate threshold, wherein the second load rate threshold is greater than the first load rate threshold; It can be understood that the target load rate refers to the load rate obtained by the vehicle network communication simulation, the first load rate threshold refers to the critical value for judging whether it is the optimal load rate, and the second load rate threshold refers to the critical value for judging whether the load rate is high.
[0054] It should be noted that the upper limit of the overall index is set differently according to the transmission type and the physical layout of the actual vehicle, and the upper limit 1 and upper limit 2 of the load rate are designed. Load 1: Optimal load rate, the message basically does not need arbitration or other congestion or conflict judgment in the idle stage, can be sent directly, and the sending is basically not affected by the ID strategy or priority strategy, and the bus resources are sufficient; Load 2: The load is relatively high, and arbitration is required, such as ID arbitration, but the arbitration strategy can be adjusted, such as ID optimization, so that the global message meets the delay requirements. The design principles of load 1 and load 2 indicators are as follows: (1) The upper limit of the CANFD load is designed to be lower than that of CAN; (2) The shorter the trunk line length, the higher the upper limit 1 and upper limit 2 of the load rate index can be designed; (3) The shorter the branch line length and the fewer the number, the higher the upper limit 1 and upper limit 2 of the load rate index can be designed; (4) The electromagnetic interference is large, and the upper limit 1 and upper limit 2 of the load rate index should be designed to be relatively low.
[0055] In a feasible implementation, step S31 may include steps A311 to A313: Step A311, when the target load rate is less than the first load rate threshold, determining the message adjustment strategy to be a normal allocation strategy; It can be understood that the message adjustment strategy refers to a strategy for adjusting messages determined according to the load rate, and the normal allocation strategy means that the load rate does not affect the cycle deviation, and the ID allocation is relatively flexible and unrestricted.
[0056] In the specific implementation, the target load rate is compared with the first load rate threshold. When the load rate obtained by the vehicle network communication simulation is less than the critical value used to determine whether it is the optimal load rate, it indicates that the load rate obtained by the vehicle network communication simulation has no effect on the cycle deviation, and the ID allocation of the message is relatively flexible and unrestricted, which is a normal allocation strategy.
[0057] Step A312: when the target load rate is greater than or equal to the first load rate threshold and the target load rate is less than or equal to the second load rate threshold, determining that the message adjustment strategy is an identification code allocation strategy; It can be understood that the identification code allocation strategy refers to the ID allocation strategy, wherein the ID allocation strategy follows the principle that the smaller the cycle, the smaller the ID.
[0058] In a specific implementation, the target load rate is compared with the first load rate threshold and the second load rate threshold. When the load rate obtained by the vehicle network communication simulation is greater than or equal to the critical value used to determine whether it is the optimal load rate, and is less than the critical value used to determine whether the load rate is high, it indicates that the load rate obtained by the vehicle network communication simulation has a greater impact on the cycle deviation, and it is necessary to adjust the message ID according to the principle of the smaller the cycle, the smaller the ID, which is the identification code allocation strategy.
[0059] It should be noted that, at the same time, this embodiment proposes a simple correction method: combining the simulation results of periodic deviation, only adjusting the messages that exceed the deviation range, reducing their ID numbers and increasing their sending priorities to solve the problem. No overall adjustment is required, reducing the impact on the entire vehicle.
[0060] Step A313: When the target load rate is greater than the second load rate threshold, determine that the message adjustment strategy is a message encapsulation strategy.
[0061] It can be understood that the message encapsulation strategy refers to an adjustment strategy for re-encapsulating messages.
[0062] In the specific implementation, the target load rate is compared with the second load rate threshold. When the load rate obtained by the vehicle network communication simulation is greater than the critical value used to determine whether the load rate is high, it indicates that optimization cannot be achieved through ID adjustment. It is inevitable that the cycle deviation exceeds the design requirements, and the message needs to be re-encapsulated, which is the message encapsulation strategy.
[0063] Step S32, determining target simulation boundary parameters according to the message adjustment strategy and the period deviation result.
[0064] In a specific implementation, the message is adjusted according to the message adjustment strategy and the period deviation result to obtain the adjusted simulation boundary parameters. For example, when the message adjustment strategy is the identification code allocation strategy and it is a simple correction method, the message with a larger period deviation is determined according to the period deviation result, and only the ID of the message with a larger period deviation is adjusted, and the principle of the smaller the period, the smaller the ID is followed to obtain the adjusted simulation boundary parameters.
[0065] It should be noted that if Figure 5 As shown in the figure, when the simulated load rate is lower than the upper limit 1, it indicates that the cycle deviation is not affected, and the ID allocation is relatively flexible and unrestricted; when the simulated load rate is higher than 2, it indicates that when the load reaches the design upper limit 2, it will not be optimized by ID adjustment, and the cycle deviation will inevitably exceed the design requirements, and the message encapsulation will be re-performed; when the simulated load rate is between the upper limit 1 and the upper limit 2, the greater the impact on the cycle deviation, the greater the ID allocation strategy is introduced. The ID allocation strategy follows the principle that the smaller the cycle, the smaller the ID. According to the cycle deviation results, global allocation and simple allocation are determined. Global allocation: all message IDs are adjusted, and the smaller the cycle, the smaller the ID; simple allocation: only the message ID with a large cycle deviation is adjusted, and the ID is reduced according to the deviation range. The larger the deviation, the larger the reduction value.
[0066] In a feasible implementation, step S32 may include steps A321-A322: Step A321, when the message adjustment strategy is the identification code allocation strategy, determining the message to be adjusted according to the cycle deviation result and the cycle deviation threshold; It can be understood that the period deviation threshold refers to a critical value used to determine whether the period deviation corresponding to a message is normal, and the message to be adjusted refers to a message whose identification code needs to be adjusted.
[0067] In a specific implementation, when the message adjustment strategy is an identification code allocation strategy, the message whose identification code needs to be adjusted is determined based on the periodic deviation result and the periodic deviation threshold. For example, the periodic deviation corresponding to each message in the periodic deviation result is screened according to the periodic deviation threshold, and the message corresponding to a periodic deviation greater than the periodic deviation threshold is obtained as the message for adjusting the identification code.
[0068] Step A322, adjusting the identification code corresponding to the message to be adjusted, and determining the target simulation boundary parameters.
[0069] It can be understood that according to the identification code allocation strategy, the smaller the cycle, the smaller the ID principle is followed, and the identification code corresponding to the message to be adjusted is reduced to improve its sending priority, and the target simulation boundary parameter is determined according to the adjustment result.
[0070] In a feasible implementation, step A322 may include steps B3221-B3222: Step B3221, performing network communication simulation according to the target simulation boundary parameters to obtain an adjustment period deviation corresponding to the message to be adjusted; It can be understood that after reducing the identification code corresponding to the message to be adjusted, the target simulation boundary parameter is obtained, and then the network communication simulation is performed according to the target simulation boundary parameter to obtain the adjusted period deviation corresponding to the message to be adjusted.
[0071] Step B3222, determining the adjustment verification result according to the cycle deviation threshold and the adjustment cycle deviation corresponding to the message to be adjusted.
[0072] In a specific implementation, the adjustment check result refers to the result of checking whether the adjusted periodic deviation is normal. The adjustment check result includes a normal check result and an abnormal check result. Whether the adjusted message corresponding to the message to be adjusted is normal is judged according to a preset periodic deviation critical value, that is, the size relationship between the preset periodic deviation critical value and the adjusted periodic deviation corresponding to the message to be adjusted is compared to determine whether the adjusted periodic deviation of the message to be adjusted is normal. When the adjusted periodic deviation corresponding to the message to be adjusted is less than the preset periodic deviation critical value, the adjustment check result is determined to be a normal check result. Otherwise, when the adjusted periodic deviation corresponding to the message to be adjusted is greater than or equal to the preset periodic deviation critical value, the adjustment check result is determined to be an abnormal check result.
[0073] This embodiment determines the message adjustment strategy according to the target load rate, the first load rate threshold and the second load rate threshold, wherein the second load rate threshold is greater than the first load rate threshold; and determines the target simulation boundary parameter according to the message adjustment strategy and the cycle deviation result. The target load rate, the first load rate threshold and the second load rate threshold are used to obtain the size relationship between the target load rate and the first load rate threshold and the second load rate threshold, and then determine whether there is an impact on the cycle deviation. When there is an impact on the cycle deviation, the simulation boundary of the vehicle network is adjusted according to the ID allocation strategy to obtain the adjusted simulation boundary, which solves the problem that there is no real vehicle in the early stage of vehicle design and the risk identification of network design cannot be performed.
[0074] For example, in order to help understand the implementation process of the vehicle network simulation boundary design method obtained by combining this embodiment with the above-mentioned embodiment 1, please refer to Figure 6 , Figure 6A brief flow chart of a vehicle network simulation boundary design method is provided. Specifically, this embodiment is divided into four parts: simulation boundary, simulation index item, simulation index value, and simulation result analysis. It is determined according to the input boundary of the transmission data type of the signal matrix, and determined according to the input boundary of the structure / transmission path type of the network topology. Then, the project is clarified according to the index. In addition to the commonly used responsibility rate, it also includes cycle deviation simulation, and refines the factors affecting the index: 1. It can reversely check whether the simulation boundary of the first step is complete, that is, the influencing factors should all be included in the simulation boundary analysis; 2. Analysis guides the simulation method and guides the analysis of the next step of simulation results. A simulation index analysis method is given to determine whether the simulation results meet the preset index requirements. When it does not meet the preset index requirements, the design optimization principles are summarized to guide the optimization of relevant factors in the input boundary.
[0075] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the vehicle network simulation boundary design method of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.
[0076] This application also provides a vehicle network simulation boundary design device, please refer to Figure 7 , the vehicle network simulation boundary design device comprises: The acquisition module 10 is used to obtain initial simulation boundary parameters when performing vehicle network simulation boundary design; A simulation module 20, configured to perform network communication simulation according to the initial simulation boundary parameters to obtain a target load rate and a cycle deviation result; A processing module 30, configured to determine a target simulation boundary parameter according to the target load rate and the cycle deviation result; The identification module 40 is used to perform network risk identification according to the target simulation boundary parameters to obtain a risk identification result.
[0077] Optionally, the acquisition module is further used to: Determine network topology boundary parameters according to the network topology map and the first key information; determining a signal matrix boundary parameter according to the signal matrix and second key information, wherein the second key information is different from the first key information; Initial simulation boundary parameters are determined according to the network topology boundary parameters and the signal matrix boundary parameters.
[0078] Optionally, the processing module is further used to: Determine a message adjustment strategy according to the target load rate, a first load rate threshold and a second load rate threshold, wherein the second load rate threshold is greater than the first load rate threshold; A target simulation boundary parameter is determined according to the message adjustment strategy and the period deviation result.
[0079] Optionally, the processing module is further used to: When the target load rate is less than a first load rate threshold, determining the message adjustment strategy to be a normal allocation strategy; When the target load rate is greater than or equal to the first load rate threshold and the target load rate is less than or equal to the second load rate threshold, determining that the message adjustment strategy is an identification code allocation strategy; When the target load rate is greater than the second load rate threshold, the message adjustment strategy is determined to be a message encapsulation strategy.
[0080] Optionally, the processing module is further used to: When the message adjustment strategy is an identification code allocation strategy, the message to be adjusted is determined according to the cycle deviation result and the cycle deviation threshold; The identification code corresponding to the message to be adjusted is adjusted to determine the target simulation boundary parameter.
[0081] Optionally, the processing module is further used to: Perform network communication simulation according to the target simulation boundary parameters to obtain the adjustment period deviation corresponding to the message to be adjusted; The adjustment verification result is determined according to the cycle deviation threshold and the adjustment cycle deviation corresponding to the message to be adjusted.
[0082] Optionally, the simulation module is further used for: Perform network communication simulation according to the initial simulation boundary parameters to obtain the target load rate and the extreme value period corresponding to each message; Determine the period deviation of each message according to the preset period and the extreme period corresponding to each message; A period deviation result is determined according to the period deviation of each message.
[0083] The vehicle network simulation boundary design device provided by the present application adopts the vehicle network simulation boundary design method in the above embodiment, which can solve the technical problem of how to identify risks in network design in the early stage of vehicle design without a real vehicle. Compared with the prior art, the beneficial effects of the vehicle network simulation boundary design device provided by the present application are the same as the beneficial effects of the vehicle network simulation boundary design method provided by the above embodiment, and the other technical features in the vehicle network simulation boundary design device are the same as the features disclosed in the above embodiment method, which will not be repeated here.
[0084] The present application provides an in-vehicle network simulation boundary design device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the in-vehicle network simulation boundary design method in the above-mentioned embodiment one.
[0085] Reference below Figure 8 , which shows a schematic diagram of the structure of a vehicle network simulation boundary design device suitable for implementing the embodiment of the present application. The vehicle network simulation boundary design device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle terminals (such as vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 8 The in-vehicle network simulation boundary design device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0086] like Figure 8As shown, the vehicle network simulation boundary design device may include a processing device 1001 (such as a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the vehicle network simulation boundary design device are also stored. The processing device 1001, ROM1002 and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems can be connected to the I / O interface 1006: input devices 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; output devices 1008 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 1003 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 1009. The communication device 1009 can allow the vehicle network simulation boundary design device to communicate wirelessly or wired with other devices to exchange data. Although the figure shows a vehicle network simulation boundary design device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems may be implemented or have alternatively.
[0087] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0088] The vehicle network simulation boundary design device provided by the present application adopts the vehicle network simulation boundary design method in the above embodiment, which can solve the technical problem of how to identify risks in network design in the early stage of vehicle design without a real vehicle. Compared with the prior art, the beneficial effects of the vehicle network simulation boundary design device provided by the present application are the same as the beneficial effects of the vehicle network simulation boundary design method provided by the above embodiment, and the other technical features in the vehicle network simulation boundary design device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0089] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0090] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0091] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the vehicle network simulation boundary design method in the above-mentioned embodiment.
[0092] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM: Random Access Memory), a read-only memory (ROM: Read Only Memory), an erasable programmable read-only memory (EPROM: Erasable Programmable Read Only Memory or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM: CD-Read Only Memory), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency: Radio Frequency), etc., or any suitable combination of the above.
[0093] The above-mentioned computer-readable storage medium may be included in the vehicle network simulation boundary design device; or it may exist independently without being assembled into the vehicle network simulation boundary design device.
[0094] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the vehicle network simulation boundary design device, the vehicle network simulation boundary design device: when performing the vehicle network simulation boundary design, obtains initial simulation boundary parameters; performs network communication simulation according to the initial simulation boundary parameters to obtain target load rate and cycle deviation results; determines target simulation boundary parameters according to the target load rate and the cycle deviation results; performs network risk identification according to the target simulation boundary parameters to obtain risk identification results.
[0095] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0096] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0097] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0098] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned vehicle network simulation boundary design method, and can solve the technical problem of how to identify risks in network design in the early stage of vehicle design without a real vehicle. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the vehicle network simulation boundary design method provided by the above-mentioned embodiment, and will not be repeated here.
[0099] The present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned vehicle network simulation boundary design method when executed by a processor.
[0100] The computer program product provided by this application can solve the technical problem of how to identify risks in network design in the early stage of vehicle design without a real vehicle. Compared with the prior art, the beneficial effects of the computer program product provided by this application are the same as the beneficial effects of the vehicle network simulation boundary design method provided by the above embodiment, which will not be repeated here.
[0101] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A vehicle network simulation boundary design method, characterized in that: The vehicle network simulation boundary design method comprises: When designing the vehicle network simulation boundary, obtaining initial simulation boundary parameters; Perform network communication simulation according to the initial simulation boundary parameters to obtain target load rate and cycle deviation results; Determine a target simulation boundary parameter according to the target load rate and the period deviation result; Network risk identification is performed according to the target simulation boundary parameters to obtain a risk identification result.
2. The method according to claim 1, characterized in that The step of obtaining initial simulation boundary parameters comprises: Determine network topology boundary parameters according to the network topology map and the first key information; determining a signal matrix boundary parameter according to the signal matrix and second key information, wherein the second key information is different from the first key information; Initial simulation boundary parameters are determined according to the network topology boundary parameters and the signal matrix boundary parameters.
3. The method according to claim 1, characterized in that The step of determining a target simulation boundary parameter according to the target load rate and the cycle deviation result includes: Determine a message adjustment strategy according to the target load rate, a first load rate threshold and a second load rate threshold, wherein the second load rate threshold is greater than the first load rate threshold; A target simulation boundary parameter is determined according to the message adjustment strategy and the period deviation result.
4. The method according to claim 3, characterized in that The determining of the message adjustment strategy according to the target load rate, the first load rate threshold and the second load rate threshold includes: When the target load rate is less than a first load rate threshold, determining the message adjustment strategy to be a normal allocation strategy; When the target load rate is greater than or equal to the first load rate threshold and the target load rate is less than or equal to the second load rate threshold, determining that the message adjustment strategy is an identification code allocation strategy; When the target load rate is greater than the second load rate threshold, the message adjustment strategy is determined to be a message encapsulation strategy.
5. The method according to claim 3, characterized in that The determining of the target simulation boundary parameter according to the message adjustment strategy and the period deviation result includes: When the message adjustment strategy is an identification code allocation strategy, the message to be adjusted is determined according to the cycle deviation result and the cycle deviation threshold; The identification code corresponding to the message to be adjusted is adjusted to determine the target simulation boundary parameter.
6. The method according to claim 5, characterized in that After adjusting the identification code corresponding to the message to be adjusted and determining the target simulation boundary parameter, the method further includes: Perform network communication simulation according to the target simulation boundary parameters to obtain the adjustment period deviation corresponding to the message to be adjusted; The adjustment verification result is determined according to the cycle deviation threshold and the adjustment cycle deviation corresponding to the message to be adjusted.
7. The method according to claim 1, characterized in that The network communication simulation is performed according to the initial simulation boundary parameters to obtain the target load rate and cycle deviation results, including: Perform network communication simulation according to the initial simulation boundary parameters to obtain the target load rate and the extreme value period corresponding to each message; Determine the period deviation of each message according to the preset period and the extreme period corresponding to each message; A period deviation result is determined according to the period deviation of each message.
8. A vehicle network simulation boundary design device, characterized in that: The device comprises: An acquisition module, used to obtain initial simulation boundary parameters when designing the vehicle network simulation boundary; A simulation module, used to perform network communication simulation according to the initial simulation boundary parameters to obtain target load rate and cycle deviation results; A processing module, used for determining a target simulation boundary parameter according to the target load rate and the period deviation result; The identification module is used to identify network risks according to the target simulation boundary parameters to obtain risk identification results.
9. A vehicle network simulation boundary design device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the vehicle network simulation boundary design method according to any one of claims 1 to 7.
10. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the vehicle network simulation boundary design method as described in any one of claims 1 to 7 are implemented.
