Configuration file repairing method and device, storage medium, electronic equipment and vehicle

By using vehicle configuration information and the latest cloud configuration files to update the vehicle configuration files, the problem of intelligent driving system failure caused by configuration file abnormalities is solved, and the efficiency of configuration file repair and the safety of intelligent driving is improved.

CN120469703APending Publication Date: 2025-08-12BYD CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411759062.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-29
Publication Date
2025-08-12

AI Technical Summary

Technical Problem

When the vehicle configuration file is abnormal, the intelligent driving system fails, affecting driving safety. The existing technology fails to effectively solve the automatic repair problem of the configuration file.

Method used

Through vehicle configuration information and/or the latest configuration files in the cloud, update when the configuration files are abnormal, and repair the main configuration files using local alternate configuration files or the latest configuration files in the cloud.

Benefits of technology

It realizes timely repair of configuration files, improving the safety and repair efficiency of intelligent driving.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120469703A_ABST
    Figure CN120469703A_ABST
Patent Text Reader

Abstract

The invention relates to a configuration file repairing method and device, a storage medium, electronic equipment and a vehicle, the method is applied to the electronic equipment of the vehicle, and the method comprises the step of updating a configuration file based on vehicle configuration information and / or a newest configuration file of a cloud when the configuration file of the vehicle is in an abnormal state. When the configuration file of the vehicle is in the abnormal state, the configuration file of the vehicle is updated through the vehicle configuration information and / or the newest configuration file of the cloud, the configuration file can be repaired in time when the configuration file is in the abnormal state, the repairing efficiency of the configuration file is improved, and the safety of intelligent driving is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of electronic technology, and in particular to a configuration file repair method, device, storage medium, electronic device, and vehicle. Background Art

[0002] With the development of vehicle intelligence, vehicle configuration files are becoming increasingly important for intelligent driving. When an abnormality occurs in the vehicle configuration file, such as a configuration file error or loss, if the configuration file is not repaired in time, the intelligent driving system will fail and crash, thereby affecting driving safety.

[0003] Therefore, how to repair the vehicle's configuration file has become a technical problem that needs to be solved urgently in the industry. Summary of the Invention

[0004] The embodiment of the present application provides a configuration file repair method, which can automatically repair the configuration file to at least partially solve the above technical problems.

[0005] To achieve the above-mentioned object, according to a first aspect of the present application, a configuration file repair method is provided, which is applied to an electronic device of a vehicle, and the method comprises:

[0006] When the configuration file of the vehicle is in an abnormal state, the configuration file is updated based on the vehicle configuration information and / or the latest configuration file in the cloud.

[0007] According to a second aspect of the present application, a configuration file repair device is provided, which is applied to an electronic device of a vehicle, and the device includes:

[0008] The repair module is used to update the configuration file of the vehicle based on the vehicle configuration information and / or the latest configuration file in the cloud when the configuration file of the vehicle is in an abnormal state.

[0009] According to a third aspect of the present application, a computer-readable storage medium is further provided, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above method are implemented.

[0010] According to a fourth aspect of the present application, an electronic device is also provided, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above method are implemented.

[0011] According to a fifth aspect of the present application, a vehicle is also provided, comprising an electronic device, wherein the electronic device is used to execute the steps of the above method; or comprises the above electronic device.

[0012] According to a sixth aspect of the present application, a computer program product is also provided, comprising a computer program or instructions, which implement the steps of the above method when executed by a processor.

[0013] To summarize, in the embodiments of the present application, when the vehicle's configuration file is in an abnormal state, the vehicle's configuration file is updated through vehicle configuration information and / or the latest configuration file in the cloud. The configuration file can be repaired in a timely manner when the vehicle's configuration file is in an abnormal state, thereby improving the efficiency of configuration file repair and improving the safety of intelligent driving.

[0014] Other features and advantages of the present application will be described in detail in the subsequent detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] To more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are only some embodiments of the present application. Those skilled in the art can also derive other drawings based on these drawings without inventive effort.

[0016] In order to more completely understand the present application and its beneficial effects, the following description will be given in conjunction with the accompanying drawings, wherein the same drawing numbers represent the same parts in the following description.

[0017] Figure 1 This is one of the flowcharts of the configuration file repair method provided in the exemplary embodiment of the present application;

[0018] Figure 2 is a schematic structural diagram of an intelligent driving system provided in an exemplary embodiment of the present application;

[0019] Figure 3 This is the second flow chart of the configuration file repair method provided in the exemplary embodiment of the present application;

[0020] Figure 4 This is the third flow chart of the configuration file repair method provided in the exemplary embodiment of the present application;

[0021] Figure 5 is a schematic diagram of a configuration table of a configuration file provided in an exemplary embodiment of the present application;

[0022] Figure 6 is a schematic diagram of a configuration file repairing device provided in an exemplary embodiment of the present application;

[0023] Figure 7 2 is a schematic structural diagram of a vehicle provided in an exemplary embodiment of the present application. DETAILED DESCRIPTION

[0024] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the embodiments described are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.

[0025] Based on the problems mentioned in the above background technology, in the relevant technology, the vehicle intelligent driving controller generally needs a vehicle configuration file. The vehicle configuration file is generally used to store the current vehicle type, tire size, high and low configuration details (such as whether it is equipped with electronic power steering and suspension system, etc.), whether the parking and driving related functions of the intelligent driving system are turned on, the number, model and manufacturer of intelligent driving sensors, and other detailed configuration information. This configuration information is very important for intelligent driving control. Because different configurations and different sensor manufacturers have different algorithms and controls for intelligent driving, when the vehicle configuration file is wrong or lost, the entire intelligent driving system will fail and crash. Even wrong configuration data will lead to wrong intelligent driving, thereby affecting parking and driving safety.

