OBD interface CAN network test method, system and device
By designing the OBD interface CAN network test method, by switching the status between the measuring instrument and the OBD interface terminal, and collecting the voltage and current data between the CAN-H and CAN-L terminals, the risk of test scene switching and misoperation in the existing technology is solved. issues, enabling efficient test management and compatibility.
Patent Information
- Application Number
- CN202410640554.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-22
- Publication Date
- 2024-09-13
AI Technical Summary
During the electrical inspection and debugging process during the development and trial production phase of new models, it is difficult to flexibly switch test scenarios and test objects without repeatedly operating the power supply using existing technology, which increases the workload and affects efficiency, and CAN network voltage detection requires live operation. Increased risk of misoperation.
An OBD interface CAN network test method is designed. The OBD interface terminal and the measuring instrument are connected through the test terminal. The conduction or disconnection state between the measuring instrument and the OBD interface terminal is switched to collect the data between the CAN-H terminal and the CAN-L terminal. voltage and current data, and generates a variety of measurement circuits through double switches and ground terminals to achieve voltage and resistance measurement and simplify the operation process.
It enables multiple test projects to be completed on the same instrument device, improves the convenience and compatibility of test management, simplifies the measurement process of CAN network resistance, and reduces the risk of misoperation while powered on.
Smart Images

