Vehicle identification code management method, electronic equipment and storage medium

When the vehicle is powered on, the current main controller actively sends the vehicle identification code to the target controller and performs confirmation operations, solving the problems of low vehicle identification code management efficiency and controller consistency, and realizing the identification code consistency and legality management of each controller in the vehicle.

CN119598440APending Publication Date: 2025-03-11欧摩威汽车电子(芜湖)有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411506438.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-25
Publication Date
2025-03-11

AI Technical Summary

Technical Problem

In the prior art, the management efficiency of the vehicle identification code between multiple controllers is low, and when the controller is damaged or replaced, it is difficult to ensure the consistency and legality of the vehicle identification code.

Method used

When the vehicle is powered on, the current main controller actively sends the first vehicle identification code to the associated target controller, causing the target controller to perform the first confirmation operation to ensure the consistency of the vehicle identification code of each controller in the vehicle.

Benefits of technology

It realizes automatic storage and automatic writing of vehicle identification codes of each controller in the vehicle, ensures the consistency and legality of the controller, simplifies the management process of vehicle identification codes, and effectively supervises illegal controllers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119598440A_ABST
    Figure CN119598440A_ABST
Patent Text Reader

Abstract

The invention provides a vehicle identification code management method, electronic equipment and a storage medium. According to the specific implementation scheme, the vehicle identification code management method comprises the steps that in response to the power-on state of a vehicle, a current main controller determines an associated target controller, and the target controller is configured to need to store a vehicle identification code consistent with the current main controller; the current main controller sends a locally stored first vehicle identification code to the target controller, so that the target controller executes a first confirmation operation on the first vehicle identification code, and the first confirmation operation is used for managing the consistency of the vehicle identification codes of the current main controller and the target controller. According to the scheme disclosed by the invention, when the vehicle is powered on, each target controller in the vehicle can realize self-storage and self-detection of the local first vehicle identification code based on the first vehicle identification code sent by the main controller, so that the consistency and legality of each controller in the vehicle are ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of vehicle technology, and in particular to a method for managing a vehicle identification code, an electronic device, and a storage medium. Background Art

[0002] The Vehicle Identification Number (VIN) is the car's ID number. It is determined according to national vehicle management standards and contains information such as the vehicle's manufacturer, year, model, body type and code, engine code and assembly location. Summary of the invention

[0003] The present disclosure provides a vehicle identification code management method, an electronic device, and a storage medium to solve or alleviate one or more technical problems in the prior art.

[0004] In one aspect, the present disclosure provides a method for managing a vehicle identification code, comprising:

[0005] In response to a power-on state of the vehicle, the current main controller determines an associated target controller, wherein the target controller is configured to store a vehicle identification code consistent with the current main controller; and

[0006] The current main controller sends the locally stored first vehicle identification code to the target controller, so that the target controller performs a first confirmation operation on the first vehicle identification code, wherein the first confirmation operation is used to manage the consistency of the vehicle identification codes of the current main controller and the target controller.

[0007] In another aspect, the present disclosure provides a method for managing a vehicle identification code, comprising:

[0008] In response to the vehicle being powered on, the target controller receives a first vehicle identification code sent by the associated current master controller; and

[0009] The target controller performs a first confirmation operation according to the local vehicle identification code storage state and the first vehicle identification code, wherein the first confirmation operation is used to manage the consistency of the vehicle identification codes of the current main controller and the target controller.

[0010] In another aspect, the present disclosure provides an electronic device, comprising:

[0011] At least one processor. And

[0012] A memory in communication with the at least one processor.

[0013] 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 to enable the at least one processor to execute the method of any embodiment of the present disclosure.

[0014] On the other hand, the present disclosure provides a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause the computer to execute the method according to any embodiment of the present disclosure.

[0015] On the other hand, the present disclosure provides a computer program product, including a computer program, which implements the method according to any embodiment of the present disclosure when executed by a processor.

[0016] According to the solution disclosed in the present invention, when the vehicle is powered on, each target controller in the vehicle can realize self-storage and self-detection of the local first vehicle identification code based on the first vehicle identification code sent by the main controller, thereby ensuring the consistency and legitimacy of each controller in the vehicle.

[0017] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In the accompanying drawings, unless otherwise specified, the same reference numerals throughout the multiple drawings represent the same or similar parts or elements. These drawings are not necessarily drawn to scale. It should be understood that these drawings only depict some embodiments provided according to the present disclosure and should not be regarded as limiting the scope of the present disclosure.

[0019] Figure 1 It is a flowchart of a method for managing a vehicle identification code according to an embodiment of the present disclosure.

[0020] Figure 2 It is an application diagram of the vehicle identification code management method according to an embodiment of the present disclosure.

[0021] Figure 3 It is an application diagram of the vehicle identification code management method according to an embodiment of the present disclosure.

[0022] Figure 4 It is an application diagram of the vehicle identification code management method according to an embodiment of the present disclosure.

[0023] Figure 5 It is a flowchart of a method for managing a vehicle identification code according to an embodiment of the present disclosure.