[0026] Current technology is still stuck on how to securely store and verify configuration files, but has not considered how to automatically identify and intelligently repair configuration file failures. Currently, if the vehicle configuration file is in an abnormal state, the intelligent driving function may fail. Therefore, this application provides a configuration file repair method to achieve automatic repair of the vehicle configuration file.

[0027] Figure 1 This is one of the flow charts of the configuration file repair method provided in the exemplary embodiment of the present application, such as Figure 1 As shown, the configuration file repair method provided in the embodiment of the present application includes step 110. The steps of the method flow are only a possible implementation of the present application.

[0028] Step 110: When the configuration file of the vehicle is in an abnormal state, update the configuration file based on the vehicle configuration information and / or the latest configuration file in the cloud.

[0029] Specifically, the configuration file repair method provided in the embodiments of the present application is applied to electronic devices of a vehicle, including but not limited to servers, smart phones, tablet computers, laptop computers, and desktop computers.

[0030] The configuration file repair method provided in the embodiments of the present application is implemented by a configuration file repair device, which can be a standalone hardware device within an electronic device or a software program running within the electronic device. For example, the configuration file repair device can be implemented as an application such as file repair software within the electronic device.

[0031] The vehicle configuration information in the embodiment of the present application refers to the data of various configurations of the vehicle.

[0032] The configuration file of the embodiment of the present application is a data file used to store and manage various vehicle configuration information. The configuration file may include vehicle type and intelligent driving sensor information, etc.

[0033] The configuration file in the embodiment of the present application includes a main configuration file and a backup configuration file, the main configuration file and the backup configuration file are stored in different areas, and the configuration file of the vehicle being in an abnormal state includes the main configuration file and / or the backup configuration file being in an abnormal state.

[0034] The main configuration file refers to the configuration file that the electronic equipment of the current vehicle is running or preparing to run. The backup configuration file refers to the configuration file stored locally in the electronic equipment, which is updated in time when an abnormality occurs in the main configuration file. The backup configuration file and the main configuration file are both configuration files stored in the electronic equipment. Under normal circumstances, such as when the backup configuration file and the main configuration file are both in normal status, the file content of the backup configuration file is the same as that of the main configuration file. The latest configuration file is the configuration file stored in the cloud. The configuration file in the cloud can be updated in real time, or it can be updated before the electronic equipment was last powered off, or it can be updated periodically, which is not limited here.

[0035] The status of a configuration file includes a normal state and an abnormal state. When the configuration file is in a normal state, the configuration file can be used normally, for example, the electronic device can recognize the configuration file, the configuration file has not been maliciously modified, and the configuration file can be used normally. When the configuration file is in an abnormal state, the configuration file cannot be used normally, for example, the electronic device cannot recognize the configuration file, the configuration file has been maliciously modified or damaged, or the configuration file cannot be used normally.

[0036] When the vehicle configuration file is in an abnormal state, the configuration file can be modified according to the vehicle configuration information; a new vehicle configuration file can also be generated according to the vehicle configuration file, and the configuration file in the abnormal state can be updated with the new vehicle configuration file.

[0037] When the vehicle's primary configuration file is in an abnormal state, the vehicle's configuration information can be used to determine whether the locally stored backup configuration file is in a normal state. If so, the primary configuration file is updated using the backup configuration file. For example, the status of the backup configuration file can be determined based on the vehicle's configuration information. If the backup configuration file is in a normal state, the primary configuration file is updated using the backup configuration file to restore the primary configuration file to a normal state.

[0038] When the vehicle's primary configuration file is in an abnormal state, the vehicle's configuration information can be used to determine whether the locally stored backup configuration file is in a normal state. If so, the primary and backup configuration files are updated using the latest configuration file in the cloud. For example, the status of the backup configuration file is determined based on the vehicle's configuration information. If the backup configuration file is in an abnormal state, the vehicle's latest configuration file is obtained from the cloud and used to update the primary and backup configuration files, restoring the vehicle's configuration file to a normal state.

[0039] When the vehicle's configuration file is in an abnormal state, it can also be updated based on the latest configuration file in the cloud. For example, the latest configuration file of the vehicle can be directly obtained from the cloud and updated with the latest configuration file to restore the configuration file to a normal state.

[0040] The configuration file repair method provided in the embodiment of the present application updates the vehicle configuration file through vehicle configuration information and / or the latest configuration file in the cloud when the vehicle configuration file is in an abnormal state. This method can promptly repair the configuration file when the vehicle configuration file is in an abnormal state, thereby improving the efficiency of configuration file repair and enhancing the safety of intelligent driving.

[0041] It should be noted that each implementation method of the present application can be freely combined, the order can be changed, or it can be executed separately, and does not need to rely on or depend on a fixed execution order.

[0042] In some embodiments, when the primary configuration file and the backup configuration file are the same and both the primary configuration file and the backup configuration file are in an abnormal state, an update request is sent to the cloud, and the latest configuration file returned by the cloud is received;

[0043] Overwrite the file content of the latest configuration file to the main configuration file and the standby configuration file respectively.

[0044] Alternatively, when the main configuration file and the backup configuration file are different and both the main configuration file and the backup configuration file are in an abnormal state, sending an update request to the cloud and receiving the latest configuration file returned by the cloud;

[0045] Overwrite the file content of the latest configuration file to the main configuration file and the standby configuration file respectively.

[0046] The updating of the configuration file based on the latest configuration file in the cloud includes:

[0047] Sending the update request sent by the electronic device and the identifier of the vehicle to the cloud through the vehicle controller;

[0048] The vehicle controller receives the latest configuration file sent from the cloud.

[0049] The receiving, by the vehicle controller, the latest configuration file returned by the cloud, includes:

[0050] When the update request passes the verification, the cloud sends the latest configuration file to the electronic device through the vehicle controller.

