CN110736611A - vehicle lamp zero point calibration method and device - Google Patents

vehicle lamp zero point calibration method and device Download PDF

Info

Publication number
CN110736611A
CN110736611A CN201910873339.5A CN201910873339A CN110736611A CN 110736611 A CN110736611 A CN 110736611A CN 201910873339 A CN201910873339 A CN 201910873339A CN 110736611 A CN110736611 A CN 110736611A
Authority
CN
China
Prior art keywords
vehicle
calibration
vehicle lamp
type information
command
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910873339.5A
Other languages
Chinese (zh)
Inventor
刘均
程驰
詹伟
刘国柱
裴慧
庄文龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Launch Technology Co Ltd
Original Assignee
Shenzhen Launch Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Launch Technology Co Ltd filed Critical Shenzhen Launch Technology Co Ltd
Priority to CN201910873339.5A priority Critical patent/CN110736611A/en
Publication of CN110736611A publication Critical patent/CN110736611A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01MTESTING STATIC OR DYNAMIC BALANCE OF MACHINES OR STRUCTURES; TESTING OF STRUCTURES OR APPARATUS, NOT OTHERWISE PROVIDED FOR
    • G01M11/00Testing of optical apparatus; Testing structures by optical methods not otherwise provided for
    • G01M11/02Testing optical properties
    • G01M11/06Testing the alignment of vehicle headlight devices
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60RVEHICLES, VEHICLE FITTINGS, OR VEHICLE PARTS, NOT OTHERWISE PROVIDED FOR
    • B60R16/00Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for
    • B60R16/02Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for electric constitutive elements
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/44Testing lamps

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Chemical & Material Sciences (AREA)
  • Analytical Chemistry (AREA)
  • Engineering & Computer Science (AREA)
  • Mechanical Engineering (AREA)
  • Lighting Device Outwards From Vehicle And Optical Signal (AREA)

Abstract

The embodiment of the application discloses a method and a device for zero point calibration of car lights.

Description