[0024] Figure 6 It is an application diagram of the vehicle identification code management method according to an embodiment of the present disclosure.

[0025] Figure 7 The block diagram is a block diagram of an electronic device used to implement the vehicle identification code management method of the embodiment of the present disclosure. DETAILED DESCRIPTION

[0026] The present disclosure will be further described in detail below with reference to the accompanying drawings. The same reference numerals in the accompanying drawings represent elements with the same or similar functions. Although various aspects of the embodiments are shown in the accompanying drawings, the drawings are not necessarily drawn to scale unless otherwise specified.

[0027] In addition, in order to better illustrate the present disclosure, numerous specific details are given in the following specific embodiments. It should be understood by those skilled in the art that the present disclosure can also be implemented without certain specific details. In some examples, methods, means, components and circuits well known to those skilled in the art are not described in detail in order to highlight the main purpose of the present disclosure.

[0028] like Figure 1 As shown, the embodiment of the present disclosure provides a method for managing a vehicle identification code, including:

[0029] Step S101: In response to the power-on state of the vehicle, the current main controller determines an associated target controller, wherein the target controller is configured to store a vehicle identification code that is consistent with the current main controller.

[0030] Step S102: the current main controller sends the locally stored first vehicle identification code to the target controller, so that the target controller performs a first confirmation operation on the first vehicle identification code, wherein the first confirmation operation is used to manage the consistency of the vehicle identification codes of the current main controller and the target controller.

[0031] According to the embodiments of the present disclosure, it should be noted that:

[0032] The method of the embodiment of the present disclosure is performed by the current main controller. The method of the embodiment of the present disclosure can be applied to a scene where a current main controller and a secondary controller associated with each other are set in a vehicle (such as Figure 2 As shown), it can be applied to a scenario where a current master controller and a slave controller associated with each other are provided in a vehicle (such as Figure 3 As shown), it can also be applied to a scenario where a current main controller, a secondary controller, and a slave controller associated with the vehicle are provided (such as Figure 4 As shown). The sub-controller and the slave controller can be understood as the target controller in the method of the embodiment of the present disclosure. The sub-controller has the function of storing the vehicle identification code, and when the current main controller is replaced, the sub-controller also has the function of sending the vehicle identification code stored locally to the replaced new main controller. The slave controller has the function of storing the vehicle identification code.

[0033] The current main controller and the target controller can be understood as any controller or control unit in the vehicle. For example, the current main controller and the target controller include but are not limited to ECU (Electronic Control Unit), BCU (Body Control Unit), BCU (Battery Control Unit), ZCU (Zone Control Unit), VCU (Vehicle Control Unit), etc. The controller described in each embodiment of the present disclosure can be a separate controller or a controller set inside each component of the vehicle, for example, a controller set in the battery of the vehicle.

[0034] When there are multiple controllers in the vehicle, one of them can be set as the current master controller and the remaining controllers can be set as the target controller. When the target controller includes both sub-controllers and slave controllers, one or two sub-controllers can be set, which is less than the number of slave controllers.

[0035] The associated target controller may be understood as a controller with which the current main controller can communicate. In the case of multiple target controllers, the current main controller will send the locally stored first vehicle identification code to multiple target controllers at the same time.

[0036] The first confirmation operation is used to manage the consistency of the vehicle identification codes of the current main controller and the target controller, which can be understood as: the target controller stores the first vehicle identification code sent by the current main controller locally in the target controller to keep the vehicle identification codes of the current main controller consistent with those of the target controller. When the target controller does not store the vehicle identification code, after the vehicle is powered on, the current main controller can actively send the first vehicle identification code to the target controller through the method of the embodiment of the present disclosure, so that the target controller can automatically obtain and store the corresponding first vehicle identification code.

[0037] The first confirmation operation is used to manage the consistency of the vehicle identification codes of the current main controller and the target controller, and can also be understood as: the target controller compares the second vehicle identification code stored locally with the first vehicle identification code to determine whether the vehicle identification codes of the two are consistent. When the target controller stores a vehicle identification code, after the vehicle is powered on, the target controller can perform a consistency check of the vehicle identification code based on the first vehicle identification code sent by the current main controller to ensure the legitimacy of the target controller. If it is determined that the two vehicle identification codes are consistent, it means that the target controller has previously received and stored the first vehicle identification code sent by the current main controller (that is, the second vehicle identification code is the first vehicle identification code). If it is determined that the two vehicle identification codes are inconsistent, it means that the second vehicle identification code stored by the target controller is not sent and stored by the current main controller. In other words, the second vehicle identification code stored by the target controller is not the first vehicle identification code of the vehicle, so the target controller may be an illegal part that has been illegally replaced in the vehicle.