[0051] The latest configuration file is returned to the vehicle controller after the cloud verifies the update request based on a key.

[0052] The latest configuration file is sent to the electronic device after the vehicle controller successfully verifies the latest configuration file.

[0053] The electronic device includes an intelligent driving domain controller.

[0054] Specifically, if the backup configuration file is the same as the main configuration file, and both the backup configuration file and the main configuration file are in an abnormal state, an update request needs to be sent to the cloud. The update request is used to obtain the latest configuration file from the cloud.

[0055] If the backup configuration file is different from the main configuration file, but both the backup configuration file and the main configuration file are in an abnormal state, an update request needs to be sent to the cloud.

[0056] An update request can be sent to the vehicle controller through the intelligent driving domain controller. The vehicle controller sends the update request and the vehicle identifier to the cloud. The cloud verifies the update request based on the key. After successful verification, the latest configuration file is returned to the vehicle controller. After successful verification of the latest configuration file, the vehicle controller sends it to the intelligent driving domain controller.

[0057] For example, the intelligent driving domain controller sends a Request_Update_Configure_File = 1 signal to the vehicle controller. The vehicle controller forwards the Request_Update_Configure_File = 1 signal and the vehicle identifier to the cloud. Before sending, the vehicle controller verifies the security algorithm request. For example, it sends 27 01 to request Seed, and the cloud responds with 2702 X1 X2 X3 X4, where X1-X4 are Seeds. The vehicle controller calculates the KeyResult based on the Seed and the encryption algorithm logic KeyResult = ((((Seed>>1)^Seed)<<3)^(Seed>>2))^KeyK. The value of KeyK varies for each vehicle model. The vehicle controller sends the KeyResult to the cloud for algorithm verification. If the verification is successful, the cloud returns the download-permitting result Update_Configure_File_Result = 1 to the vehicle controller. The vehicle controller then prepares to receive the latest configuration file sent by the cloud. After receiving the latest configuration file, the vehicle controller performs a cyclic redundancy check (CRC) on the 255 bytes of the latest configuration file. If the verification is successful, the latest configuration file is transmitted to the intelligent driving domain controller.

[0058] After the intelligent driving domain controller obtains the latest configuration file, it overwrites the file contents of the latest configuration file into the main configuration file and the backup configuration file respectively, so that both the main configuration file and the backup configuration file return to normal.

[0059] The configuration file repair method provided in the embodiment of the present application can restore the main configuration file and the backup configuration file to a normal state by overwriting the main configuration file and the backup configuration file with the latest configuration file obtained from the cloud when both the main configuration file and the backup configuration file are in an abnormal state, thereby improving the efficiency of configuration file repair.

[0060] In some embodiments, whether the configuration file is in an abnormal state is determined based on the vehicle configuration information.

[0061] Wherein, determining whether the configuration file is in an abnormal state based on the vehicle configuration information includes:

[0062] The vehicle configuration information is matched with the configuration information in the configuration file, and if the matching fails, it is determined that the configuration file is in an abnormal state.

[0063] Specifically, vehicle configuration information can be obtained from the vehicle's body domain controller. The vehicle's electronic equipment may include an intelligent driving domain controller. The vehicle's intelligent driving system may include a body domain controller, an intelligent driving domain controller, a vehicle computer controller, and a cloud platform.

[0064] Figure 2 is a schematic diagram of the structure of the intelligent driving system provided in an exemplary embodiment of the present application, such as Figure 2 The configuration content of the configuration file and the storage addresses of the main configuration file and the backup configuration file can be set at the front end, and the main configuration file and the backup configuration file can be stored in the corresponding storage addresses of the vehicle body domain controller.

[0065] The body domain controller is used to record vehicle configuration information such as sensor configuration, type, supplier, vehicle model code, suspension type, side distance warning (SDW) function switch, and power type. When the intelligent driving domain controller performs intelligent driving functions, the correctness and reliability of the configuration file content can be verified through vehicle configuration information. Vehicle configuration information comes from user settings (such as the SDW switch), interactions with other controllers (such as communication results with different suspension systems to determine the suspension type), and local non-volatile storage.

[0066] The intelligent driving domain controller is used to define and store configuration files, compare the vehicle configuration information with the vehicle body domain controller, compare the main configuration file with the backup configuration file, and upload the configuration file to the cloud platform.

[0067] The vehicle controller is used to transmit configuration files and verify data correctness. The vehicle controller mainly plays the role of middleware. Because the vehicle controller is equipped with a communication module, it can transmit configuration files, verify data correctness, and verify identity.

[0068] The cloud platform is used to store the latest configuration files for different vehicle models, verify uploaded data and identities, and download the latest configuration files upon successful verification. Uploaded data must be stored in association with the corresponding vehicle identifier (VIN). The cloud platform also verifies the security passwords used for data transmission and performs algorithmic verification of configuration file content, such as cyclic redundancy checks (CRCs). The cloud platform is the cloud platform end.

[0069] Figure 3 This is a second flow chart of the configuration file repair method provided in the exemplary embodiment of the present application. Figure 3 As shown, the status of the profile can be determined by the interaction between various terminals in the intelligent driving system.

[0070] The intelligent driving domain controller sends a configuration information verification request to the body domain controller.

[0071] The body domain controller receives the configuration information verification request, obtains the vehicle configuration information (such as sensor type, supplier type, sensor version, vehicle model code and vehicle model configuration, etc.), and returns the vehicle configuration information to the intelligent driving domain controller.

[0072] When the intelligent driving domain controller is started, whether the main configuration file is the same as or different from the backup configuration file, it will request the vehicle configuration information from the body domain controller and determine the status of the main configuration file and / or backup configuration file through the vehicle configuration information.

[0073] The configuration file repair method provided in the embodiment of the present application determines whether the vehicle configuration file is in an abnormal state through vehicle configuration information, and can effectively identify whether the configuration file is in an abnormal state, thereby promptly repairing the configuration file in the abnormal state.

