Vehicle-mounted part dormancy awakening function test method and system, medium and terminal

By individually controlling the wake-up power cord of the vehicle parts and simulating the vehicle current status, the problem of the failure to effectively simulate the abnormal wake-up of the part controller in the vehicle environment in the prior art is solved, and precise management and efficient test results are achieved for each part.

CN119805046APending Publication Date: 2025-04-11SAIC GM WULING AUTOMOBILE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411925574.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-25
Publication Date
2025-04-11

AI Technical Summary

Technical Problem

The existing vehicle-mounted parts testing methods cannot effectively simulate the abnormal wake-up situation of the part controller in the vehicle environment, and the testing process is cumbersome, making it difficult to achieve precise management of each part.

Method used

By traversing each channel of the analog digital I/O module control module, the wake-up power line of each part to be tested is individually controlled, the power-up and down state of the whole vehicle is simulated, and the current value of the whole vehicle is collected in real time to simulate abnormal wake-up and sleep state.

Benefits of technology

It realizes precise management of each vehicle-mounted part, improves the comprehensiveness of test results, can quickly locate faulty parts, improves maintenance and commissioning efficiency, reduces the energy consumption of the vehicle in standby state, and improves the reliability and stability of the vehicle.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119805046A_ABST
    Figure CN119805046A_ABST
Patent Text Reader

Abstract

The invention discloses a vehicle-mounted part dormancy wake-up function test method and system, a medium and a terminal, and the method comprises the steps: traversing each channel of an analog digital I / O module control module connected to a vehicle storage battery for each to-be-tested part of a vehicle, and connecting a wake-up power line of the current part to a current traversal channel, awakening power lines of other parts are connected to other channels; in a first time period after the whole vehicle power-on and power-off state simulation is carried out on the vehicle, if a whole vehicle current value collected in real time is smaller than a first preset value, a current traversal channel is controlled to electrify a wake-up power line of a current part, and other parts are electrified when the electrifying time reaches a second preset value; and when the power-on time of other parts reaches a third preset value, performing dormancy simulation on the current part to analyze a dormancy function test result of the current part. According to the invention, the process that the whole vehicle is awakened after the current to-be-tested part is awakened is simulated, so that the comprehensiveness of the test result is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of vehicle-mounted parts testing, and in particular to a vehicle-mounted parts sleep and wake-up function testing method, system, medium and terminal. Background Art

[0002] After the vehicle is powered off, a certain part may work abnormally, thereby waking up the entire vehicle. Based on this, in order to test the impact of abnormal working conditions on the entire vehicle, it is necessary to perform voltage output wake-up on the wake-up signal lines of each part in sequence. In the current test scheme, the vehicle parts are mainly placed on a test bench for wake-up testing, and when applying voltage to the wake-up signal lines of the parts, it is necessary to frequently replace the test harness and turn the power on and off, and the vehicle's sleep state requires manual judgment of the vehicle's current and network status. In addition, the existing technology only monitors the sleep wake-up messages sent by a single part controller itself, without considering the impact of abnormal wake-up of a part controller on other part controllers in the whole vehicle environment. Summary of the invention

[0003] The embodiments of the present invention provide a method, system, medium and terminal for testing the sleep and wake-up functions of vehicle-mounted parts, which individually control the wake-up power line of each part to be tested to achieve precise management of each vehicle-mounted part, and simulate the process of waking up the entire vehicle after waking up the current part to be tested, so as to improve the comprehensiveness of the test results.

[0004] In order to solve the above technical problems, an embodiment of the present invention provides a method for testing the sleep and wake-up functions of vehicle-mounted parts, comprising:

[0005] For each part to be tested on the vehicle, traverse each channel of the analog digital I / O module control module, connect the wake-up power line of the current part to be tested to the current traversed channel, and connect the wake-up power lines of other parts to be tested to other channels of the analog digital I / O module control module; wherein the analog digital I / O module control module is connected to the battery of the vehicle, and one part to be tested is connected to one channel;

[0006] Simulating the power-on and power-off states of the vehicle, and then continuously collecting the vehicle current value in real time;

[0007] In the first time period, if the vehicle current value is less than the first preset value, the current traversal channel is controlled to energize the wake-up power line of the current part to be tested to simulate the abnormal wake-up of the current part to be tested, and when the power-on time reaches the second preset value, other parts to be tested are energized;

[0008] When the power-on time of other components to be tested reaches a third preset value, a sleep simulation is performed on the current component to be tested, and a sleep function test result of the current component to be tested is analyzed based on the sleep simulation result.