[0038] Usually, the vehicle needs to write the vehicle identification code to each controller in the vehicle through a diagnostic tool. However, this operation method is inefficient and takes a long time to write the vehicle identification code. Therefore, it is usually selected to write the vehicle identification code to only individual electronic controllers in the vehicle. However, if the vehicle identification code is only written to individual electronic controllers in the vehicle, when the electronic controller is damaged or abnormal, the vehicle identification code of the vehicle may no longer be known. Through the technology of the embodiment of the present disclosure, the above problem can be effectively solved. After the vehicle is powered on, it is only necessary to write the first vehicle identification code to the current main controller installed in the vehicle, so that the target controllers that are connected to the current main controller in communication can write the first vehicle identification code through the current main controller, and the automatic storage and automatic writing of the first vehicle identification code of the target controller are realized. In this way, it is not only ensured that the vehicle identification code can be written to each controller in the vehicle, but also that each controller has a management mechanism for controller consistency and legitimacy. Through the first confirmation operation, illegal controllers installed in the vehicle can be effectively supervised, and even if individual controllers are damaged, vehicle information can be obtained by reading the first vehicle identification codes of the remaining controllers. In addition, since the current main controller will actively send the first vehicle identification code to each associated target controller when the vehicle is powered on, when a target controller is replaced, the new target controller can also receive and store the first vehicle identification code sent by the current main controller. There is no need to manually write the first vehicle identification code to the new target controller, thereby realizing the vehicle identification code self-learning function of the new target controller.

[0039] The method of the disclosed embodiment can be applied to the scenario where a whole vehicle is produced and rolls off the production line. When the vehicle rolls off the production line, it is only necessary to write the first vehicle identification code to the current main controller. When the vehicle is powered on, the current main controller will actively send the first vehicle identification code to the associated target controllers so that each target controller can be automatically written with the first vehicle identification code.

[0040] The method of the disclosed embodiment can also be applied to the scenario of target controller replacement. When the target controller is damaged or faulty and needs to be replaced, the replaced new target controller will receive the first vehicle identification code sent by the current main controller when the vehicle is powered on, thereby enabling the new target controller to automatically write the first vehicle identification code.

[0041] The method of the disclosed embodiment can also be applied to the scenario of target controller replacement. When the target controller is damaged or faulty and needs to be replaced, if the replaced new target controller is an illegal second-hand controller, when the vehicle is powered on, the new controller will receive the first vehicle identification code sent by the current main controller and compare it with the second vehicle identification code originally stored in itself. If the first vehicle identification code and the second vehicle identification code are inconsistent, the newly replaced target controller is detected as an illegal controller, and an abnormal replacement prompt will be given.

[0042] In one embodiment, the vehicle identification code management method of the embodiment of the present disclosure includes steps S101 and S102, wherein step S102: the current main controller sends the first vehicle identification code stored locally to the target controller so that the target controller performs a first confirmation operation on the first vehicle identification code, including:

[0043] The current main controller sends the first vehicle identification code stored locally to the target controller, so that the target controller stores the first vehicle identification code locally in the case where the target controller does not store the vehicle identification code locally.

[0044] According to the embodiments of the present disclosure, it should be noted that:

[0045] The target controller may be a controller installed when the vehicle is off the production line. At this time, the first vehicle identification code is not written into the target controller, and the first vehicle identification code needs to be written into the target controller through the current main controller.

[0046] The target controller may also be a newly replaced controller that replaces the original faulty or abnormal target controller. In this case, the first vehicle identification code has not been written into the newly replaced target controller, and the first vehicle identification code needs to be written into the newly replaced target controller through the current main controller.

[0047] According to the technology of the embodiments of the present disclosure, since the current main controller will actively send the first vehicle identification code to each associated target controller when the vehicle is powered on, when a new target controller is installed or replaced on the vehicle, the installed or replaced new target controller can also receive and store the first vehicle identification code sent by the current main controller, without the need to manually write the first vehicle identification code to the replaced new target controller, thereby realizing the vehicle identification code self-learning function of the replaced new target controller.

[0048] In one embodiment, the vehicle identification code management method of the embodiment of the present disclosure includes steps S101 and S102, wherein step S102: the current main controller sends the first vehicle identification code stored locally to the target controller so that the target controller performs a first confirmation operation on the first vehicle identification code, including:

[0049] The current main controller sends the locally stored first vehicle identification code to the target controller, so that the target controller compares the locally stored second vehicle identification code with the first vehicle identification code, and generates an error prompt message when the comparison result shows that the first vehicle identification code is inconsistent with the second vehicle identification code.

[0050] According to the technology of the embodiment of the present disclosure, when the target controller is damaged or fails and needs to be replaced, if the new target controller after replacement is an illegal second-hand controller, when the vehicle is powered on, the new controller will receive the first vehicle identification code sent by the current main controller and compare it with the second vehicle identification code originally stored in itself. If the first vehicle identification code and the second vehicle identification code are inconsistent, the newly replaced target controller is detected as an illegal controller, and then an abnormal replacement prompt will be issued. This enables each controller to have a management mechanism for controller consistency and legitimacy, and illegal controllers installed in the vehicle can be effectively supervised through the first confirmation operation.

[0051] like Figure 5 As shown, the embodiment of the present disclosure provides a method for managing a vehicle identification code, including:

[0052] Step S501: In response to the vehicle power-on state, the target controller receives a first vehicle identification code sent by the associated current main controller.