[0074] In some embodiments, updating the configuration file based on the vehicle configuration information and / or the latest configuration file in the cloud includes:

[0075] When the main configuration file is in a normal state and the standby configuration file is in an abnormal state, the file content of the main configuration file is overwritten into the standby configuration file.

[0076] Specifically, although the primary configuration file will be run first during normal operation, the backup configuration file may need to be used when the primary configuration file is in an abnormal state. Therefore, even if the primary configuration file is in a normal state, the backup configuration file must also be in a normal state. Therefore, if the primary configuration file is in a normal state but the backup configuration file is in an abnormal state, the file content of the primary configuration file can be overwritten with the backup configuration file to restore the backup configuration file to a normal state.

[0077] The configuration file repair method provided in the embodiment of the present application can automatically repair the configuration file by directly overwriting the backup configuration file in an abnormal state with the main configuration file in a normal state, thereby improving the repair efficiency.

[0078] In some embodiments, updating the configuration file based on the vehicle configuration information and / or the latest configuration file in the cloud includes:

[0079] When the main configuration file is in an abnormal state and the standby configuration file is in a normal state, the file content of the standby configuration file is overwritten into the main configuration file.

[0080] Specifically, the vehicle's electronic device stores two configuration files: one as the primary configuration file and one as the backup configuration file. If the backup configuration file is detected to be different from the primary configuration file, it indicates that at least one configuration file is in an abnormal state. If one is in a normal state and the other is in an abnormal state, the contents of the normal configuration file are overwritten with the contents of the abnormal configuration file.

[0081] For example, if the main configuration file is in an abnormal state, the backup configuration file is different from the main configuration file, and the backup configuration file is determined to be in a normal state through vehicle configuration information, the file content of the backup configuration file is overwritten into the main configuration file.

[0082] The configuration file repair method provided in the embodiment of the present application can automatically repair the configuration file by directly overwriting the main configuration file in an abnormal state with the standby configuration file in a normal state, thereby improving the repair efficiency.

[0083] In some embodiments, the main configuration file is stored in a first storage area of the electronic device, and the backup configuration file is stored in a second storage area of the electronic device; the storage addresses of the first storage area and the second storage area are different, and the first storage area and the second storage area are independent of each other.

[0084] After the electronic device is started, confirming whether the configuration file exists in the first storage area and the second storage area;

[0085] When the main configuration file does not exist in the first storage area and the standby configuration file does not exist in the second storage area, a download request is sent to the cloud, and the latest configuration file sent by the cloud is received.

[0086] In a case where the main configuration file exists in the first storage area and the standby configuration file does not exist in the second storage area, the main configuration file is executed and synchronized to the second storage area.

[0087] In a case where the main configuration file does not exist in the first storage area and the standby configuration file exists in the second storage area, the standby configuration file is executed and synchronized to the first storage area.

[0088] The value of the preset flag is set to the flag value of the storage area where the configuration file to be run is located, and the preset flag is used to indicate running the main configuration file in the first storage area or the standby configuration file in the second storage area.

[0089] The updating of the configuration file based on the latest configuration file in the cloud includes:

[0090] Based on the cloud, information requesting to download the latest configuration file is sent to the user terminal of the vehicle, and the latest configuration file is sent to the electronic device after receiving a confirmation signal sent by the user terminal.

[0091] The receiving the latest configuration file sent by the cloud further includes:

[0092] The latest configuration file is stored in the first storage area and the second storage area respectively.

[0093] Specifically, the embodiment of the present application can store the main configuration file and the backup configuration file in different local areas so that the two configuration files do not interfere with each other, that is, the main configuration file is stored in the local first storage area, and the backup configuration file is stored in the local second storage area.

[0094] After the electronic device is started, it can determine whether there is a configuration file in the first storage area and the second storage area. If not, it is necessary to obtain the latest configuration file of the vehicle from the cloud.

[0095] Figure 4 This is the third flow chart of the configuration file repair method provided in the exemplary embodiment of the present application, such as Figure 4 As shown, after the intelligent driving domain controller is started, it can first perform a self-test, such as testing the software and hardware. Then check whether there is a configuration file in the first or second storage area. If not, switch to the other storage area. If there is a configuration file in the other storage area, use the configuration file as the main configuration file, and define the storage area where the configuration file is located as the first storage area. At the same time, back up the file content of the configuration file to the second storage area. A global variable Configure_Bank_Flag can be set. Configure_Bank_Flag = 0 means running the current first storage area configuration file, and Configure_Bank_Flag = 1 means running the current second storage area configuration file. When running the current second storage area configuration file, the second storage area can be defined as the first storage area.

[0096] If the other storage area doesn't have a configuration file, the intelligent driving domain controller initiates a download request to the vehicle controller. This download request is used to request the latest configuration file from the cloud. The vehicle controller forwards the download request to the cloud. After receiving the download request, the cloud verifies the vehicle identifier and sends a request to download the latest configuration file to the vehicle's user end for secondary verification. If the user end successfully verifies the request, it sends a confirmation message to the cloud, allowing the latest configuration file to be transmitted to the intelligent driving domain controller. The cloud then uses the vehicle's identifier to identify the vehicle's latest configuration file pre-existing in the cloud and sends it to the vehicle controller.

[0097] After receiving the latest configuration file from the cloud, the vehicle controller verifies it and sends it to the intelligent driving domain controller if the verification is successful.

[0098] After receiving the latest configuration file, the intelligent driving domain controller overwrites and updates the configuration files in the local first and second storage areas, and then uses the configuration file in the first storage area as the default startup configuration file, that is, defining the configuration file in the first storage area as the main configuration file. Finally, it implements self-diagnosis and self-recovery in the event of configuration word errors or loss.