[0009] In implementing the embodiment of the present invention, for each part to be tested on the vehicle, each channel of the analog digital I / O module control module is traversed, the wake-up power line of the current part to be tested is connected to the currently traversed channel, and the wake-up power lines of other parts to be tested are connected to other channels of the analog digital I / O module control module, wherein the analog digital I / O module control module is connected to the battery of the vehicle, and one part to be tested corresponds to one channel of the analog digital I / O module control module. The wake-up power line of each part to be tested is individually controlled by using the analog digital I / O module control module to achieve precise management of each vehicle-mounted part, without the need to disassemble the parts to be tested individually and place them on a test bench for a single test. Based on the aforementioned wiring state, the vehicle is simulated for power on and off state, and after the power on and off state simulation is completed, the vehicle current value is continuously and in real time collected, which can simulate various power state changes in actual driving, so that the test results are closer to actual usage. Then, within the first time period, if the vehicle current value is less than the first preset value, it means that the system is in a dormant state. At this time, the current traversal channel is controlled to energize the wake-up power line of the current part to be tested to simulate the abnormal wake-up of the current part to be tested, and considering that when the current part to be tested is abnormally awakened due to abnormal voltage, it may affect other parts to be tested on the vehicle. When the power-on time reaches the second preset value, other parts to be tested on the vehicle are powered on to simulate the process of waking up the whole vehicle and starting to supply power to other parts to be tested after the current part to be tested is awakened first, which is helpful to detect the behavior of the parts under abnormal wake-up conditions and the impact on the whole vehicle, thereby improving the comprehensiveness of the test results. Finally, the dormancy function test results of each part to be tested are obtained according to the analysis of the dormancy simulation results, which is helpful to quickly locate the faulty parts and improve the maintenance and debugging efficiency. In addition, through the above means, each part to be tested on the vehicle is tested one by one to ensure that the sleep and wake-up functions of each part to be tested are verified and tested, so as to comprehensively evaluate the system performance of the whole vehicle. By strictly testing the sleep and wake-up functions of each part, potential power management problems can be discovered and fixed, and then the sleep and wake-up functions of each part are optimized, which can effectively reduce the energy consumption of the vehicle in standby state and improve the reliability and stability of the vehicle.

[0010] As a preferred solution, when the power-on time of the other parts to be tested reaches the third preset value, the current part to be tested is subjected to a sleep simulation, and the sleep function test result of the current part to be tested is analyzed and obtained according to the sleep simulation result, specifically:

[0011] When the power-on time of other parts to be tested reaches the third preset value, control the current traversal channel to power off the wake-up power line of the current part to be tested, and when the power-off time of the wake-up power line of the current part to be tested reaches the fourth preset value, determine whether the current vehicle current value is greater than the first preset value;

[0012] If so, it is determined that the sleep function of the current part to be tested is abnormal;

[0013] If not, it is determined that the sleep function of the current component to be tested is normal.

[0014] According to a preferred scheme for implementing the embodiment of the present invention, when the power-on time of other parts to be tested reaches a third preset value, the current traversal channel is controlled to cut off the power to the wake-up power line of the current part to be tested, and by setting a fourth preset value, it is ensured that the change in the current value after power failure is observed within a sufficient time to avoid misjudgment due to short-term current fluctuations, so as to accurately detect whether the current part to be tested has successfully entered the sleep state, thereby improving the reliability and accuracy of the sleep function test results.

[0015] As a preferred solution, the vehicle is simulated in the state of powering on and off, and then the vehicle current value of the vehicle is continuously collected in real time, specifically:

[0016] Control the current traversal channel to energize the wake-up power line of the current part to be tested, and at the same time control other channels of the analog digital I / O module control module to synchronously energize the wake-up power lines of other parts to be tested;

[0017] When the power-on time reaches the third preset value, the current traversal channel is controlled to cut off the power supply of the current wake-up power line of the part to be tested, and at the same time, other channels of the analog digital I / O module control module are controlled to synchronously cut off the power supply of other wake-up power lines of other parts to be tested, and the vehicle current value of the vehicle is continuously collected in real time according to the preset data collection frequency and the preset data collection times.

[0018] By implementing the preferred scheme of the embodiment of the present invention, the wake-up power line of the current part to be tested and the wake-up power lines of other parts to be tested on the vehicle are powered on and off synchronously, which can ensure that all parts to be tested perform sleep and wake-up operations at the same time. This helps to simulate the scenario of multiple parts working at the same time in actual use, reduce test errors caused by time differences, and improve the authenticity and reliability of the test.

[0019] As a preferred solution, the real-time collection of the vehicle current value is specifically as follows:

[0020] The current value of the vehicle is collected in real time using a current sensor connected to the battery.

[0021] According to a preferred solution of implementing the embodiment of the present invention, a current sensor is connected to the battery to collect the vehicle's entire current value in real time, providing instant power consumption data, which helps to identify abnormal current peaks or continuous high current consumption, thereby quickly identifying and locating parts that have abnormal wake-up and sleep state changes.

