Network management timing parameter optimization control method and device, equipment and storage medium
By obtaining the sending status and stop event status of the message type information, the sending time of the target network management message is accurately determined, and the test time value is calculated, which is used to optimize the control system sleep, which solves the problem of large timing parameter testing error in the prior art, and improves the test accuracy and vehicle network management performance.
Patent Information
- Application Number
- CN202411694280.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-25
- Publication Date
- 2025-02-25
- Estimated Expiration
- 2044-11-25
AI Technical Summary
In the prior art, when testing the network management timing parameters of automotive electronic control units, there is too much error, resulting in a risk of false alarms and affecting the reliability and performance of the entire vehicle.
By obtaining the message type information sending status and stop event status, the target network management message stop sending time and resending time are accurately determined, and the test time value is calculated, which is used to optimize the control system sleep.
It significantly improves the accuracy of the test, reduces false alarms caused by test errors, optimizes the performance of vehicle network management, and ensures the effectiveness of the vehicle dormant mechanism.
Smart Images

Figure CN119520278A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of automotive electronic control system development and testing technology, and in particular to a network management timing parameter optimization control method, device, equipment and storage medium. Background Art
[0002] In modern automobiles, as the number and complexity of electronic control units continue to increase, precise time control of network management is required to ensure the stability and efficiency of the system. In the network management of the automotive development system architecture, testing the timing parameters is a very important verification item. It not only determines the time when the electronic control unit enters sleep after power-off, but also involves whether the electronic control unit software of the entire vehicle meets the "sleep together" sleep mechanism. Therefore, the development and verification of the expandable test case can be described according to the time definition from the ready sleep state to the ready bus sleep mode. The timer is started immediately after the electronic control unit enters the network mode. The timer is restarted when a frame of network management message is successfully sent or received. That is, in the ready sleep state, if the timer times out, the electronic control unit enters the ready bus sleep mode. Therefore, the test of the timing parameters is essentially to test the time when the electronic control unit jumps from the ready sleep state to the ready bus sleep mode. Therefore, the key point is how to obtain the time when the electronic control unit enters the ready sleep state and the time when it enters the ready bus sleep mode during the test.
[0003] At present, the testing method of timing parameters in existing practices is to continuously monitor the communication of the electronic control unit, record the time of the last frame of network management message sent by the electronic control unit after power is off, that is, record the time when the electronic control unit enters the ready sleep state, and then record the time of the last frame of application message sent, that is, record the time when the electronic control unit enters the ready bus sleep mode, so as to calculate the timeout timing parameters.
[0004] However, although the existing approach is simple, intuitive and easy to implement, it has certain limitations in practical applications. Combined with actual testing experience, the method of using the last frame of application message sent by the electronic control unit as the judgment method for entering the preparation bus sleep mode is relatively rough. It is easy to cause excessive test errors due to the large application message cycle of the electronic control unit, resulting in the risk of false alarms of problems with the electronic control unit, affecting the reliability and performance of the entire vehicle. Therefore, how to more accurately obtain network management timing parameters has become an urgent problem to be solved.
[0005] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention
[0006] The main purpose of this application is to provide a network management timing parameter optimization control method, device, equipment and storage medium, aiming to solve the technical problem of how to more accurately obtain network management timing parameters.
[0007] To achieve the above objectives, the present application proposes a network management timing parameter optimization control method, the method comprising:
[0008] Get the message type information sending status and stop event status;
[0009] Determine the target network management message stop sending time and the target network management message resending time based on the message type information sending state and the stop event state;
[0010] A test time value is determined based on the time when the target network management message is sent again and the time when the target network management message stops being sent, and the system is controlled to sleep based on the test time value.
[0011] In one embodiment, the step of obtaining the message type information sending status and the stop event status includes:
[0012] Get the power-on status, communication status and wake-up events of the electronic control unit;
[0013] Sending message type information based on the power-on state of the electronic control unit and the communication state, and determining a message type information sending state, wherein the message type information includes an application message and a network management message;
[0014] Stopping the wake-up event determines a stop event state, where the wake-up event includes a local wake-up event and a remote wake-up event.
[0015] In one embodiment, the step of determining the target network management message stop sending time and the target network management message resending time based on the message type information sending status and the stop event status includes:
[0016] Get the target dwell time;
[0017] Determine the target network management message stop sending time and monitor the network management message sending status based on the target residence time, the message type information sending status and the stop event status;
[0018] The target network management message resending time is determined based on the target residence time and the monitoring network management message sending status.
[0019] In one embodiment, the steps of determining the target network management message stop sending time and monitoring the network management message sending status based on the target residence time, the message type information sending status and the stop event status include:
[0020] When the message type information sending status is successful sending of the application message and the network management message and the stop event status is stopping the local wake-up event or stopping the remote wake-up event, using the test equipment to record the target network management message stop sending time;
[0021] Based on the target residence time, a test device is used to simulate sending of a monitoring network management message to obtain a sending status of the monitoring network management message.
[0022] In one embodiment, the step of determining the target network management message resending time based on the target residence time and the monitoring network management message sending status further includes:
[0023] When the monitoring network management message sending status is unsuccessful sending, the target residence time is increased by a preset time and the automated test is performed again;
[0024] When the monitoring network management message sending status is successfully sent, the current sending time is recorded to obtain the target network management message re-sending time.
[0025] In one embodiment, the step of determining a test time value based on the target network management message resending time and the target network management message stop sending time, and controlling the system to sleep based on the test time value includes:
[0026] Get the target test time interval;
[0027] The test time value is obtained by subtracting the target network management message stop sending time from the target network management message resending time;
[0028] Verify the system sleep performance based on the test time value and the target test time interval to determine a verification status, and control the system sleep based on the verification status.
[0029] In one embodiment, the step of determining the verification status based on the test time value and the target test time interval for verifying the system sleep performance comprises:
[0030] When the test time value is not within the target test time interval, the verification status is failed, and the system sleep performance needs to be improved;
[0031] When the test time value is within the target test time interval, the verification status is passed, and the system sleep performance does not need to be improved.
[0032] In addition, to achieve the above purpose, the present application also proposes a network management timing parameter optimization control device, the network management timing parameter optimization control device comprising:
[0033] The acquisition module is used to obtain the message type information sending status and stop event status;
[0034] A processing module, used to determine the target network management message stop sending time and the target network management message re-sending time based on the message type information sending state and the stop event state;
[0035] The execution module is used to determine a test time value based on the time when the target network management message is sent again and the time when the target network management message stops sending, and control the system to sleep based on the test time value.
[0036] In addition, to achieve the above-mentioned purpose, the present application also proposes a network management timing parameter optimization control 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 network management timing parameter optimization control method as described above.
[0037] 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 network management timing parameter optimization control method described above are implemented.
[0038] One or more technical solutions proposed in this application have at least the following technical effects:
[0039] The present application proposes a method for optimizing and controlling network management timing parameters, which obtains the message type information sending status and the stop event status; determines the target network management message stop sending time and the target network management message resending time based on the message type information sending status and the stop event status; determines the test time value based on the target network management message resending time and the target network management message stop sending time, and controls the system sleep based on the test time value. The present application obtains the message type information sending status and the stop event status, accurately determines the target network management message stop sending time and the resending time, and then calculates the test time value to optimize the control system sleep, more accurately capture the network management timing parameters, significantly improve the accuracy of the test, reduce the problem false alarm caused by test errors, optimize the performance of the vehicle network management, and ensure the effectiveness of the vehicle sleep mechanism. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] 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.
[0041] 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.
[0042] Figure 1 A flowchart of the first embodiment of the network management timing parameter optimization control method of the present application is provided;
[0043] Figure 2 A flowchart of the second embodiment of the network management timing parameter optimization control method of the present application is provided;
[0044] Figure 3 A brief flowchart of a network management timing parameter optimization control method provided in an embodiment of the present application;
[0045] Figure 4 A schematic diagram of a scenario of a network management timing parameter optimization control method of this application;
[0046] Figure 5 This is a schematic diagram of the module structure of the network management timing parameter optimization control device according to an embodiment of the present application;
[0047] Figure 6 Schematic diagram of the device structure of the hardware operating environment involved in the network management timing parameter optimization control method in the embodiment of the present application.
[0048] 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
[0049] 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.
[0050] 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.
[0051] The main solution of the embodiment of the present application is: obtaining the message type information sending status and the stop event status; determining the target network management message stop sending time and the target network management message re-sending time based on the message type information sending status and the stop event status; determining the test time value based on the target network management message re-sending time and the target network management message stop sending time, and controlling the system sleep based on the test time value.
[0052] In this embodiment, for the convenience of description, the following description is made by taking the identification of the network management timing parameter optimization control device as the execution subject.
[0053] Although the existing technology is simple, intuitive and easy to implement, it has certain limitations in practical applications. Combined with actual testing experience, the method of using the last frame of application message sent by the electronic control unit as the judgment method for entering the preparation bus sleep mode is relatively rough. It is easy to cause excessive test errors due to the large application message cycle of the electronic control unit, resulting in the risk of false alarms of problems with the electronic control unit, affecting the reliability and performance of the entire vehicle.
[0054] The present application provides a solution, which obtains the message type information sending status and the stop event status; determines the target network management message stop sending time and the target network management message re-sending time based on the message type information sending status and the stop event status; determines a test time value based on the target network management message re-sending time and the target network management message stop sending time, and controls system sleep based on the test time value.
[0055] It can be seen from the above embodiments that the present application obtains the sending status of the message type information and the stop event status to accurately determine the target network management message stop sending time and the re-sending time, and then calculates the test time value to optimize the control system sleep and more accurately capture the network management timing parameters, which significantly improves the accuracy of the test, reduces false alarms caused by test errors, optimizes the performance of the vehicle network management, and ensures the effectiveness of the vehicle sleep mechanism.
[0056] Based on this, the embodiment of the present application provides a network management timing parameter optimization control method, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the network management timing parameter optimization control method of the present application.
[0057] In this embodiment, the network management timing parameter optimization control method includes steps S10 to S30:
[0058] Step S10, obtaining the message type information sending status and stop event status;
[0059] It should be noted that the message type information sending status reflects the characteristics of the sending status of application messages and network management messages in communication, and the stop event status reflects the characteristics of the response status to the wake-up event.
[0060] It can be understood that the message type information sending status can characterize the activity level and communication mode of the electronic control unit in the network communication, and the message type information sending status includes the application message sending status and the network management message sending status, wherein the application message includes data directly related to the vehicle function, and the network management message includes the network management tasks of the ECU, such as status synchronization and error handling.
[0061] In addition, it should be noted that the stop event state includes stopping local wake-up events and stopping remote wake-up events, wherein local wake-up events refer to events triggered by internal factors of the vehicle, such as door opening and engine starting, while remote wake-up events are triggered by external factors, such as remote control signals.
[0062] For ease of understanding, the example of obtaining the message type information sending status and the stop event status is used for explanation, wherein the information collection device is an information collection module, and the storage device is a memory.
[0063] The information acquisition module obtains the power-on status of the electronic control unit, such as ECU power-on and ECU power-off, obtains the communication status, such as stable communication and unstable communication, obtains wake-up events, such as local wake-up events and remote wake-up events, and sends message type information based on the power-on status of the electronic control unit and the communication status, such as application App messages and network management NM messages, that is, ECU sends App messages and NM messages, so as to determine the sending status of the message type information, such as application App messages are sent normally and network management NM messages are sent normally, application App messages are not sent normally and network management NM messages are sent normally, application App messages are sent normally and network management NM messages are not sent normally, and application App messages are not sent normally and network management NM messages are not sent normally, and then stops the wake-up event to determine the stop event status, such as the stop event status is successful stop of local wake-up event, successful stop of remote wake-up event, unsuccessful stop of local wake-up event and unsuccessful stop of remote wake-up event, and performs subsequent processing based on the message type information sending status and the stop event status.
[0064] In a feasible implementation, step S10 may include steps A11 to A13:
[0065] Step A11, obtaining the power-on state, communication state and wake-up event of the electronic control unit;
[0066] It should be noted that the power-on state of the electronic control unit reflects the characteristics of the power supply and startup preparation state of the electronic control unit, the communication state reflects the characteristics of the communication capability and efficiency in the network, and the wake-up event reflects the characteristics of the ability to be activated from a low power consumption or sleep state.
[0067] It can be understood that the power-on state of the electronic control unit can indicate whether the ECU has been powered on and completed the startup sequence, so that it is ready for network communication and execution of vehicle tasks, that is, ensuring that the ECU can receive and send network messages. The communication state indicates whether the ECU can successfully establish and maintain a network connection, as well as the stability of the connection and the efficiency of data transmission, and can identify bottlenecks and failure points in the network, so as to take corresponding optimization measures. The wake-up event can be triggered by physical operations inside the vehicle, such as opening the door and starting the engine, or by external signals, such as remote control commands. Monitoring the state of the wake-up event can manage the power consumption of the ECU and ensure that the ECU can respond quickly when needed.
[0068] In addition, it should be noted that operating the ECU in a powered-on state and maintaining a stable communication connection can speed up the ECU's response to wake-up events, thereby improving the startup and operation efficiency of the entire vehicle. By monitoring wake-up events, the ECU's power consumption can be managed more effectively, unnecessary energy consumption can be avoided, and battery life can be extended. By monitoring the communication status, problems in the network connection can be discovered and resolved in a timely manner, improving the stability of the network and the reliability of data transmission, and discovering potential system problems in advance, thereby taking preventive measures, reducing system failures, improving the reliability and safety of the entire vehicle, and significantly improving the driving and riding experience.
[0069] Step A12, sending message type information based on the power-on state of the electronic control unit and the communication state, and determining the message type information sending state, wherein the message type information includes an application message and a network management message;
[0070] It is understandable that by accurately determining the message sending status information, the network behavior of the ECU can be diagnosed and monitored, so that the target network management message stop sending time and the target network management message resending time can be measured more accurately.
[0071] Step A13: Stop the wake-up event to determine the stop event state, wherein the wake-up event includes a local wake-up event and a remote wake-up event.
[0072] It is understandable that by precisely controlling wake-up events, the power consumption of the ECU can be managed, ensuring that the ECU can respond quickly when needed while avoiding unnecessary energy consumption, extending battery life and significantly improving the driving and riding experience.
[0073] Step S20, determining the target network management message stop sending time and the target network management message resending time based on the message type information sending status and the stop event status;
[0074] It should be noted that the target network management message stopping sending time reflects the characteristics of changing from an active network communication state to preparing to enter a low power consumption or sleep state, and the target network management message re-sending time reflects the characteristics of recovering from a low power consumption state to an active network communication state.
[0075] It is understandable that after receiving a valid network management message in the prepare-to-sleep state, the ECU will restart the timer and maintain it in the prepare-to-sleep state, that is, it will not send network management messages. After receiving a valid network management message in the prepare-to-bus sleep mode, the ECU will jump to the repeated message state of the network mode, that is, it will start sending network management messages. Therefore, after the ECU is powered off and stops sending network management messages to enter the prepare-to-sleep state, the test equipment can be used to simulate sending a frame of valid network management messages to the ECU, and the ECU communication behavior can be monitored. When the ECU receives the valid network management message and does not send its own network management message, it is determined that the ECU is still in the prepare-to-sleep state. When the ECU receives the valid network management message and starts sending its own network management message, it is determined that the ECU enters the prepare-to-bus sleep mode, so that the time point when the ECU enters the prepare-to-bus sleep mode can be accurately obtained, thereby calculating the time to jump from the repeated message state to the prepare-to-bus sleep mode, that is, the timing parameter time.
[0076] In addition, it should be noted that the target network management message stopping sending time can represent the time point when the ECU enters the ready sleep state. The ready sleep state is the Ready Sleep State state, that is, the RSS state. At this time, the ECU stops sending network management messages, but still sends application messages. The time can be obtained more accurately and effectively to avoid errors caused by potential system problems. The target network management message sending time again can represent the time point when the ECU jumps from the ready sleep state to the prepare bus sleep mode. The prepare bus sleep mode is the Prepare Bus Sleep Mode mode, that is, the PBSM mode. At this time, the test device simulation device starts to send network management messages, instead of the ECU starting to send network management messages, which more effectively avoids the errors of ECU state jump and start sending network management message delays.
[0077] For ease of understanding, an example of determining the time when the target network management message stops sending and the time when the target network management message is sent again is used for explanation, wherein the information collection device is an information collection module, the storage device is a memory, and the processing device is a processing module.
[0078] The information acquisition module obtains the message type information sending status, such as the application App message is sent normally and the network management NM message is sent normally, the application App message is not sent normally and the network management NM message is sent normally, the application App message is sent normally and the network management NM message is not sent normally, and the application App message is not sent normally and the network management NM message is not sent normally, obtains the stop event status, such as the stop event status is stop local wake-up event or stop remote wake-up event, obtains the target residence time Δt, and initially sets the target residence time Δt to 0ms, determines the target network management message stop sending time and monitors the network management message sending status based on the target residence time, the message type information sending status and the stop event status, that is, when the message type information sending status is successful sending of application message and network management message and the stop event status is stop local wake-up event or stop remote wake-up event, uses the test equipment to record the time T1 of the last frame of network management NM message sent by ECU, and obtains the target network management message stop sending time.
[0079] At this time, the ECU enters a sleep preparation state, stops sending network management NM messages and continues to send application App messages, and uses the test equipment to simulate sending monitoring network management messages based on the target dwell time to obtain the monitoring network management message sending status, that is, after the network management NM message stops sending, it stays for Δt time, and uses the test equipment to simulate sending a frame of valid network management NM message to monitor the ECU communication behavior. When the monitoring network management message sending status is unsuccessful sending, the target dwell time is increased by a preset time and then the automated test is performed again. That is, if the ECU does not send the network management NM message, the target dwell time Δt is increased by 50ms and then the automated test is performed again until the ECU successfully sends the network management NM message. At this time, when the monitoring network management message sending status is successfully sent, the current sending time is recorded to obtain the target network management message sending time again, that is, the time T2 when the test equipment simulates sending the network management NM message is recorded to obtain the target network management message sending time again.
[0080] The target network management message stop sending time and the target network management message re-sending time are stored in a memory, and subsequent processing is performed based on the target network management message stop sending time and the target network management message re-sending time.
[0081] Step S30, determining a test time value based on the time when the target network management message is sent again and the time when the target network management message stops being sent, and controlling the system to sleep based on the test time value.
[0082] It should be noted that the test time value reflects the characteristics of the time interval from the ready-to-sleep state to the ready-to-bus-sleep mode.
[0083] It can be understood that the test time value not only determines the time when the ECU enters sleep after power-off, but also involves whether the ECU of the entire vehicle meets the sleep mechanism of "sleeping together". Usually the nominal value of the test time value is defined as 2000ms, and the tolerance is ±10%. Therefore, the test time value between 1800ms and 2200ms meets the design requirements. The accuracy of the test time value is directly related to the efficiency and stability of the vehicle network management.
[0084] In addition, it should be noted that by accurately determining the test time value, the risk of false alarms due to test errors can be reduced, the performance of vehicle network management can be optimized, and the effectiveness of the vehicle sleep mechanism can be ensured, thereby improving the reliability and performance of the vehicle.
[0085] For ease of understanding, the determination of a test time value is taken as an example for explanation, wherein the information acquisition device is an information collection module, the storage device is a memory, and the execution device is an execution module.
[0086] The information collection module obtains a target test time interval, such as 1800ms to 2200ms, obtains the target network management message re-sending time T1, obtains the target network management message stop sending time T2, and subtracts the target network management message stop sending time from the target network management message re-sending time to obtain a test time value T_NM_TIMEOUT, that is, T_NM_TIMEOUT=T2-T1, and verifies the system sleep performance based on the test time value and the target test time interval to determine the verification status, and controls the system sleep based on the verification status. At this time, the calculated test time value and the target test time interval are matched, and the expected T_NM_TIMEOUT test value is between 1800ms and 2200ms, that is, when the test time value is not in the target test time interval, the verification status is failed, and the system sleep performance needs to be improved. When the test time value is in the target test time interval, the verification status is passed, and the system sleep performance does not need to be improved.
[0087] In a feasible implementation, step S30 may include steps B11 to B13:
[0088] Step B11, obtaining the target test time interval;
[0089] It should be noted that the target test time interval is a preset time range when testing network management timing parameters.
[0090] It can be understood that the target test time interval can characterize the tolerance limit of network management performance. By presetting a clear test time interval, the network management performance of the ECU can be evaluated more accurately, reducing false alarms caused by test errors. Within this interval, the ECU can correctly respond to changes in network status within the specified time, thereby maintaining the stability and efficiency of the vehicle network.
[0091] Step B12, subtracting the target network management message stop sending time from the target network management message resending time to obtain a test time value;
[0092] It can be understood that after the test time value times out, the ECU will enter the prepare bus sleep mode, and when the ECU receives a valid network management message in the prepare bus sleep mode, it will jump to the repeat message state of the network mode, and the repeat message state is the Repeat Message State state, that is, the RMS state.
[0093] Step B13, verifying the system sleep performance and determining a verification status based on the test time value and the target test time interval, and controlling the system sleep based on the verification status.
[0094] It can be understood that the test time value is clearly limited based on the target test time interval, thereby providing a clear evaluation standard for the network management performance of the ECU, reducing false alarms caused by test errors, ensuring that the ECU can correctly respond to changes in network status within the specified time, improving the stability and efficiency of the vehicle network, and allowing the ECU to enter a sleep state at an appropriate time, reducing unnecessary energy consumption and extending battery life.
[0095] In a feasible implementation, step B13 may include steps C11 to C12:
[0096] Step C11, when the test time value is not within the target test time interval, the verification status is failed, and the system sleep performance needs to be improved;
[0097] It is understandable that when the test time value exceeds the target test time interval, it means that the time for the ECU to jump from the ready sleep state to the ready bus sleep mode does not meet the designed timeout timing parameters. In this case, the verification status is failed, which means that the system sleep performance needs to be improved.
[0098] Step C12, when the test time value is within the target test time interval, the verification status is passed, and the system sleep performance does not need to be improved.
[0099] It can be understood that when the test time value does not exceed the target test time interval, it means that the time for the ECU to jump from the ready sleep state to the ready bus sleep mode meets the designed timeout timing parameters. In this case, the verification status is successful, which means that the system sleep performance does not need to be improved.
[0100] This embodiment proposes a method for optimizing and controlling the timing parameters of network management, which obtains the message type information sending status and the stop event status; determines the target network management message stop sending time and the target network management message resending time based on the message type information sending status and the stop event status; determines the test time value based on the target network management message resending time and the target network management message stop sending time, and controls the system sleep based on the test time value. The technical problem of test error caused by the large ECU application message cycle is solved. Compared with the prior art, the present application accurately obtains the message type information sending status and the stop event status, thereby determining the stop sending time and resending time of the network management message, and then calculating the test time value to control the system sleep, which significantly improves the accuracy and efficiency of the vehicle network management, ensures the effectiveness of the vehicle sleep mechanism, and reduces energy consumption, prolongs battery life, and optimizes the driving and riding experience.
[0101] 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 later.
[0102] In this embodiment, refer to Figure 2 , Figure 2 The flowchart of the second embodiment of the network management timing parameter optimization control method of the present application is provided, and step S20 specifically includes steps S21 to S23:
[0103] Step S21, obtaining the target stay time;
[0104] It should be noted that the target stay time reflects the characteristics of the length of time the system stays from the time when the system stops sending network management messages and enters the sleep preparation state to the time when the system starts sending the next frame of network management messages.
[0105] It can be understood that the target dwell time can represent how long the ECU needs to stay after receiving a valid network management message to start monitoring whether the ECU enters the bus sleep mode, thereby more accurately capturing the state transition of the ECU, improving the accuracy of the timing parameter test, avoiding unnecessary test delays, and improving test efficiency.
[0106] For ease of understanding, obtaining the target residence time is taken as an example for explanation, wherein the information acquisition device is the information collection module, the storage device is the memory, and the processing device is the processing module.
[0107] The information acquisition module obtains the target dwell time Δt, sets the target dwell time Δt to 0ms initially, and stays for Δt time after the network management NM message stops sending. The test equipment is used to simulate sending a frame of valid network management NM message, monitor the ECU communication behavior, and when the monitoring network management message sending status is unsuccessful sending, the target dwell time is increased by a preset time and the automated test is performed again. That is, if the ECU does not send the network management NM message, the target dwell time Δt is increased by 50ms and the automated test is performed again until the ECU successfully sends the network management NM message. At this time, the target dwell time after continuous cycle accumulation can be obtained, and the target dwell time is stored in the memory, and subsequent processing is performed based on the target dwell time.
[0108] Step S22, determining the target network management message stop sending time and monitoring the network management message sending status based on the target stay time, the message type information sending status and the stop event status;
[0109] It should be noted that the monitoring of the network management message sending status reflects the characteristics of the behavior under different network management states.
[0110] For ease of understanding, the following examples are used to illustrate determining the target network management message stop sending time and monitoring the network management message sending status, wherein the information collection device is an information collection module, the storage device is a memory, and the processing device is a processing module.
[0111] The information collection module obtains the message type information sending status, such as the application App message is sent normally and the network management NM message is sent normally, the application App message is not sent normally and the network management NM message is sent normally, the application App message is sent normally and the network management NM message is not sent normally, and the application App message is not sent normally and the network management NM message is not sent normally, obtains the stop event status, such as the stop event status is stop local wake-up event or stop remote wake-up event, obtains the target stay time Δt, and initially sets the target stay time Δt to 0ms, based on the target stay time, the message type information sending status and the stop event status Determine the target network management message stopping sending time and the monitoring network management message sending status, that is, when the message type information sending status is the successful sending of application messages and network management messages and the stop event status is the stopping of local wake-up events or the stopping of remote wake-up events, use the test equipment to record the time T1 of the last frame of network management NM message sent by ECU, and obtain the target network management message stopping sending time. At this time, ECU enters the ready sleep state, stops sending network management NM messages and continues to send application App messages. Based on the target stay time, use the test equipment to simulate the sending of monitoring network management messages to obtain the monitoring network management message sending status.
[0112] In a feasible implementation, step S22 may include steps D11 to D12:
[0113] Step D11, when the message type information sending status is successful sending of application messages and network management messages and the stop event status is stopping local wake-up events or stopping remote wake-up events, using a test device to record the target network management message stop sending time;
[0114] It can be understood that the monitoring of network management messages can characterize whether the ECU sends or stops sending network management messages at an appropriate time. By monitoring the sending status of the ECU network management messages, the time point when the ECU enters different network management states can be determined more accurately, thereby improving the accuracy of the timing parameter test.
[0115] Step D12, based on the target residence time, using the test equipment to simulate sending the monitoring network management message, and obtaining the sending status of the monitoring network management message.
[0116] It can be understood that monitoring the sending status of network management messages can ensure the correct behavior of the ECU in network mode, enhance the reliability and effectiveness of vehicle network management, and promptly discover and solve problems in network management, thereby improving the stability and security of the system.
[0117] Step S23: determining a target network management message resending time based on the target residence time and the monitored network management message sending status.
[0118] It can be understood that, based on the target residence time and the monitoring network management message sending status, the time point when the ECU enters different network management states can be determined more accurately, thereby improving the accuracy of the timing parameter test.
[0119] For ease of understanding, an example of determining the time to resend a target network management message is used for explanation, wherein the information collection device is an information collection module, the storage device is a memory, and the processing device is a processing module.
[0120] ECU enters the ready sleep state, stops sending network management NM messages and continues to send application App messages, and uses the test equipment to simulate sending monitoring network management messages based on the target dwell time to obtain the monitoring network management message sending status, that is, it stays for Δt time after the network management NM message stops sending, and uses the test equipment to simulate sending a frame of valid network management NM message to monitor the ECU communication behavior. When the monitoring network management message sending status is unsuccessful sending, the target dwell time is increased by a preset time and the automated test is performed again. That is, if the ECU does not send the network management NM message, the target dwell time Δt is increased by 50ms and the automated test is performed again until the ECU successfully sends the network management NM message. At this time, when the monitoring network management message sending status is successfully sent, the current sending time is recorded to obtain the target network management message sending time again, that is, the time T2 when the test equipment simulates sending the network management NM message is recorded to obtain the target network management message sending time again, and subsequent processing is performed based on the target network management message sending time again.
[0121] In a feasible implementation, step S23 may include steps E11 to E12:
[0122] Step E11, when the monitoring network management message sending status is unsuccessful sending, the target stay time is increased by a preset time and the automated test is performed again;
[0123] It can be understood that the preset duration refers to the time that is added to the target residence time when the sending status of the monitoring network management message is not successfully sent during the automated test process, to ensure that the test does not fail immediately when the ECU does not respond as expected, but a certain time buffer is given so that the possible delayed response of the ECU is taken into account. The preset duration provides a buffer for the delayed response of the ECU and reduces misjudgments caused by temporary network fluctuations or ECU processing delays.
[0124] In addition, it should be noted that automated testing reduces manual intervention, improves the speed and frequency of test execution, makes the testing process more efficient, executes a large number of test cases in a short period of time, improves test coverage, reduces repetitive work, and reduces labor and time costs.
[0125] Step E12, when the monitoring network management message sending status is successfully sent, record the current sending time to obtain the target network management message next sending time.
[0126] It can be understood that when the monitoring network management message sending status is successfully sent, by recording the current sending time, the accuracy of the timing parameter test can be improved, the error caused by the ECU state jump and the delay in starting to send the NM message can be reduced, the test time can be shortened, and the test efficiency can be improved.
[0127] This embodiment proposes a method for optimizing and controlling network management timing parameters, which obtains the target dwell time; determines the target network management message stop sending time and monitors the network management message sending status based on the target dwell time, the message type information sending status and the stop event status; determines the target network management message resending time based on the target dwell time and the monitoring network management message sending status. This solves the technical problem of how to obtain network management timing parameters more accurately. Compared with the prior art, this application obtains the target dwell time and combines the message type information sending status and the stop event status to accurately determine the stop sending time and resending time of the network management message, which significantly improves the network management performance and test accuracy, ensures the effectiveness of the vehicle's sleep mechanism, and reduces energy consumption, prolongs battery life, optimizes driving and riding experience, and enhances the flexibility and response speed of vehicle network management.
[0128] For example, in order to help understand the implementation process of the network management timing parameter optimization control method obtained by combining this embodiment with the above-mentioned embodiment 1, please refer to Figure 3 , Figure 3 A brief flow chart of a network management timing parameter optimization control method is provided, specifically:
[0129] Referring to Example 1, the message type information sending status and the stop event status are obtained; based on the message type information sending status and the stop event status, the target network management message stop sending time and the target network management message re-sending time are determined; based on the target network management message re-sending time and the target network management message stop sending time, a test time value is determined, and the system is hibernated based on the test time value. Referring to Example 2, the target dwell time is obtained; based on the target dwell time, the message type information sending status and the stop event status, the target network management message stop sending time and the monitoring network management message sending status are determined; based on the target dwell time and the monitoring network management message sending status, the target network management message re-sending time is determined.
[0130] like Figure 4 As shown, Figure 4 This is a scenario diagram of the network management timing parameter optimization control method of this application. If the actual T_NM_TIMEOUT of a certain ECU software is set between 1800ms and 2000ms, and its App message period is 1000ms. In the existing testing method, the time when the last frame NM sent by the ECU enters the RSS state is recorded as T1, and the time when it sends the next frame App message is recorded as T2; if T2-T1 is between 1000ms and 1800ms, then the App message is the last frame message sent by the ECU, and the test determines that T2 is the time to enter the PBSM mode; obviously, the test value T_NM_TIMEOUT between 1000ms and 1800ms does not match the actual value of 1800ms to 2000ms of the ECU software, resulting in a large test error. This is because the App message cycle of the ECU is relatively large, resulting in no communication between the time T2 of the last frame App message sent and the actual PBSM mode time T2, that is, the ECU has not entered the PBSM mode at time T2, so according to the existing testing method, it will be mistakenly believed that the ECU has entered the PBSM mode at time T2, while the actual time T2 is the expected value of the test.
[0131] By comparing the test method of this solution with the existing technology, we can see that the test accuracy has been significantly improved. The following is a reflection of the optimization effect.
[0132] In actual tests of the prior art, the time when the ECU sends the last frame of App message is used as the time point for entering the PBSM mode, and the maximum deviation rate = App message period / nominal value; taking the App message period of 1000ms as an example, the maximum test deviation is even close to 50%, so the larger the App message period, the greater the deviation; in actual tests, even if the actual T_NM_TIMEOUT timing parameters of each ECU meet the requirements, test failures may occur. In actual tests of the present application, the time when the ECU can send its own NM message after receiving the NM message is used as the time point for entering the PBSM mode, and the maximum deviation rate = Δt / nominal value; taking the example of Δt increasing by 50ms successively, the maximum test deviation is 2.5%, which is completely acceptable compared to the tolerance of ±10%; and the test end Δt can be set arbitrarily according to requirements, and the smaller the Δt, the more accurate the test value.
[0133] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the network management timing parameter optimization control method of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.
[0134] This application also provides a network management timing parameter optimization control device, please refer to Figure 5 , the network management timing parameter optimization control device comprises:
[0135] An acquisition module 10 is used to acquire a message type information sending status and a stop event status;
[0136] A processing module 20, configured to determine a target network management message stop sending time and a target network management message resending time based on the message type information sending state and the stop event state;
[0137] The execution module 30 is used to determine a test time value based on the target network management message re-sending time and the target network management message stop sending time, and control the system to sleep based on the test time value.
[0138] The acquisition module 10 is also used to acquire the power-on state, communication state and wake-up event of the electronic control unit;
[0139] Sending message type information based on the power-on state of the electronic control unit and the communication state, and determining a message type information sending state, wherein the message type information includes an application message and a network management message;
[0140] Stopping the wake-up event determines a stop event state, where the wake-up event includes a local wake-up event and a remote wake-up event.
[0141] The processing module 20 is also used to obtain the target residence time;
[0142] Determine the target network management message stop sending time and monitor the network management message sending status based on the target residence time, the message type information sending status and the stop event status;
[0143] The target network management message resending time is determined based on the target residence time and the monitoring network management message sending status.
[0144] The processing module 20 is further used to record the target network management message stop sending time using the test equipment when the message type information sending status is the successful sending of the application message and the network management message and the stop event status is the stop local wake-up event or the stop remote wake-up event;
[0145] Based on the target residence time, a test device is used to simulate sending of a monitoring network management message to obtain a sending status of the monitoring network management message.
[0146] The processing module 20 is further configured to, when the monitoring network management message sending status is unsuccessful sending, increase the target stay time by a preset time and then perform the automated test again;
[0147] When the monitoring network management message sending status is successfully sent, the current sending time is recorded to obtain the target network management message re-sending time.
[0148] The execution module 30 is also used to obtain a target test time interval;
[0149] Subtract the target network management message stop sending time from the target network management message resending time to obtain a test time value;
[0150] A verification status is determined based on the test time value and the target test time interval to verify the system sleep performance, and the system sleep is controlled based on the verification status.
[0151] The execution module 30 is further configured to, when the test time value is not within the target test time interval, determine that the verification status is failed and the system sleep performance needs to be improved;
[0152] When the test time value is within the target test time interval, the verification status is passed, and the system sleep performance does not need to be improved.
[0153] The network management timing parameter optimization control device provided by the present application adopts the network management timing parameter optimization control method in the above embodiment, which can solve the technical problem of how to more accurately obtain the network management timing parameters. Compared with the prior art, the beneficial effects of the network management timing parameter optimization control device provided by the present application are the same as the beneficial effects of the network management timing parameter optimization control method provided by the above embodiment, and other technical features in the network management timing parameter optimization control device are the same as the features disclosed in the above embodiment method, which will not be repeated here.
[0154] The present application provides a network management timing parameter optimization control device, which includes: at least one processor; and a memory that is communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed 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 network management timing parameter optimization control method in the above-mentioned embodiment one.
[0155] Reference below Figure 6 , which shows a schematic diagram of the structure of a network management timing parameter optimization control device suitable for implementing an embodiment of the present application. The network management timing parameter optimization control device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 6 The network management timing parameter optimization control device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0156] like Figure 6As shown, the network management timing parameter optimization control device may include a processing device 1001 (such as a central processing unit, a graphics processing unit, 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. Various programs and data required for the operation of the network management timing parameter optimization control device are also stored in the RAM 1004. The processing device 1001, the ROM 1002, and the RAM 1004 are connected to each other via a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems may 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 may allow the network management timing parameter optimization control device to communicate wirelessly or wired with other devices to exchange data. Although the figure shows a network management timing parameter optimization control 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 instead.
[0157] 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.
[0158] The network management timing parameter optimization control device provided by the present application adopts the network management timing parameter optimization control method in the above embodiment, which can solve the technical problem of how to more accurately obtain the network management timing parameters. Compared with the prior art, the beneficial effects of the network management timing parameter optimization control device provided by the present application are the same as the beneficial effects of the network management timing parameter optimization control method provided by the above embodiment, and other technical features in the network management timing parameter optimization control device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0159] 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.
[0160] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the 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.
[0161] 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 network management timing parameter optimization control method in the above-mentioned embodiment.
[0162] 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), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), 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 that can 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), etc., or any suitable combination of the above.
[0163] The computer-readable storage medium may be included in the network management timing parameter optimization control device; or may exist independently without being assembled into the network management timing parameter optimization control device.
[0164] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the network management timing parameter optimization control device, the network management timing parameter optimization control device: obtains the message type information sending status and the stop event status; determines the target network management message stop sending time and the target network management message re-sending time based on the message type information sending status and the stop event status; determines the test time value based on the target network management message re-sending time and the target network management message stop sending time, and controls the system sleep based on the test time value.
[0165] 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).
[0166] 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.
[0167] 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.
[0168] 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 network management timing parameter optimization control method, and can solve the technical problem of how to more accurately obtain network management timing parameters. 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 network management timing parameter optimization control method provided by the above-mentioned embodiment, and will not be repeated here.
[0169] 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 network management timing parameter optimization control method, characterized in that: The method includes: Get the message type information sending status and stop event status; Determine the target network management message stop sending time and the target network management message resending time based on the message type information sending state and the stop event state; A test time value is determined based on the time when the target network management message is sent again and the time when the target network management message stops being sent, and the system is controlled to sleep based on the test time value.
2. The method according to claim 1, characterized in that The step of obtaining the message type information sending status and the stop event status comprises: Get the power-on status, communication status and wake-up events of the electronic control unit; Sending message type information based on the power-on state of the electronic control unit and the communication state, and determining a message type information sending state, wherein the message type information includes an application message and a network management message; Stopping the wake-up event determines a stop event state, where the wake-up event includes a local wake-up event and a remote wake-up event.
3. The method according to claim 1, characterized in that The step of determining the target network management message stop sending time and the target network management message resending time based on the message type information sending state and the stop event state comprises: Get the target dwell time; Determine the target network management message stop sending time and monitor the network management message sending status based on the target residence time, the message type information sending status and the stop event status; The target network management message resending time is determined based on the target residence time and the monitoring network management message sending status.
4. The method according to claim 3, characterized in that The steps of determining the target network management message stop sending time and monitoring the network management message sending status based on the target stay time, the message type information sending status and the stop event status include: When the message type information sending status is successful sending of the application message and the network management message and the stop event status is stopping the local wake-up event or stopping the remote wake-up event, using the test equipment to record the target network management message stop sending time; Based on the target residence time, a test device is used to simulate sending of a monitoring network management message to obtain a sending status of the monitoring network management message.
5. The method according to claim 3, characterized in that The step of determining the target network management message resending time based on the target residence time and the monitoring network management message sending status also includes: When the monitoring network management message sending status is unsuccessful sending, the target residence time is increased by a preset time and the automated test is performed again; When the monitoring network management message sending status is successfully sent, the current sending time is recorded to obtain the target network management message re-sending time.
6. The method according to claim 1, characterized in that The step of determining a test time value based on the target network management message resending time and the target network management message stopping sending time, and controlling the system to sleep based on the test time value comprises: Get the target test time interval; The test time value is obtained by subtracting the target network management message stop sending time from the target network management message resending time; Verify the system sleep performance based on the test time value and the target test time interval to determine a verification status, and control the system sleep based on the verification status.
7. The method according to claim 6, characterized in that The step of verifying the system sleep performance and determining the verification status based on the test time value and the target test time interval includes: When the test time value is not within the target test time interval, the verification status is failed, and the system sleep performance needs to be improved; When the test time value is within the target test time interval, the verification status is passed, and the system sleep performance does not need to be improved.
8. A network management timing parameter optimization control device, characterized in that: The device comprises: The acquisition module is used to obtain the message type information sending status and stop event status; A processing module, used to determine the target network management message stop sending time and the target network management message re-sending time based on the message type information sending state and the stop event state; The execution module is used to determine a test time value based on the time when the target network management message is sent again and the time when the target network management message stops sending, and control the system to sleep based on the test time value.
9. A network management timing parameter optimization control 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 network management timing parameter optimization control 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 network management timing parameter optimization control method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Method and device for testing wake-up function of real-time clock module and electronic equipment
CN109921915A
Automatic test method and device for gateway network management strategy
CN114124767A
Automatic test method and system for whole vehicle indirect network management method
CN118018442A