[0099] The configuration file repair method provided in the embodiment of the present application uses the first storage area and the second storage area of the electronic device to store the configuration file respectively, and improves the repair efficiency of the configuration file through local dual backup and auxiliary backup in the cloud.

[0100] In some embodiments, updating the configuration file based on the latest configuration file in the cloud includes:

[0101] Comparing the main configuration file with the backup configuration file;

[0102] When the main configuration file and the standby configuration file are the same, obtaining byte values of the main configuration file and the standby configuration file;

[0103] In a case where the byte value matches the abnormal byte value, the main configuration file and the standby configuration file are updated based on the latest configuration file in the cloud.

[0104] Specifically, the abnormal byte value is byte data that appears when the file is in an abnormal state, such as FF data.

[0105] If both the primary and backup configuration files have the same content, first check whether the bytes in the configuration files are abnormal. You can obtain the byte value of the primary configuration file and match it with the abnormal byte value.

[0106] If the match is successful, for example, the contents of the main configuration file are all FF, then both the main configuration file and the backup configuration file are in an abnormal state, and the latest configuration file can be obtained from the cloud to update the main configuration file and the backup configuration file.

[0107] If the matching fails, the status of the main configuration file is further confirmed through the vehicle configuration information.

[0108] The configuration file repair method provided in the embodiment of the present application can quickly confirm the status of the configuration file by matching the byte values of the main configuration file and the backup configuration file with the abnormal byte values, thereby improving the efficiency of identifying the configuration file status.

[0109] In some embodiments, after updating the configuration file and before powering off the electronic device, the method further includes:

[0110] Obtaining a running configuration file currently running the vehicle, and sending the running configuration file to the cloud to update the latest configuration file in the cloud.

[0111] The electronic device includes an intelligent driving domain controller; and sending the operation configuration file to the cloud includes:

[0112] The intelligent driving domain controller sends an upload request to the vehicle controller so that the vehicle controller can verify the running configuration file. If the verification is successful, the storage request is sent to the cloud.

[0113] After sending the storage request to the cloud, the method further includes:

[0114] When the vehicle controller receives the upload permission signal fed back from the cloud, the operation configuration file and the vehicle identifier are sent to the cloud.

[0115] The sending the operation configuration file and the vehicle identifier to the cloud includes:

[0116] The vehicle controller encrypts the operation configuration file and the identifier, sends the encrypted operation configuration file and the identifier to the cloud, and receives the storage result returned by the cloud.

[0117] After the configuration file is updated and before the electronic device is powered off, the method further includes:

[0118] The running configuration file currently running on the vehicle is obtained, and the file content of the running configuration file is overwritten into the standby configuration file.

[0119] Specifically, the running configuration file is a configuration file in a normal state that the electronic device last ran before the electronic device of the vehicle was powered off.

[0120] Before powering off an electronic device, you need to back up the currently running configuration file and overwrite the contents of the running configuration file with the backup configuration file. In addition, you also need to upload the running configuration file to the cloud for a second backup.

[0121] An upload request can be sent to the vehicle controller through the intelligent driving domain controller. The upload request is used to request uploading of the running configuration file to the cloud for backup. The vehicle controller performs a cyclic redundancy check on the received data content. If the check is successful, the vehicle controller initiates a storage request to the cloud. After the cloud confirms that it is idle and can be transmitted, it feedbacks the upload permission signal to the vehicle controller. The vehicle controller packages the running configuration file and the vehicle identifier and sends them to the cloud (for strong encryption, such as AES). The cloud receives the data, decrypts and verifies the identity, and feedbacks the final storage result and verification result. The storage results include storage success and storage failure.

[0122] For example, the intelligent driving domain controller sends the Update_Configure_File=1 signal to the vehicle controller. The vehicle controller forwards the Update_Configure_File=1 signal and the vehicle identifier to the cloud. Before sending, it verifies the security algorithm request and sends 27 01 to request Seed. The cloud responds with 27 02X1 X2X3 X4, where X1~X4 are Seeds. The vehicle controller calculates the value of KeyResult=((((Seed>>a)^Seed)<<b)^(Seed> >c)) ^KeyK calculates KeyResult. KeyK varies for each vehicle model. The vehicle controller sends KeyResult to the cloud for verification. If verification is successful, the cloud sends back a signal, Update_Configure_File_OK=1, allowing upload, to the vehicle controller. The vehicle controller then sends Update_Configure_File_OK=1 to the intelligent driving domain controller. After receiving the identifier, the intelligent driving domain controller sends the running configuration file to the vehicle controller. The vehicle controller performs a cyclic redundancy check on the 255 bytes of the running configuration file. If the verification is successful, the running configuration file is transferred to the cloud for storage.

[0123] The configuration file repair method provided in the embodiment of the present application updates the standby configuration file and the latest configuration file in the cloud by running the configuration file before the electronic device is powered off. This can ensure that the configuration files stored on each terminal are the latest and normal configuration files, and ensure that when the configuration file needs to be updated later, the latest configuration files can be obtained from multiple ports, thereby improving the efficiency of configuration file repair.

[0124] In some embodiments, the vehicle configuration information includes sensor type, supplier type, sensor version, vehicle model code and vehicle model configuration, and the vehicle configuration information is obtained from a vehicle body domain controller.

[0125] The vehicle configuration file can be set on the intelligent driving domain controller so that intelligent driving can implement different algorithms and strategy controls according to different vehicle configuration parameters. The configuration content in the configuration file can include vehicle configuration information. Figure 5 is a schematic diagram of a configuration table of a configuration file provided in an exemplary embodiment of the present application, such as Figure 5 As shown, the data in the configuration table are listed below.

[0126] You can set multiple bytes in the configuration file. For example, you can set a check byte to verify the entire data.