[0053] Step S502: the target controller performs a first confirmation operation according to the local vehicle identification code storage state and the first vehicle identification code, wherein the first confirmation operation is used to manage the consistency of the vehicle identification codes of the current main controller and the target controller.

[0054] According to the embodiments of the present disclosure, it should be noted that:

[0055] The execution subject of the method of the embodiment of the present disclosure is the target controller. The method of the embodiment of the present disclosure can be applied to a scene where a current main controller and a secondary controller associated with each other are set in a vehicle (such as Figure 2 As shown), it can be applied to a scenario where a current master controller and a slave controller associated with each other are provided in a vehicle (such as Figure 3 As shown), it can also be applied to a scenario where a current main controller, a secondary controller, and a slave controller associated with the vehicle are provided (such as Figure 4 As shown). The sub-controller and the slave controller can be understood as the target controller in the method of the embodiment of the present disclosure. The sub-controller has the function of storing the vehicle identification code, and when the current main controller is replaced, the sub-controller also has the function of sending the vehicle identification code stored locally to the replaced new main controller. The slave controller has the function of storing the vehicle identification code.

[0056] The current main controller and the target controller can be understood as any controller or control unit in the vehicle. For example, the current main controller and the target controller include but are not limited to ECU (Electronic Control Unit), BCU (Body Control Unit), BCU (Battery Control Unit), ZCU (Zone Control Unit), VCU (Vehicle Control Unit), etc. The controller described in each embodiment of the present disclosure can be a separate controller or a controller set inside each component of the vehicle, for example, a controller set in the battery of the vehicle.

[0057] When there are multiple controllers in the vehicle, one of them can be set as the current master controller and the remaining controllers can be set as the target controller. When the target controller includes both sub-controllers and slave controllers, one or two sub-controllers can be set, which is less than the number of slave controllers.

[0058] The associated current master controller may be understood as a controller with which the target controller can communicate.

[0059] The first confirmation operation is used to manage the consistency of the vehicle identification codes of the current main controller and the target controller, which can be understood as: the target controller stores the first vehicle identification code sent by the current main controller locally in the target controller to keep the vehicle identification codes of the current main controller consistent with those of the target controller. When the target controller does not store the vehicle identification code, after the vehicle is powered on, the current main controller can actively send the first vehicle identification code to the target controller through the method of the embodiment of the present disclosure, so that the target controller can automatically obtain and store the corresponding first vehicle identification code.

[0060] The first confirmation operation is used to manage the consistency of the vehicle identification codes of the current main controller and the target controller, and can also be understood as: the target controller compares the second vehicle identification code stored locally with the first vehicle identification code to determine whether the vehicle identification codes of the two are consistent. When the target controller stores a vehicle identification code, after the vehicle is powered on, the target controller can perform a consistency check of the vehicle identification code based on the first vehicle identification code sent by the current main controller to ensure the legitimacy of the target controller. If it is determined that the two vehicle identification codes are consistent, it means that the target controller has previously received and stored the first vehicle identification code sent by the current main controller (that is, the second vehicle identification code is the first vehicle identification code). If it is determined that the two vehicle identification codes are inconsistent, it means that the second vehicle identification code stored by the target controller is not sent and stored by the current main controller. In other words, the second vehicle identification code stored by the target controller is not the first vehicle identification code of the vehicle, so the target controller may be an illegal part that has been illegally replaced in the vehicle.

[0061] Usually, the vehicle needs to write the vehicle identification code to each controller in the vehicle through a diagnostic tool. However, this operation method is inefficient and takes a long time to write the vehicle identification code. Therefore, it is usually selected to write the vehicle identification code to only individual electronic controllers in the vehicle. However, if the vehicle identification code is only written to individual electronic controllers in the vehicle, when the electronic controller is damaged or abnormal, the vehicle identification code of the vehicle may no longer be known. Through the technology of the embodiment of the present disclosure, the above problem can be effectively solved. After the vehicle is powered on, it is only necessary to write the first vehicle identification code to the current main controller installed in the vehicle, so that the target controllers that are connected to the current main controller in communication can write the first vehicle identification code through the current main controller, and the automatic storage and automatic writing of the first vehicle identification code of the target controller are realized. In this way, it is not only ensured that the vehicle identification code can be written to each controller in the vehicle, but also that each controller has a management mechanism for controller consistency and legitimacy. Through the first confirmation operation, illegal controllers installed in the vehicle can be effectively supervised, and even if individual controllers are damaged, vehicle information can be obtained by reading the first vehicle identification codes of the remaining controllers. In addition, since the current main controller will actively send the first vehicle identification code to each associated target controller when the vehicle is powered on, when a target controller is replaced, the new target controller can also receive and store the first vehicle identification code sent by the current main controller. There is no need to manually write the first vehicle identification code to the new target controller, thereby realizing the vehicle identification code self-learning function of the new target controller.

