VIN code reading method, vehicle communication device, and storage medium
By starting the automatic VIN code reading mode when powered on the automotive communication device, the problem of VIN code acquisition in the prior art is solved, and a more efficient and intelligent VIN code reading process is achieved.
Patent Information
- Application Number
- PCT/CN2024/134027
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-11-28
- Filing Date
- 2024-11-23
- Publication Date
- 2025-06-05
AI Technical Summary
The prior art requires users to manually select the vehicle brand before vehicle diagnosis and click the read VIN code button, which makes it take a long time to obtain the VIN code and is not intelligent enough.
When the automotive communication device is powered on, the first VIN code reading mode is activated to read the first VIN code. If it is not read, the second VIN code reading mode is performed to read the second VIN code according to the vehicle brand, reducing the user's manual operation and improving the reading efficiency.
Through the automated VIN code reading process, the user's operation steps are reduced, the VIN code acquisition efficiency is improved, and the degree of intelligence is enhanced.
Smart Images

Figure CN2024134027_05062025_PF_FP_ABST
Abstract
Description
VIN code reading method, automobile communication device and storage medium
[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on November 28, 2023, with application number 202311612278.X and application name “A method for reading a VIN code, an automobile communication device and a storage medium”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The embodiments of the present application relate to the field of automotive communication technology, and in particular to a VIN code reading method, automotive communication equipment, and storage medium. Background Art
[0003] The Vehicle Identification Number (VIN) is a code assigned by the vehicle manufacturer to identify a vehicle. According to ASE standards, the VIN consists of 17 characters and can be used to query information such as the manufacturer, year of production, make, type, engine model, vehicle model, and assembly location. Therefore, automatically obtaining the VIN is crucial for correctly identifying the vehicle model and performing proper diagnosis and repair.
[0004] Currently, prior art solutions require users to select a vehicle brand and click the Read VIN button on their device before diagnosing the vehicle. Only after parsing the VIN can the diagnostic guidance interface for that brand of vehicle be accessed. This requires multiple manual steps and the user must try each vehicle VIN protocol and command combination individually. This prior art solution makes obtaining the VIN code time-consuming and inefficient. Summary of the Invention
[0005] An embodiment of the present application provides a VIN code reading method, an automobile communication device, and a storage medium. When the automobile communication device is powered on, a first VIN code reading mode of the automobile communication device is activated to read the first VIN code. If the first VIN code is not read, a second VIN code reading mode is executed to read the second VIN code to compensate for the defect that the first VIN code reading mode cannot read. This application can reduce the user's manual operations and improve the efficiency of reading VIN codes.
[0006] The embodiments of this application provide the following technical solutions:
[0007] In a first aspect, an embodiment of the present application provides a method for reading a VIN code, which is applied to an automotive communication device, wherein the automotive communication device is communicatively connected to a host computer. The method for reading a VIN code includes:
[0008] When the car communication device is powered on, a first VIN code reading mode of the car communication device is started, and in the first VIN code reading mode, a first VIN code is read according to a preset instruction in the car communication device;
[0009] If the first VIN code is not read, and an instruction to establish a communication link or to stop the first VIN code reading mode is received from the host computer, the second VIN code reading mode is started, and in the second VIN code reading mode, the second VIN code is read according to the vehicle brand.
[0010] In some embodiments, the automotive communication device is connected to a vehicle diagnostic interface, the first VIN code reading mode includes a forced VIN code reading mode and a fast VIN code reading mode, and starting the first VIN code reading mode of the automotive communication device includes:
[0011] Execute forced VIN code reading mode;
[0012] After executing the forced VIN code reading mode, the fast VIN code reading mode is executed cyclically;
[0013] During the execution of the forced VIN code reading mode and the fast VIN code reading mode, continuously detecting whether the VIN code reading end condition is met, wherein the VIN code reading end condition includes reading the VIN code, or receiving an instruction from the host computer to establish a communication link, or receiving an instruction from the host computer to stop the first VIN code reading mode, or the vehicle communication device is disconnected from the vehicle diagnostic interface;
[0014] If the VIN code reading end condition is met, the first VIN code reading mode ends.
[0015] In some embodiments, executing a forced VIN code reading mode includes:
[0016] Acquire a first bus protocol list, wherein the first bus protocol list includes a plurality of first bus protocols;
[0017] Obtaining a forced read instruction list, wherein the forced read instruction list includes a plurality of forced read instructions, and the forced read instructions correspond one-to-one to the first bus protocol;
[0018] sending, in accordance with a preset bus protocol sequence, a forced read instruction corresponding to the first bus protocol on at least two first bus protocols in sequence, wherein the forced read instruction is used to read the first VIN code;
[0019] If the first VIN code is read, the VIN code reading process ends.
[0020] In some embodiments, the fast VIN code reading mode is executed in a loop, including:
[0021] Acquire a second bus protocol list, wherein the second bus protocol list includes the second bus protocol;
[0022] Obtaining a fast read instruction list, wherein the fast read instruction list includes at least one fast read instruction, and the fast read instruction corresponds to the second bus protocol one-to-one;
[0023] cyclically sending the fast read instructions in the fast read instruction list on the second bus protocol;
[0024] The method also includes:
[0025] If the first VIN code is not read in the quick VIN code reading mode, and an instruction to establish a communication link or stop the first VIN code reading mode is received from the host computer, the first VIN code reading mode is stopped, and the second VIN code reading mode is executed to read the second VIN code and send it cyclically.
[0026] In some embodiments, the second VIN code reading mode includes a terminal VIN code reading mode and a server VIN code reading mode, and the method further includes:
[0027] When the host computer is a server, the second VIN code reading mode is determined to be the server VIN code reading mode; if an instruction to stop the first VIN code reading mode is received from the server, the server VIN code reading mode is executed;
[0028] When the host computer is a terminal, the second VIN code reading mode is determined to be the terminal VIN code reading mode; if an instruction to establish a communication link sent by the terminal is received, the terminal VIN code reading mode is executed.
[0029] In some embodiments, a list of vehicle brand profiles is pre-set in the server, and the server VIN code reading mode is executed, including:
[0030] Obtaining a vehicle brand profile list, wherein the vehicle brand profile list includes at least one vehicle brand profile;
[0031] Traverse the vehicle brand profile list and obtain the current vehicle brand profile;
[0032] Read the second VIN code according to the current vehicle brand configuration file, and determine whether the second VIN code is read;
[0033] If the second VIN code is not read, the next vehicle brand profile in the vehicle brand profile list is obtained;
[0034] If the second VIN code is read, the VIN code reading process ends.
[0035] In some embodiments, the vehicle brand configuration file includes an instruction for establishing a communication link, an instruction for entering a system, an instruction for reading a VIN code, and execution order and timing parameters between the instruction for establishing a communication link, the instruction for entering a system, and the instruction for reading a VIN code. Reading a second VIN code according to the current vehicle brand configuration file includes:
[0036] The second VIN code is read according to the instructions for establishing a communication link, entering the system, and reading the VIN code, as well as the execution order and timing parameters between the instructions for establishing a communication link, entering the system, and reading the VIN code.
[0037] In some embodiments, executing the terminal VIN code reading mode includes:
[0038] Establishing a communication link according to an instruction for establishing a communication link, wherein the instruction for establishing a communication link includes communication attributes, and the communication attributes include pins, baud rate, and bus protocol;
[0039] Receive the VIN code reading instruction from the host computer;
[0040] The instruction for reading the VIN code is sent to the automobile electronic control unit through the communication link, so that the automobile electronic control unit returns the second VIN code according to the instruction for reading the VIN code.
[0041] In a second aspect, an embodiment of the present application provides an automotive communication device, including:
[0042] at least one processor; and
[0043] a memory communicatively connected to at least one processor; wherein,
[0044] The memory stores instructions that can be executed by at least one processor. The instructions are executed by the at least one processor to enable the at least one processor to perform the VIN code reading method according to the first aspect.
[0045] In a third aspect, an embodiment of the present application provides a computer-readable storage medium, in which a computer program or instruction is stored. When the computer program or instruction is executed, the VIN code reading method of the first aspect is implemented.
[0046] The advantageous effects of the embodiments of the present application are as follows: Unlike the prior art, the embodiments of the present application provide a VIN code reading method for an automotive communication device, the automotive communication device being communicatively connected to a host computer. The VIN code reading method comprises: upon powering on the automotive communication device, activating a first VIN code reading mode of the automotive communication device, and in the first VIN code reading mode, reading a first VIN code according to pre-set instructions within the automotive communication device; if the first VIN code is not read, and upon receiving an instruction from the host computer to establish a communication link or terminate the first VIN code reading mode, activating a second VIN code reading mode, and in the second VIN code reading mode, reading a second VIN code based on the vehicle brand. When the automotive communication device is powered on, typically before being connected to the host computer, the first VIN code is activated in the first VIN code reading mode to read the first VIN code. Then, when the automotive communication device is connected to the host computer, the host computer automatically obtains the first VIN code read by the automotive communication device and parses it to obtain information such as the vehicle brand, model, and year of production. If the host computer is a diagnostic terminal, the parsed information automatically opens a diagnostic guidance interface for the vehicle. When the host computer is a server, the vehicle data monitoring configuration file will be automatically generated based on the parsed information for subsequent functions. The above functions will be completed quickly and automatically the moment the car communication device is connected to the host computer. In particular, when the host computer is a terminal, there is no need for the user to open the diagnostic software and select the vehicle brand, etc., which saves the user time and helps the user quickly read the VIN code and enter the correct vehicle brand diagnostic guide page. If the first VIN code is not read, the second VIN code reading mode is executed to read the second VIN code to make up for the defect that the first VIN code reading mode cannot read. This application can reduce the user's manual operation, be more automatic and intelligent, and improve the efficiency of reading VIN codes. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] One or more embodiments are exemplarily illustrated by corresponding drawings, which do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings are represented as similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.
[0048] FIG1 is a schematic diagram of an application environment provided by an embodiment of the present application;
[0049] FIG2 is a flow chart of a method for reading a VIN code according to an embodiment of the present application;
[0050] FIG3 is a schematic diagram of a detailed process of step S201 in FIG2 ;
[0051] FIG4 is a schematic diagram of a detailed flow chart of step S2011 in FIG3 ;
[0052] FIG5 is a schematic diagram of a detailed process of step S2012 in FIG3 ;
[0053] FIG6 is a schematic diagram of a flow chart of determining a second VIN code reading mode according to an embodiment of the present application;
[0054] FIG7 is a schematic diagram of a detailed flow chart of step S604 in FIG6 ;
[0055] FIG8 is a schematic diagram of a detailed flow chart of step S643 in FIG7 ;
[0056] FIG9 is a schematic diagram of a detailed flow chart of step S606 in FIG6 ;
[0057] FIG10 is a schematic structural diagram of a VIN code reading device provided in an embodiment of the present application;
[0058] FIG11 is a schematic structural diagram of an automobile communication device provided in an embodiment of the present application.
[0059] The description of the figures is shown in Table 1:
[0060] Table 1 DETAILED DESCRIPTION
[0061] In order to facilitate understanding of the present application, the present application is described in more detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that when an element is described as "fixed to" another element, it can be directly on the other element, or there can be one or more centered elements therebetween. When an element is described as "connected to" another element, it can be directly connected to the other element, or there can be one or more centered elements therebetween. The terms "vertical", "horizontal", "left", "right" and similar expressions used in this specification are for illustrative purposes only.
[0062] Unless otherwise defined, all technical and scientific terms used in this specification have the same meanings as those commonly understood by those skilled in the art to which this application belongs. The terms used in this specification and in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application. The term "and / or" as used in this specification includes any and all combinations of one or more of the relevant listed items.
[0063] The technical solution of this application is described in detail below with reference to the accompanying drawings:
[0064] Please refer to FIG1 , which is a schematic diagram of an application environment provided by an embodiment of the present application;
[0065] As shown in Figure 1, the application environment 100 includes: an automobile communication device 10, a host computer 20, and an automobile electronic control unit 30, wherein the host computer 20 and the automobile communication device 10 are connected to each other through wired or wireless communication methods, wherein the wired method includes a USB connection method, and the wireless method includes Bluetooth, WiFi, 4G, 5G network cable and other connection methods. The automobile communication device 10 and the automobile electronic control unit 30 are connected to each other through bus communication.
[0066] In the embodiment of the present application, the vehicle communication device 10 refers to the VCI (vehicle communication interface) of the vehicle diagnostic device. When the vehicle communication device is connected to the vehicle's OBD (On-Board Diagnostics) diagnostic socket, the vehicle diagnostic device can then connect to the vehicle communication device via wired or wireless means to perform vehicle diagnosis. The vehicle communication device 10 is a slave device of the host computer 20. When the vehicle communication device is powered on, the vehicle communication device 10 is configured to activate a first VIN code reading mode of the vehicle communication device and, in the first VIN code reading mode, read the first VIN code according to a pre-set instruction within the vehicle communication device. If the first VIN code is not read, and upon receiving an instruction from the host computer to establish a communication link or to terminate the first VIN code reading mode, the vehicle diagnostic device 10 activates a second VIN code reading mode and, in the second VIN code reading mode, reads the second VIN code according to the vehicle brand.
[0067] In the embodiment of the present application, the host computer 20 can be a server or a terminal, and the present application does not limit this.
[0068] In an embodiment of the present application, when the host computer 20 is a server, the host computer 20 is used to send the vehicle brand configuration list to the automotive communication device. There are multiple servers 20, and multiple servers can form a server cluster. For example, the server cluster includes: a first server, a second server, ..., an Nth server. Alternatively, the server cluster can be a cloud computing service center, which includes several servers. The servers in the embodiment of the present application include, but are not limited to: tower servers, rack servers, blade servers, and cloud servers. Preferably, the server is a cloud server (Elastic Compute Service, ECS).
[0069] In the embodiment of the present application, when the host computer 20 is a terminal, the host computer 20 is used to send instructions for establishing a communication link and communicating on the communication link to the automobile communication device. The types of the terminal include but are not limited to: smart phones, tablet computers, or other electronic devices.
[0070] It can be understood that the host computer in the embodiment of the present application also includes a storage module, which includes but is not limited to: FLASH flash memory, NAND flash memory, vertical NAND flash memory (VNAND), NOR flash memory, resistive random access memory (RRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), spin transfer torque random access memory (STT-RAM) and other devices. One or more.
[0071] In an embodiment of the present application, the automotive electronic control unit 30 is disposed within the vehicle and is configured to communicate with the automotive communication device 10 via a bus. For example, after a communication link is successfully established, the automotive communication device 10 sends a VIN read instruction to the automotive electronic control unit 30, and the automotive electronic control unit 30 returns the VIN code to the automotive communication device 10. The automotive electronic control unit can be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), a single-chip microcomputer, an ARM (Acorn RISC Machine) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination of these components. The automotive electronic control unit can also be any conventional processor, controller, microcontroller, or state machine. The automotive electronic control unit can also be implemented as a combination of computing devices, such as a combination of a DSP and a microprocessor, multiple microprocessors, one or more microprocessors combined with a DSP, and / or any other such configuration, or a combination of one or more of a microcontroller unit (MCU), a field-programmable gate array (FPGA), and a system-on-chip (SoC).
[0072] Please refer to FIG2 , which is a flow chart of a method for reading a VIN code provided in an embodiment of the present application;
[0073] The VIN code reading method is applied to an automobile communication device, which is in communication with a host computer. Specifically, the VIN code reading method is executed by one or at least two processors of the automobile communication device.
[0074] As shown in FIG2 , the VIN code reading method includes:
[0075] Step S201: When the automotive communication device is powered on, a first VIN code reading mode of the automotive communication device is activated, and in the first VIN code reading mode, a first VIN code is read according to a preset instruction in the automotive communication device;
[0076] In an embodiment of the present application, a vehicle communication interface (VCI) communicates with the vehicle by connecting to the vehicle's OBD (On-Board Diagnostics) interface. A typical power-up procedure for the VCI involves plugging the VCI into the vehicle's OBD interface, with the vehicle's power supply supplying power through the OBD interface. Typically, a host computer is not yet connected to the VCI during this time. By utilizing this time, the VCI is powered on to activate a first VIN code reading mode. In this first VIN code reading mode, the first VIN code is read according to pre-set instructions within the VCI. This reduces the time required for subsequent vehicle diagnostics.
[0077] Specifically, the first VIN code reading mode is used to read the first VIN code according to a preset instruction in the automobile communication device. The first VIN code reading mode includes a forced VIN code reading mode and a fast VIN code reading mode.
[0078] Please refer to FIG3 again, which is a detailed flowchart of step S201 in FIG2 ;
[0079] As shown in FIG3 , step S201: when the automotive communication device is powered on, the first VIN code reading mode of the automotive communication device is started, and in the first VIN code reading mode, the first VIN code is read according to the instructions preset in the automotive communication device, including:
[0080] Step S2011: executing the forced VIN code reading mode;
[0081] In the embodiment of the present application, the first VIN code reading mode of the automobile communication device includes a forced VIN code reading mode and a fast VIN code reading mode, and the forced VIN code reading mode is executed first.
[0082] Please refer to FIG4 again, which is a detailed flowchart of step S2011 in FIG3 ;
[0083] As shown in FIG4 , step S2011: executing the forced VIN code reading mode, including:
[0084] Step S2111: obtaining a first bus protocol list;
[0085] Specifically, the automobile communication device obtains a first bus protocol list, which includes multiple first bus protocols. For example, the first bus protocol list includes ISO15765 protocol, PWM protocol, Vpw protocol, Kwp14230 protocol, and ISO9141 protocol. Among them, ISO15765 protocol is a diagnostic protocol on the CAN bus, PWM protocol is an analog signal protocol that transmits signals by controlling the pulse width of the analog signal, Vpw protocol (Variable Pulse Width) is a variable pulse width modulation automobile bus communication method, Kwp14230 protocol is a keyword protocol, and ISO9141 protocol is a standard OBDII protocol.
[0086] Step S2112: Obtain a forced read instruction list;
[0087] Specifically, a forced read instruction list is obtained, wherein the forced read instruction list includes multiple forced read instructions, and the forced read instructions correspond one-to-one to the first bus protocol. Each protocol is provided with its corresponding forced read instruction, wherein the specific content of the forced read instruction includes the pin, the baud rate, and the instruction for reading the first VIN code. For example, when the first bus protocol is the ISO15765 protocol, the specific content of the corresponding forced read instruction includes the pair of pins 6 and 14, wherein pin 6 is CAN-H, pin 14 is CAN-L, a baud rate of 500Kbps or 250Kbps, and an instruction for reading the first VIN code; when the first bus protocol is the ISO9141 protocol, the specific content of the corresponding forced read instruction includes pins 7 and 15, a baud rate of 10400bps, and an instruction for reading the first VIN code.
[0088] Step S2113: sending forced read instructions corresponding to the first bus protocol on at least two first bus protocols in sequence according to a preset bus protocol sequence;
[0089] Specifically, according to the preset bus protocol sequence, the forced read instruction corresponding to the first bus protocol is sent on at least two first bus protocols in sequence. Preferably, the preset bus protocol sequence is set to ISO15765 protocol, PWM protocol, Vpw protocol, Kwp14230 protocol, and ISO9141 protocol. For example, the forced read instruction corresponding to ISO15765 protocol is sent on ISO15765 protocol, and the response of the car is waited for. The response of the car refers to the response frame sent by the car ECU, and the content of the response frame includes the first VIN code.
[0090] In an embodiment of the present application, the forced read instruction is in the form of an instruction frame, which consists of two parts: an address and data. The forced read instruction corresponds one-to-one to the first bus protocol. For example, when the first bus protocol is the ISO15765 protocol, if it is an 11-bit CAN, the data part of the instruction frame is 07 df 09 02, and if it is a 29-bit CAN, the data part of the instruction frame is 18 DB 33 F1 09 02; when the first bus protocol is the ISO9141 protocol, the data part of the instruction frame is 68 6A F1 09 02 66; when the first bus protocol is the ISO9141 protocol, the data part of the instruction frame is 68 6A F1 09 02 66; when the first bus protocol is the Kwp14230 protocol, the data part of the instruction frame is C2 33 F1 09 02 F1; when the first bus protocol is the Vpw protocol, the data part of the instruction frame is 06 68 6A F1 09 02 77; when the first bus protocol is the PWM protocol, the data part of the instruction frame is 06 61 6A F1 09 02 6A.
[0091] Step S2114: Determine whether the first VIN code is read;
[0092] Specifically, each time after a forced read instruction corresponding to the first bus protocol is sent on the first bus protocol, it is determined whether the first VIN code is read. If the first VIN code is not read this time, a forced read instruction corresponding to the next first bus protocol is sent on the next first bus protocol according to the preset bus protocol sequence. If the first VIN code is still not read after traversing the first bus protocol list, step S2116 is entered; if the first VIN code is read, step S2115 is entered.
[0093] Step S2115: End the VIN code reading process;
[0094] Specifically, if the first VIN code is read, it means that the VIN code of the car has been obtained, and the VIN code reading process ends.
[0095] Step S2116: Execute the fast VIN code reading mode;
[0096] Specifically, if the first VIN code is not read, it means that the VIN code of the car has not been obtained, then the quick VIN code reading mode is executed to further obtain the first VIN code of the car. The specific implementation method of the quick VIN code reading mode has been described in detail in Figure 5 below. To avoid repetition, this application will not go into details here.
[0097] Step S2012: After executing the forced VIN code reading mode, the fast VIN code reading mode is executed cyclically;
[0098] Please refer to FIG5 again, which is a detailed flowchart of step S2012 in FIG3 ;
[0099] As shown in FIG5 , step S2012: after executing the forced VIN code reading mode, the fast VIN code reading mode is executed cyclically, including:
[0100] Step S2121: Obtain a second bus protocol list;
[0101] Specifically, the automobile communication device obtains a second bus protocol list, where the second bus protocol list includes at least one second bus protocol. Preferably, the second bus protocol list includes one second bus protocol, for example, the second bus protocol list includes ISO15765 protocol.
[0102] In an embodiment of the present application, the number of second bus protocols included in the second bus protocol list is less than the number of first bus protocols included in the first bus protocol list. Therefore, compared with the above-mentioned forced VIN code reading mode, the fast VIN code reading mode can obtain the first VIN code of the car in a faster manner. Moreover, preferably, setting the bus protocols commonly used in actual situations in the second bus protocol list can reduce the risk of car code fabrication.
[0103] Step S2122: Obtain a fast read instruction list;
[0104] Specifically, a quick read instruction list is obtained, wherein the quick read instruction list includes at least one quick read instruction, each quick read instruction corresponds to a second bus protocol, and each second bus protocol can correspond to multiple quick read instructions. The specific content of the quick read instruction includes the pin, the baud rate, and the instruction for reading the first VIN code. For example, when the second bus protocol is the ISO15765 protocol, the specific content of the corresponding quick read instruction includes a pair of pins 6 and 14, wherein pin 6 is CAN-H, pin 14 is CAN-L, the baud rate is 500Kbps or 250Kbps, and the instruction for reading the first VIN code.
[0105] Step S2123: cyclically sending the fast read instructions in the fast read instruction list on the second bus protocol;
[0106] Specifically, a fast read instruction corresponding to the second bus protocol is cyclically sent on the second bus protocol, and a response from the vehicle is waited for. The response from the vehicle refers to a response frame sent by the vehicle ECU, and the content of the response frame includes the first VIN code.
[0107] It's important to note that the reason for first using the forced VIN read mode to read the vehicle's VIN and then executing the quick VIN read mode to cyclically send quick read commands on the second bus protocol is that, in practice, some vehicles will not respond to VIN read commands sent using the matching protocol when the ignition is off, making it impossible to read the VIN. The vehicle communication device cannot determine whether the vehicle's ignition is on during the first VIN read mode. If the vehicle meets the conditions for responding to the VIN read command during the forced VIN read mode (where the ignition is on), the forced VIN read mode attempts multiple protocols to read the VIN. If the protocols and commands match the vehicle's ECU, the VIN is guaranteed to be read. However, if the vehicle does not meet the conditions for responding to the VIN read command during the forced VIN read mode, such as if the ignition is off, the forced VIN read mode must be repeatedly attempted until the vehicle meets the conditions for responding to the VIN read command and the VIN is obtained. However, considering the reality, most vehicles use a few commonly used protocols for reading VIN codes, such as ISO 15765. Therefore, instead of repeatedly trying all protocols in the forced VIN read mode, it's sufficient to repeatedly try these protocols until the vehicle is ready and responds to the protocol's read command. The advantage of this design is that subsequent attempts to read the VIN code are faster and more efficient, covering the vast majority of vehicles. It also minimizes code manipulation (if messages are sent on the vehicle bus using an incompatible protocol, erroneous codes may be generated, causing users to believe the vehicle is damaged). Forced VIN read mode has a higher probability of code manipulation than fast read mode. Therefore, it's necessary to cyclically send fast read commands on the second bus protocol to ensure that the VIN code can be read immediately when the vehicle's ignition is on.
[0108] In an embodiment of the present application, the fast read instruction is in the form of an instruction frame, which consists of two parts: an address and data. The fast read instruction corresponds one-to-one to the second bus protocol. For example, when the second bus protocol is the ISO15765 protocol, if it is an 11-bit CAN, the data part of the instruction frame is 07 df 09 02; if it is a 29-bit CAN, the data part of the instruction frame is 18 DB 33 F1 09 02.
[0109] Step S2013: During the execution of the forced VIN code reading mode and the fast VIN code reading mode, continuously detecting whether the VIN code reading end condition is met;
[0110] Specifically, during the execution of the forced VIN code reading mode and the quick VIN code reading mode, the process continuously checks whether a VIN code reading termination condition is met. Specifically, during the entire execution of the first VIN code reading mode, the process continuously checks whether a VIN code reading termination condition is met. The VIN code reading termination condition includes: reading the VIN code; / or a host computer issuing an instruction to establish a communication link; / or the vehicle communication device disconnecting from the vehicle diagnostic interface; / or a host computer issuing an instruction to terminate the first VIN code reading mode; and / or the vehicle communication device being upgraded. If the VIN code reading termination condition is not met, the process returns to step S2012 and the quick VIN code reading mode is continued in a loop. If the VIN code reading termination condition is met, the process proceeds to step S2014.
[0111] Step S2014: End the first VIN code reading mode;
[0112] Specifically, the conditions for terminating the VIN code reading include: the first VIN code reading mode reads the VIN code, and / or the host computer issues an instruction to establish a communication link, and / or the vehicle communication device is disconnected from the vehicle diagnostic interface, and / or the host computer issues an instruction to stop the first VIN code reading mode, and / or during the upgrade of the vehicle communication device, if the conditions for terminating the VIN code reading are met, the first VIN code reading mode is terminated.
[0113] Step S202: Determine whether the first VIN code is read;
[0114] Specifically, after the first VIN code reading mode ends, it is determined whether the first VIN code is read in the first VIN code reading mode, that is, it is determined whether the first VIN code is read through the forced VIN code reading mode and the quick VIN code reading mode. If the first VIN code is not read, step S203 is entered; if the first VIN code is read, step S206 is entered.
[0115] Step S203: determining whether an instruction to establish a communication link or to stop the first VIN code reading mode is received from the host computer;
[0116] In an embodiment of the present application, the host computer includes two types: terminal and server, which are respectively used to issue instructions for establishing a communication link and instructions for stopping the first VIN code reading mode. For example, when the host computer is a terminal, the instruction it issues is an instruction for establishing a communication link. When the host computer is a server, the instruction it issues is an instruction for stopping the first VIN code reading mode.
[0117] Specifically, when the first VIN code is not read, the automobile communication device determines whether it has received an instruction from the host computer to establish a communication link or an instruction to stop the first VIN code reading mode. If it has received an instruction from the host computer to establish a communication link or an instruction to stop the first VIN code reading mode, it enters step S204; if it has not received an instruction from the host computer to establish a communication link or an instruction to stop the first VIN code reading mode, it enters step S205.
[0118] Step S204: activating the second VIN code reading mode, and in the second VIN code reading mode, reading the second VIN code according to the vehicle brand;
[0119] Specifically, if the first VIN code is not read in the first VIN code reading mode, and an instruction to establish a communication link or to stop the first VIN code reading mode is received from the host computer, the first VIN code reading mode is stopped and the second VIN code reading mode is executed to read the second VIN code, wherein the second VIN code reading mode is used to read the second VIN code according to the vehicle brand of the car.
[0120] In an embodiment of the present application, when the first VIN code reading mode fails to read the VIN code, the present application can also use the second VIN code reading mode to read the VIN code, thereby improving the success rate of VIN code reading. It can be understood that the design concept of the first VIN code reading mode is to repeatedly try common protocols and commands to obtain the VIN code. This may fail to read the VIN code. For some special vehicle models, these common protocols and commands cannot be covered. However, it is not possible to try all possible protocols and commands. Doing so would reduce the efficiency of the first VIN code reading mode and increase the risk of code manipulation. Therefore, when the first VIN code reading mode fails to read the VIN code, the second VIN code reading mode is used to compensate for this performance shortcoming. The second VIN code reading mode reads the VIN code based on the various possible protocols and commands for a specific vehicle brand, which has a much smaller range. By adjusting the order of attempts and interacting with the ECU of the vehicle brand, the communication properties of the vehicle ECU storing the VIN code can be determined. In addition, the human-machine interface interaction will also prompt the user based on the vehicle brand that the vehicle's ignition must be turned on to read the VIN. Designing a second VIN code reading mode using these methods can basically ensure that the VIN is read and the code is not forged; however, the disadvantage is that it requires user human-computer interaction, which is relatively slow and not intelligent enough. Among them, human-computer interaction means that the user needs to click a button and select the vehicle brand.
[0121] Step S205: Continue to read the first VIN code to wait for the host computer to issue an instruction to establish a communication link or to stop the first VIN code reading mode;
[0122] Specifically, when the automobile communication device does not receive an instruction from the host computer to establish a communication link or stop the first VIN code reading mode, it continues to read the first VIN code to wait for the host computer to send an instruction to establish a communication link or stop the first VIN code reading mode.
[0123] Step S206: End the VIN code reading process;
[0124] Specifically, if the first VIN code reading mode has read the first VIN code, the VIN code reading process ends.
[0125] Please refer to FIG6 again, which is a flowchart of determining a second VIN code reading mode according to an embodiment of the present application;
[0126] As shown in FIG6 , the process of determining the second VIN code reading mode includes:
[0127] Step S601: Obtain the type of the host computer;
[0128] Specifically, the automobile communication device is connected to the host computer for communication. The types of the host computer include server and terminal. The second VIN code reading mode includes server VIN code reading mode and terminal VIN code reading mode. The type of the host computer is obtained. In subsequent operations, the second VIN code reading mode is determined to be the server VIN code reading mode or the terminal VIN code reading mode according to the type of the host computer.
[0129] Step S602: Determine whether the host computer is a server;
[0130] Specifically, it is determined whether the host computer is a server. If the host computer is a server, the process proceeds to step S603 ; if the host computer is not a server, the process proceeds to step S605 .
[0131] Step S603: determining the second VIN code reading mode as the server VIN code reading mode;
[0132] Specifically, when the host computer is a server, preferably, the host computer is a cloud server, and the second VIN code reading mode is determined as the server VIN code reading mode.
[0133] Step S604: If the server receives an instruction to stop the first VIN code reading, the server VIN code reading mode is executed;
[0134] Specifically, after determining the second VIN code reading mode as the server VIN code reading mode, wait for the server to issue an instruction to stop the first VIN code reading mode. If the instruction to stop the first VIN code reading mode is received from the server, the server VIN code reading mode is started.
[0135] Please refer to FIG. 7 again, which is a detailed flowchart of step S604 in FIG. 6 ;
[0136] As shown in FIG7 , step S604: if the server receives an instruction to stop the first VIN code reading, the server VIN code reading mode is executed, including:
[0137] Step S641: Obtain a list of vehicle brand configuration files;
[0138] Specifically, due to the diversity of vehicle brands, each vehicle brand has a different configuration file, that is, each vehicle brand has different communication properties for obtaining VIN codes. These communication properties include the pins, baud rate, and bus protocol used to establish a communication link. Based on vehicle brand, multiple vehicle brand configuration files can be obtained. A collection of these multiple vehicle brand configuration files is a vehicle brand configuration file list. A server pre-installs a vehicle brand configuration file list, which includes at least one vehicle brand configuration file. The vehicle brand configuration file includes instructions for establishing a communication link and its communication properties, instructions for entering the system, instructions for reading the VIN code, and the order and timing parameters for executing these instructions. When the server determines that the first VIN code reading mode has not read the VIN code, it issues an instruction to the vehicle communication device to terminate the first VIN code reading mode, and then issues the vehicle brand configuration file list to the vehicle communication device, allowing the vehicle communication device to obtain the vehicle brand configuration file list.
[0139] Step S642: traverse the vehicle brand configuration file list to obtain the current vehicle brand configuration file;
[0140] Specifically, the automobile communication device traverses a vehicle brand profile list including at least one vehicle brand profile, obtains a vehicle brand profile from the vehicle brand profile list, and determines the vehicle brand profile as the current vehicle brand profile.
[0141] Step S643: Read the second VIN code according to the current vehicle brand configuration file;
[0142] Please refer to FIG8 again, which is a detailed flowchart of step S643 in FIG7 ;
[0143] As shown in FIG8 , step S643: reading the second VIN code according to the current vehicle brand configuration file includes:
[0144] Step S6431: Read the second VIN code according to the instruction for establishing a communication link, the instruction for entering the system, the instruction for reading the VIN code, and the execution order and timing parameters between the instruction for establishing a communication link, the instruction for entering the system, and the instruction for reading the VIN code;
[0145] Specifically, the vehicle brand profile includes instructions for establishing a communication link and its communication properties, instructions for entering the system, instructions for reading the VIN code, and the execution order and timing parameters of these instructions. Among them, the instruction for entering the system refers to the instruction for activating the vehicle electronic control unit, the execution order refers to the sending order of each instruction, and the timing parameter refers to the sending time interval between each instruction. According to the current vehicle brand profile, the communication link is established strictly in accordance with these configurations, and the instruction to read the second VIN code is sent according to the order of instructions and the execution order and timing parameters between instructions. For example, according to communication properties such as pins, baud rate and bus protocol, a communication link is established, and communication is carried out with the vehicle electronic control unit through the communication link. Then, the instruction to read the VIN code is sent to the vehicle electronic control unit to read the second VIN code.
[0146] Step S644: determining whether the second VIN code is read;
[0147] Specifically, the vehicle brand configuration file includes instructions for establishing a communication link and its communication attributes, instructions for entering the system, instructions for reading the VIN code, and the order and timing parameters for executing these instructions. Based on the current vehicle brand configuration file, the communication link is established strictly in accordance with these configurations, and the second VIN code is read according to the order of the instructions and the timing between the instructions. It is then determined whether the second VIN code is read. If the second VIN code is read, the process proceeds to step S646. If the second VIN code is not read, the process proceeds to step S645.
[0148] Step S645: Obtain the next vehicle brand profile in the vehicle brand profile list;
[0149] Specifically, if the second VIN code is not read, the next vehicle brand configuration file in the vehicle brand configuration file list is obtained, until all vehicle brand configuration files in the vehicle brand configuration file list are traversed.
[0150] Step S646: End the VIN code reading process;
[0151] Specifically, if the second VIN code is read, the VIN code reading process ends.
[0152] Step S605: determining the second VIN code reading mode as the terminal VIN code reading mode;
[0153] Specifically, when the host computer is not a server, the host computer is determined to be a terminal, and the second VIN code reading mode is determined to be a terminal VIN code reading mode. It should be noted that the terminal includes but is not limited to a smartphone and a tablet computer.
[0154] Step S606: If the terminal receives the instruction to establish a communication link, the terminal performs the VIN code reading mode;
[0155] Specifically, after the second VIN code reading mode is determined as the terminal reading VIN code mode, wait for the terminal to issue an instruction to establish a communication link. If the terminal receives an instruction to establish a communication link, the terminal starts executing the VIN code reading mode.
[0156] Please refer to FIG9 again, which is a detailed flowchart of step S606 in FIG6 ;
[0157] As shown in FIG9 , step S606: if the terminal receives an instruction to establish a communication link, the terminal performs a VIN code reading mode, including:
[0158] Step S661: establishing a communication link according to the instruction to establish a communication link;
[0159] Specifically, in terminal VIN code reading mode, the terminal serves as the host computer for the vehicle communication device. The vehicle communication device receives a communication link establishment instruction from the terminal. Note that this communication link establishment instruction is issued by the user controlling the terminal based on the vehicle's brand. The communication link establishment instruction includes the pin number, baud rate, and bus protocol. Upon receiving the communication link establishment instruction, the vehicle communication device establishes a communication link with the vehicle's electronic control unit based on the pin number, baud rate, and bus protocol.
[0160] Step S662: receiving the VIN code reading instruction sent by the host computer;
[0161] Specifically, after establishing a communication link between the automobile communication device and the automobile electronic control unit, an instruction for reading the VIN code sent by the host computer is received.
[0162] Step S663: sending the VIN code reading instruction to the vehicle electronic control unit via the communication link, so that the vehicle electronic control unit returns a second VIN code according to the VIN code reading instruction;
[0163] Specifically, according to the instruction for reading the VIN code issued by the host computer, the instruction for reading the VIN code is sent to the vehicle electronic control unit through the communication link, so that after receiving the instruction for reading the VIN code, the vehicle electronic control unit returns the second VIN code to the vehicle communication device, and the vehicle communication device then sends the second VIN code to the host computer.
[0164] In this embodiment, the difference between the server VIN code reading mode and the terminal VIN code reading mode is that when the host computer is a server, it is necessary to try each vehicle brand profile in the vehicle brand profile list one by one. When the host computer is a terminal, the user selects the vehicle brand on the terminal to enter the brand diagnostic page, and then clicks the button to automatically read the VIN code to trigger the second VIN code reading mode. Therefore, the vehicle brand is unique. Simply establish a communication link according to the instruction and send the instruction to read the VIN code of the vehicle brand to the vehicle electronic control unit to obtain the second VIN code.
[0165] To sum up, the advantage of the server-based VIN code reading mode is that it can obtain the car's VIN code even when the car's brand is unknown. In addition, the server-based VIN code reading mode does not require the user to select the vehicle brand and click the button to automatically read the VIN code, which reduces user operations and is more intelligent. The terminal-based VIN code reading mode requires the above operations, which is equivalent to the car's brand being known. Its advantage is that it can improve the efficiency of obtaining the car's VIN code, but its disadvantage is that it is not intelligent enough.
[0166] In an embodiment of the present application, a VIN code reading method is provided, which is applied to an automotive communication device, wherein the automotive communication device is communicatively connected to a host computer. The VIN code reading method includes: upon powering on the automotive communication device, activating a first VIN code reading mode of the automotive communication device, and in the first VIN code reading mode, reading a first VIN code according to a pre-set instruction within the automotive communication device; if the first VIN code is not read, and upon receiving an instruction from the host computer to establish a communication link or to terminate the first VIN code reading mode, activating a second VIN code reading mode, and in the second VIN code reading mode, reading a second VIN code based on the vehicle brand. By activating the first VIN code reading mode of the automotive communication device upon powering on to read the first VIN code, and if the first VIN code is not read, executing the second VIN code reading mode to read the second VIN code, the present application can reduce manual operations by the user and improve the efficiency of VIN code reading.
[0167] Please refer to FIG10 again, which is a schematic diagram of the structure of a VIN code reading device provided in an embodiment of the present application;
[0168] The VIN code reading device is applied to automobile communication equipment. Specifically, the VIN code reading device is applied to one or more processors of the automobile communication equipment.
[0169] As shown in FIG10 , the VIN code reading device 1000 includes:
[0170] The first VIN code reading unit 1001 is used to start the first VIN code reading mode of the automobile communication device when the automobile communication device is powered on, and read the first VIN code according to the instructions preset in the automobile communication device in the first VIN code reading mode;
[0171] The second VIN code reading unit 1002 is used to start the second VIN code reading mode if the first VIN code is not read and receives an instruction from the host computer to establish a communication link or an instruction to stop the first VIN code reading mode, and read the second VIN code according to the vehicle brand in the second VIN code reading mode.
[0172] In the embodiment of the present application, the first VIN code reading unit 1001 is specifically used to:
[0173] Execute forced VIN code reading mode;
[0174] After executing the forced VIN code reading mode, the fast VIN code reading mode is executed cyclically;
[0175] During the execution of the forced VIN code reading mode and the fast VIN code reading mode, continuously detecting whether the VIN code reading end condition is met, wherein the VIN code reading end condition includes reading the VIN code, or receiving an instruction from the host computer to establish a communication link, or receiving an instruction from the host computer to stop the first VIN code reading mode, or the vehicle communication device is disconnected from the vehicle diagnostic interface;
[0176] If the VIN code reading end condition is met, the first VIN code reading mode ends.
[0177] In the embodiment of the present application, the second VIN code reading unit 1002 is specifically used to:
[0178] When the host computer is a server, the second VIN code reading mode is determined to be the server VIN code reading mode; if an instruction to stop the first VIN code reading mode is received from the server, the server VIN code reading mode is executed;
[0179] When the host computer is a terminal, the second VIN code reading mode is determined to be the terminal VIN code reading mode; if an instruction to establish a communication link sent by the terminal is received, the terminal VIN code reading mode is executed.
[0180] In the embodiments of the present application, the VIN code reading device can also be constructed by hardware devices. For example, the VIN code reading device can be constructed by one or more chips, and the chips can work in coordination with each other to complete the VIN code reading methods described in the above embodiments. For another example, the VIN code reading device can also be constructed by various logic devices, such as a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), a single-chip microcomputer, an ARM (Acorn RISC Machine) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination of these components.
[0181] The VIN code reading device in the embodiments of the present application can be a device, or a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. For example, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. The non-mobile electronic device can be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine, or a self-service machine, etc., and the embodiments of the present application do not specifically limit this.
[0182] The VIN code reading device in the embodiment of the present application can be a device having an operating system. The operating system can be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0183] The VIN code reading device provided in the embodiment of the present application can implement each process implemented in Figure 2. To avoid repetition, it will not be described here.
[0184] It should be noted that the aforementioned VIN code reading device can execute the VIN code reading method provided in the embodiments of this application and has the corresponding functional modules and beneficial effects of executing the method. For technical details not fully described in the embodiments of the VIN code reading device, reference can be made to the VIN code reading method provided in the aforementioned embodiments.
[0185] In an embodiment of the present application, a VIN code reading device is provided, including: a first VIN code reading unit 1001, which is used to start the first VIN code reading mode of the automobile communication device when the automobile communication device is powered on, and read the first VIN code in the first VIN code reading mode according to the instructions preset in the automobile communication device; a second VIN code reading unit 1002, which is used to start the second VIN code reading mode if the first VIN code is not read and receives an instruction from the host computer to establish a communication link or an instruction to stop the first VIN code reading mode, and read the second VIN code according to the vehicle brand in the second VIN code reading mode. This application can reduce the user's manual operation and improve the efficiency of reading VIN codes.
[0186] Please refer to FIG11 again, which is a schematic structural diagram of an automotive communication device provided by an embodiment of the present application;
[0187] As shown in Figure 11, the automobile communication device 10 includes one or more processors 101 and a memory 102. Figure 11 takes one processor 101 as an example.
[0188] The processor 101 and the memory 102 may be connected via a bus or other means. FIG11 takes the bus connection as an example.
[0189] The processor 101 is used to provide computing and control capabilities to control the automotive communication device 10 to perform corresponding tasks, for example, controlling the automotive communication device 10 to perform the VIN code reading method in any of the above method embodiments, including: when the automotive communication device is powered on, starting a first VIN code reading mode of the automotive communication device, and reading the first VIN code according to a preset instruction in the first VIN code reading mode in the automotive communication device; if the first VIN code is not read, and an instruction to establish a communication link or an instruction to terminate the first VIN code reading mode is received from the host computer, starting a second VIN code reading mode, and reading the second VIN code according to the vehicle brand in the second VIN code reading mode.
[0190] When the automobile communication device is powered on, the first VIN code reading mode of the automobile communication device is activated to read the first VIN code. If the first VIN code is not read, the second VIN code reading mode is executed to read the second VIN code to make up for the defect that the first VIN code reading mode cannot read. This application can reduce the user's manual operations and improve the efficiency of reading VIN codes.
[0191] The processor 101 may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), a hardware chip, or any combination thereof; it may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or any combination thereof. The PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.
[0192] The memory 102 is a non-transitory computer-readable storage medium that can be used to store non-transitory software programs, non-transitory computer executable programs and modules, such as the program instructions / modules corresponding to the VIN code reading method in the embodiment of the present application. The processor 101 can implement the VIN code reading method in any of the following method embodiments by running the non-transitory software programs, instructions and modules stored in the memory 102. Specifically, the memory 102 may include a volatile memory (VM), such as a random access memory (RAM); the memory 102 may also include a non-volatile memory (NVM), such as a read-only memory (ROM), a flash memory, a hard disk drive (HDD) or a solid-state drive (SSD) or other non-transitory solid-state storage device; the memory 102 may also include a combination of the above types of memory.
[0193] The memory 102 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other non-volatile solid-state memory device. In some embodiments, the memory 102 may optionally include a memory remotely located relative to the processor 101, and such remote memory may be connected to the processor 101 via a network. Examples of such networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0194] One or more modules are stored in the memory 102. When executed by one or more processors 101, the VIN code reading method in any of the above-mentioned method embodiments is executed, for example, the various steps shown in FIG. 2 described above are executed; the functions of the various modules or units in FIG. 10 may also be realized.
[0195] In the embodiment of the present application, the automobile communication device 10 may also have components such as a wired or wireless network interface and an input / output interface for input and output. The automobile communication device 10 may also include other components for realizing device functions, which will not be described in detail here.
[0196] The present application also provides a non-volatile computer-readable storage medium, such as a memory including program code. The program code can be executed by a processor to perform the VIN code reading method described in the above embodiment. For example, the non-volatile computer-readable storage medium can be a read-only memory (ROM), a random access memory (RAM), a compact disc read-only memory (CDROM), a magnetic tape, a floppy disk, or an optical data storage device.
[0197] The present application also provides a computer program product comprising one or more program codes stored in a non-volatile computer-readable storage medium. A processor of an electronic device reads the program code from the non-volatile computer-readable storage medium and executes the program code to perform the steps of the VIN code reading method provided in the above embodiment.
[0198] Those skilled in the art will understand that all or part of the steps for implementing the above embodiments may be accomplished by hardware, or by hardware related to program code, and the program may be stored in a non-volatile computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk, or an optical disk, etc.
[0199] Through the description of the above embodiments, it is clear to those skilled in the art that each embodiment can be implemented by means of software plus a general hardware platform, or of course by hardware. It is understood by those skilled in the art that all or part of the processes in the above embodiment methods can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above methods. The storage medium can be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
[0200] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Based on the idea of the present application, the technical features in the above embodiments or different embodiments can also be combined, the steps can be implemented in any order, and there are many other variations in different aspects of the present application as mentioned above. For the sake of simplicity, they are not provided in detail. Although the present application has been described in detail with reference to the aforementioned embodiments, ordinary technicians in this field should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for reading a VIN code, characterized in that: Applied to an automobile communication device, the automobile communication device is connected to a host computer for communication, and the method includes: When the automobile communication device is powered on, starting a first VIN code reading mode of the automobile communication device, and in the first VIN code reading mode, reading a first VIN code according to an instruction preset in the automobile communication device; If the first VIN code is not read, and an instruction to establish a communication link or to stop the first VIN code reading mode is received from the host computer, the second VIN code reading mode is started, and in the second VIN code reading mode, the second VIN code is read according to the vehicle brand.
2. The method according to claim 1, characterized in that The automobile communication device is connected to a vehicle diagnostic interface, the first VIN code reading mode includes a forced VIN code reading mode and a fast VIN code reading mode, and the first VIN code reading mode of the automobile communication device is started, including: Execute the forced VIN code reading mode; After executing the forced VIN code reading mode, cyclically executing the fast VIN code reading mode; During the execution of the forced VIN code reading mode and the fast VIN code reading mode, continuously detecting whether a condition for ending VIN code reading is met, wherein the condition for ending VIN code reading includes reading the VIN code, or receiving an instruction from the host computer to establish a communication link, or receiving an instruction from the host computer to stop the first VIN code reading mode, or the automobile communication device is disconnected from the vehicle diagnostic interface; If the VIN code reading end condition is met, the first VIN code reading mode is ended.
3. The method according to claim 2, characterized in that The executing the forced VIN code reading mode includes: Acquire a first bus protocol list, wherein the first bus protocol list includes a plurality of first bus protocols; Obtaining a forced read instruction list, wherein the forced read instruction list includes a plurality of forced read instructions, and the forced read instructions correspond one to one to the first bus protocol; sending a forced read instruction corresponding to the first bus protocol on at least two of the first bus protocols in sequence according to a preset bus protocol sequence, wherein the forced read instruction is used to read a first VIN code; If the first VIN code is read, the VIN code reading process ends.
4. The method according to claim 2, characterized in that: The loop executes the fast VIN code reading mode, including: Acquire a second bus protocol list, wherein the second bus protocol list includes a second bus protocol; Acquire a fast read instruction list, wherein the fast read instruction list includes at least one fast read instruction, and the fast read instruction corresponds to the second bus protocol one by one; cyclically sending the fast read instructions in the fast read instruction list on the second bus protocol; The method further comprises: If the first VIN code is not read in the quick VIN code reading mode, and an instruction to establish a communication link or to stop the first VIN code reading mode is received from the host computer, the first VIN code reading mode is stopped, and the second VIN code reading mode is executed to read the second VIN code.
5. The method according to claim 1, characterized in that The second VIN code reading mode includes a terminal VIN code reading mode and a server VIN code reading mode, and the method further includes: When the host computer is a server, the second VIN code reading mode is determined as the server VIN code reading mode; if an instruction to stop the first VIN code reading mode is received from the server, the server VIN code reading mode is executed; When the host computer is a terminal, the second VIN code reading mode is determined as the terminal VIN code reading mode; if an instruction for establishing a communication link issued by the terminal is received, the terminal VIN code reading mode is executed.
6. The method according to claim 5, characterized in that The server is pre-set with a list of vehicle brand configuration files, and the execution of the server VIN code reading mode includes: Acquire the vehicle brand profile list, wherein the vehicle brand profile list includes at least one vehicle brand profile; Traverse the vehicle brand configuration file list to obtain the current vehicle brand configuration file; Reading the second VIN code according to the current vehicle brand configuration file, and determining whether the second VIN code is read; If the second VIN code is not read, obtaining the next vehicle brand configuration file in the vehicle brand configuration file list; If the second VIN code is read, the VIN code reading process ends.
7. The method according to claim 6, characterized in that The vehicle brand configuration file includes an instruction for establishing a communication link, an instruction for entering a system, an instruction for reading a VIN code, and an execution order and timing parameters between the instruction for establishing a communication link, the instruction for entering a system, and the instruction for reading a VIN code. The step of reading the second VIN code according to the current vehicle brand configuration file includes: The second VIN code is read according to the instructions for establishing a communication link, the instructions for entering the system, the instructions for reading the VIN code, and the execution order and timing parameters among the instructions for establishing a communication link, the instructions for entering the system, and the instructions for reading the VIN code.
8. The method according to claim 5, characterized in that The executing the terminal reading VIN code mode includes: Establishing a communication link according to the instruction for establishing a communication link, wherein the instruction for establishing a communication link includes communication attributes, and the communication attributes include pins, baud rates, and bus protocols; Receive the instruction of reading VIN code sent by the host computer; The instruction for reading the VIN code is sent to the automobile electronic control unit through the communication link, so that the automobile electronic control unit returns the second VIN code according to the instruction for reading the VIN code.
9. An automobile communication device, characterized in that: include: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the VIN code reading method according to any one of claims 1 to 8.
10. A computer-readable storage medium, characterized in that: The storage medium stores a computer program or instruction. When the computer program or instruction is executed, the method for reading a VIN code according to any one of claims 1 to 8 is implemented.
Citation Information
Patent Citations
Method for automatic selection of automotive diagnostic software
CN108459576A
Automobile type intelligent identification system and method
CN112987676A
Method for quickly acquiring frame number of vehicle
CN116361169A
VIN (Vehicle Identification Number) reading method, automobile communication equipment and storage medium
CN117579420A
Method for obtaining vehicle diagnosis software, server and diagnosis device
US20220308570A1