vehicle lamp zero point calibration method and device
Technical Field
The application relates to the technical field of vehicles, in particular to a method and a device for zero point calibration of vehicle lamps.
Background
With the continuous development of social economy, the living standard of people is remarkably improved, the number of vehicles is increased day by day, the driving safety of the vehicles is more and more important for people, in the driving process of the vehicles, the quality of the lamps plays a vital role for drivers, when the lamps of the vehicles are replaced and repaired or the light angle of the lamps is abnormal, the normal use of the lamps is influenced, zero calibration of the lamps is needed, at the moment, the zero calibration of the lamps needs to be carried out by original factory vehicle-mounted equipment of special vehicles in a maintenance factory, and the calibration cost is very high.
Disclosure of Invention
The embodiment of the application discloses vehicle lamp zero point calibration methods and devices, which can reduce the cost of zero point calibration of vehicle lamps.
, the embodiment of the present application provides a method for zero point calibration of a vehicle lamp, which is applied to a vehicle-mounted device, and includes:
acquiring target vehicle type information of a vehicle connected with vehicle-mounted equipment;
searching calibration information corresponding to the target vehicle type information from a stored protocol file; the protocol file stores calibration information corresponding to each piece of vehicle type information in a plurality of pieces of vehicle type information; the plurality of pieces of vehicle type information include the target vehicle type information; the calibration information includes a command for calibrating a zero point of the vehicle lamp;
and according to the command for zero point calibration of the vehicle lamp in the calibration information corresponding to the target vehicle type information, performing zero point calibration on the vehicle lamp.
In the method, the calibration information corresponding to each piece of vehicle type information in the plurality of pieces of vehicle type information is stored in the protocol file of the vehicle-mounted device, when the vehicle-mounted device is connected to a certain vehicle, the vehicle lamp zero-point calibration can be carried out on the vehicle based on the calibration information corresponding to the vehicle type information of the vehicle, when the vehicle-mounted device is connected to other vehicles with different vehicle types from the certain vehicle, the lamp zero-point calibration can be carried out on the other vehicles based on the same principle and according to the calibration information corresponding to the vehicle type information of the other vehicles, namely, the vehicle-mounted devices can carry out the lamp zero-point calibration on the vehicles of multiple vehicle types without calibrating to original plant vehicle-mounted devices of special vehicles for a maintenance plant, and the cost of the lamp calibration is remarkably reduced.
In still another alternatives of the aspect, the zero-point calibration of the vehicle lamp according to the command for zero-point calibration of the vehicle lamp in the calibration information corresponding to the target vehicle type information includes:
acquiring a voltage value of a level sensor of an Electronic Control Unit (ECU) of the vehicle lamp system;
if the voltage value of the horizontal sensor of the vehicle lamp system ECU falls into a preset voltage interval, sending a mode expansion command to the vehicle lamp system ECU;
and if the vehicle lamp system ECU switches the vehicle lamp system ECU into an expansion mode according to the mode expansion command, sending a command for calibrating a vehicle lamp zero point in calibration information corresponding to the target vehicle type information to the vehicle lamp system ECU so as to initialize parameters in the vehicle lamp system ECU.
The inventor of the present application finds that errors are brought to the calibration result of the vehicle lamp if the vehicle is not in a horizontal state when the zero calibration is performed on the vehicle lamp, so the inventor proposes that the accuracy of the calibration is significantly improved by firstly ensuring that the vehicle is in the horizontal state, specifically ensuring that the vehicle is in the horizontal state through the level sensor, and then performing the zero calibration on the vehicle lamp.
In yet another alternatives of the , the acquiring the voltage value of the level sensor of the lamp system ECU includes:
transmitting a voltage value reading command of a level sensor of the vehicle lamp system ECU to the vehicle lamp system ECU;
receiving voltage value data replied by the vehicle lamp system ECU according to the voltage value reading command;
and obtaining the voltage value of the level sensor of the vehicle lamp system ECU according to the voltage value data.
In yet another alternatives of the , after searching calibration information corresponding to the target vehicle type information from a stored protocol file, and before obtaining a voltage value of a level sensor of the vehicle lamp system ECU, the method further includes:
acquiring fault code information of the vehicle lamp system ECU;
if the acquired fault code information indicates that the vehicle lamp system ECU has no fault, acquiring the ignition switch state of the vehicle connected with the vehicle-mounted equipment;
and if the ignition switch state of the vehicle connected with the vehicle-mounted equipment is an on state, executing the operation of acquiring the voltage value of the level sensor of the electronic control unit ECU of the vehicle lamp system.
In the method, the vehicle-mounted device acquires fault code information of the vehicle lamp system ECU to ensure that the vehicle lamp system ECU has no fault before vehicle lamp parameters of the vehicle lamp system ECU are initialized, then the vehicle-mounted device acquires an ignition switch state of a vehicle connected with the vehicle-mounted device to ensure that the vehicle-mounted device is in an on state to supply power to the vehicle lamp, reduces errors of subsequent vehicle lamp calibration by fault code troubleshooting, and improves accuracy of zero point calibration of the vehicle lamp by keeping the vehicle lamp in the on state.
In yet another alternatives of the aspect, the calibration information corresponding to the target vehicle type information includes a fault code reading command, and the obtaining of the fault code information of the vehicle lamp system ECU includes:
sending the fault code reading command to the vehicle lamp system ECU;
and receiving fault code information replied by the vehicle lamp system ECU according to the fault code reading command.
In yet another alternatives of the , the acquiring the ignition switch state of the vehicle to which the vehicle-mounted device is connected includes:
sending an ignition switch state reading command to an electronic ignition system ECU of the vehicle;
receiving ignition switch state data replied by the electronic ignition system ECU according to the ignition switch state reading command;
and determining the ignition switch state of the vehicle connected with the vehicle-mounted equipment according to the ignition state data.
In still another alternatives of the aspect of , the acquiring target vehicle type information of the vehicle to which the above-mentioned vehicle-mounted device is connected includes:
sending a request for reading a Vehicle Identification Number (VIN) code to an ECU system in the vehicle;
receiving a VIN code replied by an ECU system in the vehicle according to the request for reading the VIN code;
and analyzing the replied VIN code to obtain the target vehicle type information of the vehicle.
The VIN code of each vehicles is , the VIN code can be a 17-bit character string, each bits have specific meanings, for example, the first three bits of the VIN code are identification codes of world manufacturers and indicate the vehicles produced by the vehicles, the 4 th to 8 th bits of the VIN code represent vehicle characteristics, and the vehicle type information of the vehicles can be obtained through the VIN code, and the vehicle type information of the current vehicles can be quickly obtained by adopting the method.
In yet another alternatives of the aspect, the calibration information corresponding to the target vehicle type information includes communication pin information, protocol type, communication baud rate parameters, filter only identifier, activate command, switch expansion mode command, data read command, and zero calibration command.
In a second aspect, an embodiment of the present application provides an apparatus for zero point calibration of a vehicle lamp, including:
the device comprises an acquisition unit, a display unit and a control unit, wherein the acquisition unit is used for acquiring target vehicle type information of a vehicle connected with the device;
the searching unit is used for searching the calibration information corresponding to the target vehicle type information from the stored protocol file; the protocol file stores calibration information corresponding to each piece of vehicle type information in a plurality of pieces of vehicle type information; the plurality of pieces of vehicle type information include the target vehicle type information; the calibration information includes a command for calibrating a zero point of the vehicle lamp;
and the processing unit is used for carrying out zero point calibration on the vehicle lamp according to the command for carrying out zero point calibration on the vehicle lamp in the calibration information corresponding to the target vehicle type information.
In the method, the calibration information corresponding to each piece of vehicle type information in the plurality of pieces of vehicle type information is stored in the protocol file of the device, when the device is connected to a certain vehicle, the vehicle lamp zero-point calibration can be carried out on the vehicle based on the calibration information corresponding to the vehicle type information of the vehicle, when the device is connected to other vehicles with different vehicle types from the certain vehicle, the vehicle lamp zero-point calibration can be carried out on the other other vehicles based on the same principle from the calibration information corresponding to the vehicle type information of the other other vehicles, namely, the devices can carry out the vehicle lamp zero-point calibration on the vehicles of various vehicle types without calibrating original factory on-board equipment of special vehicles for a maintenance factory, and the cost of the vehicle lamp calibration is obviously reduced.
In still another alternatives of the second aspect, the processing unit is configured to perform zero-point calibration on the vehicle lamp according to a command for zero-point calibration of the vehicle lamp in the calibration information corresponding to the target vehicle type information, specifically:
acquiring a voltage value of a level sensor of an Electronic Control Unit (ECU) of the vehicle lamp system;
if the voltage value of the horizontal sensor of the vehicle lamp system ECU falls into a preset voltage interval, sending a mode expansion command to the vehicle lamp system ECU;
and if the vehicle lamp system ECU switches the vehicle lamp system ECU into an expansion mode according to the mode expansion command, sending a command for calibrating a vehicle lamp zero point in calibration information corresponding to the target vehicle type information to the vehicle lamp system ECU so as to initialize parameters in the vehicle lamp system ECU.
The inventor of the present application finds that errors are brought to the calibration result of the vehicle lamp if the vehicle is not in a horizontal state when the zero calibration is performed on the vehicle lamp, so the inventor proposes that the accuracy of the calibration is significantly improved by firstly ensuring that the vehicle is in the horizontal state, specifically ensuring that the vehicle is in the horizontal state through the level sensor, and then performing the zero calibration on the vehicle lamp.
In another alternatives of the second aspect, the calibration information corresponding to the target vehicle type information includes a voltage value reading command of a level sensor of a vehicle lamp system ECU, and the processing unit obtains the voltage value of the level sensor of the vehicle lamp system electronic control unit ECU, specifically:
transmitting a voltage value reading command of a level sensor of the vehicle lamp system ECU to the vehicle lamp system ECU;
receiving voltage value data replied by the vehicle lamp system ECU according to the voltage value reading command;
and obtaining the voltage value of the level sensor of the vehicle lamp system ECU according to the voltage value data.
In still another alternatives of the second aspect, after the searching unit is configured to search the stored protocol file for the calibration information corresponding to the target vehicle type information, and before the processing unit obtains the voltage value of the level sensor of the vehicle lamp system ECU, the processing unit is further configured to:
acquiring fault code information of the vehicle lamp system ECU;
if the acquired fault code information indicates that the vehicle lamp system ECU has no fault, acquiring the state of an ignition switch of a vehicle connected with the device;
and if the ignition switch state of the vehicle connected with the device is an on state, executing the operation that the processing unit acquires the voltage value of the level sensor of the electronic control unit ECU of the lamp system.
In the method, the device acquires fault code information of the vehicle lamp system ECU to ensure that the vehicle lamp system ECU has no fault before vehicle lamp parameters of the vehicle lamp system ECU are initialized, then the device acquires an ignition switch state of a vehicle connected with the vehicle-mounted equipment to ensure that the ignition switch state is in an on state to supply power to the vehicle lamp, reduces errors of subsequent vehicle lamp calibration by fault code fault removal, and improves accuracy of zero point calibration of the vehicle lamp by keeping the vehicle lamp in the on state.
In another alternatives of the second aspect, the calibration information corresponding to the target vehicle type information includes a fault code reading command, and the processing unit obtains fault code information of the vehicle lamp system ECU, specifically:
sending the fault code reading command to the vehicle lamp system ECU;
and receiving fault code information replied by the vehicle lamp system ECU according to the fault code reading command.
In another alternatives of the second aspect, the calibration information corresponding to the target vehicle type information includes an ignition switch state reading command, and the processing unit obtains the ignition switch state of the vehicle connected to the apparatus, specifically:
sending an ignition switch state reading command to an electronic ignition system ECU in the vehicle;
receiving ignition switch state data replied by the electronic ignition system ECU according to the ignition switch state command;
and determining the state of an ignition switch of the vehicle connected with the device according to the ignition state data.
In still another alternatives of the second aspect, the obtaining unit is configured to obtain target vehicle type information of a vehicle to which the device is connected, and specifically:
sending a request for reading a Vehicle Identification Number (VIN) code to an ECU system in the vehicle;
receiving a VIN code replied by an ECU system in the vehicle according to the request for reading the VIN code;
and analyzing the replied VIN code to obtain the target vehicle type information of the vehicle.
The VIN code of each vehicles is , the VIN code can be a 17-bit character string, each bits have specific meanings, for example, the first three bits of the VIN code are identification codes of world manufacturers and indicate the vehicles produced by the vehicles, the 4 th to 8 th bits of the VIN code represent vehicle characteristics, and the vehicle type information of the vehicle can be obtained through the VIN code, so that the vehicle type information of the current vehicle can be quickly obtained.
In yet another alternatives of the second aspect, the calibration information corresponding to the target vehicle type information includes communication pin information, protocol type, communication baud rate parameter, filter only flag, activate command, switch extended mode command, data read command, and zero calibration command.
In a third aspect, an embodiment of the present application provides kinds of vehicle-mounted devices, where the vehicle-mounted devices include a processor, a memory, and an output device, and the processor, the memory, and the output device are connected to each other, where the memory is used to store a computer program, the computer program includes program instructions, and the processor is configured to call the program instructions to implement the method described in the alternative of the or the aspect.
In a fourth aspect, embodiments of the present application provide readable storage media, where the computer readable storage media stores a computer program comprising program instructions that, when executed by a processor, cause the processor to implement the method described in the aspect or the aspect alternative.
By implementing the embodiment of the application, the calibration information corresponding to each piece of vehicle type information in the plurality of pieces of vehicle type information is stored in the protocol file of the vehicle-mounted device, when the vehicle-mounted device is connected to a certain vehicle, the vehicle lamp zero-point calibration can be performed on the vehicle based on the calibration information corresponding to the vehicle type information of the vehicle, and when the vehicle-mounted device is connected to the other vehicles with different vehicle types from the certain vehicle, the lamp zero-point calibration can be performed on the other vehicles based on the same principle and the calibration information corresponding to the vehicle type information of the other vehicles, that is, the vehicle-mounted devices can perform the lamp zero-point calibration on the vehicles of multiple vehicle types without calibrating to original plant vehicle-mounted devices of special vehicles for a maintenance plant, so that the cost of the lamp calibration is remarkably reduced.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the embodiments of the present application or the background art will be briefly described below.
Fig. 1 is an application scene diagram of methods for zero calibration of vehicle lamps according to embodiments of the present application;
FIG. 2 is a schematic flow chart of a method for zero calibration of vehicle lamps according to an embodiment of the present disclosure;
FIG. 3 is a schematic flow chart of another methods for zero calibration of a vehicle lamp according to the embodiments of the present application;
FIG. 4 is a schematic structural diagram of an zero point calibration device for a vehicle lamp according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of kinds of vehicle-mounted devices provided in the embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings.
Referring to fig. 1, fig. 1 is a schematic diagram of a system architecture of vehicle lamp zero-point calibration methods provided by an embodiment of the present application, where the system includes a computer 101, an on-board device 102, and vehicles 103 of different vehicle types, where the number of the vehicles 103 of different vehicle types is equal to or greater than N, and N is a positive integer, the computer 101 may edit and modify calibration information corresponding to each of a plurality of pieces of vehicle type information in the on-board device 102, the computer 101 may add calibration information corresponding to new vehicle type information other than the plurality of pieces of vehicle type information in the on-board device 102, the on-board device 102 may be connected to the computer 101 through a Universal Serial Bus (USB), the on-board device 102 may include a connection interface for interfacing with an on-board diagnostics (OBD) in the vehicle, and a start button for executing the vehicle lamp zero-point calibration methods, and the vehicle zero-point calibration methods may include an electronic control unit (electronic control unit, Electronic Control Unit (ECU), an ignition control unit, and the like in the vehicle 103 of different vehicle types.
Referring to fig. 2, fig. 2 is a flowchart of a method for calibrating the zero point of vehicle lamps according to an embodiment of the present application, where the method includes, but is not limited to, the following steps.
Step S201: and acquiring target vehicle type information of the vehicle connected with the vehicle-mounted equipment.
For example, the vehicle-mounted device includes a connection interface and a start button, the connection interface is used for connecting with an on-board diagnostic system (OBD) interface in the vehicle, the start button is used for triggering the vehicle-mounted device to execute the operation of acquiring the target vehicle type information of the vehicle connected with the vehicle-mounted device, and the button can be a physical entity button or a virtual button operated by touch control.
The vehicle connected to the vehicle-mounted device has unique Vehicle Identification Numbers (VIN), and the VIN codes are used for the vehicle-mounted device to acquire target vehicle type information of the vehicle connected to the vehicle-mounted device.
The target vehicle type information may be obtained by the vehicle-mounted device analyzing a VIN code of a vehicle connected to the vehicle-mounted device, for example, the target vehicle type information of the vehicle may be that a vehicle series is a galloping vehicle, and a vehicle type is E200; the target vehicle type information of the vehicle may be that the vehicle series is a bmw, and the vehicle type may be 3 ser.
In the embodiment of the present application, optional manners for the vehicle-mounted device to obtain the target vehicle type information of the vehicle connected to the vehicle-mounted device may be as follows:
the vehicle-mounted device sends or more protocols of VIN code reading requests to an ECU system in a vehicle, wherein the protocols CAN include two or more of controller area network protocol (CAN), keyword protocol2000 (keyword protocol2000, KWP2000), variable pulse width modulation protocol (VPW), pulse width modulation Protocol (PWM), and VIN code commands VIN 1a 90 of the protocol of the CAN protocol, such as 0x0807df0209020000000000 and VIN 2000, and accordingly the vehicle-mounted device receives VIN codes returned by the ECU system in the vehicle according to the requests of the VIN code reading requests.
The VIN code may be a 17-bit character string, the first three bits of the VIN code are identification codes of world manufacturers, which indicate who the vehicle is produced by, the 4 th to 8 th bits of the VIN code indicate vehicle characteristics such as type, series, body type, etc., the 9 th bit of the VIN code indicates that a check bit is prevented from being input by an algorithm specified by , the 10 th bit of the VIN code indicates a model year, the 11 th bit of the VIN code indicates a code of an assembly plant, the 12 th to 17 th bits of the VIN code indicate a production serial number, the 1 st to 8 th bits of the VIN code may be analyzed, and target information may be determined according to the 1 st to 8 th bit of the character string, for example, the VIN code returned by the ECU system in the vehicle is WDD2210222a253260, the 1 st to 3 th bit of the vehicle type is an ECU model D, the German family corresponding to the ECU system is WDZ 25328, the vehicle type is a SXZ code corresponding to SXZ 350, the SXZ code is finally analyzed, the SXD code is S2214, the SXZ 350, the SXZ code is finally analyzed, the S1 st 2215, the S1 to obtain SX 12 th and the SX 8 th and the SX 2, the SZ < 7 < SP.
Step S202: and searching calibration information corresponding to the target vehicle type information from the stored protocol file.
Specifically, the protocol file stores calibration information corresponding to each piece of vehicle type information in a plurality of pieces of vehicle type information; the plurality of pieces of vehicle type information include the target vehicle type information; the calibration information includes a command for calibrating the zero point of the vehicle lamp.
The calibration information corresponding to the target vehicle type information may include, but is not limited to, one or more of communication pin information, a protocol type, a communication baud rate parameter, a system filter unique flag, an activation command, a switch expansion mode command, a data reading command, and a vehicle lamp zero calibration command, in the case of , the vehicle-mounted device may establish a communication connection with a vehicle lamp system electronic control unit ECU in the vehicle according to the communication pin information, the protocol type, the communication baud rate parameter, the system filter unique flag, in the calibration information corresponding to the target vehicle type information, the switch expansion mode command is used for the vehicle lamp system ECU to switch an expansion mode, the data acquisition command is used for the vehicle-mounted device to acquire data of the vehicle lamp system ECU, and the vehicle lamp zero calibration command is used for the vehicle-mounted device to initialize parameters in the vehicle lamp system ECU, that is, to calibrate a vehicle lamp zero.
For example, the protocol files include calibration information corresponding to vehicle type information such as Benz S320, Benz E200, BMW 5ser, BMW 3ser, Ford Focus, Ford Mondeo, etc. Table 1 illustrates possible cases of calibration information corresponding to different vehicle type information.
Table 1
Figure BDA0002201129380000101
Two examples of the calibration information corresponding to the target vehicle type information searched from the stored protocol file by the vehicle-mounted device are provided as follows:
for example, if the vehicle-mounted device analyzes the VIN code to obtain that the target vehicle type information of the vehicle connected to the vehicle-mounted device is BENZ, and the vehicle type is S320, the vehicle-mounted device searches for the vehicle type information being BENZ, the calibration information corresponding to the vehicle type being S320 is pin information 6/14, protocol type CAN, communication baud rate parameter 500K, system filter unique identifier 0xae40/0xae80, activate command 0x1001, switch extended mode command 0x1003, data read command 0x220901, and vehicle lamp zero calibration command 0x310501 in the calibration information corresponding to the different vehicle type information in table 1.
For example, if the vehicle-mounted device analyzes the VIN code to obtain that the target vehicle type information of the vehicle connected to the vehicle-mounted device is that the vehicle system is FORD, and the vehicle type is mondiou, the vehicle-mounted device searches the calibration information corresponding to different vehicle types in table 1 for the vehicle type information of the vehicle system is FORD, the calibration information corresponding to the vehicle type of mondiou is pin information 3/11, the protocol type CAN, the communication baud rate parameter 250K, the system filter unique identifier 0xc020/0xc060, the activation command 0x1001, the switching extended mode command 0x1003, the data read command 0x22B104, and the vehicle lamp zero calibration command 0x310a 05.
Optionally, after the communication connection between the vehicle-mounted device and the computer is established, the user may perform corresponding control on the vehicle-mounted device at the computer end, for example, edit and modify calibration information corresponding to each of the plurality of pieces of vehicle type information in the vehicle-mounted device; the user can also add calibration information corresponding to new vehicle type information except the plurality of pieces of vehicle type information to the vehicle-mounted device at the computer end.
And S203, according to a command for zero point calibration of the vehicle lamp in the calibration information corresponding to the target vehicle type information, performing zero point calibration on the vehicle lamp connected with the vehicle-mounted equipment.
The vehicle lamp zero calibration command may be different, and may be or more, for example, when the vehicle type information of the vehicle is BENZ and the vehicle type is S320, the vehicle lamp zero calibration command may be 0x310501, and when the vehicle type information of the vehicle is FORD and the vehicle type is Mondeo, the vehicle lamp zero calibration command may be 0x310A 05.
In optional solutions, the performing, by the vehicle-mounted device, zero-point calibration on the vehicle lamp connected to the vehicle-mounted device according to the command for zero-point calibration of the vehicle lamp in the calibration information corresponding to the target vehicle type information may specifically be:
the vehicle-mounted equipment acquires a voltage value of a level sensor of the vehicle lamp system ECU; the calibration information corresponding to the target vehicle type information includes a voltage value reading command of a level sensor of a vehicle lamp system ECU, and the vehicle-mounted device sends the voltage value reading command of the level sensor of the vehicle lamp system ECU to the vehicle lamp system ECU; the vehicle-mounted equipment receives voltage value data replied by the vehicle lamp system ECU according to the voltage value command; and the vehicle-mounted equipment obtains the voltage value of the level sensor of the vehicle lamp system ECU according to the voltage value data.
For example, the vehicle-mounted device transmits a voltage value reading command 0x22090A of a level sensor of the vehicle lamp system ECU to the vehicle lamp system ECU, the vehicle-mounted device receives the voltage value data of the level sensor replied by the vehicle lamp system ECU according to the voltage value reading command as 0x62090a64, the first two digits of the level sensor voltage value data are 0x and the last two digits are 64, the voltage value data taken out by the vehicle-mounted device is 0x64, the vehicle-mounted device converts the extracted voltage value data 0X64 into a decimal number of 6X 16+ 4X 100, the voltage calculation algorithm is Y X/255X 30, wherein X is the voltage value data taken out by the vehicle-mounted device, Y is the voltage value of the level sensor, the level sensor voltage value is 100/255 x 30-11.76V, the vehicle-mounted device acquires that the voltage value of the level sensor of the lamp system ECU is 11.76V.
And if the voltage value of the level sensor of the vehicle lamp system ECU falls into a preset voltage interval, the vehicle-mounted equipment sends a mode expansion command to the vehicle lamp system ECU.
If the preset voltage interval is [0.5V, 18V ], and the level sensor voltage value of the lamp system ECU is 11.76V, it may be determined that the level sensor voltage value of the lamp system ECU falls within the preset voltage interval, indicating that the vehicle is in a horizontal state, and the vehicle-mounted device transmits a mode extension command 0x1003 to the lamp system ECU.
And if the vehicle lamp system ECU switches the vehicle lamp system ECU into an extended mode according to the mode extension command, the vehicle-mounted device sends a command for calibrating a vehicle lamp zero point in calibration information corresponding to the target vehicle type information to the vehicle lamp system ECU so as to initialize parameters in the vehicle lamp system ECU.
Specifically, the lamp system ECU switches the lamp system ECU to an extended mode according to the mode extension command because the lamp system ECU can reset the parameters in the lamp system ECU in the extended mode.
For example, the vehicle-mounted device may transmit a mode extension command 0x1003 to the lamp system ECU, the lamp system ECU may receive the mode extension command 0x1003, the lamp system ECU may switch the lamp system ECU to an extension mode according to the mode extension command 0x1003, the vehicle-mounted device may transmit a lamp zero point calibration command 0x310501 to the lamp system ECU, and the lamp zero point calibration command 0x310501 may initialize a parameter in the lamp system ECU.
The inventor of the present application finds that errors are brought to the calibration result of the vehicle lamp if the vehicle is not in a horizontal state when the zero calibration is performed on the vehicle lamp, so the inventor proposes that the accuracy of the calibration is significantly improved by firstly ensuring that the vehicle is in the horizontal state, specifically ensuring that the vehicle is in the horizontal state through the level sensor, and then performing the zero calibration on the vehicle lamp.
In another optional solutions, after the vehicle-mounted device searches for the calibration information corresponding to the target vehicle type information from the stored protocol file, before the vehicle-mounted device acquires the voltage value of the level sensor of the vehicle lamp system ECU, the method may specifically be:
the vehicle-mounted equipment acquires fault code information of the vehicle lamp system ECU; the calibration information corresponding to the target vehicle type information comprises a fault code reading command, and the vehicle-mounted equipment sends the fault code reading command to the vehicle lamp system ECU; and the vehicle-mounted equipment receives fault code information replied by the vehicle lamp system ECU according to the fault code reading command.
For example, when the vehicle-mounted device transmits a failure code reading command 0x190208 to the vehicle lamp system ECU, and in case , the vehicle-mounted device receives failure code data 0x590208 transmitted from the vehicle lamp system ECU, and the failure code data 0x590208 indicates that the vehicle lamp system ECU is not failed, the vehicle-mounted device acquires failure code information of the vehicle lamp system ECU as non-failure.
In the second case, the vehicle-mounted device receives the fault code data 0x590208900001 transmitted by the vehicle lamp system ECU, and the fault code data 0x590208900001 indicates that the vehicle lamp system ECU has a fault. The vehicle-mounted equipment acquires the fault code information of the vehicle lamp system ECU and judges that a fault exists. If the vehicle lamp system ECU has a fault, the vehicle-mounted device sends a fault code clearing command to the vehicle lamp system ECU, and the vehicle lamp system ECU receives the fault code clearing command sent by the vehicle-mounted device and clears the fault of the vehicle lamp system ECU according to the fault code clearing command.
If the fault code information acquired by the vehicle-mounted equipment indicates that the vehicle lamp system ECU has no fault, the vehicle-mounted equipment acquires the ignition switch state of a vehicle connected with the vehicle-mounted equipment; the calibration information corresponding to the target vehicle type information comprises an ignition switch state reading command, and the vehicle-mounted equipment sends the ignition switch state reading command to an electronic ignition system ECU of the vehicle; the vehicle-mounted equipment receives ignition switch state data replied by the electronic ignition system ECU according to the ignition switch state reading command; and the vehicle-mounted equipment determines the ignition switch state of the vehicle connected with the vehicle-mounted equipment according to the ignition state data.
Specifically, for example, the in-vehicle device sends an ignition switch state read command 0x220901 to an electronic ignition system ECU of the vehicle, the in-vehicle device receives ignition switch state data 0x62090101 returned by the electronic ignition system ECU according to the ignition switch state read command, and the in-vehicle device determines whether the ignition switch state is on according to the ignition switch state data, for example, when the last two bits of the ignition switch state data are 00, the ignition switch state is off; when the last two bits of the ignition switch state data are 01, the ignition switch state is an on state; when the last two bits of the ignition switch state data are 02, the ignition switch state is a start state. For example, if the ignition switch state data is 0x62090101 and the last two bits of the ignition switch state data are 01, the in-vehicle device determines that the ignition switch state of the vehicle to which the in-vehicle device is connected is in an on state according to the ignition state data 0x62090101, and the diagnosis in-vehicle device obtains that the ignition state of the vehicle to which the in-vehicle device is connected is in the on state.
And if the ignition switch state of the vehicle connected with the vehicle-mounted equipment is an on state, executing the operation that the vehicle-mounted equipment acquires the voltage value of the level sensor of the electronic control unit ECU of the vehicle lamp system.
In the scheme, the vehicle-mounted equipment acquires fault code information of the vehicle lamp system ECU to ensure that the vehicle lamp system ECU has no fault before vehicle lamp parameters of the vehicle lamp system ECU are initialized, then the vehicle-mounted equipment acquires an ignition switch state of a vehicle connected with the vehicle-mounted equipment to ensure that the vehicle-mounted equipment is in an on state to supply power to the vehicle lamp, reduces errors of subsequent vehicle lamp calibration by removing faults through the fault codes, and improves the accuracy of zero point calibration of the vehicle lamp by keeping the vehicle lamp in the on state.
In the method described in fig. 2, calibration information corresponding to each of a plurality of pieces of vehicle type information is stored in a protocol file of the vehicle-mounted device, when the vehicle-mounted device is connected to a certain vehicle, the vehicle lamp zero-point calibration can be performed on the vehicle based on the calibration information corresponding to the vehicle type information of the vehicle, and when the vehicle-mounted device is connected to another vehicles with different vehicle types from the certain vehicle, the vehicle lamp zero-point calibration can be performed on the other vehicles based on the same principle from the calibration information corresponding to the vehicle type information of the other vehicles, that is, the vehicle-mounted devices can perform the vehicle lamp zero-point calibration on the vehicles of multiple vehicle types without performing calibration to original plant vehicle-mounted devices for maintaining special vehicles in a factory, so that the cost of the vehicle lamp calibration is significantly reduced.
Based on the example depicted in fig. 2, the present application provides more specific embodiments in conjunction with fig. 3, including but not limited to the following steps.
And S301, the OBD diagnostic device sends a request for reading the VIN code of different protocols to an ECU system in the vehicle. Specific principles may refer to step S201.
And S302, the OBD diagnostic equipment receives a VIN code replied by the ECU system in the vehicle according to the VIN code request. Specific principles may refer to step S201.
And step S303, the OBD diagnostic equipment analyzes the VIN returned by the ECU system in the vehicle to obtain the vehicle type information of the vehicle. Specific principles may refer to step S201.
And step S304, the OBD diagnostic equipment searches the calibration information corresponding to the vehicle type information of the vehicle from the stored diagnostic protocol file. Specific principles may refer to step S202.
Step S305: and the OBD diagnostic equipment establishes diagnostic communication connection with an ECU (electronic control unit) of a lamp system in the vehicle according to the calibration information.
Specifically, the OBD diagnostic device analyzes the VIN code to determine that the vehicle type information of the vehicle is BENZ, the vehicle type is S320, optionally, the OBD diagnostic device sets the vehicle lamp system ECU communication protocol to be the CAN protocol, the communication pins 6 and 14, the communication baud rate is 500K, the vehicle lamp ECU system filter ID is 0xae40/0 xe80 according to the parameter information such as identification Identifier (ID) and the like in the calibration information corresponding to the vehicle type information of BENZ and the vehicle type S320, and after the OBD diagnostic device completes setting the parameters such as the communication protocol, the communication pins, the communication baud rate, the system filter ID and the like of the vehicle lamp system ECU, the OBD diagnostic device sends a system activation command 0x1001 to the vehicle lamp system ECU, and under the condition of , the vehicle lamp system successfully sends the system activation command to the OBD diagnostic device 5001 according to the system activation command sent by the OBD diagnostic device, and the OBD diagnostic device successfully replies the system activation command 5001 to the OBD diagnostic device to establish the connection with the vehicle lamp system 5001.
In a second case, the vehicle lamp system ECU replies an activation failure command to the OBD diagnostic device according to the system activation command sent by the OBD diagnostic device, where the activation failure command indicates that the OBD diagnostic device and the vehicle lamp system ECU are unsuccessfully connected in diagnostic communication, the OBD diagnostic device resets parameters such as a communication protocol, a communication pin, a communication baud rate, and a system filter ID of the vehicle lamp system ECU, and then the OBD diagnostic device sends a system activation command to the vehicle lamp system ECU again.
Step S306: and if the OBD diagnostic equipment is successfully connected with the vehicle lamp system ECU in a diagnostic manner, the OBD diagnostic equipment sends a fault code reading command to the vehicle lamp system ECU.
Step S307: and the OBD diagnostic equipment receives fault code data replied by the vehicle lamp system ECU according to the fault code reading command. And if the fault code data indicate that the vehicle lamp system ECU has a fault, the OBD diagnostic device sends a fault code clearing command to the vehicle lamp system ECU, the vehicle lamp system ECU receives the fault code clearing command sent by the OBD diagnostic device, and the vehicle lamp system ECU clears the fault according to the fault code clearing command.
Step S308: and if the fault code data indicate that the vehicle lamp system ECU has no fault, the OBD diagnostic equipment reminds the vehicle owner to turn on the ignition switch state.
Specifically, the OBD diagnostic equipment can remind the vehicle owner to turn on the ignition switch in a voice prompt mode.
Specifically, before the vehicle owner turns on the ignition switch state, the ignition switch state may be an on state, and the ignition switch state may also be an off state.
Step S309: when the vehicle owner turns on the ignition switch state and presses a determination button on the OBD diagnosis device, the OBD diagnosis device establishes communication connection with an electronic ignition system ECU in the vehicle, and the OBD diagnosis device sends an ignition switch state reading command to the electronic ignition system ECU.
Specifically, the determination button on the OBD diagnostic device is used for determining that the ignition switch state is the on state after the ignition switch state is adjusted by the vehicle owner, and the determination button may be a physical entity button or a virtual button operated by touch.
Step S310: and the OBD diagnostic equipment receives ignition switch state data replied by the electronic ignition system ECU according to the ignition switch state reading command.
Step S311: the OBD diagnostic equipment judges whether the ignition switch state is in an on state or not according to the ignition switch state data, and if the ignition switch state is not in the on state, the OBD diagnostic equipment can remind a vehicle owner to turn the ignition switch state to the on state in a voice prompt mode.
Step S312: and if the ignition switch state is an on state, after the OBD diagnostic equipment establishes communication connection with the vehicle lamp system ECU, the OBD diagnostic equipment sends a horizontal sensor voltage value reading command of the vehicle lamp system ECU to the vehicle lamp system ECU.
Step S313: and the OBD diagnosis equipment receives the voltage value data of the level sensor replied by the vehicle lamp system ECU according to the voltage value reading command.
Step S314: and the OBD diagnostic equipment calculates the voltage value data of the level sensor according to a voltage calculation algorithm to obtain the voltage value of the level sensor of the vehicle lamp system ECU.
And step S315, the OBD diagnostic equipment judges whether the voltage value falls into a preset voltage interval.
Specifically, if the voltage value falls within the preset voltage interval, the OBD diagnostic device sends a mode expansion command to the vehicle lamp system ECU; if the voltage value does not fall within the preset interval, step S301 is executed again. If the preset voltage interval is [0.5V, 18V ], and the level sensor voltage value of the lamp system ECU is 11.76V, it may be determined that the level sensor voltage value of the lamp system ECU falls within the preset voltage interval, indicating that the vehicle is in a horizontal state, and the OBD diagnostic device transmits a mode extension command 0x1003 to the lamp system ECU. If the preset voltage interval is [0.5V, 18V ] and the level sensor voltage value of the lamp system ECU is 20V, step S301 is executed again.
Step S316: and when the voltage value falls into a preset voltage interval, the OBD diagnostic equipment sends a mode expansion command to the vehicle lamp system ECU.
Step S317: and the vehicle lamp system ECU receives a mode extension command sent by the OBD diagnostic equipment, and switches the vehicle lamp system ECU into an extension mode according to the mode extension command.
And step S318, after the vehicle lamp system ECU is switched to the expansion mode, the OBD diagnostic equipment sends a vehicle lamp zero point calibration command to the vehicle lamp system ECU.
Step S319: and the vehicle lamp system ECU receives the vehicle lamp zero point calibration command sent by the OBD diagnostic equipment, and resets the parameters in the vehicle lamp system ECU according to the vehicle lamp zero point calibration command.
Step S320: and the vehicle lamp system ECU sends a reset result command to the OBD diagnostic equipment.
Specifically, the parameters in the vehicle lamp system ECU may include, but are not limited to, an illumination range, a vehicle lamp model number, and the like.
Step S321: and the OBD diagnosis equipment receives a reset result command sent by the vehicle lamp system ECU and judges whether the reset result command is abnormal or not.
Specifically, for example, if the reset result command sent by the vehicle lamp system ECU is 0x7f3121, if the reset result command is abnormal, which indicates that the lamp parameter in the vehicle lamp system ECU fails to be reset and stored, the OBD diagnostic device needs to resend the lamp zero calibration command to the vehicle lamp system ECU.
Step S322: when the reset result command sent by the vehicle lamp system ECU is normal, the OBD diagnostic equipment can remind a vehicle owner to turn the ignition switch state to the off state in a voice prompt mode, and then turn the ignition switch state to the on state.
Step S323: the OBD diagnostic device establishes a diagnostic communication connection with the vehicle lamp system ECU, and the specific principle may refer to step S305.
Step S324: and after the OBD diagnostic equipment establishes communication connection with the vehicle lamp system ECU successfully, the OBD diagnostic equipment sends a fault code reading command to the vehicle lamp system ECU. Specific principles may refer to step S306.
Step S325: and the OBD diagnostic equipment receives fault code data replied by the vehicle lamp system ECU according to the fault code reading command. The specific principle can refer to step S307.
, for example, if the fault code data received by the OBD diagnostic device from the vehicle lamp system ECU in response to the fault code reading command is 0x590208, it indicates that the vehicle lamp system ECU has no fault, and the OBD diagnostic device may prompt the vehicle owner that the zero calibration of the vehicle lamp is successful in a voice prompt manner.
In a second case, for example, when the fault code data returned by the vehicle lamp system ECU according to the fault code reading command received by the OBD diagnostic device is 0x590208900001, it indicates that the vehicle lamp system ECU has a fault. If the vehicle lamp system ECU has a fault, the OBD diagnostic device sends a fault code clearing command to the vehicle lamp system ECU, the vehicle lamp system ECU receives the fault code clearing command sent by the OBD diagnostic device, and after the fault of the vehicle lamp system ECU is cleared according to the fault code clearing command, the steps S324 and S325 are executed to check whether the fault of the vehicle lamp system ECU has been cleared, and if the vehicle lamp system ECU still has a fault and cannot be cleared, it indicates that an error in the vehicle lamp zero calibration process needs to be executed again in step S301; if the vehicle lamp system ECU has no fault, the OBD diagnosis equipment can remind the vehicle owner of successful zero calibration of the vehicle lamp in a voice prompt mode.
In the method described in fig. 3, calibration information corresponding to each of a plurality of pieces of vehicle type information is stored in a diagnostic protocol file of the OBD diagnostic device, when the OBD diagnostic device is connected to a certain vehicle, the vehicle lamp zero-point calibration can be performed on the vehicle based on the calibration information corresponding to the vehicle type information of the vehicle, and when the OBD diagnostic device is connected to another vehicles with different vehicle types from the certain vehicle, the vehicle lamp zero-point calibration can be performed on the other vehicles based on the same principle from the calibration information corresponding to the vehicle type information of the other vehicles, that is, by adopting the above scheme, OBD diagnostic devices can perform the vehicle lamp zero-point calibration on the vehicles of multiple vehicle types without performing the calibration to original plant diagnostic devices of special vehicles for service plants, and the cost of the vehicle lamp calibration is significantly reduced.
It should be noted that the OBD diagnostic device is vehicle-mounted devices in the method embodiment shown in fig. 2, and the diagnostic protocol files are protocol files in the method embodiment shown in fig. 2.
Referring to fig. 4, fig. 4 is a schematic structural diagram of vehicle lamp zero point calibration apparatuses provided in the embodiment of the present application, where the vehicle lamp zero point calibration apparatuses may be vehicle-mounted devices, or may be devices or modules in the vehicle-mounted devices.
An obtaining unit 401, configured to obtain target vehicle type information of a vehicle connected to the apparatus;
a searching unit 402, configured to search, from a stored protocol file, calibration information corresponding to the target vehicle type information; the protocol file stores calibration information corresponding to each piece of vehicle type information in a plurality of pieces of vehicle type information; the plurality of pieces of vehicle type information include the target vehicle type information; the calibration information includes a command for calibrating a zero point of the vehicle lamp;
and the processing unit 403 is configured to perform zero calibration on the vehicle lamp according to a command for zero calibration on the vehicle lamp in the calibration information corresponding to the target vehicle type information.
It can be seen that, the calibration information corresponding to each of the plurality of pieces of vehicle type information is stored in the protocol file of the apparatus, when the apparatus is connected to a certain vehicle, the zero point calibration of the vehicle lamp can be performed on the vehicle based on the calibration information corresponding to the vehicle type information of the vehicle, and when the apparatus is connected to another vehicles with different vehicle types from the certain vehicle, the zero point calibration of the vehicle lamp can be performed on the another vehicles based on the same principle from the calibration information corresponding to the vehicle type information of the another vehicles, that is, by adopting the above scheme, the apparatuses can perform the zero point calibration of the vehicle lamp on the vehicles of multiple vehicle types without calibrating the original plant vehicle-mounted equipment of the special vehicle for the maintenance plant, thereby significantly reducing the cost of the calibration of the vehicle lamp.
In another alternative, the processing unit 403 is configured to perform zero-point calibration on the vehicle lamp according to a command for zero-point calibration on the vehicle lamp in the calibration information corresponding to the target vehicle type information, specifically:
acquiring a voltage value of a level sensor of an Electronic Control Unit (ECU) of the vehicle lamp system;
if the voltage value of the horizontal sensor of the vehicle lamp system ECU falls into a preset voltage interval, sending a mode expansion command to the vehicle lamp system ECU;
and if the vehicle lamp system ECU switches the vehicle lamp system ECU into an expansion mode according to the mode expansion command, sending a command for calibrating a vehicle lamp zero point in calibration information corresponding to the target vehicle type information to the vehicle lamp system ECU so as to initialize parameters in the vehicle lamp system ECU.
The inventor of the present application finds that errors are brought to the calibration result of the vehicle lamp if the vehicle is not in a horizontal state when the zero calibration is performed on the vehicle lamp, so the inventor proposes that the accuracy of the calibration is significantly improved by firstly ensuring that the vehicle is in the horizontal state, specifically ensuring that the vehicle is in the horizontal state through the level sensor, and then performing the zero calibration on the vehicle lamp.
In another alternative solutions, the calibration information corresponding to the target vehicle type information includes a voltage value reading command of a level sensor of a vehicle lamp system ECU, and the processing unit 403 acquires the voltage value of the level sensor of the vehicle lamp system electronic control unit ECU, specifically:
transmitting a voltage value reading command of a level sensor of the vehicle lamp system ECU to the vehicle lamp system ECU;
receiving voltage value data replied by the vehicle lamp system ECU according to the voltage value reading command;
and obtaining the voltage value of the level sensor of the vehicle lamp system ECU according to the voltage value data.
In another alternative, after the searching unit 402 is configured to search the stored protocol file for the calibration information corresponding to the target vehicle type information, and before the processing unit 403 acquires the voltage value of the level sensor of the vehicle lamp system ECU, the processing unit 403 is further configured to:
acquiring fault code information of the vehicle lamp system ECU;
if the acquired fault code information indicates that the vehicle lamp system ECU has no fault, acquiring the state of an ignition switch of a vehicle connected with the device;
if the ignition switch state of the vehicle to which the device is connected is on, the processing unit 403 executes an operation of acquiring the voltage value of the level sensor of the lamp system electronic control unit ECU.
It can be seen that the device acquires the fault code information of the vehicle lamp system ECU to ensure that the vehicle lamp system ECU has no fault before the vehicle lamp parameters of the vehicle lamp system ECU are initialized, then the device acquires the ignition switch state of the vehicle connected with the vehicle-mounted equipment to ensure that the ignition switch state is in an on state to supply power to the vehicle lamp, reduces the error of subsequent vehicle lamp calibration by fault code fault removal, and improves the accuracy of zero point calibration of the vehicle lamp by keeping the vehicle lamp in the on state.
In another alternative solutions, the calibration information corresponding to the target vehicle type information includes a fault code reading command, and the processing unit 403 acquires fault code information of the vehicle lamp system ECU, specifically:
sending the fault code reading command to the vehicle lamp system ECU;
and receiving fault code information replied by the vehicle lamp system ECU according to the fault code reading command.
In another alternative, the calibration information corresponding to the target vehicle type information includes an ignition switch state reading command, and the processing unit 403 obtains the ignition switch state of the vehicle connected to the apparatus, specifically:
sending an ignition switch state reading command to an electronic ignition system ECU in the vehicle;
receiving ignition switch state data replied by the electronic ignition system ECU according to the ignition switch state command;
and determining the state of an ignition switch of the vehicle connected with the device according to the ignition state data.
In still another alternative, the acquiring unit 401 is configured to acquire target vehicle type information of a vehicle to which the apparatus is connected, and specifically:
sending a request for reading a Vehicle Identification Number (VIN) code to an ECU system in the vehicle;
receiving a VIN code replied by an ECU system in the vehicle according to the request for reading the VIN code;
and analyzing the replied VIN code to obtain the target vehicle type information of the vehicle.
It can be seen that the VIN code of each vehicles is only, the VIN code can be a 17-bit character string, each bits have specific meanings, for example, the first three bits of the VIN code are identification codes of world manufacturers, which indicate who the vehicle is produced by, the 4 th to 8 th bits of the VIN code represent vehicle characteristics, vehicle model information can be obtained through the VIN code, and the vehicle model information of the current vehicle can be rapidly obtained by adopting the mode.
In another alternative, the calibration information corresponding to the target vehicle type information includes communication pin information, protocol type, communication baud rate parameter, filter only identifier, activate command, switch extended mode command, data read command, and vehicle lamp zero calibration command.
The specific implementation of each unit in the apparatus shown in fig. 4 may also correspond to the corresponding description of the method embodiment shown in fig. 2.
In the car light zero-point calibration device described in fig. 4, calibration information corresponding to each piece of car type information in a plurality of pieces of car type information is stored in a protocol file of the device, when the device is connected to a certain vehicle, car light zero-point calibration can be performed on the vehicle based on the calibration information corresponding to the car type information of the vehicle, when the device is connected to another vehicles with different car types from the certain vehicle, car light zero-point calibration can be performed on the other vehicles based on the same principle from the calibration information corresponding to the car type information of the other vehicles, that is, the scheme can enable devices to perform car light zero-point calibration on the vehicles of multiple car types without calibration to original factory on-board equipment of a special vehicle for a maintenance factory, and the cost of car light calibration is remarkably reduced.
Referring to fig. 5, fig. 5 is a schematic structural diagram of vehicle-mounted devices provided in the embodiment of the present application, where the vehicle-mounted device described in the embodiment of the present application corresponds to the vehicle-mounted device described above, and the vehicle-mounted device includes a processor 501, an output device 502, a communication interface 503, and a memory 504, where the processor 501, the output device 502, the communication interface 503, and the memory 504 may be connected by a bus or in another manner, and the embodiment of the present application takes the connection by the bus as an example.
The processor 501 (or Central Processing Unit (CPU)) is a computing core and a control core of the vehicle-mounted device, and can analyze various instructions in the vehicle-mounted device and process various data of the vehicle-mounted device, for example: the CPU can transmit various interactive data among the internal structures of the vehicle-mounted equipment, and the like. The output device 502(OutputDevice) is a device, such as a speaker or the like, that outputs information or signals from the in-vehicle device. The communication interface 503 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI, mobile communication interface, etc.), and may be controlled by the processor 503 to transmit and receive data; the communication interface 503 may also be used for transmission and interaction of in-vehicle device internal signaling or instructions. The Memory 504(Memory) is a Memory device in the in-vehicle device for storing programs and data. It is understood that the memory 504 herein may include a built-in memory of the vehicle-mounted device, and may also include an expansion memory supported by the vehicle-mounted device. Memory 504 provides storage space that stores the operating system of the in-vehicle device, which may include, but is not limited to: android system, iOS system, Windows Phone system, etc., which are not limited in this application.
In an embodiment of the application, the processor 501 runs an executable computer program in the memory 504 for performing the following operations:
acquiring target vehicle type information of a vehicle connected with the vehicle-mounted equipment;
searching calibration information corresponding to the target vehicle type information from a stored protocol file; the protocol file stores calibration information corresponding to each piece of vehicle type information in a plurality of pieces of vehicle type information; the plurality of pieces of vehicle type information include the target vehicle type information; the calibration information includes a command for calibrating a zero point of the vehicle lamp;
and according to the command for zero point calibration of the vehicle lamp in the calibration information corresponding to the target vehicle type information, performing zero point calibration on the vehicle lamp.
In the method, the calibration information corresponding to each vehicle type information in the plurality of pieces of vehicle type information is stored in the protocol file of the vehicle-mounted device, when the vehicle-mounted device is connected to a certain vehicle, the vehicle lamp zero-point calibration can be carried out on the vehicle based on the calibration information corresponding to the vehicle type information of the vehicle, when the vehicle-mounted device is connected to other vehicles with different vehicle types from the certain vehicle, the lamp zero-point calibration can be carried out on the other vehicles based on the same principle from the calibration information corresponding to the vehicle type information of the other vehicles, that is, the vehicle-mounted devices can carry out the lamp zero-point calibration on the vehicles of various vehicle types without calibrating to original plant vehicle-mounted devices of special vehicles for a maintenance plant, and the cost of the lamp calibration is reduced remarkably.
In , in the above alternative, the processor 501 is configured to perform zero-point calibration on the vehicle lamp according to a command for zero-point calibration on the vehicle lamp in the calibration information corresponding to the target vehicle type information, specifically:
acquiring a voltage value of a level sensor of an Electronic Control Unit (ECU) of the vehicle lamp system;
if the voltage value of the horizontal sensor of the vehicle lamp system ECU falls into a preset voltage interval, sending a mode expansion command to the vehicle lamp system ECU;
and if the vehicle lamp system ECU switches the vehicle lamp system ECU into an expansion mode according to the mode expansion command, sending a command for calibrating a vehicle lamp zero point in calibration information corresponding to the target vehicle type information to the vehicle lamp system ECU so as to initialize parameters in the vehicle lamp system ECU.
The inventor of the present application finds that errors are brought to the calibration result of the vehicle lamp if the vehicle is not in a horizontal state when the zero calibration is performed on the vehicle lamp, so the inventor proposes that the accuracy of the calibration is significantly improved by firstly ensuring that the vehicle is in the horizontal state, specifically ensuring that the vehicle is in the horizontal state through the level sensor, and then performing the zero calibration on the vehicle lamp.
In another alternative, the calibration information corresponding to the target vehicle type information includes a voltage value reading command of a level sensor of a vehicle lamp system ECU, and the processor 501 obtains the voltage value of the level sensor of the vehicle lamp system electronic control unit ECU, specifically:
transmitting a voltage value reading command of a level sensor of the vehicle lamp system ECU to the vehicle lamp system ECU;
receiving voltage value data replied by the vehicle lamp system ECU according to the voltage value reading command;
and obtaining the voltage value of the level sensor of the vehicle lamp system ECU according to the voltage value data.
In another alternative, after the processor 501 is configured to search the stored protocol file for the calibration information corresponding to the target vehicle type information, and before the processor 501 acquires the voltage value of the level sensor of the vehicle lamp system ECU, the processor 501 is further configured to:
acquiring fault code information of the vehicle lamp system ECU;
if the acquired fault code information indicates that the vehicle lamp system ECU has no fault, acquiring the state of an ignition switch of a vehicle connected with the device;
if the ignition switch state of the vehicle to which the device is connected is on, the processing unit 403 executes an operation of acquiring the voltage value of the level sensor of the lamp system electronic control unit ECU.
In the method, the vehicle-mounted device acquires fault code information of the vehicle lamp system ECU to ensure that the vehicle lamp system ECU has no fault before vehicle lamp parameters of the vehicle lamp system ECU are initialized, then the vehicle-mounted device acquires an ignition switch state of a vehicle connected with the vehicle-mounted device to ensure that the vehicle-mounted device is in an on state to supply power to the vehicle lamp, reduces errors of subsequent vehicle lamp calibration by fault code troubleshooting, and improves accuracy of zero point calibration of the vehicle lamp by keeping the vehicle lamp in the on state.
In another alternative solutions, the calibration information corresponding to the target vehicle type information includes a fault code reading command, and the obtaining, by the processor 501, the fault code information of the vehicle lamp system ECU specifically includes:
sending the fault code reading command to the vehicle lamp system ECU;
and receiving fault code information replied by the vehicle lamp system ECU according to the fault code reading command.
In another alternative, the calibration information corresponding to the target vehicle type information includes an ignition switch state reading command, and the processor 501 obtains the ignition switch state of the vehicle connected to the vehicle-mounted device, specifically:
sending an ignition switch state reading command to an electronic ignition system ECU in the vehicle;
receiving ignition switch state data replied by the electronic ignition system ECU according to the ignition switch state command;
and determining the state of an ignition switch of the vehicle connected with the device according to the ignition state data.
In still another alternative, the processor 501 is configured to obtain target vehicle type information of the vehicle connected to the vehicle-mounted device, specifically:
sending a request for reading a Vehicle Identification Number (VIN) code to an ECU system in the vehicle;
receiving a VIN code replied by an ECU system in the vehicle according to the request for reading the VIN code;
and analyzing the replied VIN code to obtain the target vehicle type information of the vehicle.
The VIN code of each vehicles is , the VIN code can be a 17-bit character string, each bits have specific meanings, for example, the first three bits of the VIN code are identification codes of world manufacturers and indicate the vehicles produced by the vehicles, the 4 th to 8 th bits of the VIN code represent vehicle characteristics, and the vehicle type information of the vehicles can be obtained through the VIN code, and the vehicle type information of the current vehicles can be quickly obtained by adopting the method.
In another alternative, the calibration information corresponding to the target vehicle type information includes communication pin information, protocol type, communication baud rate parameter, filter only identifier, activate command, switch extended mode command, data read command, and vehicle lamp zero calibration command.
In the types of vehicle-mounted devices described in fig. 5, calibration information corresponding to each of a plurality of pieces of vehicle type information is stored in a protocol file of the vehicle-mounted device, when the vehicle-mounted device is connected to a certain vehicle, the vehicle lamp zero-point calibration can be performed on the vehicle based on the calibration information corresponding to the vehicle type information of the vehicle, when the vehicle-mounted device is connected to another vehicles with different vehicle types from the certain vehicle, the vehicle lamp zero-point calibration can be performed on the other vehicles based on the same principle from the calibration information corresponding to the vehicle type information of the other vehicles, that is, the solution can enable vehicle-mounted devices to perform the vehicle lamp zero-point calibration on the vehicles of multiple vehicle types without performing calibration to original factory vehicle-mounted devices of special vehicles for maintenance, and the cost of the vehicle lamp calibration is remarkably reduced.
In summary, by implementing the embodiment of the present application, calibration information corresponding to each of a plurality of pieces of vehicle type information is stored in the protocol file of the vehicle-mounted device, when the vehicle-mounted device is connected to a certain vehicle, the vehicle can be zero-point calibrated based on the calibration information corresponding to the vehicle type information of the vehicle, and when the vehicle-mounted device is connected to another vehicles with different vehicle types from the certain vehicle, the another vehicles can be zero-point calibrated based on the same principle from the calibration information corresponding to the vehicle type information of the another vehicles, that is, by adopting the above scheme, vehicle-mounted devices can perform the zero-point calibration of the vehicle with multiple vehicle types, and do not need to perform calibration to original plant vehicle-mounted devices of special vehicles for service plants, thereby significantly reducing the cost of the lamp calibration.
The embodiment of the present application further provides computer-readable storage media, where the computer-readable storage media store therein a computer program, where the computer program includes program instructions, and the program instructions, when executed by a processor, cause the processor to execute the method for zero point calibration of a vehicle lamp according to the embodiment of the present application.
The present application further provides computer program products containing instructions, which when run on a computer, cause the computer to execute the method of zero point calibration for a vehicle lamp according to the above method embodiments.
It should be noted that, for the sake of simplicity, the aforementioned method embodiments are all expressed as series of action combinations, but those skilled in the art should understand that the present application is not limited by the described action sequence, because some steps can be performed in other sequences or simultaneously according to the present application.
The steps in the method of the embodiment of the application can be sequentially adjusted, combined and deleted according to actual needs.
The modules in the device can be merged, divided and deleted according to actual needs.
It will be understood by those skilled in the art that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program stored in computer readable storage medium, which may include flash Memory, Read-Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disk, etc.
While the preferred embodiment has been described, it will be understood by those skilled in the art that the present invention is not limited thereto, and that all or part of the process flow of the above-described embodiment may be implemented and still fall within the scope of the invention.

