Method, system, device and medium for testing vehicle operating state influencing factors
By defining state switching and holding devices, setting control commands, and monitoring state-related data, the problem of complex and multi-factor influence on vehicle operating status was solved, achieving efficient influence factor testing and accurate positioning.
Patent Information
- Application Number
- CN202310334270.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-31
- Publication Date
- 2025-11-28
- Estimated Expiration
- 2043-03-31
AI Technical Summary
The vehicle's operating status is complex and influenced by multiple factors, leading to errors in status-related data and making it difficult to accurately pinpoint the cause of continuous or abnormal wake-ups.
By identifying the state switching and state holding devices, setting corresponding control commands, monitoring the state-related data generated by the target vehicle's response commands, and comparing it with preset expected data, test results are generated.
It improves the accuracy and efficiency of testing factors affecting vehicle operating status and provides a reference for locating these factors.
Smart Images

Figure CN116360403B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of vehicle testing, and in particular to a vehicle operating state influence factor testing method, system, device and medium. BACKGROUND
[0002] With the rapid development of the automobile industry, the degree of intelligence of automobiles is getting higher and higher, and the interaction of vehicle functions becomes complex, which causes the operating state of the vehicle to remain in the vehicle network wake-up state for a long time, consumes the battery power of the vehicle, and even feeds the vehicle. In order to locate the cause of the continuous wake-up and abnormal wake-up of the vehicle, the state-related data of the vehicle operating state is generated and monitored in real time through a vehicle diagnostic instrument, a vehicle machine log, CAN (Controller Area Network) messages, LIN (Local Interconnect Network) messages, a cloud platform, and the like. According to the state-related data, the related influence factors corresponding to the vehicle operating state are located from the vehicle-mounted devices, and then the cause information of the continuous wake-up and abnormal wake-up is determined according to the influence factors, and warranty information is provided to the troubleshooting personnel.
[0003] However, due to the existence of vehicle-mounted devices that maintain the operating state of the vehicle and switch the operating state of the vehicle, the complex relationship of the devices restricts the operating state of the vehicle, so that the operating state of the vehicle is influenced by multiple influence factors, and the state-related data is prone to errors. Therefore, it is necessary to test the state-related data corresponding to different influence factors, so as to improve the accuracy of locating the influence factors through the state-related data. SUMMARY
[0004] In order to have a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. The summary is not a general review, nor is it intended to determine the key / important elements or delineate the scope of protection of these embodiments, but is intended as a prelude to the detailed description below.
[0005] In view of the above-mentioned disadvantages of the prior art, the present application discloses a vehicle operating state influence factor testing method, system, device and medium to realize the testing of the vehicle operating state influence factors.
[0006] The application provides a vehicle operating state influencing factor testing method, which comprises the following steps: determining a state switching device and a state maintaining device from a vehicle-mounted device of a target vehicle according to a vehicle operating state; setting a first control instruction corresponding to the state switching device and a second control instruction corresponding to the state maintaining device respectively, wherein the first control instruction is used to switch the vehicle operating state of the target vehicle by controlling the state switching device, and the second control instruction is used to maintain the vehicle operating state of the target vehicle by controlling the state maintaining device; determining a to-be-tested influencing factor from the state switching device and the state maintaining device, executing a target instruction corresponding to the to-be-tested influencing factor, and monitoring state-related data generated by the target vehicle in response to the target instruction, wherein the target instruction is the first control instruction or the second control instruction corresponding to the to-be-tested influencing factor; comparing the state-related data with preset expected data corresponding to the to-be-tested influencing factor, and generating a testing result corresponding to the to-be-tested influencing factor based on a comparison result.
[0007] Optionally, the target vehicle is connected with a programmable power supply, and before the state switching device and the state maintaining device are determined from the vehicle-mounted device of the target vehicle according to the vehicle operating state, the method further comprises the following steps: setting a testing parameter interval of the target vehicle in advance; establishing a power supply parameter curve of the target vehicle according to the testing parameter interval, wherein the power supply parameter curve is used to represent a mapping relationship between a vehicle power supply parameter and time, and the vehicle power supply parameter is between the testing parameter interval; and providing the power supply for the target vehicle according to the power supply parameter curve by using the programmable power supply.
[0008] Optionally, the state switching device comprises a sensor type wake-up source, the sensor type wake-up source is connected with an adjustable resistance box, and the first control instruction corresponding to the sensor type wake-up source is used to control the vehicle operating state of the target vehicle to be in a whole vehicle network sleep state; the sampling resistance of the sensor type wake-up source is controlled by using the adjustable resistance box, so as to adjust the sensor signal of the sensor type wake-up source, until the sensor signal triggers the vehicle operating state of the target vehicle to be switched from the whole vehicle network sleep state to a whole vehicle network wake-up state.
[0009] Optionally, the state switching device comprises a bus signal wake-up source connected with a bus development tool, and the first control instruction corresponding to the bus signal wake-up source comprises at least one of the following: controlling the vehicle running state of the target vehicle to be in a whole vehicle network sleep state, and sending a preset wake-up trigger message to the bus signal wake-up source by using the bus development tool to trigger the vehicle running state of the target vehicle to switch from the whole vehicle network sleep state to a whole vehicle network wake-up state; and controlling the vehicle running state of the target vehicle to be in the whole vehicle network sleep state, and sending a preset wake-up invalid message to the bus signal wake-up source by using the bus development tool to keep the vehicle running state of the target vehicle in the whole vehicle network sleep state.
[0010] Optionally, the state keeping device is connected with a device interface board card, and the second control instruction comprises: obtaining a device instruction corresponding to the state keeping device; and continuously sending the device instruction to the state keeping device by using the device interface board card within the preset time period, so that the state keeping device continuously executes the device instruction to trigger the vehicle running state of the target vehicle to keep in the whole vehicle network wake-up state.
[0011] Optionally, the state-related data is obtained by the following method: the target vehicle further comprises a network management module, a gateway controller, a vehicle body diagnostic device and a vehicle-mounted system, and the target vehicle is connected with a cloud platform; a network management message is generated by the network management module, the network management message comprising a state identifier and state reason information, wherein the state identifier represents the vehicle running state of the target vehicle; the network management message is forwarded to the vehicle body controller by the gateway controller, so that the vehicle body controller records the state identifier and the state reason information based on a diagnostic identifier; and the network management message is forwarded to the vehicle-mounted system by the gateway controller, so that the vehicle-mounted system generates a timestamp corresponding to the network management message, and sends the timestamp and the state reason information to the cloud platform.
[0012] Optionally, after the test result corresponding to the to-be-tested influence factor is generated based on the comparison result, the method further comprises: obtaining the test result corresponding to the to-be-tested influence factor, wherein the test result comprises test success or test failure; if the test result comprises test failure, re-obtaining state-related data and analyzing the state-related data to obtain state reason information; determining whether the state reason information comprises the to-be-tested influence factor; if the state reason information comprises the to-be-tested influence factor, determining that a positioning function error is the test failure information corresponding to the test result; and if the state reason information does not comprise the to-be-tested influence factor, determining that a vehicle-mounted device error is the test failure information corresponding to the test result.
[0013] The present application provides a vehicle operating state influencing factor testing method, comprising: a determining module configured to determine a state switching device and a state maintaining device from a vehicle-mounted device of a target vehicle according to a vehicle operating state; a setting module configured to set a first control instruction corresponding to the state switching device and a second control instruction corresponding to the state maintaining device, wherein the first control instruction is used to switch the vehicle operating state of the target vehicle by controlling the state switching device, and the second control instruction is used to maintain the vehicle operating state of the target vehicle by controlling the state maintaining device; a monitoring module configured to determine a to-be-tested influencing factor from the state switching device and the state maintaining device, execute a target instruction corresponding to the to-be-tested influencing factor, and monitor state-related data generated by the target vehicle in response to the target instruction, wherein the target instruction is the first control instruction or the second control instruction corresponding to the to-be-tested influencing factor; and a generating module configured to compare the state-related data with preset expected data corresponding to the to-be-tested influencing factor, and generate a test result corresponding to the to-be-tested influencing factor based on a comparison result.
[0014] The present application provides an electronic device, comprising: a processor and a memory; the memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory, so that the electronic device executes the above-mentioned method.
[0015] The present application provides a computer readable storage medium, which stores a computer program: the computer program is executed by a processor to realize the above-mentioned method.
[0016] The present application has the following beneficial effects:
[0017] The state switching device and the state maintaining device are determined by the vehicle operating state, the first control instruction and the second control instruction are set, the to-be-tested influencing factor is determined from the state switching device and the state maintaining device, the target instruction corresponding to the to-be-tested influencing factor is executed, and the state-related data generated by the target vehicle in response to the target instruction is monitored, so that the test result corresponding to the to-be-tested influencing factor is generated according to the comparison result between the preset expected data and the state-related data. In this way, by setting the control instructions corresponding to different vehicle-mounted devices, the state-related data generated by the target vehicle in response to the target instruction is monitored after the to-be-tested influencing factor is determined, and the test report is generated through the comparison result between the preset expected data and the state-related data, so that the testing of the to-be-tested influencing factor is realized, the testing range is wide, the testing efficiency is high, and the positioning of the vehicle operating state influencing factor is provided with reference, and the positioning accuracy of the vehicle operating state influencing factor is improved. BRIEF DESCRIPTION OF DRAWINGS
[0018] Figure 1is a flowchart of a test method of a vehicle running state influence factor in an embodiment of the present application;
[0019] Figure 2 is a structural diagram of a test bench for implementing a test method of a vehicle running state influence factor in an embodiment of the present application;
[0020] Figure 3 is a flowchart of a state-related data acquisition method in an embodiment of the present application;
[0021] Figure 4 is a structural diagram of a test system of a vehicle running state influence factor in an embodiment of the present application;
[0022] Figure 5 is a schematic diagram of an electronic device in an embodiment of the present application. DETAILED DESCRIPTION
[0023] The above and other advantages and features of the present application will become apparent from the following description of the embodiments, taken in conjunction with the accompanying drawings, which illustrate, by way of example, the principles of the application. This description is given for the sake of example and the details are not intended to limit the present application. The present application can be implemented in many different ways and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete and will fully convey the concept of the application to those skilled in the art.
[0024] It should be noted that the drawings provided in the following embodiments are only schematic and are not drawn to scale. They are provided to illustrate the basic understanding of the present application, and as such, their design and proportions, as well as the relationship between the elements, are not intended to be representative of actual conditions in the practice of the present application. The design of the application and its normal use are such that all features illustrated in the drawings will more or less conform to the laws of physics, and to the known rules of design and construction.
[0025] In the following description, numerous specific details are discussed to provide a thorough understanding of the embodiments of the application. However, it will be apparent to one of ordinary skill in the art that the embodiments of the application can be practiced without these specific details. In other instances, well-known structures and devices are shown in block diagram form to avoid obscuring the embodiments of the application. In this description, references to "one embodiment", "an embodiment", or "embodiments" mean that the feature being referred to is included in at least one embodiment of the application. Separate references to "an embodiment" or "embodiments" in
[0026] The terms "first", "second", third", "fourth", and the like in the description and in the claims, as well as boldfaced "first", "second", "third", "fourth", and the like in the drawings, are used for distinguishing between similar objects and not necessarily for describing a sequential or chronological order. It is to be understood that the use of such terms "first", "second" and the like in describing the application is simply intended to differentiate between two separate, distinct, or different aspects, steps, and / or elements of the application and not for describing a sequential or chronological order. It is to be understood that the use of such terms as "first", "second", "third", "fourth", and the like in the description and in the claims is simply intended to differentiate between two or more separate, distinct, or different aspects, steps, and / or elements of the application and not for describing a sequential or chronological order. It is to be understood that the use of the descriptive term "first", "second", "third", "fourth", and the like in the description and in the claims is simply intended to differentiate between two or more separate, distinct, or different aspects, steps, and / or elements of the application and not for describing a sequential or chronological order. Further, the terms "comprise", "have" and any variations thereof are intended to cover a non-exclusive inclusion. For example, a process, method, article, or apparatus that comprises a list of elements is not necessarily limited to only those elements but can include other elements not expressly listed or inherent to such process, method, article, or apparatus.
[0027] The term "plurality" means two or more, unless otherwise specified.
[0028] In the embodiments of the present disclosure, the character " / " represents that the objects before and after it are in an "or" relationship. For example, A / B means A or B.
[0029] The term "and / or" is a description of the association relationship of the objects, which means that there can be three relationships. For example, A and / or B means that there are three relationships of A or B, or A and B.
[0030] In combination Figure 1 As shown, the embodiments of the present disclosure provide a test method of a vehicle running state influencing factor, comprising:
[0031] Step S101, determining a state switching device and a state maintaining device from a vehicle-mounted device of a target vehicle according to a vehicle running state;
[0032] Step S102, setting a first control instruction corresponding to the state switching device and a second control instruction corresponding to the state maintaining device respectively;
[0033] The first control instruction is used to switch the vehicle running state of the target vehicle by controlling the state switching device, and the second control instruction is used to maintain the vehicle running state of the target vehicle by controlling the state maintaining device;
[0034] Step S103, determining a to-be-tested influencing factor from the state switching device and the state maintaining device, executing a target instruction corresponding to the to-be-tested influencing factor, and monitoring state-related data generated by the target vehicle in response to the target instruction;
[0035] The target instruction is the first control instruction or the second control instruction corresponding to the to-be-tested influencing factor;
[0036] Step S104, comparing the state-related data according to preset expected data corresponding to the to-be-tested influencing factor, and generating a test result corresponding to the to-be-tested influencing factor based on the comparison result.
[0037] The test method for the vehicle running state influence factor provided in the embodiments of the present disclosure determines the state switching device and the state maintaining device through the vehicle running state, sets the first control instruction and the second control instruction, determines the to-be-tested influence factor from the state switching device and the state maintaining device, executes the target instruction corresponding to the to-be-tested influence factor, and monitors the state-related data generated by the target vehicle in response to the target instruction, so as to generate the test result corresponding to the to-be-tested influence factor according to the comparison result between the preset expected data and the state-related data. In this way, by setting the control instructions corresponding to different vehicle-mounted devices, the state-related data generated by the target vehicle in response to the target instruction is monitored after the to-be-tested influence factor is determined, and the test report is generated through the comparison result between the preset expected data and the state-related data, so that the test of the to-be-tested influence factor is realized, the test range is wide, the test efficiency is high, and the positioning of the vehicle running state influence factor is provided with reference, and the positioning accuracy of the vehicle running state influence factor is improved.
[0038] Optionally, the vehicle running state includes a whole vehicle network sleep state (OFF gear) or a whole vehicle network wake-up state (ON gear).
[0039] Optionally, the target vehicle is connected with a programmable power supply, and before the state switching device and the state maintaining device are determined from the vehicle-mounted devices of the target vehicle according to the vehicle running state, the method further includes: setting a test parameter interval of the target vehicle in advance; establishing a power supply parameter curve of the target vehicle according to the test parameter interval, wherein the power supply parameter curve is used to represent the mapping relationship between the vehicle power supply parameter and time, and the vehicle power supply parameter is between the test parameter interval; and providing the power supply to the target vehicle according to the power supply parameter curve by using the programmable power supply.
[0040] In some embodiments, the power supply voltage and the power supply current are taken as the vehicle power supply parameters to draw the power supply parameter curve varying with time, and are downloaded into the programmable power supply, and the programmable power supply is used to output the variable voltage and the variable current to the target vehicle to simulate the low-voltage power supply environment of the target vehicle.
[0041] In some embodiments, the state switching device includes a sensor type wake-up source and a bus signal wake-up source, wherein the sensor type wake-up source includes a Bluetooth sensor, a radar sensor, an image sensor and other vehicle-mounted sensors, and the bus signal wake-up source includes a CAN bus, a LIN bus and other whole vehicle communication buses.
[0042] Optionally, the state switching device comprises a sensor type wake-up source connected with an adjustable resistance box, and the first control instruction corresponding to the sensor type wake-up source is: controlling the vehicle running state of the target vehicle to be in the whole vehicle network sleep state; and the sampling resistance of the sensor type wake-up source is controlled by using the adjustable resistance box to adjust the sensor signal of the sensor type wake-up source until the sensor signal triggers the vehicle running state of the target vehicle to switch from the whole vehicle network sleep state to the whole vehicle network wake-up state.
[0043] In some embodiments, the organization of the sampling resistance in the vehicle sensor is adjusted by the adjustable resistance box, so as to control the range of the sensor signal until the sensor signal triggers the vehicle running state of the target vehicle to switch from the whole vehicle network sleep state to the whole vehicle network wake-up state, and the sensor trigger signal is recorded, and at the same time, the sensor trigger signal is compared by using the preset threshold interval, and the test of the boundary value of the sensor trigger signal is realized based on the comparison result.
[0044] Optionally, the state switching device comprises a bus signal wake-up source connected with a bus development tool, and the first control instruction corresponding to the bus signal wake-up source comprises at least one of the following: controlling the vehicle running state of the target vehicle to be in the whole vehicle network sleep state, and sending a preset wake-up trigger message to the bus signal wake-up source by using the bus development tool to trigger the vehicle running state of the target vehicle to switch from the whole vehicle network sleep state to the whole vehicle network wake-up state; and controlling the vehicle running state of the target vehicle to be in the whole vehicle network sleep state, and sending a preset wake-up invalid message to the bus signal wake-up source by using the bus development tool to keep the vehicle running state of the target vehicle in the whole vehicle network sleep state.
[0045] In some embodiments, the preset wake-up trigger message is sent to the whole vehicle communication bus by using the bus development tool such as CANOE (CANopen environment, CAN bus development environment), so as to trigger the vehicle wake-up event corresponding to the wake-up trigger message, and at the same time, the preset wake-up invalid message is sent to the whole vehicle communication bus by using the bus development tool, so as to realize the test of the wake-up invalid message.
[0046] In some embodiments, the state keeping device comprises a body controller (BCM, Body Control Module), a DUT (Device under Testing, measured device) and the like.
[0047] Optionally, the state keeping device is connected with a device interface board card, and the second control instruction comprises: obtaining the device instruction corresponding to the state keeping device; and in a preset time period, the device interface board card is used to continuously send the device instruction to the state keeping device, so that the state keeping device continuously executes the device instruction to trigger the vehicle running state of the target vehicle to keep in the whole vehicle network wake-up state.
[0048] In some embodiments, the interface board card such as an IO (Input / Output) board card controls the interface signals of the vehicle body controller and the DUT to control the device functions of the vehicle body controller and the DUT to remain in a non-sleep state for a long time.
[0049] In combination Figure 2 As shown in the drawings, the embodiments of the present disclosure provide a test bench for implementing a test method of a vehicle operating state influencing factor, which comprises a whole vehicle bench, a cabinet, an upper computer, and a programmable power supply, wherein the whole vehicle bench is used to simulate a target vehicle; the programmable power supply is used to provide power supply to the whole vehicle bench; the upper computer is used to send control instructions to the whole vehicle bench and the cabinet; the cabinet comprises a fault injection board card, an IO board card, a load, a sensor, and the like, and is used to implement the control instructions sent by the upper computer to affect the whole vehicle bench.
[0050] In some embodiments, the embodiments of the present disclosure provide a system framework for implementing a test method of a vehicle operating state influencing factor, which comprises a target vehicle and a vehicle test bench; the target vehicle comprises a vehicle power supply interface, a sensor type wake-up source, a bus signal wake-up source, and a state retention device; the vehicle test bench comprises a programmable power supply, an adjustable resistance box, a bus development tool, a device interface board card, and a test module; the programmable power supply is connected to the vehicle power supply interface, and is used to provide power supply to the target vehicle according to a power supply parameter curve; the adjustable resistance box is connected to the sensor type wake-up source, and is used to adjust the sampling resistance of the sensor type wake-up source to control the sensor signal of the sensor type wake-up source; the bus development tool is connected to the bus signal wake-up source, and is used to send a preset wake-up trigger message to the bus signal wake-up source; the device interface board card is connected to the state retention device, and is used to continuously send device instructions to the state retention device, so that the state retention device continuously executes the device instructions; and the test module is used to collect state related data of the target vehicle.
[0051] The system framework for implementing the test method of the vehicle running state influencing factor provided by the embodiment of the present disclosure is used to determine the state switching device and the state maintaining device through the vehicle running state, set the first control instruction and the second control instruction, determine the to-be-tested influencing factor from the state switching device and the state maintaining device, execute the target instruction corresponding to the to-be-tested influencing factor, and monitor the state-related data generated by the target vehicle in response to the target instruction, so that the test result corresponding to the to-be-tested influencing factor is generated according to the comparison result between the preset expected data and the state-related data. In this way, by setting the control instructions corresponding to different vehicle-mounted devices, the state-related data generated by the target vehicle in response to the target instruction is monitored after the to-be-tested influencing factor is determined, and the test report is generated through the comparison result between the preset expected data and the state-related data, so that the test of the to-be-tested influencing factor is realized, the test range is wide, the test efficiency is high, and then the positioning of the vehicle running state influencing factor is provided with reference, and the positioning accuracy of the vehicle running state influencing factor is improved.
[0052] Optionally, the state-related data is acquired by the following method: the target vehicle further includes a network management module, a gateway controller (GW, Gateway), a vehicle body diagnostic device, and a vehicle-mounted system, and the target vehicle is connected with a cloud platform; a network management message (NM message) is generated through the network management module, the network management message includes a state identifier and state reason information, wherein the state identifier represents the vehicle running state of the target vehicle; the network management message is forwarded to the vehicle body controller through the gateway controller, so that the vehicle body controller records the state identifier and the state reason information based on a diagnostic identifier; the network management message is forwarded to the vehicle-mounted system through the gateway controller, so that the vehicle-mounted system generates a timestamp corresponding to the network management message, and sends the timestamp and the state reason information to the cloud platform.
[0053] In some embodiments, the state-related data further includes CAN bus communication data, LIN bus communication data, application message, network management message, vehicle diagnostic data stream, vehicle infotainment log (LOG), and cloud data.
[0054] In combination with Figure 3 As shown in the figure, the embodiment of the present disclosure provides a state-related data acquisition method, which includes:
[0055] In step S301, the target vehicle is controlled to be in a whole vehicle network sleep state;
[0056] In step S302, the target instruction is executed to trigger the vehicle running state of the target vehicle to be converted from the whole vehicle network sleep state to the whole vehicle network wake-up state;
[0057] In step S303, a network management message is generated through a network management module;
[0058] The network management message includes a state identifier and state cause information.
[0059] The state identifier represents a vehicle operating state of the target vehicle.
[0060] In step S304, the network management message is forwarded to the body controller and the vehicle system by the gateway controller, and the process proceeds to step S305 and step S306.
[0061] In step S305, the state identifier and the state cause information are recorded by the body controller based on the diagnostic identifier.
[0062] In step S306, the time stamp corresponding to the network management message is generated by the vehicle system.
[0063] In step S307, the time stamp and the state cause information are sent to the cloud platform by the vehicle system.
[0064] Optionally, based on the comparison result, a test result corresponding to the to-be-tested influence factor is generated, including: if the comparison result includes that the preset expected data is the same as the state-related data, the test result corresponding to the to-be-tested influence factor is determined as test success; if the comparison result includes that the preset expected data is different from the state-related data, the test result corresponding to the to-be-tested influence factor is determined as test failure.
[0065] Optionally, after the test result corresponding to the to-be-tested influence factor is determined as test failure, the method further includes: reacquiring the state-related data and analyzing the state-related data to obtain the state cause information; determining whether the state cause information includes the to-be-tested influence factor; if the state cause information includes the to-be-tested influence factor, determining the positioning function error as test failure information corresponding to the test result; if the state cause information does not include the to-be-tested influence factor, determining the vehicle-mounted equipment error as test failure information corresponding to the test result.
[0066] In some embodiments, the present disclosure provides a test method of a vehicle running state influencing factor, comprising: taking a left front door of a body controller as a to-be-tested influencing factor; controlling a vehicle running state of a target vehicle to be in a whole vehicle network hibernation state; controlling the left front door switch of the body controller to be switched constantly by an IO board card, and keeping for 20 minutes, so as to trigger the vehicle running state of the target vehicle to be switched to a whole vehicle network wake-up state; monitoring state-related data, wherein the state-related data comprises a network management message generated by a network management module, an application message sent by a gateway controller, an application message generated by a cloud, diagnostic data flow generated by the body controller, vehicle machine log generated by the body controller, and the like; comparing the monitored state-related data with preset expected data; if the state-related data is the same as the preset expected data, it is determined that the body controller keeps the vehicle running state of the target vehicle in the whole vehicle network wake-up state, and state cause information is that the left front door is always open, that is, the test result is test success; if the state-related data is different from the preset expected data, the state-related data is acquired again, and it is judged whether the state cause information in the acquired network management message comprises the body controller; if the state cause information comprises the body controller, a positioning function error is determined as test failure information corresponding to the test result; if the state cause information does not comprise the body controller, a vehicle-mounted equipment error is determined as test failure information corresponding to the test result.
[0067] By adopting the test method of the vehicle running state influencing factor provided by the present disclosure, the state switching device and the state maintaining device are determined according to the vehicle running state, the first control instruction and the second control instruction are set, the to-be-tested influencing factor is determined from the state switching device and the state maintaining device, the target instruction corresponding to the to-be-tested influencing factor is executed, and the state-related data generated by the target vehicle in response to the target instruction is monitored, so as to generate the test result corresponding to the to-be-tested influencing factor according to the comparison result between the preset expected data and the state-related data. In this way, by setting the control instructions corresponding to different vehicle-mounted equipment, the state-related data generated by the target vehicle in response to the target instruction is monitored after the to-be-tested influencing factor is determined, and the test report is generated according to the comparison result between the preset expected data and the state-related data, so as to realize the test of the to-be-tested influencing factor, the test range is wide, the test efficiency is high, and then the positioning of the vehicle running state influencing factor is provided with reference, and the positioning accuracy of the vehicle running state influencing factor is improved.
[0068] In combination with Figure 4As shown, the embodiment of the present disclosure provides a test method of a vehicle running state influencing factor, comprising a determination module 401, a setting module 402, a monitoring module 403, and a generation module 404; the determination module 401 is configured to determine a state switching device and a state maintaining device from a vehicle-mounted device of a target vehicle according to a vehicle running state; the setting module 402 is configured to set a first control instruction corresponding to the state switching device and a second control instruction corresponding to the state maintaining device respectively, wherein the first control instruction is used to switch the vehicle running state of the target vehicle by controlling the state switching device, and the second control instruction is used to maintain the vehicle running state of the target vehicle by controlling the state maintaining device; the monitoring module 403 is configured to determine a to-be-tested influencing factor from the state switching device and the state maintaining device, execute a target instruction corresponding to the to-be-tested influencing factor, and monitor state-related data generated by the target vehicle in response to the target instruction, wherein the target instruction is the first control instruction or the second control instruction corresponding to the to-be-tested influencing factor; and the generation module 404 is configured to compare the state-related data with preset expected data corresponding to the to-be-tested influencing factor, and generate a test result corresponding to the to-be-tested influencing factor based on a comparison result.
[0069] The test system of the vehicle running state influencing factor provided by the embodiment of the present disclosure determines the state switching device and the state maintaining device according to the vehicle running state, sets the first control instruction and the second control instruction, determines the to-be-tested influencing factor from the state switching device and the state maintaining device, executes the target instruction corresponding to the to-be-tested influencing factor, and monitors the state-related data generated by the target vehicle in response to the target instruction, so as to generate the test result corresponding to the to-be-tested influencing factor according to the comparison result between the preset expected data and the state-related data. In this way, by setting the control instructions corresponding to different vehicle-mounted devices, the state-related data generated by the target vehicle in response to the target instruction is monitored after the to-be-tested influencing factor is determined, and the test report is generated according to the comparison result between the preset expected data and the state-related data, so as to realize the test of the to-be-tested influencing factor, the test range is wide, the test efficiency is high, and then the positioning of the vehicle running state influencing factor is provided with reference, and the positioning accuracy of the vehicle running state influencing factor is improved.
[0070] Figure 5 The structure of the computer system of the electronic device suitable for implementing the embodiments of the present application is shown. It should be noted that, Figure 5 The computer system 500 of the electronic device shown is only an example and should not limit the functions and use range of the embodiments of the present application.
[0071] As Figure 5As shown, the computer system 500 includes a central processing unit (CPU) 501 which can perform various appropriate actions and processes in accordance with a program stored in a read-only memory (ROM) 502 or a program loaded from the storage section 508 into a random access memory (RAM) 503, such as performing the methods in the above-described embodiments. In the RAM 503, various programs and data required for the operation of the system are also stored. The CPU 501, the ROM 502, and the RAM 503 are connected to each other through a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.
[0072] Connected to the I / O interface 505 are an input section 506 including a keyboard, a mouse, etc.; an output section 507 including a display such as a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 508 including a hard disk, etc.; and a communication section 509 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the I / O interface 505 as necessary. A removable recording medium 511 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc. is attached to the drive 510 as necessary, so that a computer program read therefrom is installed into the storage section 508 as necessary.
[0073] In particular, according to embodiments of the present application, the processes described above with reference to the flowcharts can be implemented as a computer software program. For example, embodiments of the present application include a computer program product comprising a computer program carried on a computer readable medium, the computer program containing a computer program for executing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via the communication section 509, and / or installed from the removable recording medium 511. When the computer program is executed by the central processing unit (CPU) 501, various functions defined in the system of the present application are performed.
[0074] It should be noted that the computer readable medium shown in the embodiments of the present application can be a computer readable signal medium or a computer readable storage medium or any combination of the two. The computer readable storage medium may, for example, be an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or apparatus, or any combination thereof. More specific examples of the computer readable storage medium can include, but are not limited to, an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (Compact Disc Read-Only Memory, CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, the computer readable signal medium can include a data signal propagating in the baseband or as a carrier wave part of a signal propagating in the baseband, in which the computer readable computer program is carried. Such a propagating data signal can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. The computer readable signal medium can also be any computer readable medium other than the computer readable storage medium, which can send, propagate or transmit programs for use by or in connection with an instruction execution system, device or apparatus. The computer program contained on the computer readable medium can be transmitted by any suitable medium, including but not limited to wireless, wired, etc., or any suitable combination thereof.
[0075] The embodiments of the present disclosure also provide a computer readable storage medium having a computer program stored thereon, which, when executed by a processor, implements any of the methods in the embodiments.
[0076] The computer readable storage medium in the embodiments of the present disclosure can be understood by those skilled in the art that all or part of the steps of the above-mentioned method embodiments can be completed by a computer program related hardware. The aforementioned computer program can be stored in a computer readable storage medium. The program, when executed, performs steps including the above-mentioned method embodiments; and the aforementioned storage medium includes ROM, RAM, magnetic disk or optical disk and various media that can store program codes.
[0077] The electronic device disclosed in the embodiments includes a processor, a memory, a transceiver and a communication interface. The memory and the communication interface are connected with the processor and the transceiver and complete communication between each other. The memory is used to store a computer program, the communication interface is used for communication, and the processor and the transceiver are used to run the computer program, so that the electronic device executes each step of the method as above.
[0078] In the present embodiment, the memory can comprise a Random Access Memory (RAM) and can also include a non-volatile memory such as at least one disk memory.
[0079] The processor described above can be a general processor, including a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a Network Processor (NP), etc.; can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component.
[0080] The above description and drawings are illustrative of embodiments of the present disclosure and are not intended to be limiting. Other embodiments can include structural, logical, electrical, process, and other changes. Embodiments are merely representative of possible variations. Individual components and functions are optional and the order of operations can vary. Portions and sub-combinations of some embodiments can be included or replaced in or by other embodiments. Also, the phraseology and terminology used herein is for the purpose of description and should not be regarded as limiting. As used in the description of the embodiments and the claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. Similarly, the term "and / or" as used herein refers to any and all possible combinations of one or more of the associated listed items. Additionally, as used in this application, the term "comprises" and variations thereof do not intend to preclude the presence or addition of one or more other items to those stated in the compositions, integers, steps, operations, elements, and / or components. Without more limitations, an element defined by the phrase "comprises a..." does not exclude the presence of additional identical elements in the process, method, or apparatus including the element. In this document, each embodiment focuses on the differences from other embodiments, and the same or similar parts between embodiments can be referred to each other. For the method, product, etc. disclosed by the embodiments, if it corresponds to the method part disclosed by the embodiments, the relevant part can be referred to the description of the method part.
[0081] Those skilled in the art can understand that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be realized in electronic hardware or a combination of computer software and electronic hardware. Whether the functions are realized in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the embodiments of the present disclosure. Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiments, which will not be repeated here.
[0082] In the embodiments disclosed herein, the disclosed methods, products (including but not limited to devices, apparatuses, etc.) can be implemented in other manners. For example, the described device embodiments are merely schematic. For example, the division of the units is merely a logical function division. There can be another division manner for the actual implementation, for example, multiple units or components can be combined or integrated into another system, or some of the components can be ignored or not executed. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections can be indirect couplings or communication connections through some interfaces, devices or units, and can be in electrical, mechanical or other forms. The unit illustrated as a separate component can or can not be physically separate, and can or can not be a physical component. Some or all of the units can be selected according to actual needs to implement the embodiments. In addition, the units in the embodiments disclosed herein can be integrated into one processing unit, or each unit can exist physically as a separate unit, or two or more units can be integrated into one unit.
[0083] The flowcharts and block diagrams in the drawings show the possible implementation architectures, functions and operations of the system, method and computer program product according to the embodiments of the present disclosure. In this regard, each block in the flowcharts or block diagrams can represent a module, a program segment or a part of code containing one or more executable instructions for implementing the specified logical function. In some alternative implementations, the functions noted in the blocks can occur in different orders than those noted in the drawings. For example, two consecutive blocks can actually be executed substantially in parallel, and sometimes they can be executed in reverse order, depending on the functions involved. In the descriptions corresponding to the flowcharts and block diagrams in the drawings, the operations or steps corresponding to different blocks can also occur in different orders from those disclosed in the descriptions, and sometimes there is no specific order between different operations or steps. For example, two consecutive operations or steps can actually be executed substantially in parallel, and sometimes they can be executed in reverse order, depending on the functions involved. Each block in the block diagrams and / or flowcharts, and the combination of blocks in the block diagrams and / or flowcharts, can be implemented by a dedicated hardware-based system that performs the specified functions or actions, or can be implemented by a combination of dedicated hardware and computer instructions.
Claims
1. A method of testing a vehicle operating state influence factor, characterized by, The method comprises the following steps: determining a state switching device and a state maintaining device from a vehicle-mounted device of a target vehicle according to a vehicle running state; setting a first control instruction corresponding to the state switching device and a second control instruction corresponding to the state maintaining device, wherein the first control instruction is used to switch the vehicle running state of the target vehicle by controlling the state switching device, and the second control instruction is used to maintain the vehicle running state of the target vehicle by controlling the state maintaining device; determining a to-be-tested influencing factor from the state switching device and the state maintaining device, executing a target instruction corresponding to the to-be-tested influencing factor, and monitoring state-related data generated by the target vehicle in response to the target instruction, wherein the target instruction is the first control instruction or the second control instruction corresponding to the to-be-tested influencing factor; comparing the state-related data with preset expected data corresponding to the to-be-tested influencing factor, and generating a test result corresponding to the to-be-tested influencing factor based on a comparison result.
2. The method of claim 1, wherein, The target vehicle is connected with a programmable power supply, and before the state switching device and the state maintaining device are determined from the vehicle-mounted device of the target vehicle according to the vehicle running state, the method further comprises the following steps: pre-setting a test parameter interval of the target vehicle; establishing a power supply parameter curve of the target vehicle according to the test parameter interval, wherein the power supply parameter curve is used to represent a mapping relationship between a vehicle power supply parameter and time, and the vehicle power supply parameter is between the test parameter interval; providing power supply to the target vehicle according to the power supply parameter curve by using the programmable power supply.
3. The method of claim 1, wherein, The state switching device comprises a sensor type wake-up source connected with an adjustable resistance box, and the first control instruction corresponding to the sensor type wake-up source comprises the following steps: controlling the vehicle running state of the target vehicle to be in a whole vehicle network sleep state; controlling the sampling resistance of the sensor type wake-up source by using the adjustable resistance box to adjust the sensor signal of the sensor type wake-up source until the sensor signal triggers the vehicle running state of the target vehicle to switch from the whole vehicle network sleep state to a whole vehicle network wake-up state.
4. The method of claim 1, wherein, The state switching device comprises a bus signal wake-up source connected with a bus development tool, and the first control instruction corresponding to the bus signal wake-up source comprises at least one of the following: controlling the vehicle running state of the target vehicle to be in a whole vehicle network sleep state, and sending a preset wake-up trigger message to the bus signal wake-up source by using the bus development tool to trigger the vehicle running state of the target vehicle to switch from the whole vehicle network sleep state to a whole vehicle network wake-up state; controlling the vehicle running state of the target vehicle to be in a whole vehicle network sleep state, and sending a preset wake-up invalid message to the bus signal wake-up source by using the bus development tool to maintain the vehicle running state of the target vehicle in the whole vehicle network sleep state.
5. The method of claim 1, wherein, The state maintaining device is connected with a device interface board card, and the second control instruction comprises the following steps: obtaining a device instruction corresponding to the state maintaining device; The device interface board card is used to continuously send the device instruction to the state holding device within a preset time period, so that the state holding device continuously executes the device instruction, and triggers the vehicle running state of the target vehicle to be kept in the whole vehicle network wake-up state.
6. The method according to any one of claims 1 to 5, characterized in that, The state-related data is obtained by the following method: The target vehicle further comprises a network management module, a gateway controller, a vehicle body diagnostic device and a vehicle-mounted system, and the target vehicle is connected with a cloud platform; The network management module generates a network management message, and the network management message comprises a state identifier and state reason information, wherein the state identifier represents the vehicle running state of the target vehicle; The gateway controller forwards the network management message to the vehicle body diagnostic device, so that the vehicle body diagnostic device records the state identifier and the state reason information based on a diagnostic identifier; The gateway controller forwards the network management message to the vehicle-mounted system, so that the vehicle-mounted system generates a timestamp corresponding to the network management message, and sends the timestamp and the state reason information to the cloud platform.
7. The method according to any one of claims 1 to 5, characterized in that, After generating the test result corresponding to the to-be-tested influence factor based on the comparison result, the method further comprises: Obtain the test result corresponding to the to-be-tested influence factor, wherein the test result comprises test success or test failure; If the test result comprises test failure, reacquire state-related data and analyze the state-related data to obtain state reason information; Determine whether the state reason information comprises the to-be-tested influence factor; If the state reason information comprises the to-be-tested influence factor, determine that the positioning function error is the test failure information corresponding to the test result; If the state reason information does not comprise the to-be-tested influence factor, determine that the vehicle-mounted device error is the test failure information corresponding to the test result.
8. A method of testing a vehicle running state influence factor, characterized by, Comprise: A determination module is configured to determine a state switching device and a state holding device from vehicle-mounted devices of a target vehicle according to a vehicle running state; A setting module is configured to set a first control instruction corresponding to the state switching device and a second control instruction corresponding to the state holding device, respectively, wherein the first control instruction is used to switch the vehicle running state of the target vehicle by controlling the state switching device, and the second control instruction is used to keep the vehicle running state of the target vehicle by controlling the state holding device; A monitoring module is configured to determine a to-be-tested influence factor from the state switching device and the state holding device, execute a target instruction corresponding to the to-be-tested influence factor, and monitor state-related data generated by the target vehicle in response to the target instruction, wherein the target instruction is the first control instruction or the second control instruction corresponding to the to-be-tested influence factor; A generation module is configured to compare the state-related data with preset expected data corresponding to the to-be-tested influence factor, and generate a test result corresponding to the to-be-tested influence factor based on a comparison result.
9. An electronic device, comprising: Comprise: A processor and a memory; The memory is configured to store a computer program, and the processor is configured to execute the computer program stored in the memory, so that the electronic device executes the method in any one of claims 1 to 7.
10. A computer readable storage medium having stored thereon a computer program, the computer program comprising program instructions configured to cause a processor to perform the method of any one of claims 1 to 7 when executed by the processor. The computer program is configured to cause a processor to perform the method of any one of claims 1 to 7 when executed by the processor.
Citation Information
Patent Citations
Vehicle power shortage monitoring method and system and medium
CN111579996A
Network management anomaly monitoring method and system, vehicle and readable storage medium
CN112558590A