[0022] As a preferred solution, after simulating the power-on and power-off states of the vehicle and continuously collecting the vehicle current value in real time, the method further includes:

[0023] In the first time period, if all the vehicle current values ​​collected are greater than or equal to the first preset value, all the vehicle current values ​​are iteratively processed, and the vehicle power-on and power-off states are simulated for each iterative processing. When the vehicle power-on and power-off states simulation is completed, the vehicle current value of the vehicle is continuously collected in real time, and all the vehicle current values ​​collected in the current second time period are compared with the first preset value until the number of iterations meets the preset number, then the iteration is terminated, or until any vehicle current value collected in the current second time period is less than the first preset value, then the iteration is terminated; wherein, the first time period and the second time period have the same time length, and in each iteration, the starting time of the current second time period is the time when the vehicle power-on and power-off states simulation is completed in the current iterative processing process.

[0024] A preferred scheme for implementing the embodiment of the present invention is to simulate the power-on and power-off states of the vehicle, and then continuously collect the vehicle current values ​​in real time. If, within a first time period, the collected vehicle current values ​​of all vehicles are greater than or equal to a first preset value, it is preliminarily determined that the vehicle is still in a wake-up state after being powered off for a period of time. At this time, the vehicle power-on and power-off state simulation operation is repeated for multiple times to determine whether the vehicle is still in a wake-up state after being powered off for a period of time. If the number of repeated vehicle power-on and power-off state simulation operations meets the preset number of times, or any vehicle current value collected within the current second time period is less than the first preset value, that is, the vehicle changes to a sleep state after being powered off for a period of time, then the iteration is terminated to complete the preliminary test of the sleep function of the part to be tested.

[0025] As a preferred solution, after the iteration is terminated until the number of iterations meets the preset number, the method further includes:

[0026] At the end of the test, the vehicle current value of the vehicle is collected in real time, the test time of the current part to be tested is recorded, and the test of the current part to be tested is ended;

[0027] The test end time is the time when the iteration ends.

[0028] The preferred scheme of the embodiment of the present invention is implemented. At the end of the test, the vehicle current value of the vehicle is collected in real time, and the test time of the current part to be tested is recorded, so as to ensure that the latest vehicle current data at the end of the test is obtained, and ensure that the time record of each part test is accurate, so as to provide data that can reflect the real state of the parts for subsequent data analysis and performance evaluation, and help to capture any abnormal phenomena or last-minute changes during the test process.

[0029] As a preferred solution, if any vehicle current value acquired within the second time period until the current time period is less than the first preset value, then the iteration is terminated, the method further includes:

[0030] Control the current traversal channel to energize the wake-up power line of the current part to be tested to simulate abnormal awakening of the current part to be tested, and when the power-on time reaches a second preset value, energize other parts to be tested;

[0031] When the power-on time of other components to be tested reaches a third preset value, a sleep simulation is performed on the current component to be tested, and a sleep function test result of the current component to be tested is analyzed based on the sleep simulation result.

[0032] The preferred scheme of the embodiment of the present invention is implemented until any vehicle current value collected within the current second time period is less than the first preset value, then the iteration is terminated, and the whole vehicle is in a sleep state. The current traversal channel is then controlled to energize the wake-up power line of the current part to be tested to simulate the abnormal wake-up of the current part to be tested, and when the power-on time reaches the second preset value, other parts to be tested are powered on, and then when the power-on time of other parts to be tested reaches the third preset value, the current part to be tested is subjected to sleep simulation, and based on the sleep simulation result, the sleep function test result of the current part to be tested is analyzed to further test whether the sleep function of the part to be tested is operating normally.

[0033] In order to solve the same technical problem, an embodiment of the present invention further provides a vehicle-mounted parts sleep and wake-up function test system, comprising:

[0034] A wiring module is used for traversing each channel of the analog digital I / O module control module for each part to be tested on the vehicle, connecting the wake-up power line of the current part to be tested to the current traversed channel, and connecting the wake-up power lines of other parts to be tested to other channels of the analog digital I / O module control module; wherein the analog digital I / O module control module is connected to the battery of the vehicle, and one part to be tested is connected to one channel;

[0035] A simulation acquisition module, used to simulate the power-on and power-off states of the vehicle, and then continuously and real-timely acquire the vehicle current value;

[0036] A wake-up simulation module is used to control the current traversal channel to energize the wake-up power line of the current part to be tested if the vehicle current value is less than a first preset value within a first time period, so as to simulate the abnormal wake-up of the current part to be tested, and to energize other parts to be tested when the power-on time reaches a second preset value;