Claims (10)

  1. The method for zero calibration of the vehicle lamps is characterized by being applied to vehicle-mounted equipment and comprising the following steps:
    acquiring target vehicle type information of a vehicle connected with the vehicle-mounted equipment;
    searching calibration information corresponding to the target vehicle type information from a stored protocol file; the protocol file stores calibration information corresponding to each piece of vehicle type information in a plurality of pieces of vehicle type information; the plurality of pieces of vehicle type information include the target vehicle type information; the calibration information comprises a command for calibrating a zero point of the vehicle lamp;
    and according to the command for zero point calibration of the vehicle lamp in the calibration information corresponding to the target vehicle type information, performing zero point calibration on the vehicle lamp.
  2. 2. The method of claim 1, wherein zero-point calibration of the vehicle lamp is performed according to a command for zero-point calibration of the vehicle lamp in calibration information corresponding to the target vehicle type information, and the method comprises:
    acquiring a voltage value of a horizontal sensor of an Electronic Control Unit (ECU) of the vehicle lamp system;
    if the voltage value of a level sensor of the vehicle lamp system ECU falls into a preset voltage interval, sending a mode expansion command to the vehicle lamp system ECU;
    and if the vehicle lamp system ECU is switched into an expansion mode according to the mode expansion command, sending a command for calibrating a vehicle lamp zero point in calibration information corresponding to the target vehicle type information to the vehicle lamp system ECU so as to initialize parameters in the vehicle lamp system ECU.
  3. 3. The method according to claim 2, wherein the calibration information corresponding to the target vehicle type information includes a voltage value reading command of a level sensor of a vehicle lamp system ECU; acquiring a voltage value of a level sensor of the vehicle lamp system ECU, comprising:
    sending a voltage value reading command of a level sensor of the vehicle lamp system ECU to the vehicle lamp system ECU;
    receiving voltage value data replied by the vehicle lamp system ECU according to the voltage value reading command;
    and obtaining the voltage value of a level sensor of the vehicle lamp system ECU according to the voltage value data.
  4. 4. The method according to claim 3, wherein after searching the calibration information corresponding to the target vehicle type information from the stored protocol file, before acquiring the voltage value of the level sensor of the vehicle lamp system ECU, the method further comprises:
    acquiring fault code information of the vehicle lamp system ECU;
    if the acquired fault code information indicates that the vehicle lamp system ECU has no fault, acquiring the ignition switch state of the vehicle connected with the vehicle-mounted equipment;
    and if the ignition switch state of the vehicle connected with the vehicle-mounted equipment is an on state, executing the operation of acquiring the voltage value of a level sensor of an Electronic Control Unit (ECU) of the vehicle lamp system.
  5. 5. The method according to claim 4, wherein the calibration information corresponding to the target vehicle type information comprises a fault code reading command; the method for acquiring the fault code information of the vehicle lamp system ECU comprises the following steps:
    sending the fault code reading command to the vehicle lamp system ECU;
    and receiving fault code information replied by the vehicle lamp system ECU according to the fault code reading command.
  6. 6. The method according to claim 4, wherein the calibration information corresponding to the target vehicle type information includes an ignition switch state read command; acquiring the state of an ignition switch of a vehicle connected with the vehicle-mounted equipment, wherein the method comprises the following steps:
    sending an ignition switch state reading command to an electronic ignition system ECU of the vehicle;
    receiving ignition switch state data replied by the electronic ignition system ECU according to the ignition switch state reading command;
    and determining the state of an ignition switch of the vehicle connected with the vehicle-mounted equipment according to the ignition state data.
  7. 7. The method of any of claims 1-6, wherein obtaining target vehicle type information for a vehicle to which the on-board device is connected comprises:
    sending a request for reading a Vehicle Identification Number (VIN) code to an Electronic Control Unit (ECU) system in the vehicle;
    receiving a VIN code replied by an ECU system in the vehicle according to the request for reading the VIN code;
    and analyzing the replied VIN code to obtain the target vehicle type information of the vehicle.
  8. 8. The method of any one of claims 1-6 to , wherein the calibration information corresponding to the target vehicle type information includes communication pin information, protocol type, communication baud rate parameters, filter only flag, activate command, switch extended mode command, data read command, and zero calibration command.
  9. 9, A zero calibration device for vehicle lamp, comprising:
    an acquisition unit configured to acquire target vehicle type information of a vehicle connected to the apparatus;
    the searching unit is used for searching calibration information corresponding to the target vehicle type information from a stored protocol file; the protocol file stores calibration information corresponding to each piece of vehicle type information in a plurality of pieces of vehicle type information; the plurality of pieces of vehicle type information include the target vehicle type information; the calibration information comprises a command for calibrating a zero point of the vehicle lamp;
    and the processing unit is used for carrying out zero point calibration on the vehicle lamp according to a command for carrying out zero point calibration on the vehicle lamp in the calibration information corresponding to the target vehicle type information.
  10. 10, vehicle mounted device, comprising a processor, a memory and an output device, the processor, the memory and the output device being interconnected, wherein the memory is used for storing a computer program, the computer program comprising program instructions, the processor is configured to invoke the program instructions to implement the vehicle lamp zero point calibration method of any of claims 1 to 8.