[0062] The method of the disclosed embodiment can be applied to the scenario where a whole vehicle is produced and rolls off the production line. When the vehicle rolls off the production line, it is only necessary to write the first vehicle identification code to the current main controller. When the vehicle is powered on, the current main controller will actively send the first vehicle identification code to the associated target controllers so that each target controller can be automatically written with the first vehicle identification code.

[0063] The method of the disclosed embodiment can also be applied to the scenario of target controller replacement. When the target controller is damaged or faulty and needs to be replaced, the replaced new target controller will receive the first vehicle identification code sent by the current main controller when the vehicle is powered on, thereby enabling the new target controller to automatically write the first vehicle identification code.

[0064] The method of the disclosed embodiment can also be applied to the scenario of target controller replacement. When the target controller is damaged or faulty and needs to be replaced, if the replaced new target controller is an illegal second-hand controller, when the vehicle is powered on, the new controller will receive the first vehicle identification code sent by the current main controller and compare it with the second vehicle identification code originally stored in itself. If the first vehicle identification code and the second vehicle identification code are inconsistent, the newly replaced target controller is detected as an illegal controller, and an abnormal replacement prompt will be given.

[0065] In one embodiment, the vehicle identification code management method of the embodiment of the present disclosure includes steps S501 and S502, wherein step S502: the target controller performs a first confirmation operation according to the local vehicle identification code storage state and the first vehicle identification code, including:

[0066] When the target controller determines that the vehicle identification code is not stored locally, the first vehicle identification code is stored locally.

[0067] According to the embodiments of the present disclosure, it should be noted that:

[0068] The target controller may be a controller installed when the vehicle is off the production line. At this time, the first vehicle identification code is not written into the target controller, and the first vehicle identification code needs to be written into the target controller through the current main controller.

[0069] The target controller may also be a newly replaced controller that replaces the original faulty or abnormal target controller. In this case, the first vehicle identification code has not been written into the newly replaced target controller, and the first vehicle identification code needs to be written into the newly replaced target controller through the current main controller.

[0070] According to the technology of the embodiments of the present disclosure, since the current main controller will actively send the first vehicle identification code to each associated target controller when the vehicle is powered on, when a new target controller is installed or replaced on the vehicle, the installed or replaced new target controller can also receive and store the first vehicle identification code sent by the current main controller, without the need to manually write the first vehicle identification code to the replaced new target controller, thereby realizing the vehicle identification code self-learning function of the replaced new target controller.

[0071] In one embodiment, the vehicle identification code management method of the embodiment of the present disclosure includes steps S501 and S502, wherein step S502: the target controller performs a first confirmation operation according to the local vehicle identification code storage state and the first vehicle identification code, including:

[0072] When the target controller determines that a vehicle identification code is stored locally, the locally stored second vehicle identification code is compared with the first vehicle identification code, and when the comparison result shows that the first vehicle identification code is inconsistent with the second vehicle identification code, an error prompt message is generated.

[0073] According to the technology of the embodiment of the present disclosure, when the target controller is damaged or fails and needs to be replaced, if the new target controller after replacement is an illegal second-hand controller, when the vehicle is powered on, the new controller will receive the first vehicle identification code sent by the current main controller and compare it with the second vehicle identification code originally stored in itself. If the first vehicle identification code and the second vehicle identification code are inconsistent, the newly replaced target controller is detected as an illegal controller, and then an abnormal replacement prompt will be issued. This enables each controller to have a management mechanism for controller consistency and legitimacy, and illegal controllers installed in the vehicle can be effectively supervised through the first confirmation operation.

[0074] In one implementation, the vehicle identification code management method of the embodiment of the present disclosure includes step S501 and step S502, and further includes:

[0075] Step S503: In response to the power-on state, the sub-controller determines an associated new main controller when detecting that the first vehicle identification code sent by the current main controller is not received at the first time, wherein the new main controller is a controller after the current main controller is replaced.

[0076] Step S504: the sub-controller sends the second vehicle identification code stored locally to the new main controller at a second time, so that the new main controller performs a second confirmation operation on the second vehicle identification code, wherein the second confirmation operation is used to manage the consistency of the vehicle identification codes of the new main controller and the sub-controller.

[0077] According to the embodiments of the present disclosure, it should be noted that:

[0078] like Figure 4 As shown in the figure, the current main controller is originally connected to the secondary controller. If the current main controller is replaced, Figure 6 As shown, the controller connected to the slave controller becomes the new master controller.

[0079] The first time is earlier than the second time. The first time is configured as the time when the current main controller actively sends the first vehicle identification code stored locally, and the second time is configured as the time when the sub-controller actively sends the second vehicle identification code stored locally. It can be understood that if the current main controller does not send the first vehicle identification code at the first time, the sub-controller actively sends the second vehicle identification code stored locally at the second time. Among them, the second vehicle identification code stored by the sub-controller is the same vehicle identification code as the first vehicle identification code stored by the current main controller.

[0080] The second confirmation operation is used to manage the consistency of the vehicle identification code between the sub-controller and the new main controller, which can be understood as: the new main controller stores the second vehicle identification code sent by the sub-controller locally in the new main controller to make the sub-controller consistent with the vehicle identification code of the new main controller. When the new main controller does not store the vehicle identification code, after the vehicle is powered on, the sub-controller can actively send the second vehicle identification code to the new main controller through the method of the embodiment of the present disclosure, so that the new main controller can automatically obtain and store the corresponding second vehicle identification code.