[0127] The file content of the configuration file may include the version information of the configuration file, so as to verify the version and correspond to the cloud. For example, if the version is 1234567890AB, the cloud should have a corresponding backup of the same version file 1234567890AB data.

[0128] The vehicle model code can be set in the configuration file. The vehicle model code can be used to compare the accuracy of the overall data with the vehicle body domain controller. It can also be used in the cloud to confirm whether the current vehicle model code matches the latest configuration file in the cloud. Different vehicle models have different and unique codes.

[0129] The vehicle configuration can be set in the configuration file, which has the same function as the vehicle code. It can be used as a detailed description of the vehicle configuration and can be used for application comparison of the entire function.

[0130] The configuration data of the intelligent driving function can be set in the configuration file, such as the side distance warning function switch. Through this configuration data, it can be determined in advance whether the current vehicle needs to support the algorithm application of the side distance warning function.

[0131] The power type can be set in the configuration file to distinguish between hybrid and pure electric types of vehicles. Because different types of communication data signals are different, the algorithm docking and differentiation need to be made through the configuration word of the power type.

[0132] Suspension data can be set in the configuration file to confirm whether the vehicle has adjustable suspension. The suspension data is related to the implementation method of the road preview function. For example, if it is set to 1, the vehicle model can support the intelligent driving function of road preview.

[0133] The configuration file can set the sensor type and manufacturer of each camera. These configuration words involve how the intelligent driving algorithm adapts and applies to different sensors. For example, manufacturer A supports one algorithm interface, and manufacturer B supports another algorithm interface. Through this configuration, the algorithm code can be switched freely.

[0134] The configuration file repair method provided in the embodiment of the present application can improve the comprehensiveness of the file content of the configuration file and enhance the role of the configuration file through the configuration word data setting of the front end.

[0135] The configuration file repairing device provided in an embodiment of the present application is described below. The configuration file repairing device described below and the configuration file repairing method described above can refer to each other.

[0136] Figure 6 is a schematic diagram of the structure of the configuration file repair device provided in the embodiment of the present application, such as Figure 6 As shown, the apparatus includes a repair module 610 .

[0137] The repair module 610 is configured to update the configuration file of the vehicle based on the vehicle configuration information and / or the latest configuration file in the cloud when the configuration file of the vehicle is in an abnormal state.

[0138] The configuration file repair device provided in the embodiment of the present application updates the vehicle configuration file using vehicle configuration information and / or the latest configuration file in the cloud when the vehicle configuration file is in an abnormal state. This allows the configuration file to be repaired in a timely manner when the vehicle configuration file is in an abnormal state, thereby improving the efficiency of configuration file repair and enhancing the safety of intelligent driving.

[0139] In some embodiments, whether the configuration file is in an abnormal state is determined based on the vehicle configuration information.

[0140] In some embodiments, determining whether the configuration file is in an abnormal state based on the vehicle configuration information includes:

[0141] The vehicle configuration information is matched with the configuration information in the configuration file, and if the matching fails, it is determined that the configuration file is in an abnormal state.

[0142] In some embodiments, the configuration file includes a main configuration file and a backup configuration file, and the main configuration file and the backup configuration file are stored in different areas.

[0143] In some embodiments, the main configuration file and the standby configuration file are the same, and both the main configuration file and the standby configuration file are in an abnormal state.

[0144] In some embodiments, the main configuration file and the backup configuration file are different, and the main configuration file and / or the backup configuration file are in an abnormal state.

[0145] In some embodiments, when both the primary configuration file and the standby configuration file are in an abnormal state, an update request is sent to the cloud, and the latest configuration file sent by the cloud is received;

[0146] Overwrite the file content of the latest configuration file to the main configuration file and the standby configuration file respectively.

[0147] In some embodiments, updating the configuration file based on the vehicle configuration information and / or the latest configuration file in the cloud includes:

[0148] When the main configuration file is in a normal state and the standby configuration file is in an abnormal state, the file content of the main configuration file is overwritten into the standby configuration file.

[0149] In some embodiments, updating the configuration file based on the vehicle configuration information and / or the latest configuration file in the cloud includes:

[0150] When the main configuration file is in an abnormal state and the standby configuration file is in a normal state, the file content of the standby configuration file is overwritten into the main configuration file.

[0151] In some embodiments, the main configuration file is stored in a first storage area of the electronic device, and the backup configuration file is stored in a second storage area of the electronic device; the storage addresses of the first storage area and the second storage area are different, and the first storage area and the second storage area are independent of each other.

[0152] In some embodiments, after the electronic device is started, confirming whether the configuration file exists in the first storage area and the second storage area;

[0153] When the main configuration file does not exist in the first storage area and the backup configuration file does not exist in the second storage area, a download request is sent to the cloud, the latest configuration file sent by the cloud is received, and the latest configuration file is synchronized to the first storage area and the second storage area.

[0154] In some embodiments, when the main configuration file exists in the first storage area and the backup configuration file does not exist in the second storage area, the main configuration file is run and synchronized to the second storage area.

[0155] In some embodiments, when the main configuration file does not exist in the first storage area and the standby configuration file exists in the second storage area, the standby configuration file is run and synchronized to the first storage area.

[0156] In some embodiments, it further includes:

[0157] The value of the preset flag is set to the flag value of the storage area where the configuration file to be run is located, and the preset flag is used to indicate running the main configuration file in the first storage area or the standby configuration file in the second storage area.

[0158] In some embodiments, the vehicle configuration information includes sensor type, supplier type, sensor version, vehicle model code and / or vehicle model configuration.

[0159] In some embodiments, the vehicle configuration information is obtained from a body domain controller.

[0160] In some embodiments, updating the configuration file based on the latest configuration file in the cloud includes:

[0161] Sending the update request sent by the electronic device and the identifier of the vehicle to the cloud through the vehicle controller;