CN201910873339.5A 2019-09-12 2019-09-12 vehicle lamp zero point calibration method and device Pending CN110736611A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910873339.5A CN110736611A (en) 2019-09-12 2019-09-12 vehicle lamp zero point calibration method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910873339.5A CN110736611A (en) 2019-09-12 2019-09-12 vehicle lamp zero point calibration method and device

Publications (1)

Publication Number Publication Date
CN110736611A true CN110736611A (en) 2020-01-31

Family

ID=69268101

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910873339.5A Pending CN110736611A (en) 2019-09-12 2019-09-12 vehicle lamp zero point calibration method and device

Country Status (1)

Country Link
CN (1) CN110736611A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112286710A (en) * 2020-11-03 2021-01-29 深圳市云伽智能技术有限公司 Fault processing method, device, equipment and storage medium of ADAS system
CN115061454A (en) * 2022-06-23 2022-09-16 中国第一汽车股份有限公司 Vehicle condition signal correction method, device, equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102968114A (en) * 2012-11-20 2013-03-13 意昂神州(北京)科技有限公司 Production line flash terminal supporting multiple protocols and flashing method with terminal
CN105501107A (en) * 2015-12-15 2016-04-20 长安大学 Automatic vehicle illumination control system and control method
CN205185968U (en) * 2015-12-15 2016-04-27 长安大学 Car self -adaptation head -light system
DE102015012816A1 (en) * 2015-10-02 2017-04-06 Audi Ag Method for calibrating a laser headlight in a motor vehicle and motor vehicle
JP2017081249A (en) * 2015-10-23 2017-05-18 株式会社デンソー Lighting system for vehicle
US20170225609A1 (en) * 2016-02-10 2017-08-10 Toyota Jidosha Kabushiki Kaisha Vehicle headlamp light distribution control device and method, and storage medium
CN108023907A (en) * 2016-10-31 2018-05-11 比亚迪股份有限公司 Vehicle module upgrade method, device and vehicle
CN109635166A (en) * 2018-11-26 2019-04-16 深圳市爱夫卡科技股份有限公司 The method and device of four-wheel aligner Data Matching is carried out by VIN code automatic identification

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102968114A (en) * 2012-11-20 2013-03-13 意昂神州(北京)科技有限公司 Production line flash terminal supporting multiple protocols and flashing method with terminal
DE102015012816A1 (en) * 2015-10-02 2017-04-06 Audi Ag Method for calibrating a laser headlight in a motor vehicle and motor vehicle
JP2017081249A (en) * 2015-10-23 2017-05-18 株式会社デンソー Lighting system for vehicle
CN105501107A (en) * 2015-12-15 2016-04-20 长安大学 Automatic vehicle illumination control system and control method
CN205185968U (en) * 2015-12-15 2016-04-27 长安大学 Car self -adaptation head -light system
US20170225609A1 (en) * 2016-02-10 2017-08-10 Toyota Jidosha Kabushiki Kaisha Vehicle headlamp light distribution control device and method, and storage medium
CN108023907A (en) * 2016-10-31 2018-05-11 比亚迪股份有限公司 Vehicle module upgrade method, device and vehicle
CN109635166A (en) * 2018-11-26 2019-04-16 深圳市爱夫卡科技股份有限公司 The method and device of four-wheel aligner Data Matching is carried out by VIN code automatic identification

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李明诚: "汽车电控系统基本设定的原理实质", 《汽车电器》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112286710A (en) * 2020-11-03 2021-01-29 深圳市云伽智能技术有限公司 Fault processing method, device, equipment and storage medium of ADAS system
CN115061454A (en) * 2022-06-23 2022-09-16 中国第一汽车股份有限公司 Vehicle condition signal correction method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN108107875B (en) Automobile diagnosis method and device and vehicle communication interface
CN108803580B (en) Method for matching vehicle CAN protocol and related equipment
CN106331177B (en) Method and system for automatically programming VIN (vehicle identification number) code by remote intelligent terminal
CN108407556B (en) Identification configuration method, device and terminal
CN107848522B (en) System and method for transmitting diagnostic commands to a vehicle
EP3572248A1 (en) Identification method for use with tire pressure sensor and relevant device and system
CN106168796B (en) Method and system for preventing fraud in a network of motor vehicles
CN110736611A (en) vehicle lamp zero point calibration method and device
US10999095B2 (en) Communication method
CN113442663A (en) Matching method of vehicle tire pressure monitoring system and related device
CN110722947A (en) Vehicle control method and device
CN107395666A (en) A kind of method and device of operating numerical control lathe upgrading data packet
EP4292837A1 (en) Tire pressure sensor information processing method and apparatus, and device
CN112248726B (en) Method and device for displaying function menu interface of automobile tire pressure monitoring system
CN114043826A (en) Matching equipment and matching method of tire pressure sensor
CN111447231A (en) Vehicle protocol identification method and device
CN111049717A (en) Variable acquisition method and equipment
WO2017181658A1 (en) Method and device for correcting straight direction for instructing vehicle traveling
CN110758280B (en) Vehicle electronic control unit function setting method and related device
CN110466594B (en) Steering wheel position adjusting method and device and vehicle-mounted equipment
CN114756585A (en) Vehicle data acquisition method and device, electronic equipment and storage medium
CN114153650A (en) Safety verification method and system for intelligent cabin display function
CN109286923B (en) Communication method based on Bluetooth
CN112084076A (en) Test method, electronic device, and storage medium
CN110737974A (en) Method for standardized calibration of vehicle electronic seat and vehicle-mounted equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200131

RJ01 Rejection of invention patent application after publication