Detection method of vehicle diagnostic equipmentTechnical Field
The invention relates to the technical field of vehicle diagnosis equipment, in particular to a detection method of vehicle diagnosis equipment.
Background
The diagnostic device is a device developed for automobile diagnosis, and is used for communicating with a vehicle control module and reading relevant parameters, and the parameters are used for optimizing vehicle operation and after-sales maintenance.
The communication modes of the vehicle control module are various, and the vehicle control module comprises various protocols such as 232 protocol, 485 protocol, 1708 protocol, CAN protocol, K protocol and the like. In order to accommodate the various protocols of the vehicle, the corresponding diagnostic device must have these functions.
The more protocols the diagnostic device supports, the more complex the design and the higher the probability of failure. The original purpose of the diagnosis equipment is to diagnose the vehicle, and if the equipment has faults, the diagnosis result is inaccurate or cannot be diagnosed. It is therefore necessary to ensure that the diagnostic device itself functions properly.
At present, the following two methods are used for detecting the functions of the automobile diagnostic equipment:
1. before and after PCB surface mounting, the voltage of each test point on the PCB is detected through a customized tool, so as to judge whether the circuit is normal;
2. after the diagnostic equipment is assembled, the automobile communication module with complete functions is diagnosed by the equipment, and whether the functions of the equipment are complete or not is judged according to the diagnosis result.
The disadvantages of both methods are as follows:
1. through tool testing, the on-off of a circuit can be ensured only, and functional differences caused by the differences of components cannot be detected;
2. the functionality of the diagnosis equipment is judged through the automobile communication modules with perfect diagnosis functions, each automobile communication module only has one or two protocols, more than 4 automobile communication equipment are required to be switched after all the protocols are tested, the efficiency is low, the operation is complicated, the subjective judgment of testers is relied on, and batch testing cannot be carried out.
Disclosure of Invention
In view of the above, a detection method of a vehicle diagnostic apparatus is provided.
In order to solve the technical problems, the invention adopts the following technical scheme:
a detection method of a vehicle diagnostic apparatus, comprising:
testing an initial channel to be tested:
the method comprises the steps that a first diagnostic device becomes a master device after receiving a first test command, sends a second test command to a second diagnostic device through a preset test channel, the second diagnostic device enters a test mode after receiving the second test command and becomes a slave device, meanwhile, information of entering the test mode is fed back to the first diagnostic device through a preset initial channel to be tested, if the first diagnostic device receives feedback information of the second diagnostic device, the preset initial channel to be tested of the second diagnostic device is judged to be normal, and the type of the preset initial channel to be tested is the same as that of the preset test channel;
and testing each group of other channels to be tested by the following steps:
the first diagnostic equipment sends test data to second diagnostic equipment through the preset test channel, the test data comprises channel types, baud rates and test algorithm IDs, the second diagnostic equipment receives the test data, switches to the corresponding channel to be tested and the corresponding baud rate, starts the corresponding test algorithm, and feeds back ready data to the first diagnostic equipment through the preset initial channel to be tested;
after receiving the feedback data, the first diagnostic equipment randomly sends N packet data to the second diagnostic equipment through the test channel corresponding to the channel type, after receiving each packet data, the second diagnostic equipment calculates through the test algorithm through the switched channel to be tested, and feeds the calculation result back to the first diagnostic equipment through the channel to be tested, after receiving the feedback result, the first diagnostic equipment checks to confirm the correctness of the data, and if all the data are correct, the first diagnostic equipment judges that the channel to be tested is normal, and N is more than or equal to 1.
And displaying the test result of each channel to be tested of the second diagnostic equipment by the first diagnostic equipment through a display device.
The display device is a display screen of a computer, and the first test command is sent to the first diagnostic equipment by the computer.
The computer is connected with the first diagnostic equipment through a USB wire harness, the first diagnostic equipment is connected with the second diagnostic equipment through the wire harness, and power supply wires of the first diagnostic equipment and the second diagnostic equipment are led out of the wire harness.
The first diagnostic equipment and the second diagnostic equipment are provided with 4 groups of CAN channels, 1 group of K channels, 1 group of 232 channels and 1 group of 485 channels, and the preset initial channel to be tested and the preset test channel are 232 channels.
And N is 100.
The detection method does not need other tooling equipment, has low cost, can quickly copy the detection flow, can detect all channels, freely switches the main equipment and the auxiliary equipment, has no specific requirement, is convenient and quick to detect, has accurate and objective results, and can finish the detection within 10 s.
Drawings
The invention is described in detail below with reference to the following figures and detailed description:
FIG. 1 is a diagram of the hardware configuration of the present invention;
FIG. 2 is a schematic view of a test result display interface according to the present invention;
FIG. 3 is a schematic diagram showing the test results of the present invention.
Detailed Description
As shown in fig. 1, a detection method of a vehicle diagnosis device includes:
firstly, testing an initial channel to be tested of the second diagnostic device 120:
the firstdiagnostic device 110 becomes a master device after receiving the first test command, and sends a second test command to the second diagnostic device 120 through a preset test channel, the second diagnostic device 120 enters a test mode after receiving the second test command, and becomes a slave device, and simultaneously feeds back information that has entered the test mode to the firstdiagnostic device 110 through a preset initial channel to be tested, and if the firstdiagnostic device 110 receives feedback information of the second diagnostic device 120, the preset initial channel to be tested of the second diagnostic device 120 is determined to be normal, wherein the preset initial channel to be tested is the same as the preset test channel in type.
Secondly, after the initial channel to be tested of the second diagnostic device 120 is normal, each of the other groups of channels to be tested of the second diagnostic device 120 is tested by the following steps:
the firstdiagnostic device 110 sends test data to the second diagnostic device 120 through a preset test channel, the test data includes a channel type, a baud rate and a test algorithm ID, after receiving the test data, the second diagnostic device 120 switches to a corresponding channel to be tested and the baud rate, starts a corresponding test algorithm, and then feeds back ready data to the firstdiagnostic device 110 through a preset initial channel to be tested.
After receiving the feedback data, the firstdiagnostic device 110 randomly sends N packet data to the second diagnostic device 120 through the test channel corresponding to the channel type, after receiving each packet data through the switched channel to be tested, the second diagnostic device 120 performs calculation through the test algorithm, and feeds the calculation result back to the firstdiagnostic device 110 through the current channel to be tested, after receiving the feedback result, the firstdiagnostic device 110 performs verification to confirm the correctness of the data, and if all the N feedback results are correct, the current channel to be tested is judged to be normal, wherein N is greater than or equal to 1.
In this embodiment, N is 100.
Preferably, in the present embodiment, the test result of each channel to be tested of the second diagnostic apparatus 120 by the firstdiagnostic apparatus 110 is displayed through thedisplay device 130.
Thedisplay device 130 is a display screen of thecomputer 140, and is displayed on the display screen in the form of an indicator light, see fig. 2; the first test command is sent by thecomputer 140 to the firstdiagnostic device 110.
As shown in fig. 1, thecomputer 140 is connected to the firstdiagnostic device 110 through aUSB harness 150, the firstdiagnostic device 110 is connected to the second diagnostic device 120 through aharness 160, and apower supply line 161 of both is led out from theharness 160.
The firstdiagnostic device 110 and the second diagnostic device 120 both have 4 sets of CAN channels (CAN1, CAN2, CAN3, and CAN4), 1 set of K channels, 1 set of 232 channels, and 1 set of 485 channels, and in this embodiment, the preset initial channel to be tested and the preset test channel are both 232 channels.
The test algorithm is built into the firstdiagnostic device 110 and the second diagnostic device 120, see table 1.
| Test algorithm ID | Testing algorithm content |
| Seed1 | Data bit last byte increment 1 |
| Seed2 | Data bit first byte increment 1 |
| Seed3 | Data bit high and low interchange |
| Seed4 | Data invariant |
| Seed5 | All data bits&FF |
TABLE 1
In the following, it is assumed that after the initial channel to be tested is normal, a certain group of channels to be tested are tested through CAN1, 250k baud rate and seed1 algorithm:
1) and both the master device and the slave device activate CAN1, the baud rate is set to be 250K, and an algorithm seed1 is called for calculation.
2) The master device sends a 0000000000000000 data packet to the slave device through the CAN1 and 250K baud rate.
3) After receiving the data through CAN1 and 250 Kbaud rate, the slave device calculates the data packet to be 0000000000000001 through seed 1.
4) The slave device sends a 0000000000000001 packet to the master device through the CAN1, 250K baud rate.
5) The master device calculates 0000000000000000 from seed1 for the data packet sent to the slave device, and then the result is 0000000000000001.
6) And the master equipment compares the data fed back by the slave equipment with the data calculated by the master equipment, if the data is consistent, the current channel to be detected is normal in function, and otherwise, the current channel to be detected is abnormal.
7) Cycling 100 the data so that if all the data is normal, the channel is normal, otherwise, the channel is abnormal, and activating an indicator light, see fig. 3.
The detection process of the invention does not need other tooling equipment, has low cost, can quickly copy the detection flow, can detect all channels, freely switches the main equipment and the auxiliary equipment, has no specific requirements, is convenient and quick to detect, has accurate and objective results, and can finish the detection within 10 s.
However, those skilled in the art should realize that the above embodiments are illustrative only and not limiting to the present invention, and that changes and modifications to the above described embodiments are intended to fall within the scope of the appended claims, provided they fall within the true spirit of the present invention.