CN116938627A - Vehicle VIN code and configuration word writing method and writing tool - Google Patents

Vehicle VIN code and configuration word writing method and writing tool Download PDF

Info

Publication number
CN116938627A
CN116938627A CN202310649133.0A CN202310649133A CN116938627A CN 116938627 A CN116938627 A CN 116938627A CN 202310649133 A CN202310649133 A CN 202310649133A CN 116938627 A CN116938627 A CN 116938627A
Authority
CN
China
Prior art keywords
data
writing
ecu
vin code
configuration word
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
CN202310649133.0A
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.)
Dongfeng Motor Group Co Ltd
Original Assignee
Dongfeng Motor Group 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 Dongfeng Motor Group Co Ltd filed Critical Dongfeng Motor Group Co Ltd
Priority to CN202310649133.0A priority Critical patent/CN116938627A/en
Publication of CN116938627A publication Critical patent/CN116938627A/en
Pending legal-status Critical Current

Links

Classifications

    • 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
    • B60R16/023Electric 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 for transmission of signals between vehicle parts or subsystems
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C5/00Registering or indicating the working of vehicles
    • G07C5/08Registering or indicating performance data other than driving, working, idle, or waiting time, with or without registering driving, working, idle or waiting time
    • G07C5/0808Diagnosing performance data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40169Flexible bus arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/12Applying verification of the received information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40208Bus networks characterized by the use of a particular bus standard
    • H04L2012/40215Controller Area Network CAN
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40267Bus for use in transportation systems
    • H04L2012/40273Bus for use in transportation systems the transportation system being a vehicle
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2209/00Additional information or applications relating to cryptographic mechanisms or cryptographic arrangements for secret or secure communication H04L9/00
    • H04L2209/84Vehicles

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mechanical Engineering (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention discloses a vehicle VIN code and configuration word writing method, which comprises the following steps: sending an extended diagnosis session request to the ECU through a refreshing tool, keeping the diagnosis equipment online, and sending a seed request to the ECU through a security access verification function; the seed is a safety access response message; the ECU sends seeds to the brushing tool; after the seeds are obtained by the brushing tool, converting the obtained seeds into keys according to a conversion algorithm and sending the keys to the ECU; the secret key is an algorithm parameter for starting a brushing function; after the key is legal and the diagnosis service is started, writing data, and refreshing according to message data of a preset vehicle VIN code and/or configuration word; and reading an actual vehicle VIN code and/or a configuration word after the writing, comparing the actual vehicle VIN code and/or the configuration word with a preset vehicle VIN code and/or a preset configuration word, and judging whether the writing is successful or not. The method is efficient and convenient, can ensure the accuracy of writing, can greatly improve the efficiency and reduce the research and development cost.

Description

Vehicle VIN code and configuration word writing method and writing tool
Technical Field
The invention belongs to the field of vehicle control, and particularly relates to a vehicle VIN code and configuration word refreshing method and a refreshing tool.
Background
Along with the popularization of the intellectualization, the electric and the internet connection of the automobiles, the same automobile types researched and developed by automobile manufacturers can generate various different automobile type configurations according to different demands of users, such as pure electric type, mixed type, selected brand sound or selected 360-degree looking-around image functions and the like, and in the research and development process, in order to ensure the universality of hardware, the various automobile types with different configurations can use the same hardware equipment, so that the different automobile type configurations are distinguished by the form of software for writing the hardware. The CAN network takes a significant position in automobile communication, and generally, a standard CAN message of one frame CAN have 64 bit positions for transmitting signals for function definition distinction, so that the vehicle type configuration distinction is carried out in a CAN message writing mode. The last step of the car off-line in the production line is to brush the software of the car, including writing the VIN code of the car and the car type configuration words of each car. The CAN diagnosis communication process in the prior art is complex and has low accuracy.
Disclosure of Invention
The invention aims to provide a vehicle VIN code and configuration word brushing method and a vehicle VIN code and configuration word brushing tool, which are efficient and convenient, can ensure the accuracy of writing, can greatly improve the efficiency and reduce the research and development cost.
In order to solve the technical problems, the technical scheme of the invention is as follows: a method for swiping vehicle VIN code and configuration word, comprising the steps of:
sending an extended diagnosis session request to the ECU through a refreshing tool, keeping the diagnosis equipment online, and sending a seed request to the ECU through a security access verification function; the seed is a safety access response message;
the ECU sends seeds to the brushing tool;
after the seeds are obtained by the brushing tool, converting the obtained seeds into keys according to a conversion algorithm and sending the keys to the ECU; the secret key is an algorithm parameter for starting a brushing function;
after the key is legal and the diagnosis service is started, writing data, and refreshing according to message data of a preset vehicle VIN code and/or configuration word;
reading an actual vehicle VIN code and/or a configuration word after the writing, comparing the actual vehicle VIN code and/or the configuration word with a preset vehicle VIN code and/or a preset configuration word, and judging whether the writing is successful or not; the system comprises an extended diagnosis session request, on-line diagnosis equipment, a security access verification function, a conversion algorithm, data writing and data reading, wherein the data writing and reading are all the preset functions of a brushing tool.
The writing method of the medium and long message for writing data comprises the following steps: the method comprises the steps that first frame data are sent to an ECU through a refreshing tool, the ECU sends corresponding flow control frames to the refreshing tool according to the data length of the first frame data, the refreshing tool continuously sends continuous frames to the ECU according to the flow control frame requirements until the next flow control frame is received, and the continuous frames are continuously sent according to the flow control frame requirements until writing is completed; the flow control frame requirements include at least a number of message frames for consecutive frames and a transmission time interval between consecutive frames.
The extended diagnostic session request follows the UDS diagnostic protocol.
The vehicle VIN code and/or the configuration word are written in compliance with the UDS diagnostic protocol and the application layer and network layer data interaction rules of the car CAN network communication.
The long message is a message which cannot be written by only one frame of standard frame data in the data writing process.
There is also provided a vehicle VIN code and configuration word swiping tool, connected with the ECU, wherein,
sending an extended diagnosis session request to the ECU through a refreshing tool, keeping the diagnosis equipment online, and sending a seed request to the ECU through a security access verification function; the seed is a safety access response message;
the ECU sends seeds to the brushing tool;
after the seeds are obtained by the brushing tool, converting the obtained seeds into keys according to a conversion algorithm and sending the keys to the ECU; the secret key is an algorithm parameter for starting a brushing function;
after the key is legal and the diagnosis service is started, writing data, and refreshing according to message data of a preset vehicle VIN code and/or configuration word;
reading an actual vehicle VIN code and/or a configuration word after the writing, comparing the actual vehicle VIN code and/or the configuration word with a preset vehicle VIN code and/or a preset configuration word, and judging whether the writing is successful or not;
the system comprises an extended diagnosis session request, on-line diagnosis equipment, a security access verification function, a conversion algorithm, data writing and data reading, wherein the data writing and reading are all the preset functions of a brushing tool.
The writing method of the medium and long message for writing data comprises the following steps: the method comprises the steps that first frame data are sent to an ECU through a refreshing tool, the ECU sends corresponding flow control frames to the refreshing tool according to the data length of the first frame data, the refreshing tool continuously sends continuous frames to the ECU according to the flow control frame requirements until the next flow control frame is received, and the continuous frames are continuously sent according to the flow control frame requirements until writing is completed; the flow control frame requirements include at least a number of message frames for consecutive frames and a transmission time interval between consecutive frames.
The extended diagnostic session request follows the UDS diagnostic protocol.
The vehicle VIN code and/or the configuration word are written in compliance with the UDS diagnostic protocol and the application layer and network layer data interaction rules of the car CAN network communication.
The brushing tool is connected with the ECU through a CAN bus.
The data byte length of the standard frame is 8 bytes.
There is also provided a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method as claimed in any one of the preceding claims when the computer program is executed.
There is also provided a computer readable storage medium having stored thereon a computer program, characterized in that the computer program when executed by a processor implements the steps of the method according to any of the preceding claims.
Compared with the prior art, the invention has the beneficial effects that:
1) The invention simplifies the UDS diagnosis writing step, selects the configuration or VIN code to be written, realizes the function of one-key writing, automatically performs the writing verification, and improves the writing efficiency and the writing accuracy and convenience.
2) The invention has universality, supports the function of importing the vehicle type configuration file, can edit the requirement configuration file, and can cope with various development changes in the development period without changing the program.
3) The invention is based on USB-CAN hardware equipment, the hardware equipment has low price, and the development cost is reduced.
Drawings
FIG. 1 is a schematic diagram of an embodiment of the present invention;
FIG. 2 is a schematic diagram of the CAN message data transceiving principle in the embodiment of the invention;
FIG. 3 is a schematic diagram of a long message writing function according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of an operation interface of a brushing tool according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a GUI interface and a functional principle logic of a writing tool according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present invention more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention. In addition, the technical features of the embodiments of the present invention described below may be combined with each other as long as they do not collide with each other.
Embodiment one:
the technical scheme of the invention is as follows: a method for swiping vehicle VIN code and configuration word, comprising the steps of:
sending an extended diagnosis session request to the ECU through a refreshing tool, keeping the diagnosis equipment online, and sending a seed request to the ECU through a security access verification function; the seed is a safety access response message;
the ECU sends seeds to the brushing tool;
after the seeds are obtained by the brushing tool, converting the obtained seeds into keys according to a conversion algorithm and sending the keys to the ECU;
the ECU judges whether the secret key is legal or not, if so, the ECU unlocks and starts the diagnosis service; otherwise, the ECU is locked;
after the diagnostic service is started, the refreshing tool performs data writing, and the refreshing tool refreshes according to message data of a preset vehicle VIN code and/or a configuration word, and reads the data of the vehicle VIN code and/or the configuration word after refreshing;
the ECU compares the read VIN code or configuration word with the written message data to judge whether the refreshing is successful;
the system comprises an extended diagnosis session request, on-line diagnosis equipment, a security access verification function, a conversion algorithm, data writing and data reading, wherein the data writing and reading are all the preset functions of a brushing tool.
The writing method of the medium and long message for writing data comprises the following steps: the method comprises the steps that first frame data are sent to an ECU through a refreshing tool, the ECU sends corresponding flow control frames to the refreshing tool according to the data length of the first frame data, the refreshing tool continuously sends continuous frames to the ECU according to the flow control frame requirements until the next flow control frame is received, and the continuous frames are continuously sent according to the flow control frame requirements until writing is completed; the flow control frame requirements include at least a number of message frames for consecutive frames and a transmission time interval between consecutive frames.
The extended diagnostic session request follows the UDS diagnostic protocol.
The vehicle VIN code and/or the configuration word are written in compliance with the UDS diagnostic protocol and the application layer and network layer data interaction rules of the car CAN network communication.
There is also provided a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method as claimed in any one of the preceding claims when the computer program is executed.
There is also provided a computer readable storage medium having stored thereon a computer program, characterized in that the computer program when executed by a processor implements the steps of the method according to any of the preceding claims.
Embodiment two:
there is also provided a vehicle VIN code and configuration word swiping tool, the swiping tool being wirelessly connected to an ECU, wherein,
sending an extended diagnosis session request to the ECU through a refreshing tool, keeping the diagnosis equipment online, and sending a seed request to the ECU through a security access verification function; the seed is a safety access response message;
the ECU sends seeds to the brushing tool;
after the seeds are obtained by the brushing tool, converting the obtained seeds into keys according to a conversion algorithm and sending the keys to the ECU;
the ECU judges whether the secret key is legal or not, if so, the ECU unlocks and starts the diagnosis service; otherwise, the ECU is locked;
after the diagnostic service is started, the refreshing tool performs data writing, and the refreshing tool refreshes according to message data of a preset vehicle VIN code and/or a configuration word, and reads the data of the vehicle VIN code and/or the configuration word after refreshing;
the ECU compares the read VIN code or configuration word with the written message data to judge whether the refreshing is successful;
the system comprises an extended diagnosis session request, on-line diagnosis equipment, a security access verification function, a conversion algorithm, data writing and data reading, wherein the data writing and reading are all the preset functions of a brushing tool.
The writing method of the medium and long message for writing data comprises the following steps: the method comprises the steps that first frame data are sent to an ECU through a refreshing tool, the ECU sends corresponding flow control frames to the refreshing tool according to the data length of the first frame data, the refreshing tool continuously sends continuous frames to the ECU according to the flow control frame requirements until the next flow control frame is received, and the continuous frames are continuously sent according to the flow control frame requirements until writing is completed; the flow control frame requirements include at least a number of message frames for consecutive frames and a transmission time interval between consecutive frames.
The extended diagnostic session request follows the UDS diagnostic protocol.
The vehicle VIN code and/or the configuration word are written in compliance with the UDS diagnostic protocol and the application layer and network layer data interaction rules of the car CAN network communication.
Description of the functional principle
The function library of CANalyst-II hardware equipment of core creation technology and a function library of a secondary development library ZLG provided by the hardware equipment and an interface provided in a data structure are called through a python program, so that the functions of reading messages and sending messages from a CAN bus are realized. In the Python application program, the configuration and the corresponding configuration word message which are imported are CAN messages to be sent. The VIN code and configuration word are written in compliance with the UDS diagnostic protocol and the data interaction rules of the application layer and the network layer. Firstly, an extended diagnosis session request (SID=0x10) is sent according to a UDS protocol, then the diagnosis equipment is kept online (SID=0x3E), through security access verification (SID=0x27), a client (a diagnostic instrument or the tool) sends a seed request in the security access process, a server (ECU) sends a seed, the client converts the obtained seed into a secret key according to an encryption algorithm of a manufacturer after obtaining the seed, the key is sent to the client, the server receives the secret key and judges whether the secret key is legal or not, if the secret key is legal, the server is unlocked to perform diagnosis service, and otherwise the server is locked. After the diagnostic service is normally started, data writing (long message writing principle is shown below) can be performed through the 2E service, message data of the configuration words and the VIN codes are written according to the method, and the written VIN codes or vehicle type configuration words are read according to manufacturer definition through the diagnostic function of reading data (SID=0x22) after writing. And comparing the data with written message data to judge whether the writing is successful. The principle flow of the core is shown in figure 1.
CAN message data receiving and transmitting principle
CANalyst-II hardware equipment and a ZLG secondary development function library control CAN.dll provided by the CANalyst-II hardware equipment provide interface functions for development of a CAN signal simulation tool of the vehicle controller, and CAN messages are received and sent by calling the provided interface functions. As shown in fig. 2, in order to realize the transmission and reception of CAN messages, first, a hardware type parameter (vci_usbcan2=4) needs to be defined in development, and a structure body (vci_BOARD_INFO) contains device information of a USB-CAN serial interface card. The structure will be filled in the VCI_ReadBoard info function. CAN frame structures (vci_can_obj), i.e., 1 structure represents the data structure of one frame. In the Transmit function vci_transmit and the Receive function vci_receive are used to Transmit CAN information frames. And the VIC initconfig structure defines the configuration of the initialization CAN. The structure will be filled in the vci_initcan function, i.e. this structure variable is filled in before initialization. In the function we call the VCI_OpenDevice function open device whose DecIndex parameters 0 and 1 CAN be used to set the two channels of CAN hardware. The device starts and calls the VCI_InitCan to initialize the appointed CAN channel, fills the VIC_INIT_CONFIG structure body, and CAN set the baud rate, the sending mode and the like by setting parameters in the CAN channel, thereby meeting the development requirements. After the CAN channel is initialized, the VCI_GetReeiveNum is called to acquire the data of the CAN buffer area, and the CAN message CAN be acquired by reading the data in the CAN frame structure body through the CAN frame structure body of the VCI_receiving receiving buffer area. On the contrary, after the CAN data message is constructed, the CAN data message is initialized to be a CAN frame structure body, and then is transmitted through a VCI_Transmit function, and CAN be transmitted to a CAN bus through a CAN channel, so that the receiving and transmitting of the CAN message are realized. The CAN hardware equipment comprises a left end, a right end, a left end, a right end and a CAN bus, wherein a USB interface is provided at the left end and CAN be connected to a computer, and two CAN channels at the right end are selected to be connected with the CAN bus through a CAN_H line and a CAN_L line.
Configuration word file import and VIN code and configuration word transmission principle
The function of importing file data is realized by adding a menu button for importing configuration files on a GUI interface of the tool. The tool reads the configuration file by calling xlrd library function of Python, stores the read configuration options and corresponding messages, and stores the read results in a dictionary of configuration options, for example: config_subject= { E2:0102030405060708090A 0B 0C 0D 0E 0F; e3:02
0000000000000000000000; e2HEV 0300000000000000 … }, transmitting all the identified configuration options to a drop-down option box of the GUI interface, wherein the configuration options comprise vehicle VIN codes, E2-, E3 and other vehicle types, selecting the vehicle VIN codes when writing the VIN codes, inputting 17-bit VIN codes in the lower vehicle VIN code box, clicking to start writing, and starting the writing function of the VIN codes. When writing configuration words, the corresponding configuration words are selected in the drop-down frame, and then the writing is started by clicking.
The GUI interface selects the configuration to be written, and clicks a button to start writing. The selected data are identified in the tool program, and corresponding value data are found in the config_subject dictionary through key values, namely the CAN message to be written. The data writing is the process of CAN message transmission, and the long message is transmitted frame by frame in the form of standard frame, wherein the long message is the message which cannot be written by only one frame of standard frame data in the data writing process; in this embodiment, the data byte length of one standard frame is 8 bytes. For example, we select E2 in the drop-down box, and identify the message corresponding to the configuration as: 0102030405060708090A 0B 0C 0D 0E 0F, the long message is converted into a standard frame format of 16 system type defined by the CAN message through a hex function. And secondly, constructing a first frame message beginning with 1 according to the data transmission principle of the network layer and the application layer data long message, such as: [10102E 0102030405] wherein the byte of this section 010 is 16 in length as the data byte to be written. 2E is the service number of the written data, the last 5 bytes are the first five bits of the data, after the tool sends the first frame of data through VCI_Transmit, the server (ECU) will judge and send the corresponding flow control frame according to the length of the data to be received, for example, the flow control frame is: 300805
000000000000, 08, BS, indicates that 8 frame messages are allowed to be continuously transmitted, and 05, STmin, indicates that the time interval between consecutive frames is 5ms. After receiving the flow control frame, the data left in the first frame is sent according to 21060708090A 0B 0C 0D,220E 0F FF FF FF FF FF …, FF is the supplementary data, the data is sent according to the rule, after each continuous frame is sent, the data is sent again according to the flow control frame requirement after the next flow control frame is received, and the data is sent until the data is sent. Thereby realizing the function of writing long messages. The transmission principle is as shown in fig. 3.
GUI interface display and function implementation principle
The GUI interface display is a display interface designed by utilizing QTdesigner, and the menu bars comprise two menu bars of equipment operation and loading configuration files, wherein the equipment operation is divided into equipment opening and equipment closing functions, and the functions are used for controlling connection and disconnection of CAN equipment. The loading configuration file can dynamically update the configuration word file, analyze the file and transmit all configuration items to the option of the drop-down frame for selection. In writing the vehicle VIN code, the drop-down box defaults to select the vehicle VIN code without importing the configuration file, and the 17-bit VIN code to be written is entered in the lower VIN code entry box. After the vehicle type configuration word or VIN code to be refreshed is selected, the device is opened, the refresh can be performed by clicking to start writing, and after the refresh is completed, automatic verification popup window prompt refresh success or refresh failure can be performed. The GUI interface and the functional principle logic of the tool are shown in FIG. 4 and FIG. 5.
It will be readily appreciated by those skilled in the art that the foregoing description is merely a preferred embodiment of the invention and is not intended to limit the invention, but any modifications, equivalents, improvements or alternatives falling within the spirit and principles of the invention are intended to be included within the scope of the invention.