[0037] The sleep test module is used to perform sleep simulation on the current part to be tested when the power-on time of other parts to be tested reaches a third preset value, and analyze and obtain the sleep function test result of the current part to be tested based on the sleep simulation result.

[0038] In order to solve the same technical problem, the present invention also provides a computer-readable storage medium, which includes a stored computer program; wherein, when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the method for testing the sleep and wake-up functions of vehicle-mounted parts.

[0039] In order to solve the same technical problem, the present invention also provides a terminal, including a processor, a memory and a computer program stored in the memory; wherein the computer program can be executed by the processor to implement the method for testing the sleep and wake-up functions of vehicle-mounted parts. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 : A flowchart of a method for testing the sleep and wake-up functions of vehicle-mounted parts provided in the first embodiment of the present invention;

[0041] Figure 2 : A structural diagram of a vehicle-mounted parts sleep and wake-up function testing system provided in Example 1 of the present invention. DETAILED DESCRIPTION

[0042] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0043] Embodiment one:

[0044] Please refer to Figure 1 , a vehicle-mounted parts sleep and wake-up function test method provided by an embodiment of the present invention, the method includes steps S1 to S4, each step is specifically as follows:

[0045] Step S1, for each part to be tested on the vehicle, traverse each channel of the analog digital I / O module control module, connect the wake-up power line of the current part to be tested to the currently traversed channel, and connect the wake-up power lines of other parts to be tested to other channels of the analog digital I / O module control module.

[0046] Among them, the analog digital I / O module control module is connected to the battery of the vehicle, and one part to be tested is connected to one channel.

[0047] As an example, there are 4 parts to be tested on the vehicle, and these 4 parts to be tested are all controllers, namely controller 1, controller 2, controller 3 and controller 4, each controller is connected to the battery of the vehicle, and the analog digital I / O module control module has 12 channels, namely ch0~ch12, and the analog digital I / O module control module is also connected to the battery of the vehicle. Based on this, in order to test the controller 1 on the vehicle, first connect the wake-up power line of controller 1 to ch0, and connect the wake-up power line of controller 2 to ch1, connect the wake-up power line of controller 3 to ch2, and connect the wake-up power line of controller 4 to ch3, and then execute steps S2 to S4 to complete the first test of controller 1; then, change the wake-up power line of controller 1 to ch1, and change the wake-up power line of controller 2 to ch0, the wake-up power line of controller 3 is still connected to ch2, and the wake-up power line of controller 4 is still connected to ch3, and then execute steps S2 to S4 again to complete the second test of controller 1; then, change the wake-up power line of controller 1 to ch2, and change the wake-up power line of controller 3 to ch1, the wake-up power line of controller 2 is still connected to ch0, and the wake-up power line of controller 4 is still connected to ch3, and then execute steps S2 to S4 again to complete the third test of controller 1; and so on. Through the above means, the wake-up power line of the controller 1 is connected to each channel of the analog digital I / O module control module, and steps S2 to S4 are executed after each channel is changed to complete the multi-channel test of the controller 1. In this way, during the multi-channel test, if a channel performs abnormally, the problem channel can be quickly located to facilitate subsequent troubleshooting and repair. In addition, the test of multiple channels can simulate different signal input sequences and timings to ensure that the controller can work normally under various input conditions, thereby improving the comprehensiveness of the test.

[0048] It should be noted that the parts to be tested on the vehicle include but are not limited to the controller. This embodiment is not limited to the types of parts to be tested, and the types of parts can be freely adjusted according to the vehicle model to meet the vehicle parts testing of different vehicle models.

[0049] Step S2, simulating the power-on and power-off states of the vehicle, and then continuously collecting the vehicle current value in real time.

[0050] As a preferred solution, step S2 includes step S21 to step S22, and each step is specifically as follows:

[0051] Step S21, controlling the current traversal channel to energize the wake-up power line of the current part to be tested, and at the same time controlling other channels of the analog digital I / O module control module to synchronously energize the wake-up power lines of other parts to be tested.

[0052] Step S22, when the power-on time reaches the third preset value, control the current traversal channel to cut off the power supply line of the current part to be tested, and at the same time control other channels of the analog digital I / O module control module to synchronously cut off the power supply lines of other parts to be tested, and start to continuously collect the vehicle current value in real time according to the preset data collection frequency and the preset data collection times.

[0053] In this embodiment, the third preset value is equal to 1min. Specifically, the host computer controls each channel of the analog digital I / O module control module to output 12V voltage to synchronously power on the wake-up power lines of each part to be tested on the vehicle. After 1min, the host computer controls each channel of the analog digital I / O module control module to output 0V voltage to synchronously power off the wake-up power lines of each part to be tested on the vehicle, and then starts to collect and record the vehicle current value. Wherein, min means minutes, and V means volts.