[0081] The second confirmation operation is used to manage the consistency of the vehicle identification codes of the sub-controller and the new main controller, and can also be understood as: the new main controller compares the locally stored third vehicle identification code with the second vehicle identification code to determine whether the two vehicle identification codes are consistent. When the new main controller stores a vehicle identification code, after the vehicle is powered on, the new main controller can perform a consistency check on the vehicle identification code based on the second vehicle identification code sent by the sub-controller to ensure the legitimacy of the new main controller. If it is determined that the two vehicle identification codes are inconsistent, it means that the third vehicle identification code stored by the new main controller is not sent and stored by the sub-controller. In other words, the third vehicle identification code stored by the new main controller is not the first vehicle identification code of the vehicle (the same as the second vehicle identification code), so the new main controller may be an illegal part that was illegally replaced in the vehicle.

[0082] According to the technology of the embodiments of the present disclosure, since the current main controller and the sub-controller both have the ability to actively send the vehicle identification code, when any controller is abnormal or replaced, it can still be ensured that the controller in the vehicle has the ability to self-learn or self-detect the vehicle identification code after the vehicle is powered on.

[0083] In one embodiment, the method for managing a vehicle identification code of an embodiment of the present disclosure includes steps S501 to S504, wherein step S504: the secondary controller sends the second vehicle identification code stored locally to the new primary controller at a second time, so that the new primary controller performs a second confirmation operation on the second vehicle identification code, including:

[0084] The secondary controller sends the second vehicle identification code stored locally to the new primary controller at a second time, so that the new primary controller stores the second vehicle identification code locally when it is determined that the vehicle identification code is not stored locally.

[0085] or

[0086] The sub-controller sends the second vehicle identification code stored locally to the new main controller at a second time, so that the new main controller compares the third vehicle identification code stored locally with the second vehicle identification code, and generates an error prompt message when the comparison result is that the third vehicle identification code is inconsistent with the second vehicle identification code.

[0087] According to the embodiments of the present disclosure, it should be noted that:

[0088] The new controller can be a newly replaced main controller that replaces the original faulty or abnormal current main controller. At this time, the new controller has not been written with the vehicle identification code, and the vehicle identification code needs to be written to the new controller through the sub-controller.

[0089] According to the technology of the embodiments of the present disclosure, since both the current main controller and the sub-controller have the ability to actively send the vehicle identification code, when the current main controller is abnormally replaced, the sub-controller can replace the current main controller to perform the function of actively sending the vehicle identification code, and still ensure that each controller in the vehicle has the ability to self-learn or self-detect the vehicle identification code after the vehicle is powered on.

[0090] When the current main controller is damaged or fails and needs to be replaced, if the new main controller after replacement is an illegal second-hand controller, when the vehicle is powered on, the new main controller will receive the second vehicle identification code sent by the sub-controller and compare it with the third vehicle identification code originally stored in itself. If the third vehicle identification code is inconsistent with the second vehicle identification code, the new main controller will be detected as an illegal controller, and then an abnormal replacement prompt will be issued. This enables each controller to have a management mechanism for controller consistency and legitimacy, and through the second confirmation operation, illegal controllers installed in the vehicle can be effectively supervised.

[0091] In one implementation, the method for managing a vehicle identification code of an embodiment of the present disclosure includes:

[0092] In response to the power-on state of the vehicle, the current main controller determines an associated target controller, wherein the target controller is configured to store a vehicle identification code that is consistent with the current main controller.

[0093] The current main controller sends the locally stored first vehicle identification code to the target controller, so that the target controller performs a first confirmation operation on the first vehicle identification code, wherein the first confirmation operation is used to manage the consistency of the vehicle identification codes of the current main controller and the target controller.

[0094] In response to the power-on state, the secondary controller determines an associated new primary controller when detecting that the first vehicle identification code sent by the current primary controller is not received at the first time, wherein the new primary controller is a controller after the current primary controller is replaced.

[0095] The sub-controller sends the second vehicle identification code stored locally to the new main controller at a second time, so that the new main controller performs a second confirmation operation on the second vehicle identification code, wherein the second confirmation operation is used to manage the consistency of the vehicle identification codes of the new main controller and the sub-controller.

[0096] It should be noted that:

[0097] The first confirmation operation is used to manage the consistency of the vehicle identification codes of the current main controller and the target controller, which can be understood as: the target controller stores the first vehicle identification code sent by the current main controller locally in the target controller to keep the vehicle identification codes of the current main controller consistent with those of the target controller. When the target controller does not store the vehicle identification code, after the vehicle is powered on, the current main controller can actively send the first vehicle identification code to the target controller through the method of the embodiment of the present disclosure, so that the target controller can automatically obtain and store the corresponding first vehicle identification code.