[0162] The vehicle controller receives the latest configuration file sent from the cloud.

[0163] In some embodiments, receiving, by the vehicle controller, the latest configuration file returned from the cloud, includes:

[0164] When the update request passes the verification, the cloud sends the latest configuration file to the electronic device through the vehicle controller.

[0165] In some embodiments, the latest configuration file is returned to the vehicle controller after the cloud verifies the update request based on a key.

[0166] In some embodiments, the latest configuration file is sent to the electronic device after the vehicle controller successfully verifies the latest configuration file.

[0167] In some embodiments, the electronic device includes an intelligent driving domain controller.

[0168] In some embodiments, updating the configuration file based on the latest configuration file in the cloud includes:

[0169] Based on the cloud, information requesting to download the latest configuration file is sent to the user terminal of the vehicle, and the latest configuration file is sent to the electronic device after receiving a confirmation signal sent by the user terminal.

[0170] In some embodiments, receiving the latest configuration file sent by the cloud includes:

[0171] The latest configuration file is stored in the first storage area and the second storage area respectively.

[0172] In some embodiments, updating the configuration file based on the latest configuration file in the cloud includes:

[0173] Comparing the main configuration file with the backup configuration file;

[0174] When the main configuration file and the standby configuration file are the same, obtaining byte values of the main configuration file and the standby configuration file;

[0175] In a case where the byte value matches the abnormal byte value, the main configuration file and the standby configuration file are updated based on the latest configuration file in the cloud.

[0176] In some embodiments, after updating the configuration file and before powering off the electronic device, the method further includes:

[0177] Obtaining a running configuration file currently running the vehicle, and sending the running configuration file to the cloud to update the latest configuration file in the cloud.

[0178] In some embodiments, the electronic device includes a smart driving domain controller; and sending the operating configuration file to the cloud includes:

[0179] The intelligent driving domain controller sends an upload request to the vehicle controller so that the vehicle controller can verify the running configuration file. If the verification is successful, the storage request is sent to the cloud.

[0180] In some embodiments, after sending the storage request to the cloud, the method further includes:

[0181] When the vehicle controller receives the upload permission signal fed back from the cloud, the operation configuration file and the vehicle identifier are sent to the cloud.

[0182] In some embodiments, sending the operating configuration file and the vehicle identifier to the cloud includes:

[0183] The vehicle controller encrypts the operation configuration file and the identifier, sends the encrypted operation configuration file and the identifier to the cloud, and receives the storage result returned by the cloud.

[0184] In some embodiments, after updating the configuration file and before powering off the electronic device, the method further includes:

[0185] When the configuration file is in an abnormal state or the configuration file is in a normal state, the running configuration file currently running the vehicle is obtained, and the file content of the running configuration file is overwritten into the standby configuration file.

[0186] Among them, the repair module can be used to execute step 110 in the embodiment corresponding to the above-mentioned configuration file repair method. For the specific implementation methods and more details of these modules, please refer to the corresponding method part, and they can achieve the same technical effects, so they will not be repeated here.

[0187] An embodiment of the present application further provides a computer-readable storage medium having instructions stored thereon. When the instructions are executed by a processor, the processor is configured to execute the above-mentioned configuration file repair method.

[0188] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, systems or computer program products. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0189] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0190] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.

[0191] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0192] In a typical configuration, a computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.

[0193] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0194] Computer-readable media includes permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology for information storage. Information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices, or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include transitory computer-readable media such as modulated communication signals and carrier waves.

[0195] Figure 7 is a schematic structural diagram of a vehicle provided in an exemplary embodiment of the present application, such as Figure 7 As shown, in this embodiment, the vehicle includes an electronic device, which is used to perform the steps of the above-mentioned configuration file repair method. In this embodiment, the vehicle can be a fuel vehicle, a plug-in hybrid vehicle, or a new energy vehicle, etc., which is not specifically limited in this application.

[0196] An embodiment of the present application also provides an electronic device having a computer program stored thereon, which implements the steps of the above method when executed by a processor.

[0197] An embodiment of the present application further provides a computer program product, comprising a computer program or instructions, which implement the steps of the above method when executed by a processor.

[0198] In the description of this application, the terms "first" and "second" are used for descriptive purposes only and should not be understood to indicate or imply relative importance or implicitly specify the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more features. In the description of this application, "plurality" means two or more, unless otherwise specifically defined.

[0199] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0200] The embodiments, implementation methods and related technical features of the present application can be combined and replaced with each other without conflict.

[0201] The above are merely preferred embodiments of the present application and do not constitute any form of limitation to the present application. However, any simple modifications, equivalent changes, and modifications to the above embodiments based on the technical essence of the present application that do not deviate from the content of the technical solution of the present application are still within the scope of the technical solution of the present application.

Claims

1. A configuration file repair method, characterized in that: An electronic device applied to a vehicle, the method comprising: When the configuration file of the vehicle is in an abnormal state, the configuration file is updated based on the vehicle configuration information and / or the latest configuration file in the cloud.

2. The method according to claim 1, characterized in that Also includes: It is determined whether the configuration file is in an abnormal state based on the vehicle configuration information.

3. The method according to claim 2, characterized in that The determining whether the configuration file is in an abnormal state based on the vehicle configuration information includes: The vehicle configuration information is matched with the configuration information in the configuration file, and if the matching fails, it is determined that the configuration file is in an abnormal state.

4. The method according to claim 2 or 3, characterized in that The configuration files include a main configuration file and a standby configuration file, and the main configuration file and the standby configuration file have different storage areas.

5. The method according to claim 4, characterized in that The main configuration file and the standby configuration file are the same, and both the main configuration file and the standby configuration file are in an abnormal state.

6. The method according to claim 4, characterized in that The main configuration file and the standby configuration file are different, and the main configuration file and / or the standby configuration file are in an abnormal state.

