Electronic control unit replacement method and device, equipment and storage medium
During the replacement of electronic control unit, using vehicle information to find the matching encoded data on the server and write it to the new ECU, the problem of the failure of replacement caused by the damaged ECU is solved, and the success rate of replacement is improved .
Patent Information
- Application Number
- CN202411642265.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-15
- Publication Date
- 2025-02-18
AI Technical Summary
In the prior art, electronic control unit (ECU) cannot directly read encoded data when damaged, resulting in replacement failure. How to improve the success rate of encoded data acquisition and thus improve the success rate of ECU replacement has become an urgent problem.
By obtaining vehicle information of the vehicle, when the encoded data cannot be read directly from the electronic control unit, based on the vehicle information, the vehicle model, year and system are used as filter conditions to find whether there is an electronic control unit matching the vehicle corresponding to the target vehicle in the server. The encoded data is written to the new electronic control unit.
The effective replacement of the electronic control unit is realized, and the problem of failure of replacement caused by damage to the original electronic control unit and being unable to directly read the encoded data, which improves the replacement success rate.
Smart Images

Figure CN119473331A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electronic equipment, and in particular to an electronic control unit replacement method, device, equipment and storage medium. Background Art
[0002] The Electronic Control Unit (ECU) is an important part of modern cars. It controls the operation of the engine and various functions of the vehicle. Replacing the ECU can improve the performance and driving experience of the car. In addition, the ECU needs to be replaced when the ECU fails or is damaged. Usually, after the ECU of a car is replaced, the coding information needs to be copied, that is, the information of the original ECU is copied and saved. After the new ECU is replaced, the copied coding information is written to the replaced new ECU. Therefore, how to improve the success rate of coding data acquisition, and then improve the success rate of electronic control unit replacement, is a problem that needs to be solved urgently. Summary of the invention
[0003] In view of this, the purpose of the present invention is to provide an electronic control unit replacement method, device, equipment and storage medium, which can effectively replace the electronic control unit. The specific scheme is as follows:
[0004] In a first aspect, the present application discloses a method for replacing an electronic control unit, comprising:
[0005] Acquire vehicle information of a target vehicle whose electronic control unit is to be replaced;
[0006] Checking the coding data of the original electronic control unit of the target vehicle, if the coding data of the original electronic control unit cannot be successfully read, searching whether there is coding data of the electronic control unit of the matching vehicle corresponding to the target vehicle in the server according to the vehicle information and preset matching conditions; the preset matching conditions include matching conditions of vehicle model, year and system;
[0007] If so, the coding data of the matching vehicle is used as the coding data of the original electronic control unit;
[0008] After the original electronic control unit of the target vehicle is replaced with a new electronic control unit, the coded data of the original electronic control unit is written into the new electronic control unit.
[0009] Optionally, after checking the coding data of the original electronic control unit of the target vehicle, the method further includes:
[0010] If the coded data can be read successfully, the read coded data is encrypted and stored locally, and the encrypted coded data is uploaded to the server.
[0011] Optionally, before uploading the encrypted coded data to the server, the method further includes:
[0012] Display data upload requests through the human-computer interaction interface;
[0013] Receive a request for consent instruction issued by the user through the human-computer interaction interface, and perform the operation of uploading the encrypted encoded data to the server according to the request for consent instruction.
[0014] Optionally, after searching whether the server has the coding data of the electronic control unit of the matching vehicle corresponding to the target vehicle, the method further includes:
[0015] If the encoding data corresponding to the matching vehicle does not exist in the server, a data request order is sent to the order platform based on the vehicle information;
[0016] Receive the coded data sent by the matching vehicle corresponding to the target vehicle according to the data request order, and issue rewards to the user corresponding to the matching vehicle through the order platform; the matching vehicle is used to obtain the data request order from the order platform, and read the coded data of its own electronic control unit according to the data request order.
[0017] Optionally, the receiving the coded data sent by the matching vehicle corresponding to the target vehicle according to the data request order includes:
[0018] The coded data sent by the vehicle diagnostic device of the matching vehicle is received by the vehicle diagnostic device of the target vehicle.
[0019] Optionally, the receiving the coded data sent by the matching vehicle corresponding to the target vehicle according to the data request order includes:
[0020] By querying the server, the coded data uploaded to the server by the matching vehicle according to the data request order is obtained.
[0021] Optionally, before checking the coding data of the original electronic control unit of the target vehicle, the method further includes:
[0022] Initialization state identifier; the identifier is used to characterize the reading method of the coded data;
[0023] Check the encoding data of the original electronic control unit of the target vehicle, including:
[0024] If the coded data of the original electronic control unit can be read successfully, updating the state identifier to the first identifier, so as to directly read the coded data of the original electronic control unit according to the first identifier;
[0025] If the coding data of the original electronic control unit cannot be successfully read, the status identifier is updated to a second identifier so as to search the server for coding data of the electronic control unit of the matching vehicle corresponding to the target vehicle based on the second identifier combined with the vehicle information and preset matching conditions.
[0026] In a second aspect, the present application discloses an electronic control unit replacement device, comprising:
[0027] A vehicle information acquisition module, used to acquire vehicle information of a target vehicle whose electronic control unit is to be replaced;
[0028] A coding data viewing module is used to view the coding data of the original electronic control unit of the target vehicle. If the coding data of the original electronic control unit cannot be successfully read, the coding data of the electronic control unit of the matching vehicle corresponding to the target vehicle is searched in the server according to the vehicle information and preset matching conditions; the preset matching conditions include matching conditions of vehicle model, year and system;
[0029] a coding data determination module, configured to use the coding data of the matching vehicle as the coding data of the original electronic control unit if such coding data exists;
[0030] The coding data writing module is used to write the coding data of the original electronic control unit into the new electronic control unit after the original electronic control unit of the target vehicle is replaced with the new electronic control unit.
[0031] In a third aspect, the present application discloses an electronic device, comprising:
[0032] Memory, used to store computer programs;
[0033] The processor is used to execute the computer program to implement the aforementioned electronic control unit replacement method.
[0034] In a fourth aspect, the present application discloses a computer-readable storage medium for storing a computer program; wherein the computer program implements the aforementioned electronic control unit replacement method when executed by a processor.
[0035] In this application, the vehicle information of the target vehicle to be replaced with the electronic control unit is obtained; the coding data of the original electronic control unit of the target vehicle is checked; if the coding data of the original electronic control unit cannot be successfully read, then according to the vehicle information and the preset matching conditions, the server is searched for the coding data of the electronic control unit of the matching vehicle corresponding to the target vehicle; the preset matching conditions include the matching conditions of the vehicle model, year and system; if it exists, the coding data of the matching vehicle is used as the coding data of the original electronic control unit; after the original electronic control unit of the target vehicle is replaced with a new electronic control unit, the coding data of the original electronic control unit is written into the new electronic control unit. It can be seen that since the coding data of vehicles with the same vehicle model, year and system are the same, by obtaining the vehicle information of the vehicle, when the coding data cannot be directly read from the electronic control unit, according to the vehicle information, the vehicle model, year and system are used as the screening conditions, and the coding data of the electronic control unit corresponding to the target vehicle is checked in the server, and the coding data is written into the new electronic control unit, so as to realize the effective replacement of the electronic control unit, and solve the problem that the original electronic control unit is damaged and the coding data cannot be directly read, resulting in the failure of the replacement of the electronic control unit. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0037] FIG1 is a flow chart of an electronic control unit replacement method provided by the present application;
[0038] FIG2 is a schematic diagram of the structure of an electronic control unit replacement device provided by the present application;
[0039] FIG3 is a structural diagram of an electronic device provided in this application. DETAILED DESCRIPTION
[0040] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0041] In the prior art, the Electronic Control Unit (ECU) is an important part of modern cars, which controls the operation of the engine and various functions of the vehicle; replacing the ECU can improve the performance and driving experience of the car. In addition, the car also needs to replace the ECU when the ECU fails or is damaged. Usually, after the ECU of a car is replaced, it is necessary to copy the coding information, that is, to copy and save the information of the original ECU, and then write the copied coding information to the replaced new ECU after replacing the new ECU. However, if the original ECU is completely damaged at this time, such as being soaked in water and unable to operate, the coding data of the original ECU cannot be obtained, and effective replacement cannot be achieved without writing the coding data into the new ECU. Therefore, how to improve the success rate of obtaining coding data, and then improve the success rate of replacing the ECU, is a problem that needs to be solved urgently.
[0042] The embodiment of the present application discloses a method for replacing an electronic control unit. Referring to FIG1 , the method may include the following steps:
[0043] Step S11: Acquire vehicle information of a target vehicle whose electronic control unit is to be replaced.
[0044] First, obtain the vehicle information of the vehicle that needs to replace the electronic control unit. The information can be obtained through diagnostic equipment. The above vehicle information includes the vehicle identification number (VIN), model information, year information (i.e. production and release year information), system information, etc.
[0045] Step S12: Check the coding data of the original electronic control unit of the target vehicle. If the coding data of the original electronic control unit cannot be successfully read, search the server for the coding data of the electronic control unit of the matching vehicle corresponding to the target vehicle based on the vehicle information and preset matching conditions; the preset matching conditions include matching conditions of vehicle model, year and system.
[0046] Replacing an electronic control unit requires writing the coded data in the original electronic control unit into a new electronic control unit. The simplest way is to directly read the coded data in the original electronic control unit on the target vehicle. However, in many cases, the electronic control unit is replaced because the electronic control unit is damaged, and the coded data cannot be directly read from the original electronic control unit. This embodiment selects a method for obtaining the coded data based on whether the coded data of the original electronic control unit can be successfully read.
[0047] Specifically, if the coded data can be read successfully, the read coded data is encrypted and saved locally, and the encrypted coded data is uploaded to the server. That is, if the coded data can be read, it is directly read from the original electronic control unit, and in order to ensure the security of the coded data, the read coded data is encrypted and saved; at the same time, the encrypted coded data is uploaded to the server so that other vehicles can obtain it from the server when needed. The server contains various types of coded data, which can be uploaded by different vehicles or pre-stored by the administrator.
[0048] In this embodiment, if the coding data cannot be successfully read from the server, the server is queried whether there is matching coding data based on the vehicle information of the target vehicle; it can be understood that if the vehicle model, year and system are the same, the coding data of the vehicle's electronic control unit is also the same, so the coding data of the original electronic control unit is obtained by querying the server whether there is coding data of a matching vehicle.
[0049] In some embodiments, the reading method of the coded data can be achieved through a status identifier. Specifically, before checking the coded data of the original electronic control unit of the target vehicle, it can also include: initializing the status identifier; the identifier is used to characterize the reading method of the coded data; accordingly, checking the coded data of the original electronic control unit of the target vehicle includes: if the coded data of the original electronic control unit can be successfully read, then updating the status identifier to a first identifier, so as to directly read the coded data of the original electronic control unit according to the first identifier; if the coded data of the original electronic control unit cannot be successfully read, then updating the status identifier to a second identifier, so as to search for whether the coded data of the electronic control unit of the matching vehicle corresponding to the target vehicle exists in the server according to the second identifier combined with the vehicle information and the preset matching conditions. For example, the initialization status identifier is 0. If the coded data of the original electronic control unit is successfully read, the status identifier is set to 1. If the coded data of the original electronic control unit cannot be read, the status identifier is set to 2. After replacing the electronic control unit, the status identifier is judged. If the status identifier is 0, it is prompted to replace the original electronic control unit. If the identification status is 1, the local file data is directly obtained, decrypted by the decryption algorithm, and the new electronic control unit data is written. If the identification status is 2, the vehicle of the same model, the same year and matching the same system is searched from the diagnostic platform server to determine whether there is data of the electronic control unit.
[0050] In some embodiments, before uploading the encrypted coded data to the server, the process may further include: displaying a data upload request through a human-computer interaction interface; receiving a request consent instruction issued by a user through the human-computer interaction interface, and performing the operation of uploading the encrypted coded data to the server according to the request consent instruction. That is, in order to ensure user privacy, the user's consent may be sought through the human-computer interaction interface before uploading, and data uploading may be performed with the user's consent.
[0051] Step S13: If it exists, the coding data of the matching vehicle is used as the coding data of the original electronic control unit.
[0052] The matching coding data in the server is used as the coding data of the original electronic control unit, so that the coding data can be written into the new electronic control unit after the new electronic control unit is replaced.
[0053] In some embodiments, after searching the server for the coding data of the electronic control unit of the matching vehicle corresponding to the target vehicle, the process may also include: if the coding data corresponding to the matching vehicle does not exist in the server, sending a data request order to the order platform based on the vehicle information; receiving the coding data sent by the matching vehicle corresponding to the target vehicle according to the data request order, and issuing a reward to the user corresponding to the matching vehicle through the order platform; the matching vehicle is used to obtain the data request order from the order platform, and read the coding data of its own electronic control unit according to the data request order.
[0054] That is, in this embodiment, by constructing an order platform, when the user cannot obtain the coded data from the original electronic control unit and the server, the user can initiate a data request order to the order platform. After seeing the order on the order platform, other vehicle users can accept the order and return the corresponding coded data. Specifically, if the user of other vehicles has entered the vehicle information on the order platform, the data request order can be directly sent to the user of the matching vehicle that matches the target vehicle; if the user has not entered it, the order is public and can be viewed by any user who logs in to the order platform. After accepting the order, the user of the matching vehicle reads the coded data of the electronic control unit of the matching vehicle and sends the data to the target vehicle. After receiving the data, the target vehicle issues a reward to the user corresponding to the matching vehicle through the order platform, such as a transfer.
[0055] In some embodiments, the receiving of the coded data sent by the matching vehicle corresponding to the target vehicle according to the data request order may include: receiving the coded data sent by the vehicle diagnostic device of the matching vehicle through the vehicle diagnostic device of the target vehicle. That is, the target vehicle may directly contact the matching vehicle, through the diagnostic device, or through other devices that can contact.
[0056] In some embodiments, the receiving of the coded data sent by the matching vehicle corresponding to the target vehicle according to the data request order may include: obtaining the coded data uploaded to the server by the matching vehicle according to the data request order by querying the server. That is, after the matching vehicle accepts the order, it uploads the coded data to the server, and the user of the target vehicle can read the coded data from the server after paying.
[0057] Step S14: after replacing the original electronic control unit of the target vehicle with a new electronic control unit, writing the coding data of the original electronic control unit into the new electronic control unit.
[0058] After detecting that the original electronic control unit of the target vehicle is replaced with a new electronic control unit, the acquired coded data is written into the new electronic control unit.
[0059] As can be seen from the above, in this embodiment, the vehicle information of the target vehicle to be replaced with the electronic control unit is obtained; the coding data of the original electronic control unit of the target vehicle is checked; if the coding data of the original electronic control unit cannot be successfully read, then according to the vehicle information and the preset matching conditions, the server is searched for the coding data of the electronic control unit of the matching vehicle corresponding to the target vehicle; the preset matching conditions include the matching conditions of the vehicle model, year and system; if it exists, the coding data of the matching vehicle is used as the coding data of the original electronic control unit; after the original electronic control unit of the target vehicle is replaced with a new electronic control unit, the coding data of the original electronic control unit is written into the new electronic control unit. It can be seen that since the coding data of vehicles with the same vehicle model, year and system are the same, by obtaining the vehicle information of the vehicle, when the coding data cannot be directly read from the electronic control unit, according to the vehicle information, the vehicle model, year and system are used as the screening conditions to check whether the coding data of the electronic control unit of the matching vehicle corresponding to the target vehicle exists in the server, and the coding data is written into the new electronic control unit, so as to realize the effective replacement of the electronic control unit, and solve the problem that the original electronic control unit is damaged and the coding data cannot be directly read, resulting in the failure of the replacement of the electronic control unit.
[0060] Based on the above embodiments, the embodiments of the present application disclose a specific method for replacing an electronic control unit, which is applied to a diagnostic device. The method may include the following steps:
[0061] S201: Obtain vehicle information through diagnostic equipment, including vehicle identification number VIN, model, year, system, etc., and initialize the state flag to 0;
[0062] S202: Before replacing the ECU, read the ECU data and set the status flag according to the data reading result. If the reading is successful, set the status flag 1, encrypt the read coded data through the encryption algorithm and save it to the local file, and automatically upload or ask whether to upload the coded data to the diagnostic platform server. If the reading cannot be done, set the status flag 2.
[0063] S203: After replacing the ECU, read the status identification. If the status identification is 0, it will prompt to replace the old ECU and read the ECU data; if the identification status is 1, directly obtain the local file data, decrypt it through the decryption algorithm, and write the ECU data; if the identification status is 2, search for vehicles of the same model and year from the diagnostic platform server, match the same system, and determine whether there is ECU data;
[0064] S204: If the diagnostic platform server has matching coded data, the data is downloaded and read, and decrypted using a decryption algorithm;
[0065] S205: If the diagnostic platform server does not have matching coding data, an order is initiated according to the vehicle model, year, and system, that is, a request for reading the coding data before replacing the ECU of the same model and system ECU is sent, and the order is waited for.
[0066] S206: The vehicle matching the target vehicle acts as the order taker, receives the order according to the vehicle model, year, and system, reads its own ECU data, and informs the order initiator of the method for sending the coded data. There are two methods for sending the coded data. Method 1 is to transmit the local file to the order initiator, such as directly sending the coded data to the target vehicle through an interrupt device; Method 2 is to upload the data to the diagnostic platform server.
[0067] S207: The order initiator sets the status identifier according to the encoding data sending method, such as setting the status identifier 1 for method 1 and setting the status identifier 2 for method 2;
[0068] S208: The target vehicle reads the status identification again. If the identification status is 1, the local file data is directly obtained, decrypted by the decryption algorithm, and written into the ECU data; if the identification status is 2, the coding data of the vehicle of the same model, year and matching the same system is searched from the diagnostic platform server until the ECU data is successfully written.
[0069] S209: The electronic control unit is replaced.
[0070] As can be seen from the above, in this embodiment, the feature that the coded data of vehicles with the same model, year and system are the same is utilized. By acquiring the vehicle information of the vehicle, when the coded data cannot be directly read from the electronic control unit, the model, year and system are used as screening conditions according to the vehicle information to check whether there is coded data of the electronic control unit of the matching vehicle corresponding to the target vehicle in the server, and the coded data is written into the new electronic control unit to achieve effective replacement of the electronic control unit. If there is no matching coded data on the current server, a data acquisition request is initiated in the form of an order so that it can provide the coded data after receiving the order from the user, which can solve the problem that the original electronic control unit is damaged and the coded data cannot be directly read, resulting in the failure of replacing the electronic control unit.
[0071] Correspondingly, the embodiment of the present application further discloses an electronic control unit replacement device, as shown in FIG2 , the device includes:
[0072] The vehicle information acquisition module 11 is used to acquire the vehicle information of the target vehicle whose electronic control unit is to be replaced;
[0073] The coding data viewing module 12 is used to view the coding data of the original electronic control unit of the target vehicle. If the coding data of the original electronic control unit cannot be successfully read, the coding data of the electronic control unit of the matching vehicle corresponding to the target vehicle is searched in the server according to the vehicle information and the preset matching conditions; the preset matching conditions include the matching conditions of the vehicle model, year and system;
[0074] A coding data determination module 13, configured to use the coding data of the matching vehicle as the coding data of the original electronic control unit if such coding data exists;
[0075] The coding data writing module 14 is used to write the coding data of the original electronic control unit into the new electronic control unit after the original electronic control unit of the target vehicle is replaced with a new electronic control unit.
[0076] As can be seen from the above, in this embodiment, the vehicle information of the target vehicle to be replaced with the electronic control unit is obtained; the coding data of the original electronic control unit of the target vehicle is checked; if the coding data of the original electronic control unit cannot be successfully read, then according to the vehicle information and the preset matching conditions, the server is searched for the coding data of the electronic control unit of the matching vehicle corresponding to the target vehicle; the preset matching conditions include the matching conditions of the vehicle model, year and system; if it exists, the coding data of the matching vehicle is used as the coding data of the original electronic control unit; after the original electronic control unit of the target vehicle is replaced with a new electronic control unit, the coding data of the original electronic control unit is written into the new electronic control unit. It can be seen that since the coding data of vehicles with the same vehicle model, year and system are the same, by obtaining the vehicle information of the vehicle, when the coding data cannot be directly read from the electronic control unit, according to the vehicle information, the vehicle model, year and system are used as the screening conditions to check whether the coding data of the electronic control unit of the matching vehicle corresponding to the target vehicle exists in the server, and the coding data is written into the new electronic control unit, so as to realize the effective replacement of the electronic control unit, and solve the problem that the original electronic control unit is damaged and the coding data cannot be directly read, resulting in the failure of the replacement of the electronic control unit.
[0077] In some specific embodiments, the electronic control unit replacement device may specifically include:
[0078] The coding data reading unit is used to encrypt and save the read coding data locally after checking the coding data of the original electronic control unit of the target vehicle if the coding data can be read successfully, and upload the encrypted coding data to the server.
[0079] In some specific embodiments, the electronic control unit replacement device may specifically include:
[0080] A request display unit, used for displaying a data upload request through a human-computer interaction interface before uploading the encrypted coded data to the server;
[0081] The execution unit is used to receive a request for approval instruction issued by the user through the human-computer interaction interface, and execute the operation of uploading the encrypted encoded data to the server according to the request for approval instruction.
[0082] In some specific embodiments, the electronic control unit replacement device may specifically include:
[0083] A request order sending unit is used to search whether there is coding data of the electronic control unit of the matching vehicle corresponding to the target vehicle in the server, and if the coding data corresponding to the matching vehicle does not exist in the server, send a data request order to the order platform based on the vehicle information;
[0084] A coded data acquisition unit is used to receive the coded data sent by a matching vehicle corresponding to the target vehicle according to the data request order, and to issue rewards to the user corresponding to the matching vehicle through the order platform; the matching vehicle is used to obtain the data request order from the order platform, and read the coded data of its own electronic control unit according to the data request order.
[0085] In some specific embodiments, the coded data acquisition unit may specifically include:
[0086] The first coded data acquisition unit is used to receive the coded data sent by the vehicle diagnostic device of the matching vehicle through the vehicle diagnostic device of the target vehicle.
[0087] In some specific embodiments, the coded data acquisition unit may specifically include:
[0088] The second coded data acquisition unit is used to acquire the coded data uploaded to the server by the matching vehicle according to the data request order by querying the server.
[0089] In some specific embodiments, the encoding data viewing module 12 may specifically include:
[0090] A state identification initialization unit, used to initialize the state identification before checking the coded data of the original electronic control unit of the target vehicle; the identification is used to characterize the reading method of the coded data;
[0091] The coding data viewing module 12 may specifically include:
[0092] A first identification updating unit, configured to update the state identification to a first identification if the coded data of the original electronic control unit can be successfully read, so as to directly read the coded data of the original electronic control unit according to the first identification;
[0093] The second identification updating unit is used to update the status identification to the second identification if the coding data of the original electronic control unit cannot be successfully read, so as to search whether the coding data of the electronic control unit of the matching vehicle corresponding to the target vehicle exists in the server according to the second identification combined with the vehicle information and the preset matching conditions.
[0094] Furthermore, an embodiment of the present application also discloses an electronic device, as shown in FIG3 . The content in the figure cannot be regarded as any limitation on the scope of use of the present application.
[0095] FIG3 is a schematic diagram of the structure of an electronic device 20 provided in an embodiment of the present application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 is used to store a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the electronic control unit replacement method disclosed in any of the aforementioned embodiments.
[0096] In this embodiment, the power supply 23 is used to provide working voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface 25 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.
[0097] In addition, the memory 22, as a carrier for storing resources, can be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon include an operating system 221, a computer program 222, and data 223 including vehicle information, etc. The storage method can be temporary storage or permanent storage.
[0098] The operating system 221 is used to manage and control the hardware devices and computer programs 222 on the electronic device 20, so as to realize the operation and processing of the massive data 223 in the memory 22 by the processor 21, and it can be Windows Server, Netware, Unix, Linux, etc. In addition to including a computer program that can be used to complete the electronic control unit replacement method performed by the electronic device 20 disclosed in any of the aforementioned embodiments, the computer program 222 can further include a computer program that can be used to complete other specific tasks.
[0099] Furthermore, an embodiment of the present application also discloses a computer storage medium, in which computer executable instructions are stored. When the computer executable instructions are loaded and executed by a processor, the steps of the electronic control unit replacement method disclosed in any of the aforementioned embodiments are implemented.
[0100] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0101] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0102] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0103] The above is a detailed introduction to an electronic control unit replacement method, device, equipment and storage medium provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for general technical personnel in this field, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A method for replacing an electronic control unit, characterized in that: include: Acquire vehicle information of a target vehicle whose electronic control unit is to be replaced; Checking the coding data of the original electronic control unit of the target vehicle, if the coding data of the original electronic control unit cannot be successfully read, searching whether there is coding data of the electronic control unit of the matching vehicle corresponding to the target vehicle in the server according to the vehicle information and preset matching conditions; the preset matching conditions include matching conditions of vehicle model, year and system; If so, the coding data of the matching vehicle is used as the coding data of the original electronic control unit; After the original electronic control unit of the target vehicle is replaced with a new electronic control unit, the coded data of the original electronic control unit is written into the new electronic control unit.
2. The method for replacing an electronic control unit according to claim 1, characterized in that: After checking the coding data of the original electronic control unit of the target vehicle, the method further includes: If the coded data can be read successfully, the read coded data is encrypted and stored locally, and the encrypted coded data is uploaded to the server.
3. The method for replacing an electronic control unit according to claim 2, characterized in that: Before uploading the encrypted coded data to the server, the method further comprises: Display data upload requests through the human-computer interaction interface; Receive a request for consent instruction issued by the user through the human-computer interaction interface, and perform the operation of uploading the encrypted encoded data to the server according to the request for consent instruction.
4. The method for replacing an electronic control unit according to claim 1, characterized in that: After checking whether there is coding data of the electronic control unit of the matching vehicle corresponding to the target vehicle in the server, the method further includes: If the encoding data corresponding to the matching vehicle does not exist in the server, a data request order is sent to the order platform based on the vehicle information; Receive the coded data sent by the matching vehicle corresponding to the target vehicle according to the data request order, and issue rewards to the user corresponding to the matching vehicle through the order platform; the matching vehicle is used to obtain the data request order from the order platform, and read the coded data of its own electronic control unit according to the data request order.
5. The method for replacing an electronic control unit according to claim 4, characterized in that: The receiving the coded data sent by the matching vehicle corresponding to the target vehicle according to the data request order includes: The coded data sent by the vehicle diagnostic device of the matching vehicle is received by the vehicle diagnostic device of the target vehicle.
6. The method for replacing an electronic control unit according to claim 4, characterized in that: The receiving the coded data sent by the matching vehicle corresponding to the target vehicle according to the data request order includes: By querying the server, the coded data uploaded to the server by the matching vehicle according to the data request order is obtained.
7. The method for replacing an electronic control unit according to any one of claims 1 to 6, characterized in that: Before checking the coding data of the original electronic control unit of the target vehicle, the method further includes: Initialization state identifier; the identifier is used to characterize the reading method of the coded data; Check the encoding data of the original electronic control unit of the target vehicle, including: If the coded data of the original electronic control unit can be read successfully, updating the state identifier to the first identifier, so as to directly read the coded data of the original electronic control unit according to the first identifier; If the coding data of the original electronic control unit cannot be successfully read, the status identifier is updated to a second identifier so as to search the server for coding data of the electronic control unit of the matching vehicle corresponding to the target vehicle based on the second identifier combined with the vehicle information and preset matching conditions.
8. An electronic control unit replacement device, characterized in that: include: A vehicle information acquisition module, used to acquire vehicle information of a target vehicle whose electronic control unit is to be replaced; A coding data viewing module is used to view the coding data of the original electronic control unit of the target vehicle. If the coding data of the original electronic control unit cannot be successfully read, the coding data of the electronic control unit of the matching vehicle corresponding to the target vehicle is searched in the server according to the vehicle information and preset matching conditions; the preset matching conditions include matching conditions of vehicle model, year and system; a coding data determination module, configured to use the coding data of the matching vehicle as the coding data of the original electronic control unit if such coding data exists; The coding data writing module is used to write the coding data of the original electronic control unit into the new electronic control unit after the original electronic control unit of the target vehicle is replaced with the new electronic control unit.
9. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor, configured to execute the computer program to implement the electronic control unit replacement method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: Used to store computer programs; wherein when the computer programs are executed by a processor, the electronic control unit replacement method as described in any one of claims 1 to 7 is implemented.