Figure CN118646673A
Abstract
Description
Technical Field
[0001] The present application relates to the field of network testing, and in particular to an OBD interface CAN network testing method, an OBD interface CAN network testing system, an OBD interface CAN network testing device, an OBD interface CAN network testing circuit, an electronic device and a storage medium. Background Art
[0002] During the electrical inspection and debugging process of the new car model development and trial production stage, a multimeter is usually used to measure the voltage and terminal resistance of each CAN network of the OBD interface of the prototype car to confirm whether the CAN network status is normal. When testing the terminal resistance of the CAN network, it is not possible to measure it with power on. When measuring, one hand is required to hold the OBD connector, and the other hand is required to operate two test leads to insert them into the CAN-H and CAN-L interfaces with a spacing of 10mm, which is difficult to operate. The CAN network voltage detection is a live measurement, so the operator needs to leave the work point and go to the front or back of the car to perform a vehicle power-on operation, which increases the workload and affects work efficiency.
[0003] Therefore, a solution for OBD interface CAN network testing is needed, which can flexibly switch test scenarios and test objects without repeatedly operating the power supply, thereby reducing the risk of misoperation. Summary of the invention
[0004] The object of the present invention is to provide an OBD interface CAN network test method, an OBD interface CAN network test system, an OBD interface CAN network test device, an OBD interface CAN network test circuit, an electronic device and a storage medium, so as to solve at least one of the above-mentioned technical problems.
[0005] The present invention provides the following scheme:
[0006] According to one aspect of the present invention, there is provided an OBD interface CAN network testing method, the OBD interface CAN network testing method comprising:
[0007] The test end is connected to the OBD interface terminals, including the CAN-H terminal, CAN-L terminal and the vehicle ground terminal;
[0008] The test end is also connected to measuring instruments, including a sampling voltmeter, a reference ammeter and a sampling ammeter;
[0009] Wherein, a test circuit is set to control the test end to connect to the OBD interface terminal and the test end to connect to the measuring instrument;
[0010] The controlling the test end to be connected to the OBD interface terminal and the test end to be connected to the measuring instrument comprises switching the on or off state between the measuring instrument and the OBD interface terminal;
[0011] Collecting test data according to the on or off state between the switching measuring instrument and the OBD interface terminal;
[0012] The test data includes the voltage between the CAN-H terminal and the vehicle ground terminal, the voltage between the CAN-H terminal and the CAN-L terminal, and the current flowing through the CAN-H terminal and the CAN-L terminal;
[0013] Among them, according to the change of the spacing of the OBD interface terminals, the probe spacing of the corresponding CAN-H terminal and CAN-L terminal is adjusted.
[0014] According to two aspects of the present invention, there is provided an OBD interface CAN network test circuit, the OBD interface CAN network test circuit comprising: a sampling voltmeter, a reference ammeter, a sampling ammeter, a voltage source, a double switch, a CAN-H probe, a CAN-L probe, a ground terminal, and a calibration resistor;
[0015] The CAN-H probe corresponds to the CAN-H terminal of the OBD interface;
[0016] The CAN-L probe corresponds to the CAN-L end of the OBD interface;
[0017] The ground terminal corresponds to the vehicle ground terminal;
[0018] The voltage source is used to supply power to the sampling voltmeter display and to supply power to the test circuit;
[0019] The sampling voltmeter is used to measure the voltage between the CAN-H probe and the ground terminal, and is also used to measure the voltage between the CAN-H probe and the CAN-L probe;
[0020] The sampling ammeter is used to measure the current between the CAN-H probe and the CAN-L probe;
[0021] The reference ammeter and the correction resistor are used to adjust the correction resistor value according to the measurement value of the sampling ammeter, and calculate the resistance between the CAN-H probe and the CAN-L probe according to the approximation of the measurement value of the reference ammeter and the sampling ammeter;
[0022] The double switch and the ground terminal are used for switching the measurement state of the test circuit.
[0023] Further, it includes: controlling the double switch and the ground terminal to generate a first measurement circuit;
[0024] The first test circuit includes: the CAN-H probe, the ground terminal, the voltage source, the sampling voltmeter and the double switch;
[0025] The ground terminal is inserted into the terminal of the vehicle ground end;
[0026] According to the ground terminal being inserted into the terminal of the vehicle ground terminal, the ground terminal is switched to a state of being connected to the vehicle ground terminal and disconnected from the CAN-L probe;
[0027] The double switch conducts the “positive” side of the voltage source with the “positive” side of the sampling voltage meter and conducts the “negative” side of the voltage source with the “negative” side of the sampling voltage meter;
[0028] The sampling voltmeter "red" is connected to the CAN-H probe;
[0029] Wherein, the sampling voltage meter "negative" is shared with the sampling voltage meter "black";
[0030] The “negative” terminal of the sampling voltmeter is connected to the ground terminal;
[0031] According to the connection between the “positive” of the voltage source and the “positive” of the sampling voltage meter and the connection between the “negative” of the voltage source and the “negative” of the sampling voltage meter, the sampling voltage meter is highlighted;
[0032] According to the connection of the sampling voltmeter "negative" to the ground terminal and the connection of the sampling voltmeter "red" to the CAN-H probe, the voltage between the CAN-H terminal and the vehicle ground terminal is sampled.
[0033] Further, it includes: controlling the double switch and the ground terminal to generate a second measurement circuit;
[0034] The second test circuit includes: the CAN-H probe, the CAN-L probe, the ground terminal, the voltage source, the sampling voltmeter and the double switch;
[0035] The ground terminal is unplugged from the vehicle ground terminal;
[0036] According to the ground terminal, the terminal of the vehicle ground terminal is unplugged, and the ground terminal is switched to a state of being disconnected from the vehicle ground terminal and connected to the CAN-L probe;
[0037] The double switch conducts the “positive” side of the voltage source with the “positive” side of the sampling voltage meter and conducts the “negative” side of the voltage source with the “negative” side of the sampling voltage meter;
[0038] The sampling voltmeter "red" is connected to the CAN-H probe;
[0039] Wherein, the sampling voltage meter "negative" is shared with the sampling voltage meter "black";
[0040] The “negative” terminal of the sampling voltmeter is connected to the ground terminal;
[0041] According to the connection between the “positive” of the voltage source and the “positive” of the sampling voltage meter and the connection between the “negative” of the voltage source and the “negative” of the sampling voltage meter, the sampling voltage meter is highlighted;
[0042] According to the connection of the sampling voltmeter "negative" to the ground terminal and the connection of the sampling voltmeter "red" to the CAN-H probe, the voltage value between the CAN-H terminal and the CAN-L terminal is sampled.
[0043] Further, it includes: controlling the double switch and the ground terminal to generate a third measurement circuit;
[0044] The third test circuit includes: the CAN-H probe, the CAN-L probe, the ground terminal, the voltage source, the sampling ammeter, the reference ammeter, the correction resistor and the double switch;
[0045] Wherein, the ground terminal is unplugged from the vehicle ground terminal;
[0046] According to the ground terminal, the terminal of the vehicle ground terminal is unplugged, and the ground terminal is switched to a state of being disconnected from the vehicle ground terminal and connected to the CAN-L probe;
[0047] The double switch conducts the connection between the voltage source "positive" and the sampling ammeter "red" and the reference ammeter "red", and disconnects the connection with the sampling voltage meter "positive", conducts the connection between the voltage source "negative" and the reference ammeter "black" and the ground terminal, and disconnects the connection with the sampling voltage meter "negative";
[0048] Among them, conducting the connection between the voltage source "positive" and the reference ammeter "red" includes connecting the correction resistor in series between the voltage source "positive" and the reference ammeter "red".
[0049] Further, the third test circuit includes: a reference calibration loop;
[0050] The reference calibration loop includes the voltage source, the reference ammeter, the correction resistor and the double switch;
[0051] According to the double switch, the voltage source "positive" is connected to the reference ammeter "red", and the connection with the sampling voltage meter "positive" is disconnected, the voltage source "negative" is connected to the reference ammeter "black", and the connection with the sampling voltage meter "negative" is disconnected, and the reference ammeter and the correction resistor are connected in series, and the voltage source drives the correction resistor;
[0052] The correction resistor is driven according to the voltage source, and the reference ammeter measures a reference resistance value.
[0053] Furthermore, the third test circuit further includes: an internal resistance measurement circuit;
[0054] The internal resistance measurement circuit includes the voltage source, the sampling ammeter, the CAN-H probe, the CAN-L probe, the ground terminal and the double switch;
[0055] According to the double switch, the voltage source "positive" is connected to the sampling ammeter "red", and the connection with the sampling voltmeter "positive" is disconnected, the voltage source "negative" is connected to the sampling ammeter "black", and the connection with the sampling voltmeter "negative" is disconnected, and the sampling ammeter "red" is connected to the CAN-H probe, the voltage source "negative" is connected to the ground terminal and the ground terminal is connected to the CAN-L probe, and the voltage source drives the resistance between the CAN-H terminal and the CAN-L terminal;
[0056] According to the resistance between the CAN-H terminal and the CAN-L terminal driven by the voltage source, the sampling ammeter measures the current value of the CAN network.
[0057] Further, including:
[0058] The resistance value is adjusted according to the correction resistor so that the reference current value measured by the reference ammeter approaches the CAN network current value measured by the sampling ammeter, and the current adjustment resistance value of the correction resistor is collected to be used for the internal resistance value of the equivalent CAN network.
[0059] According to three aspects of the present invention, an OBD interface CAN network test system is provided, the OBD interface CAN network test system comprising: an upper housing, a lower housing and a probe insulating sleeve;
[0060] The upper shell and the lower shell are combined into one shell;
[0061] The housing is reserved with installation positions or / and installation holes for installing the sampling voltmeter, the reference ammeter, the sampling ammeter, the voltage source, the double switch, the grounding terminal, the correction resistor, the CAN-H probe and the CAN-L probe;
[0062] Wherein, the mounting hole position includes a shaft sleeve hole;
[0063] The probe insulating sleeve is provided with a joint shaft, and the joint shaft is installed corresponding to the shaft sleeve hole;
[0064] Wherein, the two probe insulating sleeves respectively wrap the CAN-H probe and the CAN-L probe;
[0065] A fine-tuning spring is connected between the two probe insulating sleeves;
[0066] Among them, according to the change in the distance between the CAN-H end and the CAN-L end in the OBD interface terminal and the fine-tuning spring connected between the two probe insulating sleeves, the probe insulating sleeve is squeezed to adjust the distance between the CAN-H probe and the CAN-L probe, corresponding to the distance between the CAN-H end and the CAN-L end.
[0067] Furthermore, the mounting holes also include: display panel holes and switch panel holes;
[0068] The display panel holes correspond to the sampling voltmeter, the reference ammeter and the display panel of the sampling ammeter;
[0069] The switch panel holes correspond to the adjustment panel ends of the double switch and the correction resistor;
[0070] Also included is a plug-in hole for a grounding terminal.
[0071] According to four aspects of the present invention, an OBD interface CAN network test device is provided, and the OBD interface CAN network test device comprises:
[0072] A test end connection module is used for connecting the test end to the OBD interface terminals, including the CAN-H terminal, the CAN-L terminal and the vehicle ground terminal. The test end is also connected to measuring instruments, including a sampling voltmeter, a reference ammeter and a sampling ammeter;
[0073] A circuit module is provided, which is used to set a test circuit, control the test end to connect to the OBD interface terminal and the test end to connect to the measuring instrument;
[0074] A connection control module, used for controlling the test end to be connected to the OBD interface terminal and the test end to be connected to the measuring instrument, including switching the on or off state between the measuring instrument and the OBD interface terminal;
[0075] A data acquisition module, used to collect test data according to the on or off state between the switching measuring instrument and the OBD interface terminal, wherein the test data includes the voltage between the CAN-H terminal and the vehicle ground terminal, the voltage between the CAN-H terminal and the CAN-L terminal, and the current flowing through the CAN-H terminal and the CAN-L terminal;
[0076] The probe adjustment module is used to adjust the probe spacing of the corresponding CAN-H terminal and CAN-L terminal according to the spacing change of the OBD interface terminal.
[0077] According to five aspects of the present invention, there is provided an electronic device, comprising: a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;
[0078] A computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the steps of the OBD interface CAN network testing method.
[0079] According to the sixth aspect of the present invention, a computer-readable storage medium is provided, comprising: storing a computer program executable by an electronic device, and when the computer program runs on the electronic device, the electronic device executes the steps of the OBD interface CAN network testing method.
[0080] Through the above scheme, the following beneficial technical effects are obtained:
[0081] The present application integrates the test terminals of the instrument and generates a control circuit, so that the user can complete multiple test items on the same instrument device, thereby improving the convenience of instrument management.
[0082] The present application switches the test circuit by a switch, allowing the user to flexibly switch test items based on the same group of test terminals, thereby improving the compatibility of the test items.
[0083] The present application sets two ammeters and uses an adjustable resistor to approximate the readings of the two meters, thereby quickly obtaining the resistance value of the CAN network resistor and simplifying the operation process.
[0084] By setting a spring between the two probes, the present application makes it easier to control the distance between the probes and reduce the risk of live misoperation compared to the traditional method of using a multimeter probe. BRIEF DESCRIPTION OF THE DRAWINGS
[0085] Figure 1 It is a flow chart of an OBD interface CAN network testing method provided by one or more embodiments of the present invention.
[0086] Figure 2 It is a structural diagram of a first test circuit of an OBD interface CAN network test circuit provided by one or more embodiments of the present invention.
[0087] Figure 3 It is a structural diagram of a second test circuit of an OBD interface CAN network test circuit provided by one or more embodiments of the present invention.
[0088] Figure 4 It is a structural diagram of a third test circuit of an OBD interface CAN network test circuit provided by one or more embodiments of the present invention.
[0089] Figure 5 It is a structural diagram of a ground terminal circuit of an OBD interface CAN network test circuit provided by one or more embodiments of the present invention.
[0090] Figure 6It is an overall structural diagram of an OBD interface CAN network test system provided by one or more embodiments of the present invention.
[0091] Figure 7 It is a disassembled structural diagram of an OBD interface CAN network test system provided by one or more embodiments of the present invention.
[0092] Figure 8 It is a structural diagram of a probe insulating sleeve of an OBD interface CAN network test system provided by one or more embodiments of the present invention.
[0093] Fig. 9 It is a structural diagram of an OBD interface CAN network testing device provided by one or more embodiments of the present invention.
[0094] Fig.10 It is a schematic diagram of the CAN network test control logic of a specific embodiment of the present invention.
[0095] Fig.11 It is a schematic diagram of a CAN network test control circuit according to a specific embodiment of the present invention.
[0096] Fig.12 The present invention is a block diagram of an electronic device structure of an OBD interface CAN network testing method provided by one or more embodiments of the present invention.
[0097] Figure numbers: 1. Upper shell; 2. Lower shell; 3. Probe insulating sleeve; 4. Bushing hole; 5. Fine-tuning spring; 6. Display panel hole; 7. Switch panel hole; 8. Joint shaft. DETAILED DESCRIPTION
[0098] The technical solution of the present invention will be described clearly and completely below in conjunction with the accompanying drawings. 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.
[0099] Figure 1 It is a flow chart of an OBD interface CAN network testing method provided by one or more embodiments of the present invention.
[0100] like Figure 1 The OBD interface CAN network test method shown includes:
[0101] Step S1, the test end is connected to the OBD interface terminals, including the CAN-H terminal, the CAN-L terminal and the vehicle ground terminal;
[0102] Step S2, the test end is also connected to measuring instruments, including a sampling voltmeter, a reference ammeter and a sampling ammeter;
[0103] Step S3, wherein a test circuit is set to control the test end to connect to the OBD interface terminal and the test end to connect to the measuring instrument;
[0104] Step S4, controlling the test end to connect to the OBD interface terminal and the test end to connect to the measuring instrument, including switching the on or off state between the measuring instrument and the OBD interface terminal;
[0105] Step S5, collecting test data according to the on or off state between the switching measuring instrument and the OBD interface terminal;
[0106] Step S6, the test data includes the voltage between the CAN-H terminal and the vehicle ground terminal, the voltage between the CAN-H terminal and the CAN-L terminal, and the current flowing through the CAN-H terminal and the CAN-L terminal;
[0107] Step S7, wherein the probe spacing corresponding to the CAN-H terminal and the CAN-L terminal is adjusted according to the spacing change of the OBD interface terminals.
[0108] Specifically, in one embodiment, the CAN network test of the OBD interface mainly involves three aspects, one is the voltage between the CAN-H terminal and the vehicle ground terminal, another is the voltage between the CAN-H terminal and the CAN-L terminal, and the other is the resistance between the CAN-H terminal and the CAN-L terminal.
[0109] When testing the voltage between the CAN-H terminal and the vehicle ground terminal, the vehicle power supply is used. When testing the voltage between the CAN-H terminal and the CAN-L terminal, the vehicle ground terminal needs to be disconnected and the vehicle power supply is used. When testing the resistance between the CAN-H terminal and the CAN-L terminal, the voltage source ( Figure 2 , 3 , 4) and connect an adjustable resistor (e.g., a correction resistor) in series through a reference ammeter to simulate the current value presented by the circuit table when loading the resistor between the CAN-H terminal and the CAN-L terminal. The resistance value of the adjustable resistor is equivalent to the resistance value between the CAN-H terminal and the CAN-L terminal through the current values of the two ammeters.
[0110] Figure 2 It is a structural diagram of a first test circuit of an OBD interface CAN network test circuit provided by one or more embodiments of the present invention.
[0111] Figure 3 It is a structural diagram of a second test circuit of an OBD interface CAN network test circuit provided by one or more embodiments of the present invention.
[0112] Figure 4It is a structural diagram of a third test circuit of an OBD interface CAN network test circuit provided by one or more embodiments of the present invention.
[0113] Figure 5 It is a structural diagram of a ground terminal circuit of an OBD interface CAN network test circuit provided by one or more embodiments of the present invention.
[0114] like Figure 2 , 3 The OBD interface CAN network test circuit shown in 4 and 5 includes: a sampling voltmeter, a reference ammeter, a sampling ammeter, a voltage source, a double switch, a CAN-H probe, a CAN-L probe, a ground terminal, and a calibration resistor;
[0115] CAN-H probe, corresponding to the CAN-H end of the OBD interface;
[0116] CAN-L probe, corresponding to the CAN-L end of the OBD interface;
[0117] Ground terminal, corresponding to the vehicle ground terminal;
[0118] Voltage source, used for supplying power to the sampling voltmeter display and for supplying power in the test circuit;
[0119] Sampling voltmeter, used to measure the voltage between the CAN-H probe and the ground terminal, and also used to measure the voltage between the CAN-H probe and the CAN-L probe;
[0120] Sampling ammeter, used to measure the current between CAN-H probe and CAN-L probe;
[0121] The reference ammeter and the calibration resistor are used to adjust the calibration resistor value according to the measured value of the sampling ammeter, and calculate the resistance between the CAN-H probe and the CAN-L probe according to the approximation of the measured values of the reference ammeter and the sampling ammeter;
[0122] Double switch and ground terminal for switching the measurement status of the test circuit.
[0123] Specifically, in one embodiment, the ground terminal is a "female" terminal having three conductive contact terminals, wherein the first conductive contact terminal is connected to the voltage source ( Figure 2 , 3 , 4) is connected to the negative electrode of the positive electrode, with the second conductive contact terminal as the common terminal. Relative to the second conductive contact terminal, the first conductive contact terminal is a normally closed point. The third conductive contact terminal is a suspended terminal, serving as a base. The terminal of the vehicle ground terminal is a "male" terminal, which is inserted into the ground terminal to prop open the first conductive contact terminal and the third conductive contact terminal, so that the first conductive contact terminal and the second conductive contact terminal change from a conductive state to a disconnected state.
[0124] The second conductive contact end of the ground terminal is connected to the CAN-L probe. Since the first conductive contact end is a normally closed point relative to the second conductive contact end, the CAN-L probe is normally connected to the voltage source ( Figure 2 , 3 , the negative pole of the voltage source in 4) is connected.
[0125] As the vehicle ground terminal is inserted into the ground terminal, the first conductive contact terminal is separated from the second conductive contact terminal, and the CAN-L probe is connected to the voltage source ( Figure 2 , 3 , the negative pole of the voltage source in 4) is disconnected, and the vehicle ground terminal is connected to the voltage source ( Figure 2 , 3 , the negative pole of the voltage source in 4) is connected.
[0126] In one embodiment, the double switch connects two sets of contacts synchronously or disconnects two sets of contacts synchronously, wherein one set of contacts is connected to a voltage source ( Figure 2 , 3 , the positive pole of the voltage source in 4) and the “positive” pole of the sampling voltmeter, and the voltage source ( Figure 2 , 3 , the negative pole of the voltage source in 4) is connected to the "negative" pole of the sampling voltmeter. The "positive" pole of the sampling voltmeter and the "positive" pole of the sampling voltmeter are the LED input terminals of the sampling voltmeter. The current position of the double switch is indicated by the LED power of the sampling voltmeter.
[0127] In one embodiment, the sampling voltmeter "red" is connected to the CAN-H probe, and the sampling voltmeter "black" is connected to the sampling voltmeter "negative", which is equivalent to "common ground". Since the sampling voltmeter "negative" is connected to the first end of the ground terminal (when the terminal of the vehicle ground terminal is inserted into the ground terminal), that is, the sampling voltmeter "black" is connected to the vehicle ground terminal, the sampling voltmeter "red" and the sampling voltmeter "black" are the measurement terminals of the sampling voltmeter, which are connected across the CAN-H terminal and the vehicle ground terminal to measure the voltage value between the CAN-H terminal and the vehicle ground terminal. At this time, the measurement scenario is equivalent to the vehicle power supply, and the voltage value between the CAN-H terminal and the vehicle ground terminal is measured.
[0128] In this embodiment, the method includes: controlling the double switch and the ground terminal to generate a first measurement circuit;
[0129] The first test circuit includes: a CAN-H probe, a ground terminal, a voltage source, a sampling voltmeter and a double switch;
[0130] The ground terminal is inserted into the terminal of the vehicle ground;
[0131] According to the ground terminal being inserted into the terminal of the vehicle ground terminal, the ground terminal switches to a state of being connected to the vehicle ground terminal and disconnected from the CAN-L probe;
[0132] The double switch conducts the voltage source "positive" and the sampling voltage meter "positive" and conducts the voltage source "negative" and the sampling voltage meter "negative";
[0133] The sampling voltmeter "red" is connected to the CAN-H probe;
[0134] Among them, the sampling voltmeter "negative" and the sampling voltmeter "black" are shared;
[0135] The “negative” terminal of the sampling voltmeter is connected to the ground terminal;
[0136] According to the “positive” of the on-state voltage source and the “positive” of the sampling voltage meter, and the “negative” of the on-state voltage source and the “negative” of the sampling voltage meter, the sampling voltage meter is highlighted;
[0137] According to the connection of the sampling voltmeter "negative" to the ground terminal and the sampling voltmeter "red" to the CAN-H probe, sample the voltage between the CAN-H terminal and the vehicle ground terminal.
[0138] Specifically, in one embodiment, the first test circuit includes a CAN-H probe, a ground terminal, a voltage source ( Figure 2 , 3 , the voltage source in 4), a sampling voltmeter and a double switch, wherein the double switch connects a set of contacts, and the contact connection is to connect the voltage source ( Figure 2 , 3 , the positive pole of the voltage source in 4) and the “positive” pole of the sampling voltmeter, and the voltage source ( Figure 2 , 3 , 4) and the negative pole of the sampling voltmeter "negative". At the same time, the ground terminal is inserted into the terminal of the vehicle ground terminal, so that the vehicle ground terminal is connected to the sampling voltmeter "black". The sampling voltmeter "red" is connected to the CAN-H probe, so that the CAN-H terminal and the vehicle ground terminal are connected across the measuring end of the sampling voltmeter, realizing the first test circuit.
[0139] In this embodiment, the method includes: controlling the double switch and the ground terminal to generate a second measurement circuit;
[0140] The second test circuit includes: a CAN-H probe, a CAN-L probe, a ground terminal, a voltage source, a sampling voltmeter and a double switch;
[0141] Ground terminal: Unplug the vehicle ground terminal;
[0142] According to the ground terminal, the vehicle ground terminal is unplugged, and the ground terminal is switched to a state of being disconnected from the vehicle ground terminal and connected to the CAN-L probe;
[0143] The double switch conducts the voltage source "positive" and the sampling voltage meter "positive" and conducts the voltage source "negative" and the sampling voltage meter "negative";
[0144] The sampling voltmeter "red" is connected to the CAN-H probe;
[0145] Among them, the sampling voltmeter "negative" and the sampling voltmeter "black" are shared;
[0146] The “negative” terminal of the sampling voltmeter is connected to the ground terminal;
[0147] According to the “positive” of the on-state voltage source and the “positive” of the sampling voltage meter, and the “negative” of the on-state voltage source and the “negative” of the sampling voltage meter, the sampling voltage meter is highlighted;
[0148] According to the sampling voltmeter "negative" connected to the ground terminal and the sampling voltmeter "red" connected to the CAN-H probe, sample the voltage value between the CAN-H terminal and the CAN-L terminal.
[0149] Specifically, in one embodiment, based on the first test circuit, the ground terminal is unplugged from the vehicle ground terminal. Since the first conductive contact terminal is a normally closed point relative to the second conductive contact terminal of the ground terminal, the sampling voltmeter "negative" is connected to the CAN-L probe, that is, the sampling voltmeter "black" is connected to the CAN-L terminal. The sampling voltmeter "red" is connected to the CAN-H probe, and the sampling voltmeter "black" is connected to the CAN-L terminal. At this time, the sampling voltmeter measurement terminal measures the voltage between the CAN-H terminal and the CAN-L terminal, realizing the second test circuit. At this time, the voltage between the CAN-H terminal and the CAN-L terminal is measured under the power supply of the vehicle.
[0150] In this embodiment, it includes: controlling the double switch and the ground terminal to generate a third measurement circuit;
[0151] The third test circuit includes: a CAN-H probe, a CAN-L probe, a ground terminal, a voltage source, a sampling ammeter, a reference ammeter, a calibration resistor and a double switch;
[0152] Among them, the ground terminal is unplugged from the vehicle ground terminal;
[0153] According to the ground terminal, the vehicle ground terminal is unplugged, and the ground terminal is switched to a state of being disconnected from the vehicle ground terminal and connected to the CAN-L probe;
[0154] Double switch conduction voltage source ( Figure 2 , 3 , the voltage source in 4) "positive" is connected to the sampling ammeter "red" and the reference ammeter "red", disconnect the connection with the sampling voltmeter "positive", turn on the voltage source ( Figure 2 , 3 , the voltage source in 4) "negative" is connected to the reference ammeter "black" and the ground terminal, and the connection with the sampling voltmeter "negative" is disconnected;
[0155] Among them, the on-state voltage source ( Figure 2 , 3 , 4) "positive" and the reference ammeter "red" connection includes, the correction resistor is connected in series with the voltage source ( Figure 2 , 3 , between the voltage source “positive” in 4) and the reference ammeter “red”.
[0156] Specifically, in one embodiment, based on the second test circuit, the double switch connects another set of contacts to generate a third test circuit. At this time, the contacts are disconnected and the voltage source is connected ( Figure 2 , 3 , the positive pole of the voltage source in 4) is connected to the "positive" of the sampling voltmeter, and the voltage source ( Figure 2 , 3 , the negative pole of the voltage source in 4) is connected to the "negative" of the sampling voltmeter, and the LED light of the sampling voltmeter no longer works, indicating that the vehicle power supply does not participate in the power supply in the third test circuit at this time.
[0157] The double switch connects another set of contacts, including the voltage source ( Figure 2 , 3 , voltage source in 4) connects the positive pole of the sampling ammeter "red" and the reference ammeter "red", and the voltage source ( Figure 2 , 3 , the voltage source in 4) negative pole passes through the series correction resistor and is connected to the reference ammeter "black", the voltage source ( Figure 2 , 3 , 4) negative pole is connected to CAN-L probe, and the sampling ammeter "black" is connected to CAN-H probe. The sampling ammeter measures the resistance between CAN-L probe and CAN-H probe.
[0158] The reference ammeter "red" and the reference ammeter "black" are the measuring ends of the reference ammeter. The sampling ammeter "red" and the sampling ammeter "black" are the measuring ends of the sampling ammeter.
[0159] In this embodiment, the third test circuit includes: a reference calibration loop;
[0160] The reference calibration circuit includes a voltage source, a reference ammeter, a calibration resistor and a double switch;
[0161] According to the double switch, the voltage source "positive" is connected to the reference ammeter "red", and the connection with the sampling voltage meter "positive" is disconnected, the voltage source "negative" is connected to the reference ammeter "black", and the connection with the sampling voltage meter "negative" is disconnected, and the reference ammeter and the correction resistor are connected in series, and the voltage source drives the correction resistor;
[0162] The calibration resistor is driven by a voltage source, and the reference current meter measures the reference resistance value.
[0163] Specifically, in one embodiment, the third test circuit includes a reference calibration loop, in which a voltage source ( Figure 2 , 3 , the voltage source in 4) drives the correction resistor, and the current value is displayed on the reference ammeter. The correction resistor is adjusted so that the current value displayed on the reference ammeter is close to the current value displayed on the sampling ammeter. At this time, the resistance value of the correction resistor is equivalent to the resistance value of the object measured by the sampling ammeter.
[0164] In this embodiment, the third test circuit further includes: an internal resistance measurement circuit;
[0165] The internal resistance measurement circuit includes a voltage source, a sampling ammeter, a CAN-H probe, a CAN-L probe, a grounding terminal and a double switch;
[0166] According to the double switch, the connection between the voltage source "positive" and the sampling ammeter "red" is turned on, and the connection with the sampling voltmeter "positive" is disconnected, the connection between the voltage source "negative" and the sampling ammeter "black" is turned on, and the connection with the sampling voltmeter "negative" is disconnected, and the sampling ammeter "red" is connected to the CAN-H probe, the voltage source "negative" is connected to the ground terminal and the ground terminal is connected to the CAN-L probe, and the voltage source drives the resistance between the CAN-H terminal and the CAN-L terminal;
[0167] According to the resistance between the CAN-H terminal and the CAN-L terminal driven by the voltage source, the sampling ammeter measures the current value of the CAN network.
[0168] Specifically, in one embodiment, the third test circuit further includes an internal resistance measurement loop. In the internal resistance measurement loop, since the measurement object of the sampling ammeter and the measurement object of the reference ammeter are both based on the same voltage source ( Figure 2 , 3 , 4) are driven respectively (in parallel), so when the measured values of the reference ammeter and the sampling ammeter are the same, the resistance of the two measured objects is also the same. That is, the resistance between the CAN-H terminal and the CAN-L terminal driven by the voltage source is equivalent to the resistance value of the calibration resistor.
[0169] In this embodiment, it includes:
[0170] The resistance value is adjusted according to the correction resistor so that the reference current value measured by the reference ammeter is close to the CAN network current value measured by the sampling ammeter. The current adjustment resistance value of the correction resistor is collected to be used for the internal resistance value of the equivalent CAN network.
[0171] Specifically, in one embodiment, the voltage source ( Figure 2 , 3 , 4) is a battery, and the battery has energy decay, causing the voltage to drop continuously. Since the measurement objects of the sampling ammeter and the reference ammeter are based on the same voltage source ( Figure 2 , 3 , 4) are driven respectively (in parallel), and the resistance value of the calibration resistor is adjusted so that the reference current value measured by the reference ammeter is close to the CAN network current value measured by the sampling ammeter, and the internal resistance value of the CAN network can be inferred by the current value of the calibration resistor, which is not affected by the energy storage decay of the battery. In one embodiment, the calibration resistor is an adjustable resistor with a preset scale, and the resistance value of the current calibration resistor can be read out through the scale, that is, it is equivalent to reading the internal resistance value of the CAN network (the resistance between the CAN-H terminal and the CAN-L terminal).
[0172] Figure 6 It is an overall structural diagram of an OBD interface CAN network test system provided by one or more embodiments of the present invention.
[0173] Figure 7 It is a disassembled structural diagram of an OBD interface CAN network test system provided by one or more embodiments of the present invention.
[0174] Figure 8 It is a structural diagram of a probe insulating sleeve 3 of an OBD interface CAN network test system provided by one or more embodiments of the present invention.
[0175] like Figure 6 , 7 The OBD interface CAN network test system shown in 8 comprises: an upper housing 1, a lower housing 2 and a probe insulating sleeve 3;
[0176] The upper shell 1 and the lower shell 2 are combined into one shell;
[0177] The housing is reserved with installation positions or / and installation holes for installing a sampling voltmeter, a reference ammeter, a sampling ammeter, a voltage source, a double switch, a grounding terminal, a calibration resistor, a CAN-H probe, and a CAN-L probe;
[0178] Wherein, the mounting holes include a shaft sleeve hole 4;
[0179] The probe insulating sleeve 3 is provided with a joint shaft 8, and the joint shaft 8 is installed corresponding to the sleeve hole 4;
[0180] Wherein, two probe insulating sleeves 3 respectively wrap the CAN-H probe and the CAN-L probe;
[0181] A fine-tuning spring 5 is connected between the two probe insulating sleeves 3;
[0182] Among them, according to the change in the distance between the CAN-H end and the CAN-L end in the OBD interface terminal and the fine-tuning spring 5 connected between the two probe insulating sleeves 3, the probe insulating sleeve 3 is squeezed to adjust the distance between the CAN-H probe and the CAN-L probe, corresponding to the distance between the CAN-H end and the CAN-L end.
[0183] Specifically, in one embodiment, the OBD interface CAN network test circuit is part of the OBD interface CAN network test system, that is, the components and circuits of the OBD interface CAN network test circuit are connected and installed on the housing of the OBD interface CAN network test system. The housing is reserved for installation positions and / or installation holes, and is arranged according to ergonomic optimization of the working scene.
[0184] In one embodiment, the reserved mounting holes on the housing include two groups of sleeve holes 4, which correspond to the joint shafts 8 provided on the probe insulating sleeves 3, respectively. The two probe insulating sleeves 3 respectively wrap the CAN-H probe and the CAN-L probe to achieve insulation. In addition, a fine-tuning spring 5 is connected between the two probe insulating sleeves 3. By squeezing the two probe insulating sleeves 3 outside the CAN-H probe and the CAN-L probe during the hand-holding process, the distance between the CAN-H probe and the CAN-L probe is changed. Through the elastic force of the fine-tuning spring 5, the user only needs to apply force in one direction, which is similar to the action of the user's five fingers clenching, thereby improving the difficulty of changing the distance between two test leads or probes due to one-handed operation and multiple fingers, making the action more precise and more suitable for the measurement operation of the plug-in type terminal of the OBD interface terminal.
[0185] In this embodiment, the mounting holes further include: a display panel hole 6 and a switch panel hole 7;
[0186] The display panel hole 6 corresponds to the display panel of the sampling voltmeter, the reference ammeter and the sampling ammeter;
[0187] The switch panel hole 7 corresponds to the adjustment panel end of the double switch and the correction resistor;
[0188] Also included is a plug-in hole for a grounding terminal.
[0189] Specifically, in one embodiment, the display panel holes 6 of the display panel for installing the sampling voltmeter, the reference ammeter and the sampling ammeter are mainly concentrated on the upper shell, which is conducive to the meter reading. The switch panel holes 7 correspond to the adjustment panel ends of the double switch and the correction resistor, and are mainly concentrated on the side of the shell, which is conducive to the adjustment operation of the thumb and index finger. The plug-in hole of the grounding terminal is located at the rear of the shell, away from the two probe insulation sleeves 3. When the other hand is plugging in and out the terminal of the power ground end, the shell can be held to squeeze the fine-tuning spring 5 to keep the position state of the CAN-H probe and the CAN-L probe unchanged.
[0190] In one embodiment, the switch panel hole 7 is preferably opened at a position close to the thumb or index finger, and the adjustment dial of the correction resistor is located near the thumb or index finger. When held with one hand, the double switch and / or the correction resistor can be switched in measurement mode and the resistance value (with a resistance value scale) can be adjusted and controlled.
[0191] Fig. 9 It is a structural diagram of an OBD interface CAN network testing device provided by one or more embodiments of the present invention.
[0192] like Fig. 9 The OBD interface CAN network test device comprises: a test end connection module, a setting circuit module, a connection control module, a data acquisition module, and a probe adjustment module;
[0193] The test end connection module is used to connect the test end to the OBD interface terminals, including the CAN-H terminal, the CAN-L terminal and the vehicle ground terminal. The test end is also connected to measuring instruments, including a sampling voltmeter, a reference ammeter and a sampling ammeter;
[0194] A circuit module is set up to set up a test circuit, control the test end to connect to the OBD interface terminal and the test end to connect to the measuring instrument;
[0195] A connection control module, used to control the connection between the test end and the OBD interface terminal and the test end and the measuring instrument, including switching the on or off state between the measuring instrument and the OBD interface terminal;
[0196] A data acquisition module is used to collect test data according to the on / off state between the switching measuring instrument and the OBD interface terminal. The test data includes the voltage between the CAN-H terminal and the vehicle ground terminal, the voltage between the CAN-H terminal and the CAN-L terminal, and the current flowing through the CAN-H terminal and the CAN-L terminal;
[0197] The probe adjustment module is used to adjust the probe spacing of the corresponding CAN-H terminal and CAN-L terminal according to the spacing change of the OBD interface terminal.
[0198] It is worth noting that although the present system only discloses the test end connection module, the setting circuit module, the connection control module, the data acquisition module, and the probe adjustment module, it does not mean that the present device is limited to the above-mentioned basic functional modules. Rather, what the present invention wants to express is that, based on the above-mentioned basic functional modules, those skilled in the art can arbitrarily add one or more functional modules in combination with the prior art to form an infinite number of embodiments or technical solutions. In other words, the present system is open rather than closed. Just because the present embodiment only discloses individual basic functional modules, it cannot be considered that the scope of protection of the claims of the present invention is limited to the above-mentioned basic functional modules.
[0199] Through the above scheme, the following beneficial technical effects are obtained:
[0200] The present application integrates the test terminals of the instrument and generates a control circuit, so that the user can complete multiple test items on the same instrument device, thereby improving the convenience of instrument management.
[0201] The present application switches the test circuit by a switch, allowing the user to flexibly switch test items based on the same group of test terminals, thereby improving the compatibility of the test items.
[0202] The present application sets two ammeters and uses an adjustable resistor to approximate the readings of the two meters, thereby quickly obtaining the resistance value of the CAN network resistor and simplifying the operation process.
[0203] By setting a spring between the two probes, the present application makes it easier to control the distance between the probes and reduce the risk of live misoperation compared to the traditional method of using a multimeter probe.
[0204] Fig.10 It is a schematic diagram of the CAN network test control logic of a specific embodiment of the present invention.
[0205] Fig.11 It is a schematic diagram of a CAN network test control circuit according to a specific embodiment of the present invention.
[0206] In a specific embodiment, Fig.10 , 11As shown, put the sample car to be inspected, and power it on after confirming that there is no short-circuit fault in the whole car. Insert one end of the grounding lead of the device into the tail grounding interface, and clamp the other end to the well-grounded part of the car body. Hold the device, switch the function selection switch from OFF to voltage test, aim the positive probe at the CAN-H to be tested in the OBD interface, and aim the negative probe at CAN-L. The voltmeter on the device will display the voltage of CAN-H to ground; the tail ends of the positive and negative probes are positioned by pins and installed on the round holes of the upper and lower shells. The two sides of the probes are limited by the shell, and a fine-tuning spring is installed in the middle. It can ensure that the probe tips are kept at the standard spacing. The probe spacing can be changed by applying force with the thumb and middle finger. Disconnect the ground wire of the ground interface, and the voltmeter enters the state of measuring CAN-H and CAN-L voltages. At this time, the voltmeter will display the voltage difference information of the CAN network (usually the voltage difference between CAN-H and CAN-L is 0.4V±0.05. If it is not in this range, before entering the resistance measurement, according to the measured voltage value between CAN-H and CAN-L, the voltage value adjustment knob is adjusted to the corresponding potentiometer resistance value in accordance with the voltage value marked by the engraved lines around the potentiometer adjustment knob). Slide the function selection switch to the resistance test gear, and the reference resistance ammeter and the terminal resistance ammeter respectively display two current values, which tend to be consistent (current difference range ±1mA), proving that the terminal resistance of the CAN network is normal (60Ω). If the terminal resistance ammeter value is less than the reference resistance ammeter value, the terminal resistance is greater than 60Ω, proving that the CAN network lacks terminal resistance. If the terminal resistance ammeter value is greater than the reference resistance ammeter value, the terminal resistance is less than 60Ω, proving that the CAN network has multiple terminal resistances. The measurement of the CAN network is completed. Repeat the above steps to enter the next set of CAN network tests. After the test is completed, turn off the function switch.
[0207] Fig.12 The present invention is a block diagram of an electronic device structure of an OBD interface CAN network testing method provided by one or more embodiments of the present invention.
[0208] like Fig.12 As shown, the present application provides an electronic device, including: a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus;
[0209] A computer program is stored in the memory. When the computer program is executed by the processor, the processor executes the steps of an OBD interface CAN network testing method.
[0210] The present application also provides a computer-readable storage medium, which stores a computer program executable by an electronic device. When the computer program runs on the electronic device, the electronic device executes the steps of an OBD interface CAN network testing method.
[0211] The present application also provides an OBD interface CAN network test platform, including:
[0212] Electronic device, used to implement the steps of the OBD interface CAN network testing method;
[0213] A processor, wherein the processor runs a program, and when the program runs, the steps of the OBD interface CAN network test method are executed from the data output by the electronic device;
[0214] The storage medium is used to store a program, and when the program is running, the program executes the steps of the OBD interface CAN network test method for the data output from the electronic device.
[0215] The communication bus mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0216] The electronic device includes a hardware layer, an operating system layer running on the hardware layer, and an application layer running on the operating system. The hardware layer includes hardware such as a central processing unit (CPU), a memory management unit (MMU), and a memory. The operating system can be any one or more computer operating systems that implement electronic device control through a process, such as a Linux operating system, a Unix operating system, an Android operating system, an iOS operating system, or a Windows operating system. In addition, in an embodiment of the present invention, the electronic device can be a handheld device such as a smart phone or a tablet computer, or can be an electronic device such as a desktop computer or a portable computer, which is not particularly limited in the embodiment of the present invention.
[0217] The execution subject of the electronic device control in the embodiment of the present invention may be an electronic device, or a functional module in the electronic device that can call and execute a program. The electronic device may obtain the firmware corresponding to the storage medium. The firmware corresponding to the storage medium is provided by the supplier. The firmware corresponding to different storage media may be the same or different, which is not limited here. After the electronic device obtains the firmware corresponding to the storage medium, the firmware corresponding to the storage medium may be written into the storage medium, specifically, the firmware corresponding to the storage medium may be burned into the storage medium. The process of burning the firmware into the storage medium may be implemented using existing technology, which will not be described in detail in the embodiment of the present invention.
[0218] The electronic device may also obtain a reset command corresponding to the storage medium. The reset command corresponding to the storage medium is provided by the supplier. The reset commands corresponding to different storage media may be the same or different, and are not limited here.
[0219] At this time, the storage medium of the electronic device is a storage medium in which the corresponding firmware is written, and the electronic device can respond to the reset command corresponding to the storage medium in the storage medium in which the corresponding firmware is written, so that the electronic device resets the storage medium in which the corresponding firmware is written according to the reset command corresponding to the storage medium. The process of resetting the storage medium according to the reset command can be implemented by the existing technology and will not be described in detail in the embodiments of the present invention.
[0220] For the convenience of description, the above devices are described in terms of functions and are divided into various units and modules. Of course, when implementing the present application, the functions of each unit and module can be implemented in the same or multiple software and / or hardware.
[0221] Those skilled in the art will appreciate that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as those generally understood by those skilled in the art in the art to which the present invention belongs. It should also be understood that terms such as those defined in general dictionaries should be understood to have meanings consistent with the meanings in the context of the prior art, and will not be interpreted with idealized or overly formal meanings unless specifically defined.
[0222] For the method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should know that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
[0223] It can be known from the description of the above implementation modes that those skilled in the art can clearly understand that the present application can be implemented by means of software plus a necessary general hardware platform. Based on such an understanding, the technical solution of the present application can be essentially or partly contributed to the prior art in the form of a software product, which can be stored in a storage medium such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer device (which can be a personal computer, a server or a network device, etc.) to execute the methods described in the various implementation modes of the present application or certain parts of the implementation modes.
[0224] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for testing an OBD interface CAN network, characterized in that: The OBD interface CAN network testing method includes: The test end is connected to the OBD interface terminals, including CAN-H terminal, CAN-L terminal and vehicle ground terminal; The test end is also connected to measuring instruments, including a sampling voltmeter, a reference ammeter and a sampling ammeter; Wherein, a test circuit is provided to control the test end to be connected to the OBD interface terminal and the test end to be connected to the measuring instrument; The controlling the test end to be connected to the OBD interface terminal and the test end to be connected to the measuring instrument includes switching the conductive state or the disconnected state between the measuring instrument and the OBD interface terminal; Collecting test data according to the on / off state between the switching measuring instrument and the OBD interface terminal; The test data includes the voltage between the CAN-H terminal and the vehicle ground terminal, the voltage between the CAN-H terminal and the CAN-L terminal, and the current flowing through the CAN-H terminal and the CAN-L terminal; Among them, according to the change in the spacing of the OBD interface terminals, the probe spacing corresponding to the CAN-H end and the CAN-L end is adjusted.
2. An OBD interface CAN network test circuit, characterized in that: The OBD interface CAN network test circuit includes: a sampling voltmeter, a reference ammeter, a sampling ammeter, a voltage source, a double switch, a CAN-H probe, a CAN-L probe, a ground terminal, and a calibration resistor; The CAN-H probe corresponds to the CAN-H terminal of the OBD interface; The CAN-L probe corresponds to the CAN-L end of the OBD interface; The ground terminal corresponds to the vehicle ground; The voltage source is used to supply power to the sampling voltmeter display and to supply power to the test circuit; The sampling voltmeter is used to measure the voltage between the CAN-H probe and the ground terminal, and is also used to measure the voltage between the CAN-H probe and the CAN-L probe; The sampling ammeter is used to measure the current between the CAN-H probe and the CAN-L probe; The reference ammeter and the correction resistor are used to adjust the resistance of the correction resistor according to the measurement value of the sampling ammeter, and calculate the resistance between the CAN-H probe and the CAN-L probe based on the approximation of the measurement values of the reference ammeter and the sampling ammeter; The double switch and the ground terminal are used for switching the measurement state of the test circuit.
3. The OBD interface CAN network test circuit according to claim 2, characterized in that: include: controlling the double switch and the ground terminal to generate a first measurement circuit; The first test circuit includes: the CAN-H probe, the ground terminal, the voltage source, the sampling voltmeter and the double switch; The ground terminal is inserted into the terminal of the vehicle ground end; According to the ground terminal being inserted into the terminal of the vehicle ground terminal, the ground terminal is switched to a state of being connected to the vehicle ground terminal and disconnected from the CAN-L probe; The double switch conducts the positive side of the voltage source with the positive side of the sampling voltmeter and conducts the negative side of the voltage source with the negative side of the sampling voltmeter; The sampling voltmeter "red" is connected to the CAN-H probe; Wherein, the sampling voltmeter "negative" is shared with the sampling voltmeter "black"; The "negative" terminal of the sampling voltmeter is connected to the ground terminal; According to the connection between the positive side of the voltage source and the positive side of the sampling voltage meter and the connection between the negative side of the voltage source and the negative side of the sampling voltage meter, the sampling voltage meter is highlighted; According to the sampling voltmeter "negative" connected to the ground terminal and the sampling voltmeter "red" connected to the CAN-H probe, the voltage between the CAN-H terminal and the vehicle ground terminal is sampled.
4. The OBD interface CAN network test circuit according to claim 2, characterized in that: include: controlling the double switch and the ground terminal to generate a second measurement circuit; The second test circuit includes: the CAN-H probe, the CAN-L probe, the ground terminal, the voltage source, the sampling voltmeter and the double switch; The ground terminal is disconnected from the vehicle ground terminal; According to the ground terminal, the vehicle ground terminal is unplugged, and the ground terminal is switched to a state of being disconnected from the vehicle ground terminal and connected to the CAN-L probe; The double switch conducts the positive side of the voltage source with the positive side of the sampling voltmeter and conducts the negative side of the voltage source with the negative side of the sampling voltmeter; The sampling voltmeter "red" is connected to the CAN-H probe; Wherein, the sampling voltmeter "negative" is shared with the sampling voltmeter "black"; The "negative" terminal of the sampling voltmeter is connected to the ground terminal; According to the connection between the positive side of the voltage source and the positive side of the sampling voltage meter and the connection between the negative side of the voltage source and the negative side of the sampling voltage meter, the sampling voltage meter is highlighted; According to the sampling voltmeter "negative" connected to the ground terminal and the sampling voltmeter "red" connected to the CAN-H probe, the voltage value between the CAN-H terminal and the CAN-L terminal is sampled.
5. The OBD interface CAN network test circuit according to claim 2, characterized in that: include: controlling the double switch and the ground terminal to generate a third measurement circuit; The third test circuit includes: the CAN-H probe, the CAN-L probe, the ground terminal, the voltage source, the sampling ammeter, the reference ammeter, the correction resistor and the double switch; Wherein, the ground terminal is unplugged from the vehicle ground terminal; According to the ground terminal, the vehicle ground terminal is unplugged, and the ground terminal is switched to a state of being disconnected from the vehicle ground terminal and connected to the CAN-L probe; The double switch connects the voltage source "positive" to the sampling ammeter "red" and the reference ammeter "red", disconnects the voltage source "positive" to the sampling voltmeter "positive", connects the voltage source "negative" to the reference ammeter "black" and the ground terminal, and disconnects the voltage source "negative" to the sampling voltmeter "negative"; Among them, conducting the connection between the voltage source "positive" and the reference ammeter "red" includes connecting the correction resistor in series between the voltage source "positive" and the reference ammeter "red".
6. The OBD interface CAN network test circuit according to claim 5, characterized in that: The third test circuit includes: a reference calibration loop; The reference calibration circuit includes the voltage source, the reference ammeter, the correction resistor and the double switch; According to the double switch, the voltage source "positive" is connected to the reference ammeter "red", and the connection with the sampling voltage meter "positive" is disconnected; the voltage source "negative" is connected to the reference ammeter "black", and the connection with the sampling voltage meter "negative" is disconnected; and the reference ammeter and the correction resistor are connected in series, and the voltage source drives the correction resistor; The correction resistor is driven by the voltage source, and the reference ammeter measures a reference resistance value.
7. The OBD interface CAN network test circuit according to claim 5 or 6, characterized in that: The third test circuit further includes: an internal resistance measurement circuit; The internal resistance measurement circuit includes the voltage source, the sampling ammeter, the CAN-H probe, the CAN-L probe, the ground terminal and the double switch; According to the double switch, the connection between the voltage source "positive" and the sampling ammeter "red" is turned on, and the connection with the sampling voltmeter "positive" is disconnected. The connection between the voltage source "negative" and the sampling ammeter "black" is turned on, and the connection with the sampling voltmeter "negative" is disconnected. The sampling ammeter "red" is connected to the CAN-H probe, the voltage source "negative" is connected to the ground terminal, and the ground terminal is connected to the CAN-L probe. The voltage source drives the resistor between the CAN-H terminal and the CAN-L terminal. The voltage source drives the resistance between the CAN-H terminal and the CAN-L terminal, and the sampling ammeter measures the CAN network current value.
8. The OBD interface CAN network test circuit according to claim 7, characterized in that: include: The resistance value of the correction resistor is adjusted according to the correction resistor so that the reference current value measured by the reference ammeter approaches the CAN network current value measured by the sampling ammeter, and the current adjusted resistance value of the correction resistor is collected to be used for the internal resistance value of the equivalent CAN network.
9. An OBD interface CAN network testing system, characterized in that: The OBD interface CAN network test system includes: an upper housing, a lower housing and a probe insulating sleeve; The upper shell and the lower shell are combined into one shell; The housing is reserved with installation positions or / and installation holes for installing the sampling voltmeter, the reference ammeter, the sampling ammeter, the voltage source, the double switch, the grounding terminal, the correction resistor, the CAN-H probe and the CAN-L probe; Wherein, the mounting hole position includes a shaft sleeve hole; The probe insulating sleeve is provided with a joint shaft, and the joint shaft is installed corresponding to the sleeve hole; Wherein, the two probe insulating sleeves respectively wrap the CAN-H probe and the CAN-L probe; A fine-tuning spring is connected between the two probe insulating sleeves; Among them, according to the change in the distance between the CAN-H end and the CAN-L end in the OBD interface terminal and the fine-tuning spring connected between the two probe insulating sleeves, the probe insulating sleeve is squeezed to adjust the distance between the CAN-H probe and the CAN-L probe, corresponding to the distance between the CAN-H end and the CAN-L end.
10. According to the OBD interface CAN network testing system, it is characterized in that: The mounting holes also include: display panel holes and switch panel holes; The display panel holes correspond to the display panels of the sampling voltmeter, the reference ammeter, and the sampling ammeter; The switch panel holes correspond to the adjustment panel ends of the double switch and the correction resistor; Also included is a plug-in hole for the grounding terminal.
11. An OBD interface CAN network testing device, characterized in that: The OBD interface CAN network testing device comprises: The test terminal connection module is used to connect the test terminal to the OBD interface terminals, including the CAN-H terminal, the CAN-L terminal and the vehicle ground terminal. The test terminal is also connected to the measuring instruments, including a sampling voltmeter, a reference ammeter and a sampling ammeter; A circuit module is provided, for setting a test circuit, controlling the test end to be connected to the OBD interface terminal and the test end to be connected to the measuring instrument; A connection control module, configured to control the connection between the test end and the OBD interface terminal and the connection between the test end and the measuring instrument, including switching the conductive state or the disconnected state between the measuring instrument and the OBD interface terminal; a data acquisition module, configured to collect test data according to the on / off state between the switching measuring instrument and the OBD interface terminal, the test data including the voltage between the CAN-H terminal and the vehicle ground terminal, the voltage between the CAN-H terminal and the CAN-L terminal, and the current flowing through the CAN-H terminal and the CAN-L terminal; The probe adjustment module is used to adjust the probe spacing between the CAN-H and CAN-L terminals according to the spacing changes of the OBD interface terminals.
12. An electronic device, characterized in that: include: A processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other via the communication bus; A computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the steps of the OBD interface CAN network testing method according to claim 1.
13. A computer-readable storage medium, characterized in that include: It stores a computer program that can be executed by an electronic device. When the computer program runs on the electronic device, the electronic device executes the steps of the OBD interface CAN network testing method according to claim 1.