7. The method according to claim 5 or 6, characterized in that When both the primary configuration file and the backup configuration file are in an abnormal state, sending an update request to the cloud and receiving the latest configuration file sent by the cloud; Overwrite the file content of the latest configuration file to the main configuration file and the standby configuration file respectively.

8. The method according to claim 6, characterized in that The updating of the configuration file based on the vehicle configuration information and / or the latest configuration file in the cloud includes: When the main configuration file is in a normal state and the standby configuration file is in an abnormal state, the file content of the main configuration file is overwritten into the standby configuration file.

9. The method according to claim 6, characterized in that The updating of the configuration file based on the vehicle configuration information and / or the latest configuration file in the cloud includes: When the main configuration file is in an abnormal state and the standby configuration file is in a normal state, the file content of the standby configuration file is overwritten into the main configuration file.

10. The method according to claim 4, characterized in that The main configuration file is stored in a first storage area of the electronic device, and the standby configuration file is stored in a second storage area of the electronic device; the storage addresses of the first storage area and the second storage area are different, and the first storage area and the second storage area are independent of each other.

11. The method according to claim 10, characterized in that After the electronic device is started, confirming whether the configuration file exists in the first storage area and the second storage area; When the main configuration file does not exist in the first storage area and the backup configuration file does not exist in the second storage area, a download request is sent to the cloud, the latest configuration file sent by the cloud is received, and the latest configuration file is synchronized to the first storage area and the second storage area.

12. The method according to claim 10, characterized in that In a case where the main configuration file exists in the first storage area and the standby configuration file does not exist in the second storage area, the main configuration file is executed and synchronized to the second storage area.

13. The method according to claim 10, characterized in that In a case where the main configuration file does not exist in the first storage area and the standby configuration file exists in the second storage area, the standby configuration file is executed and synchronized to the first storage area.

14. The method according to claim 12 or 13, characterized in that Also includes: The value of the preset flag is set to the flag value of the storage area where the configuration file to be run is located, and the preset flag is used to indicate running the main configuration file in the first storage area or the standby configuration file in the second storage area.

15. The method according to claim 4, characterized in that The updating of the configuration file based on the latest configuration file in the cloud includes: Comparing the main configuration file with the backup configuration file; When the main configuration file and the standby configuration file are the same, obtaining byte values of the main configuration file and the standby configuration file; In a case where the byte value matches the abnormal byte value, the main configuration file and the standby configuration file are updated based on the latest configuration file in the cloud.

16. The method according to claim 4, characterized in that After the configuration file is updated and before the electronic device is powered off, the method further includes: The running configuration file currently running on the vehicle is obtained, and the file content of the running configuration file is overwritten into the standby configuration file.

17. The method according to claim 1, wherein The vehicle configuration information includes sensor type, supplier type, sensor version, vehicle model code and / or vehicle model configuration.

18. The method according to claim 17, characterized in that The vehicle configuration information is obtained from the vehicle body domain controller.

19. The method according to claim 1, wherein The updating of the configuration file based on the latest configuration file in the cloud includes: Sending the update request sent by the electronic device and the identifier of the vehicle to the cloud through the vehicle controller; The vehicle controller receives the latest configuration file sent from the cloud.

20. The method according to claim 19, characterized in that The receiving, by the vehicle controller, the latest configuration file returned by the cloud, includes: When the update request passes the verification, the cloud sends the latest configuration file to the electronic device through the vehicle controller.

21. The method according to claim 20, characterized in that The latest configuration file is returned to the vehicle controller after the cloud verifies the update request based on a key.

22. The method according to claim 21, characterized in that The latest configuration file is sent to the electronic device after the vehicle controller successfully verifies the latest configuration file.

23. The method according to any one of claims 19 to 22, characterized in that The electronic device includes an intelligent driving domain controller.

24. The method according to claim 1, wherein The updating of the configuration file based on the latest configuration file in the cloud includes: Based on the cloud, information requesting to download the latest configuration file is sent to the user terminal of the vehicle, and the latest configuration file is sent to the electronic device after receiving a confirmation signal sent by the user terminal.

25. The method according to claim 1, wherein After the configuration file is updated and before the electronic device is powered off, the method further includes: Obtaining a running configuration file currently running the vehicle, and sending the running configuration file to the cloud to update the latest configuration file in the cloud.

26. The method according to claim 25, characterized in that The electronic device includes an intelligent driving domain controller; and sending the operation configuration file to the cloud includes: The intelligent driving domain controller sends an upload request to the vehicle controller so that the vehicle controller can verify the running configuration file. If the verification is successful, the storage request is sent to the cloud.

27. The method according to claim 26, characterized in that After sending the storage request to the cloud, the method further includes: When the vehicle controller receives the upload permission signal fed back from the cloud, the operation configuration file and the vehicle identifier are sent to the cloud.

28. The method according to claim 27, characterized in that The sending the operation configuration file and the vehicle identifier to the cloud includes: The vehicle controller encrypts the operation configuration file and the identifier, sends the encrypted operation configuration file and the identifier to the cloud, and receives the storage result returned by the cloud.

29. A configuration file repair device, characterized in that: An electronic device applied to a vehicle, the device comprising: The repair module is used to update the configuration file of the vehicle based on the vehicle configuration information and / or the latest configuration file in the cloud when the configuration file of the vehicle is in an abnormal state.

30. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 28 are implemented.

31. An electronic device having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 28 are implemented.

32. A vehicle, characterized in that: The electronic device comprises an electronic device configured to perform the steps of the method according to any one of claims 1 to 28; or the electronic device according to claim 31.

33. A computer program product, characterized in that The method comprises a computer program or instructions, which implement the steps of the method according to any one of claims 1 to 28 when executed by a processor.