Claims (10)

1. A method for refreshing a vehicle VIN code and a configuration word, comprising the steps of:
sending an extended diagnosis session request to the ECU, keeping the diagnosis equipment online, and sending a seed request to the ECU through a security access verification function; the seed is a safety access response message;
after receiving the seeds sent by the ECU, converting the obtained seeds into keys according to a conversion algorithm, sending the keys to the ECU, and judging whether the keys are legal or not by the ECU; the secret key is an algorithm parameter for starting a brushing function;
after the key is legal and the diagnosis service is started, writing data, and refreshing according to message data of a preset vehicle VIN code and/or configuration word;
reading an actual vehicle VIN code and/or a configuration word after the writing, comparing the actual vehicle VIN code and/or the configuration word with a preset vehicle VIN code and/or a preset configuration word, and judging whether the writing is successful or not;
the system comprises an extended diagnosis session request, on-line diagnosis equipment, a security access verification function, a conversion algorithm, data writing and data reading, wherein the data writing and reading are all the preset functions of a brushing tool.
2. The method for refreshing a vehicle VIN code and a configuration word according to claim 1, wherein when the message data of the vehicle VIN code and/or the configuration word belongs to a long message, the writing of the data specifically includes:
transmitting the first frame data to the ECU;
receiving a corresponding flow control frame sent by the ECU according to the data length of the first frame data;
continuously sending continuous frames to the ECU according to the flow control frame requirement until the next flow control frame is received, and continuously sending the continuous frames according to the flow control frame requirement until the writing is completed; the flow control frame requirements include at least a number of message frames for consecutive frames and a transmission time interval between consecutive frames.
3. The method of claim 1, wherein the extended diagnostic session request complies with a UDS diagnostic protocol.
4. The method of claim 1, wherein the vehicle VIN code and/or configuration word are written in compliance with UDS diagnostic protocol and application layer and network layer data interaction rules of car CAN network communication.
5. The method for refreshing VIN code and configuration word of vehicle according to claim 2, wherein the long message is a message which cannot be written by only one frame of standard frame data in the process of writing data.
6. A brushing tool, wherein the brushing tool is connected to the ECU and performs brushing according to a brushing method of the vehicle VIN code and the configuration word according to any one of claims 1 to 5.
7. The brushhead tool of claim 6, wherein the brushhead tool is connected to the ECU via a CAN bus.
8. The tool of claim 6, wherein the standard frame has a data byte length of 8 bytes.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any of claims 1-5 when the computer program is executed.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method according to any of claims 1-5.
CN202310649133.0A 2023-06-01 2023-06-01 Vehicle VIN code and configuration word writing method and writing tool Pending CN116938627A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310649133.0A CN116938627A (en) 2023-06-01 2023-06-01 Vehicle VIN code and configuration word writing method and writing tool

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310649133.0A CN116938627A (en) 2023-06-01 2023-06-01 Vehicle VIN code and configuration word writing method and writing tool

