Disclosure of Invention
Aiming at the problems in the prior art, the invention provides a commercial vehicle data center test system, and part of embodiments of the invention can solve the problems of complex operation, high test difficulty and low test efficiency in the actual vehicle test process of vehicle-mounted data collection analysis and verification in the prior art.
In order to achieve the above purpose, the present invention adopts the following technical scheme:
a commercial vehicle data center test system, the test system comprising: an Ethernet interface, a CAN interface, a 485 interface, a 232 interface and a power interface which belong to the tested object and are integrated in the data center; preferably, when the upper computer controls the programmable power supply to be electrified, the data center is connected with the Ethernet tester through a 100Base-T1 Ethernet, and the data center is connected with the CAN network tester through a CAN network.
Preferably, the test system comprises a test method of the vehicle-mounted data center, and the test method comprises the following steps: the Ethernet tester sends information such as route configuration, signals and the like to the data center, tests an Ethernet interface of the data center, and outputs a test result; the CAN network tester imports the topology communication protocol and the database file of the vehicle type applied by the data center so that the data center obtains the message ID, the message period and the configuration file of the message signal of the real vehicle simulation node, and the CAN network tester tests the CAN interface of the data center according to the test instruction and outputs the test result; preferably, when simulating real vehicle voltage fluctuation in the data center in the test instruction, the programmable power supply tests the data center according to the test case, and the step of testing the data center comprises the following steps: according to the test case, simulating the real vehicle voltage at the minimum and maximum supply voltage standard: controlling the programmable power supply to power up within a preset time range, setting the lowest voltage or the highest voltage, and testing whether the data center works normally when the lowest voltage or the highest voltage fluctuates; and simulating the voltage transient change of the real vehicle according to the test case, controlling the programmable power supply to power up in a preset time range, and testing whether the equipment works normally when the voltage transient fluctuation of the data center occurs.
Preferably, when testing the ethernet interface of the data center in the test instruction, the step of sending messages with different frame lengths in a fixed periodicity through the ethernet tester to test the ethernet interface of the data center includes: according to the test case, monitoring whether the routing configuration of the Ethernet interface of the data center is normal, periodically sending data packets with different frame lengths to the Ethernet interface of the data center, and testing whether the throughput, time delay and packet loss rate of the Ethernet interface meet the functional requirements when receiving a target data packet; according to the test case, detecting whether the data center Ethernet interface generates a frame loss condition or not in a high-load test environment so as to simulate a high-flow network port test environment and test the network load capacity of the data center Ethernet interface within a preset time period.
Preferably, when testing the CAN interface of the data center to be tested in the test instruction, the step of testing the CAN interface of the data center by the CAN network tester according to the test case includes: according to the test case, simulating a real vehicle environment, importing a database file to a CAN network tester by using a message protocol of a corresponding vehicle type, sending a periodic message to the CAN interface of the data center, and testing whether the CAN interface of the data center is normal or not within a preset time; and according to the test case, using the load of the high-priority report Wen Lagao in a preset time period to simulate a high-load test environment, and testing whether the CAN interface of the data center loses frames or generates error frames in the preset time period.
Preferably, when testing the 485 interface and the 232 interface of the data center in the test instruction, the step of testing the 485 interface and the 232 interface of the data center by the upper computer according to the test case includes: according to the test case, simulating data configuration information of a 485 bus and a 232 bus of a real vehicle, using a data packet form configured corresponding to the vehicle type, sending periodic data to the 485 interface and the 232 interface of the data center through an upper computer, and testing whether the 485 interface and the 232 interface of the data center are normal or not within a preset time.
Compared with the prior art, the invention has the beneficial effects that: 1) The communication functions including an Ethernet interface, a CAN interface, a 485 interface and a 232 interface CAN be simulated to realize systematic, integrated and automatic test; 2) The test system can simulate the real vehicle environment to carry out voltage fluctuation test, repeated continuous test, endurance test, power-on and power-off test and automatically save all interface test data.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without any inventive effort, are intended to be within the scope of the invention.
In the description of the present invention, it should be understood that the terms "longitudinal," "transverse," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," "outer," and the like indicate orientations or positional relationships based on the orientation or positional relationships shown in the drawings, merely to facilitate describing the present invention and simplify the description, and do not indicate or imply that the devices or elements referred to must have a specific orientation, be configured and operated in a specific orientation, and therefore should not be construed as limiting the present invention.
As shown in fig. 1-5, the present embodiment provides a vehicle-mounted data testing system, which includes an ethernet interface, a CAN interface, a 485 interface, a 232 interface, and a power interface, which belong to a tested object, and a host computer (including a 485 host computer and a 232 host computer), and a testing device (including a programmable power supply, a CAN network tester, and an ethernet tester) connected with the corresponding tested object; the Ethernet interface, the CAN interface, the 485 interface, the 232 interface and the power interface are integrated in the data center.
The upper computer is used for receiving a test instruction input by a user through a man-machine interaction interface and sending protocol content corresponding to the content of the test case to the data center according to the test instruction;
The test equipment is used for simulating the whole vehicle environment of the data center according to the test case, testing equipment interfaces such as an Ethernet interface, a CAN interface and the like, and outputting test results.
The test equipment comprises a programmable power supply connected with the upper computer, and the programmable power supply is controlled to supply power to the data center when the programmable power supply is electrified. The data center is connected with the Ethernet tester through a 100Base-T1 Ethernet, and meanwhile, the data center is connected with the CAN network tester through a CAN network.
The embodiment also provides a testing method of the vehicle-mounted data center, which is applied to the testing system of the vehicle-mounted data center, and comprises the following steps:
And the Ethernet tester sends information such as route configuration, signals and the like to the data center, tests the Ethernet interface of the data center, and outputs a test result.
The CAN network tester imports the topology communication protocol and the database file of the vehicle type applied by the data center so that the data center obtains the message ID, the message period and the configuration file of the message signal of the real vehicle simulation node, and the CAN network tester tests the CAN interface of the data center according to the test instruction and outputs the test result.
And the 485 upper computer imports the real vehicle 485 protocol content and the file applied by the data center so that the data center obtains the simulated message content of the real vehicle 485 bus, tests the 485 interface of the data center according to the test instruction, and outputs the test result.
And the 232 upper computer imports the real vehicle 232 protocol content and the file applied by the data center so that the data center obtains the simulated real vehicle 232 bus message content, tests the 232 interface of the data center according to the test instruction and outputs the test result.
When the real vehicle voltage fluctuation is simulated to the data center in the test instruction, the programmable power supply tests the data center according to the test case, and the method comprises the following steps of:
according to the test case, simulating the real vehicle voltage at the minimum and maximum supply voltage standard: controlling the programmable power supply to power up within a preset time range, setting the lowest voltage or the highest voltage, and testing whether the data center works normally when the lowest voltage or the highest voltage fluctuates;
And simulating the voltage transient change of the real vehicle according to the test case, controlling the programmable power supply to power up in a preset time range, and testing whether the equipment works normally when the voltage transient fluctuation of the data center occurs.
When the Ethernet interface of the data center is tested in the test instruction, the step of sending messages with different frame lengths of fixed periodicity through the Ethernet tester to test the Ethernet interface of the data center comprises the following steps:
According to the test case, monitoring whether the routing configuration of the Ethernet interface of the data center is normal, periodically sending data packets with different frame lengths to the Ethernet interface of the data center, and testing whether the throughput, time delay and packet loss rate of the Ethernet interface meet the functional requirements when receiving a target data packet;
according to the test case, detecting whether the data center Ethernet interface generates a frame loss condition or not in a high-load test environment so as to simulate a high-flow network port test environment and test the network load capacity of the data center Ethernet interface within a preset time period.
When the CAN interface of the data center to be tested is tested in the test instruction, the CAN network tester tests the CAN interface of the data center according to the test case, and the method comprises the following steps of:
According to the test case, simulating a real vehicle environment, importing a database file to a CAN network tester by using a message protocol of a corresponding vehicle type, sending a periodic message to the CAN interface of the data center, and testing whether the CAN interface of the data center is normal or not within a preset time;
And according to the test case, using the load of the high-priority report Wen Lagao in a preset time period to simulate a high-load test environment, and testing whether the CAN interface of the data center loses frames or generates error frames in the preset time period.
When the 485 interface and the 232 interface of the data center are tested in the test instruction, the upper computer tests the 485 interface and the 232 interface of the data center according to the test case, and the method comprises the following steps of:
according to the test case, simulating data configuration information of a 485 bus and a 232 bus of a real vehicle, using a data packet form configured corresponding to the vehicle type, sending periodic data to the 485 interface and the 232 interface of the data center through an upper computer, and testing whether the 485 interface and the 232 interface of the data center are normal or not within a preset time.
While the foregoing embodiments have been described in detail and with reference to the present invention, it will be apparent to one skilled in the art that modifications and improvements can be made based on the disclosure without departing from the spirit and scope of the invention.