[0054] As a preferred solution, the process of collecting the vehicle current value is specifically step S01, which is specifically as follows:

[0055] Step S01, using a current sensor connected to the battery to collect the vehicle current value in real time. That is, the current data collected in real time by the current sensor connected to the battery is used as the vehicle current value.

[0056] Step S3, within the first time period, if the current value of the entire vehicle is less than the first preset value, the current traversal channel is controlled to energize the wake-up power line of the current part to be tested to simulate the abnormal wake-up of the current part to be tested, and when the power-on time reaches the second preset value, other parts to be tested are energized.

[0057] In this embodiment, the length of the first time period is equal to 5 minutes, the first preset value is equal to 20mA, and the second preset value is equal to 1 second. When the simulation of the power-on and power-off status of the whole vehicle is completed, the whole vehicle current value of the vehicle is collected, and the current moment is used as the starting moment of the first time period. As an example, the current part to be tested is controller 1, and the current traversal channel is ch0, that is, from the moment of completing the simulation of the power-on and power-off status of the whole vehicle, the whole vehicle current value within 5 minutes is continuously observed. When the whole vehicle current value is less than 20mA, the host computer controls the ch0 of the analog digital I / O module control module to output a 12V voltage to power on the wake-up power line of the controller 1 on the vehicle, simulating the abnormal wake-up of the controller 1. After 1 second, the host computer controls the other channels of the analog digital I / O module control module to output a 12V voltage to synchronously power on the wake-up power lines of other parts to be tested on the vehicle, simulating the process of waking up the whole vehicle and starting to power other parts to be tested after waking up the controller 1 first. Among them, mA represents milliamperes and s represents seconds.

[0058] As a preferred solution, after executing step S2, step S5 is further included, and the specific details of the step are as follows:

[0059] Step S5, within the first time period, if all the vehicle current values ​​collected are greater than or equal to the first preset value, all the vehicle current values ​​are iteratively processed, and the vehicle power-on and power-off states are simulated for each iterative processing. When the vehicle power-on and power-off state simulation is completed, the vehicle current value of the vehicle is continuously collected in real time, and then all the vehicle current values ​​collected within the current second time period are compared with the first preset value, and the iteration is terminated until the number of iterations meets the preset number, or until any vehicle current value collected within the current second time period is less than the first preset value, the iteration is terminated.

[0060] The first time period and the second time period have the same length, and in each iteration, the starting time of the current second time period is the time when the simulation of the power-on and power-off status of the entire vehicle is completed in the current iteration processing process.

[0061] In this embodiment, the length of the first time period and the second time period are both equal to 5 minutes, the first preset value is equal to 20 mA, the second preset value is equal to 1 second, and the preset number is equal to 2. When the simulation of the power-on and power-off state of the whole vehicle is completed, the whole vehicle current value of the vehicle is collected, and the current time is used as the starting time of the first time period / the second time period. As an example, the current part to be tested is controller 1, and the current traversal channel is ch0, that is, starting from the moment when the vehicle power-on and power-off state simulation is completed, the vehicle current value within 5 minutes is continuously observed. If the vehicle current values ​​during this period are all greater than or equal to 20mA, the vehicle power-on and power-off state simulation operation is re-executed, and when the vehicle power-on and power-off state simulation is completed, the vehicle current value within 5 minutes is continuously collected and observed in real time; when the vehicle current value is less than 20mA, steps S7 to S8 are executed; if the vehicle current value within 5 minutes is greater than or equal to 20mA, the vehicle power-on and power-off state simulation operation is executed again, and when the vehicle power-on and power-off state simulation is completed, the vehicle current value within 5 minutes is continuously collected and observed in real time, when the vehicle current value is less than 20mA, steps S7 to S8 are executed, and if the vehicle current value within 5 minutes is greater than or equal to 20mA, step S6 is executed.

[0062] As a preferred solution, during the execution of step S5, if the condition for ending the iteration is that the number of iterations meets the preset number, then after the iteration ends, step S6 is further included, which is specifically as follows:

[0063] Step S6, at the end of the test, the vehicle current value is collected in real time, the test time of the current part to be tested is recorded, and the test of the current part to be tested is ended, and the next part to be tested is tested.

[0064] The test end time is the time when the iteration ends.

[0065] In this embodiment, the current test time of the part to be tested is equal to the difference between the test end time and the time when step S2 starts to be executed.

[0066] As a preferred solution, during the execution of step S5, if the condition for ending the iteration is that any vehicle current value collected in the current second time period is less than the first preset value, then after the iteration ends, steps S7 to S8 are further included, and each step is specifically as follows:

[0067] Step S7, controlling the current traversal channel to energize the wake-up power line of the current part to be tested to simulate abnormal awakening of the current part to be tested, and energizing other parts to be tested when the power-on time reaches a second preset value.