[0098] The first confirmation operation is used to manage the consistency of the vehicle identification codes of the current main controller and the target controller, and can also be understood as: the target controller compares the second vehicle identification code stored locally with the first vehicle identification code to determine whether the vehicle identification codes of the two are consistent. When the target controller stores a vehicle identification code, after the vehicle is powered on, the target controller can perform a consistency check of the vehicle identification code based on the first vehicle identification code sent by the current main controller to ensure the legitimacy of the target controller. If it is determined that the two vehicle identification codes are consistent, it means that the target controller has previously received and stored the first vehicle identification code sent by the current main controller (that is, the second vehicle identification code is the first vehicle identification code). If it is determined that the two vehicle identification codes are inconsistent, it means that the second vehicle identification code stored by the target controller is not sent and stored by the current main controller. In other words, the second vehicle identification code stored by the target controller is not the first vehicle identification code of the vehicle, so the target controller may be an illegal part that has been illegally replaced in the vehicle.

[0099] The second confirmation operation is used to manage the consistency of the vehicle identification code between the sub-controller and the new main controller, which can be understood as: the new main controller stores the second vehicle identification code sent by the sub-controller locally in the new main controller to make the sub-controller consistent with the vehicle identification code of the new main controller. When the new main controller does not store the vehicle identification code, after the vehicle is powered on, the sub-controller can actively send the second vehicle identification code to the new main controller through the method of the embodiment of the present disclosure, so that the new main controller can automatically obtain and store the corresponding second vehicle identification code.

[0100] The second confirmation operation is used to manage the consistency of the vehicle identification codes of the sub-controller and the new main controller, and can also be understood as: the new main controller compares the locally stored third vehicle identification code with the second vehicle identification code to determine whether the two vehicle identification codes are consistent. When the new main controller stores a vehicle identification code, after the vehicle is powered on, the new main controller can perform a consistency check on the vehicle identification code based on the second vehicle identification code sent by the sub-controller to ensure the legitimacy of the new main controller. If it is determined that the two vehicle identification codes are inconsistent, it means that the third vehicle identification code stored by the new main controller is not sent and stored by the sub-controller. In other words, the third vehicle identification code stored by the new main controller is not the first vehicle identification code of the vehicle (the same as the second vehicle identification code), so the new main controller may be an illegal part that was illegally replaced in the vehicle.

[0101] Usually, the vehicle needs to write the vehicle identification code to each controller in the vehicle through a diagnostic tool. However, this operation method is inefficient and takes a long time to write the vehicle identification code. Therefore, it is usually selected to write the vehicle identification code to only individual electronic controllers in the vehicle. However, if the vehicle identification code is only written to individual electronic controllers in the vehicle, when the electronic controller is damaged or abnormal, the vehicle identification code of the vehicle may no longer be known. Through the technology of the embodiment of the present disclosure, the above problem can be effectively solved. After the vehicle is powered on, it is only necessary to write the first vehicle identification code to the current main controller installed in the vehicle, so that the target controllers that are connected to the current main controller in communication can write the first vehicle identification code through the current main controller, and the automatic storage and automatic writing of the first vehicle identification code of the target controller are realized. In this way, it is not only ensured that the vehicle identification code can be written to each controller in the vehicle, but also that each controller has a management mechanism for controller consistency and legitimacy. Through the first confirmation operation, illegal controllers installed in the vehicle can be effectively supervised, and even if individual controllers are damaged, vehicle information can be obtained by reading the first vehicle identification codes of the remaining controllers. In addition, since the current main controller will actively send the first vehicle identification code to each associated target controller when the vehicle is powered on, when a target controller is replaced, the new target controller can also receive and store the first vehicle identification code sent by the current main controller. There is no need to manually write the first vehicle identification code to the new target controller, thereby realizing the vehicle identification code self-learning function of the new target controller.

[0102] According to the technology of the embodiments of the present disclosure, since the current main controller and the sub-controller both have the ability to actively send the vehicle identification code, when any controller is abnormal or replaced, it can still be ensured that the controller in the vehicle has the ability to self-learn or self-detect the vehicle identification code after the vehicle is powered on.

[0103] Figure 7 FIG. 1 is a structural block diagram of an electronic device according to an embodiment of the present disclosure. Figure 7 As shown, the electronic device includes: a memory 710 and a processor 720, and the memory 710 stores a computer program that can be run on the processor 720. The number of the memory 710 and the processor 720 can be one or more. The memory 710 can store one or more computer programs. When the one or more computer programs are executed by the electronic device, the electronic device executes the method provided by the above method embodiment. The electronic device may also include: a communication interface 730, which is used to communicate with external devices and perform data exchange transmission.

[0104] If the memory 710, the processor 720 and the communication interface 730 are implemented independently, the memory 710, the processor 720 and the communication interface 730 can be connected to each other through a bus and communicate with each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 7 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0105] Optionally, in a specific implementation, if the memory 710, the processor 720 and the communication interface 730 are integrated on a chip, the memory 710, the processor 720 and the communication interface 730 can communicate with each other through an internal interface.

[0106] It should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. It is worth noting that the processor may be a processor supporting the Advanced RISC Machines (ARM) architecture.