Publications (1)

Publication Number Publication Date
CN116938627A true CN116938627A (en) 2023-10-24

Family

ID=88383375

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310649133.0A Pending CN116938627A (en) 2023-06-01 2023-06-01 Vehicle VIN code and configuration word writing method and writing tool

Country Status (1)

Country Link
CN (1) CN116938627A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117234563A (en) * 2023-11-10 2023-12-15 万帮数字能源股份有限公司 Method and client for upgrading firmware of ECU (electronic control Unit) based on UDS (Universal description service) protocol

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117234563A (en) * 2023-11-10 2023-12-15 万帮数字能源股份有限公司 Method and client for upgrading firmware of ECU (electronic control Unit) based on UDS (Universal description service) protocol
CN117234563B (en) * 2023-11-10 2024-03-22 万帮数字能源股份有限公司 Method and client for upgrading firmware of ECU (electronic control Unit) based on UDS (Universal description service) protocol

Similar Documents

Publication Publication Date Title
US6181994B1 (en) Method and system for vehicle initiated delivery of advanced diagnostics based on the determined need by vehicle
CN116938627A (en) Vehicle VIN code and configuration word writing method and writing tool
JP3491665B2 (en) Remote control device and remote control method
EP1379935B1 (en) Method for authentication of a user on access to a software-based system by means of an access medium
CN111538312B (en) Vehicle remote diagnosis method, system, equipment connector and vehicle connector
CN111427335A (en) Vehicle remote diagnosis method, equipment connector and vehicle connector
CN111651482A (en) Data acquisition method and device
CN106789987A (en) The multi-service of mobile terminal single-sign-on interconnects the method and system of APP
CN107196839A (en) Business data processing method and device
CN113870912A (en) Recording method, device, equipment and storage medium
CN111641938B (en) Wireless pairing connection method and device, host and slave
US20060120390A1 (en) Master node for a lin network
CN111355778B (en) Diagnostic device, vehicle-end device and diagnostic method
CN112241385A (en) MVB communication network card based on PCIE bus and protocol conversion method
JP2003046657A (en) Communication equipment for remote control
CN116155579A (en) Secure communication method, system, storage medium and vehicle
CN112492599B (en) Terminal control method, system, electronic device and storage medium
US20070121670A1 (en) Method for converting, editing and modifying communication protocol
CN104253727A (en) Diagnosis method and system of vehicle LIN (local interconnect network)
CN112039729B (en) Device identification method, server, electronic device, and storage medium
CN116033039B (en) Equipment access method and device, electronic equipment and storage medium
CN114885400B (en) Access management method and system of network equipment
CN106507502A (en) intelligent interactive method and system
CN100576804C (en) Be used to provide the system and method for secure network access
CN118200866A (en) Vehicle control command execution method and device, electronic equipment and storage medium

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