[0068] Step S8, when the power-on time of other components to be tested reaches a third preset value, perform a sleep simulation on the current component to be tested, and analyze and obtain a sleep function test result of the current component to be tested based on the sleep simulation result.

[0069] In this embodiment, the second preset value is equal to 1s, and the third preset value is equal to 1min. As an example, the current part to be tested is controller 1, and the current traversal channel is ch0, that is, the host computer controls the analog digital I / O module control module ch0 to output a 12V voltage to power on the wake-up power line of the controller 1 on the vehicle, simulating the abnormal wake-up of the controller 1. After 1s, the host computer controls the analog digital I / O module control module to output a 12V voltage to power on the wake-up power lines of other parts to be tested on the vehicle synchronously, simulating the process of waking up the whole vehicle and starting to power other parts to be tested after waking up the controller 1 first. After the wake-up power lines of other parts to be tested on the vehicle are synchronously powered on for 1min, the controller 1 is simulated to sleep, and the test result of the sleep function of the controller 1 is analyzed based on the sleep simulation result.

[0070] Step S4, when the power-on time of other components to be tested reaches a third preset value, perform a sleep simulation on the current component to be tested, and analyze and obtain a sleep function test result of the current component to be tested based on the sleep simulation result.

[0071] As a preferred solution, step S4 includes step S41 to step S43, and each step is specifically as follows:

[0072] Step S41, when the power-on time of other parts to be tested reaches the third preset value, control the current traversal channel to cut off the power supply line of the current part to be tested, and when the power-off time of the wake-up power line of the current part to be tested reaches the fourth preset value, determine whether the current vehicle current value is greater than the first preset value; if so, execute step S42; if not, execute step S43.

[0073] Step S42, determining whether the sleep function of the current component to be tested is abnormal.

[0074] Step S43, determining whether the sleep function of the current component to be tested is normal.

[0075] In this embodiment, the first preset value is equal to 20mA, the third preset value is equal to 1min, and the fourth preset value is equal to 5min. As an example, the current part to be tested is controller 1, and the current traversal channel is ch0, that is, after the wake-up power lines of other parts to be tested on the vehicle are synchronously powered on for 1min, the host computer controls the ch0 of the analog digital I / O module control module to output 0V voltage to power off the wake-up power line of controller 1 on the vehicle, and after 5min, it is determined whether the current vehicle current value is greater than 20mA; if so, it indicates that the vehicle is still in the wake-up state, and the sleep function of controller 1 is determined to be abnormal, and from the current moment, the vehicle current value within 15min is recorded and the data recording is stopped; if not, it indicates that the vehicle is in the sleep state, and the sleep function of controller 1 is determined to be normal, and the vehicle current value of the vehicle is stopped.

[0076] Please refer to Figure 2 , is a schematic diagram of the structure of a vehicle-mounted parts sleep and wake-up function test system provided by an embodiment of the present invention, the system includes a wiring module M1, an analog acquisition module M2, a wake-up simulation module M3 and a sleep test module M4, and the specific modules are as follows:

[0077] The wiring module M1 is used for traversing each channel of the analog digital I / O module control module for each part to be tested on the vehicle, connecting the wake-up power line of the current part to be tested to the current traversed channel, and connecting the wake-up power lines of other parts to be tested to other channels of the analog digital I / O module control module; wherein the analog digital I / O module control module is connected to the battery of the vehicle, and one part to be tested is connected to one channel;

[0078] The simulation acquisition module M2 is used to simulate the power-on and power-off status of the vehicle, and then continuously collect the vehicle current value in real time;

[0079] The wake-up simulation module M3 is used to control the current traversal channel to energize the wake-up power line of the current part to be tested if the vehicle current value is less than the first preset value within the first time period, so as to simulate the abnormal wake-up of the current part to be tested, and to energize other parts to be tested when the power-on time reaches the second preset value;

[0080] The sleep test module M4 is used to perform sleep simulation on the current part to be tested when the power-on time of other parts to be tested reaches a third preset value, and analyze and obtain the sleep function test result of the current part to be tested according to the sleep simulation result.

[0081] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0082] An embodiment of the present invention also provides a computer-readable storage medium, which includes a stored computer program; wherein, when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute a vehicle-mounted parts sleep and wake-up function testing method described in embodiment one.

[0083] An embodiment of the present invention further provides a terminal, including a processor, a memory, and a computer program stored in the memory; wherein the computer program can be executed by the processor to implement a vehicle-mounted parts sleep and wake-up function testing method as described in Embodiment 1.

[0084] Preferably, the computer program can be divided into one or more modules / units (such as computer program, computer program), one or more modules / units are stored in the memory and executed by the processor to complete the present invention. One or more modules / units can be a series of computer program instruction segments that can complete specific functions, and the instruction segments are used to describe the execution process of the computer program in the terminal.