[0107] Further, optionally, the above-mentioned memory may include a read-only memory and a random access memory, and may also include a non-volatile random access memory. The memory may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may include a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may include a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available. For example, static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM) and direct memory bus random access memory (DR RAM).

[0108] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on the computer, the process or function according to the embodiment of the present disclosure is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (for example: coaxial cable, optical fiber, data subscriber line (Digital Subscriber Line, DSL)) or wireless (for example: infrared, Bluetooth, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that can be accessed by the computer, or a data storage device such as a server or data center that includes one or more available media integrations. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a digital versatile disc (DVD)), or a semiconductor medium (e.g., a solid state disk (SSD)), etc. It is worth noting that the computer-readable storage medium mentioned in the present disclosure may be a non-volatile storage medium, in other words, a non-transient storage medium.

[0109] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.

[0110] In the description of the embodiments of the present disclosure, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present disclosure. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, unless they are contradictory.

[0111] In the description of the embodiments of the present disclosure, unless otherwise specified, " / " means or, for example, A / B can mean A or B. "And / or" in this article is only a way to describe the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.

[0112] In the description of the embodiments of the present disclosure, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present disclosure, unless otherwise specified, "plurality" means two or more.

[0113] The above description is only an exemplary embodiment of the present disclosure and is not intended to limit the present disclosure. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present disclosure shall be included in the protection scope of the present disclosure.

Claims

1. A method for managing a vehicle identification code, comprising: In response to a power-on state of the vehicle, the current main controller determines an associated target controller, wherein the target controller is configured to store a vehicle identification code consistent with the current main controller; and The current main controller sends the locally stored first vehicle identification code to the target controller so that the target controller performs a first confirmation operation on the first vehicle identification code, wherein the first confirmation operation is used to manage the consistency of the vehicle identification codes of the current main controller and the target controller.

2. The method according to claim 1, wherein: The current main controller sends the locally stored first vehicle identification code to the target controller, so that the target controller performs a first confirmation operation on the first vehicle identification code, including: The current main controller sends the locally stored first vehicle identification code to the target controller, so that the target controller stores the first vehicle identification code locally in the case where the target controller does not store the vehicle identification code locally; or The current main controller sends the locally stored first vehicle identification code to the target controller, so that the target controller compares the locally stored second vehicle identification code with the first vehicle identification code, and generates an error prompt message when the comparison result is that the first vehicle identification code is inconsistent with the second vehicle identification code.

3. The method according to claim 1 or 2, wherein: The target controller includes a sub-controller and a slave controller; Wherein, the sub-controller and the slave controller have the function of storing a vehicle identification code; Wherein, in the case where the current main controller is replaced, the sub-controller also has the function of sending the vehicle identification code stored locally to the replaced new main controller.

4. A method for managing a vehicle identification code, comprising: In response to a power-on state of the vehicle, the target controller receives a first vehicle identification code sent by an associated current master controller; as well as The target controller performs a first confirmation operation according to a local vehicle identification code storage state and the first vehicle identification code, wherein the first confirmation operation is used to manage the consistency of the vehicle identification codes of the current main controller and the target controller.

5. The method according to claim 4, wherein: The target controller performs a first confirmation operation according to a local vehicle identification code storage state and the first vehicle identification code, including: When the target controller determines that no vehicle identification code is stored locally, the target controller stores the first vehicle identification code locally; or When the target controller determines that a vehicle identification code is stored locally, the locally stored second vehicle identification code is compared with the first vehicle identification code, and when the comparison result is that the first vehicle identification code is inconsistent with the second vehicle identification code, an error prompt message is generated.

6. The method according to claim 4 or 5, wherein: In the case where the target controller is a secondary controller, the method further includes: In response to the power-on state, the secondary controller determines an associated new primary controller when detecting that the first vehicle identification code sent by the current primary controller is not received at the first time, wherein the new primary controller is a controller after the current primary controller is replaced; The sub-controller sends the second vehicle identification code stored locally to the new main controller at a second time, so that the new main controller performs a second confirmation operation on the second vehicle identification code, wherein the second confirmation operation is used to manage the consistency of the vehicle identification codes of the new main controller and the sub-controller.

7. The method according to claim 6, wherein: The secondary controller sends the second vehicle identification code stored locally to the new primary controller at a second time, so that the new primary controller performs a second confirmation operation on the second vehicle identification code, including: The secondary controller sends the second vehicle identification code stored locally to the new primary controller at a second time, so that the new primary controller stores the second vehicle identification code locally when determining that the new primary controller does not store the vehicle identification code locally; or The sub-controller sends the second vehicle identification code stored locally to the new main controller at a second time, so that the new main controller compares the third vehicle identification code stored locally with the second vehicle identification code, and generates an error prompt message when the comparison result is that the third vehicle identification code is inconsistent with the second vehicle identification code.

8. An electronic device comprising: at least one processor; as well as 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 to enable the at least one processor to perform the method according to any one of claims 1 to 7.

9. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1 to 7.

10. A computer program product comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 7.