[0085] The processor can be a central processing unit (CPU), or other general-purpose processors, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor, or the processor can also be any conventional processor. The processor is the control center of the terminal, and various parts of the terminal are connected using various interfaces and lines.

[0086] The memory mainly includes a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function, etc., and the data storage area can store related data, etc. In addition, the memory can be a high-speed random access memory, or a non-volatile memory, such as a plug-in hard disk, a smart memory card (Smart Med iaCard, SMC), a secure digital (Secure Digital, SD) card, and a flash card (Flash Card), etc., or the memory can also be other volatile solid-state storage devices.

[0087] It should be noted that the above-mentioned terminal may include, but is not limited to, a processor and a memory. Those skilled in the art will understand that the above-mentioned terminal is merely an example and does not constitute a limitation on the terminal. It may include more or fewer components, or a combination of certain components, or different components.

[0088] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:

[0089] The present invention provides a method, system, medium and terminal for testing the sleep and wake-up functions of vehicle-mounted parts. For each part to be tested on the vehicle, each channel of an analog digital I / O module control module is traversed, and the wake-up power line of the current part to be tested is connected to the currently traversed channel, and the wake-up power lines of other parts to be tested are connected to other channels of the analog digital I / O module control module, wherein the analog digital I / O module control module is connected to the battery of the vehicle, and one part to be tested corresponds to one channel of the analog digital I / O module control module. The wake-up power line of each part to be tested is individually controlled by using the analog digital I / O module control module, so as to realize accurate management of each vehicle-mounted part, without the need to disassemble the parts to be tested individually and place them on a test bench for single testing. Based on the aforementioned wiring state, the vehicle is simulated for power on and off state, and after the power on and off state simulation is completed, the vehicle current value is continuously and in real time collected, which can simulate various power state changes in actual driving, so that the test results are closer to actual usage. Then, within the first time period, if the vehicle current value is less than the first preset value, it means that the system is in a dormant state. At this time, the current traversal channel is controlled to energize the wake-up power line of the current part to be tested to simulate the abnormal wake-up of the current part to be tested, and considering that when the current part to be tested is abnormally awakened due to abnormal voltage, it may affect other parts to be tested on the vehicle. When the power-on time reaches the second preset value, other parts to be tested on the vehicle are powered on to simulate the process of waking up the whole vehicle and starting to supply power to other parts to be tested after the current part to be tested is awakened first, which is helpful to detect the behavior of the parts under abnormal wake-up conditions and the impact on the whole vehicle, thereby improving the comprehensiveness of the test results. Finally, the dormancy function test results of each part to be tested are obtained according to the analysis of the dormancy simulation results, which is helpful to quickly locate the faulty parts and improve the maintenance and debugging efficiency. In addition, through the above means, each part to be tested on the vehicle is tested one by one to ensure that the sleep and wake-up functions of each part to be tested are verified and tested, so as to comprehensively evaluate the system performance of the whole vehicle. By strictly testing the sleep and wake-up functions of each part, potential power management problems can be discovered and fixed, and then the sleep and wake-up functions of each part are optimized, which can effectively reduce the energy consumption of the vehicle in standby state and improve the reliability and stability of the vehicle.

[0090] The specific embodiments described above further illustrate the purpose, technical solutions and beneficial effects of the present invention. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. It is particularly pointed out that for those skilled in the art, any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of protection of the present invention.

Claims

1. A method for testing the sleep and wake-up functions of vehicle-mounted parts, characterized in that: include: For each part to be tested on the vehicle, traverse each channel of the analog digital I / O module control module, connect the wake-up power line of the current part to be tested to the current traversed channel, and connect the wake-up power lines of other parts to be tested to other channels of the analog digital I / O module control module; wherein the analog digital I / O module control module is connected to the battery of the vehicle, and one part to be tested is connected to one channel; Simulating the power-on and power-off states of the vehicle, and then continuously collecting the vehicle current value in real time; In the first time period, if the vehicle current value is less than the first preset value, the current traversal channel is controlled to energize the wake-up power line of the current part to be tested to simulate the abnormal wake-up of the current part to be tested, and when the power-on time reaches the second preset value, other parts to be tested are energized; When the power-on time of other components to be tested reaches a third preset value, a sleep simulation is performed on the current component to be tested, and a sleep function test result of the current component to be tested is analyzed based on the sleep simulation result.

2. A vehicle-mounted component sleep and wake-up function testing method as claimed in claim 1, characterized in that: When the power-on time of the other parts to be tested reaches the third preset value, the current part to be tested is subjected to a sleep simulation, and the sleep function test result of the current part to be tested is analyzed and obtained according to the sleep simulation result, which is specifically: When the power-on time of other parts to be tested reaches the third preset value, control the current traversal channel to power off the wake-up power line of the current part to be tested, and when the power-off time of the wake-up power line of the current part to be tested reaches the fourth preset value, determine whether the current vehicle current value is greater than the first preset value; If so, it is determined that the sleep function of the current part to be tested is abnormal; If not, it is determined that the sleep function of the current component to be tested is normal.

3. A vehicle-mounted component sleep and wake-up function testing method as claimed in claim 1, characterized in that: The vehicle is simulated to be powered on and off, and then the vehicle current value of the vehicle is continuously collected in real time, specifically: Control the current traversal channel to energize the wake-up power line of the current part to be tested, and at the same time control other channels of the analog digital I / O module control module to synchronously energize the wake-up power lines of other parts to be tested; When the power-on time reaches the third preset value, the current traversal channel is controlled to cut off the power supply of the current wake-up power line of the part to be tested, and at the same time, other channels of the analog digital I / O module control module are controlled to synchronously cut off the power supply of other wake-up power lines of other parts to be tested, and the vehicle current value of the vehicle is continuously collected in real time according to the preset data collection frequency and the preset data collection times.

4. A vehicle-mounted component sleep and wake-up function testing method as claimed in claim 3, characterized in that: The real-time collection of the vehicle current value is specifically as follows: The current value of the vehicle is collected in real time using a current sensor connected to the battery.

5. A vehicle-mounted component sleep and wake-up function testing method as claimed in claim 1, characterized in that: After simulating the power-on and power-off states of the vehicle and continuously collecting the vehicle current value in real time, the method further includes: In the first time period, if all the vehicle current values ​​collected are greater than or equal to the first preset value, all the vehicle current values ​​are iteratively processed, and the vehicle power-on and power-off states are simulated for each iterative processing. When the vehicle power-on and power-off states simulation is completed, the vehicle current value of the vehicle is continuously collected in real time, and all the vehicle current values ​​collected in the current second time period are compared with the first preset value until the number of iterations meets the preset number, then the iteration is terminated, or until any vehicle current value collected in the current second time period is less than the first preset value, then the iteration is terminated; wherein, the first time period and the second time period have the same time length, and in each iteration, the starting time of the current second time period is the time when the vehicle power-on and power-off states simulation is completed in the current iterative processing process.

6. A vehicle-mounted component sleep and wake-up function testing method as claimed in claim 5, characterized in that: After the iteration is terminated until the number of iterations meets the preset number, the method further includes: At the end of the test, the vehicle current value of the vehicle is collected in real time, the test time of the current part to be tested is recorded, and the test of the current part to be tested is ended; The test end time is the time when the iteration ends.

7. A vehicle-mounted component sleep and wake-up function testing method as claimed in claim 5, characterized in that: After the iteration is terminated if any vehicle current value acquired within the second time period until the current time period is less than the first preset value, the method further includes: Control the current traversal channel to energize the wake-up power line of the current part to be tested to simulate abnormal awakening of the current part to be tested, and when the power-on time reaches a second preset value, energize other parts to be tested; When the power-on time of other components to be tested reaches a third preset value, a sleep simulation is performed on the current component to be tested, and a sleep function test result of the current component to be tested is analyzed based on the sleep simulation result.

8. A vehicle-mounted parts sleep and wake-up function test system, characterized in that: include: A wiring module is used for traversing each channel of the analog digital I / O module control module for each part to be tested on the vehicle, connecting the wake-up power line of the current part to be tested to the current traversed channel, and connecting the wake-up power lines of other parts to be tested to other channels of the analog digital I / O module control module; wherein the analog digital I / O module control module is connected to the battery of the vehicle, and one part to be tested is connected to one channel; A simulation acquisition module, used to simulate the power-on and power-off states of the vehicle, and then continuously and real-timely acquire the vehicle current value; A wake-up simulation module is used to control the current traversal channel to energize the wake-up power line of the current part to be tested if the vehicle current value is less than a first preset value within a first time period, so as to simulate the abnormal wake-up of the current part to be tested, and to energize other parts to be tested when the power-on time reaches a second preset value; The sleep test module is used to perform sleep simulation on the current part to be tested when the power-on time of other parts to be tested reaches a third preset value, and analyze and obtain the sleep function test result of the current part to be tested based on the sleep simulation result.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored computer program; wherein, when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute a vehicle-mounted parts sleep and wake-up function testing method as described in any one of claims 1 to 7.

10. A terminal, characterized in that: It comprises a processor, a memory and a computer program stored in the memory; wherein the computer program can be executed by the processor to implement a vehicle-mounted parts sleep and wake-up function testing method as described in any one of claims 1 to 7.