File update method, vehicle battery replacement system, vehicle and storage medium

By providing a file update method in intelligent vehicles, the problem of time-consuming and high traffic during vehicle data update is solved, and a more efficient and safe data update process is achieved.

CN114816494BActive Publication Date: 2025-06-10NIO TECH ANHUI CO LTD +1
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202210396255.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-15
Publication Date
2025-06-10
Estimated Expiration
2042-04-15

AI Technical Summary

Technical Problem

When intelligent vehicles are updated across large versions, the data packets for updating files are large, the downloading takes a lot of time, and the process consumes more data traffic, which affects the efficiency of vehicle data updates.

Method used

Provide a file update method, by receiving files pointing to the vehicle from the server, performing security verification, extracting file version information, and querying whether the vehicle battery contains file and file version information. If the vehicle battery does not save the file or the file version is lower than the new version, write the latest version of the file to the vehicle battery.

Benefits of technology

Reduces the time and data traffic for vehicle data updates, improves update efficiency, and enhances data security, avoiding the risk of network hijacking.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114816494B_ABST
    Figure CN114816494B_ABST
Patent Text Reader

Abstract

The present application relates to a file update method, a vehicle battery replacement system, a vehicle and a storage medium. The file update method includes: receiving, from a server, a file directed to a vehicle, the file having first version information; performing a security check on the file, and extracting the first version information when the file passes the security check; querying whether a file is stored in the vehicle battery and, when a file is stored, querying second version information possessed by the file; and writing, to the vehicle battery, a file having the first version information when no file is stored in the vehicle battery or when the second version information is lower than the first version information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of vehicle data transmission. Specifically, it relates to a file update method, a vehicle battery replacement system, a vehicle, and a storage medium. Background Art

[0002] Different from traditional vehicles, current intelligent vehicles rely more on operating systems, various software, and services deployed on the vehicle side, and the operating systems, software, and services need to be updated frequently. For example, a vehicle can download update files from a server through Firmware Over-The-Air (FOTA) technology. However, when performing cross-major version updates, the data packets of the update files are relatively large, and the download often takes several hours. In addition, this process also uses data traffic based on cellular communication technology.

[0003] On the other hand, the corresponding supporting facilities for electric intelligent vehicles are becoming more and more common. For example, a battery swapping station can improve the vehicle's endurance by replacing the vehicle's battery with a fully charged one. This can significantly increase the power replenishment speed of intelligent electric vehicles, thus solving the problem of long charging time for electric vehicles.

[0004] In view of this, it is necessary to improve the current vehicle data update mechanism. Summary of the Invention

[0005] Embodiments of the present application provide a file update method, a vehicle battery replacement system, a vehicle, and a storage medium, which are used to realize the temporary storage and transmission of files directed to a vehicle.

[0006] According to one aspect of the present application, a file update method is provided. The method includes: receiving a file directed to a vehicle from a server, the file having first version information; performing a security check on the file, and extracting the first version information when the file passes the security check; querying whether the vehicle battery stores the file and querying the second version information of the file when the file is stored; and writing the file with the first version information to the vehicle battery when the vehicle battery does not store the file or the second version information is lower than the first version information.

[0007] In some embodiments of the present application, optionally, the file is an update data packet for a vehicle.

[0008] In some embodiments of the present application, optionally, writing the file with the first version information to the vehicle battery specifically includes: overwriting the file with the second version information stored in the vehicle battery with the file having the first version information.

[0009] In some embodiments of the present application, optionally, writing a file with the first version information to the vehicle battery specifically includes: determining the difference between the file with the first version information and the file with the second version information, so as to generate a file incremental update package; and overwriting the file with the second version information with the file incremental update package, where the incremental update package includes the first version information and the second version information.

[0010] In some embodiments of the present application, optionally, the method further includes the following steps: querying the version information of the files saved in each vehicle battery within the same local area network; reading the file with the latest version information; and upgrading each vehicle battery within the same local area network to have the file with the latest version information.

[0011] In some embodiments of the present application, optionally, the method further includes the following steps: the vehicle equipped with the vehicle battery sends a first query request to the vehicle battery to obtain the version information of the file saved in the vehicle battery; and the vehicle determines whether to pull the file from the vehicle battery based on the comparison between the version information of its own file and the version information of the file saved in the vehicle battery.

[0012] In some embodiments of the present application, optionally, the method further includes the following steps: the vehicle equipped with the vehicle battery sends a second query request to the server to obtain the latest version information of the file; the vehicle sends a first query request to the vehicle battery to obtain the version information of the file saved in the vehicle battery; and the vehicle determines whether to pull the file from the vehicle battery based on the comparison between the latest version information and the version information of the file saved in the vehicle battery.

[0013] In some embodiments of the present application, optionally, the method further includes the following steps: the vehicle is further configured to perform a security check on the file pulled from the vehicle battery.

[0014] According to another aspect of the present application, there is provided a vehicle battery replacement system. The system includes: a storage module configured to store instructions; a processor configured to execute the instructions to perform the following operations: receiving a file pointing to a vehicle from a server, the file having a first version information; performing a security check on the file, and extracting the first version information when the file passes the security check; querying whether the vehicle battery stores a file and, if so, querying the second version information of the file; and writing a file with the first version information to the vehicle battery when the vehicle battery does not save the file or the second version information is lower than the first version information.

[0015] In some embodiments of the present application, optionally, the file is an update data packet for a vehicle.

[0016] In some embodiments of the present application, optionally, writing the file with the first version information to the vehicle battery specifically includes: overwriting the file with the second version information stored in the vehicle battery with the file having the first version information.

[0017] In some embodiments of the present application, optionally, writing the file with the first version information to the vehicle battery specifically includes: determining the difference between the file with the first version information and the file with the second version information, thereby generating a file incremental update package; and overwriting the file with the second version information with the file incremental update package, where the incremental update package includes the first version information and the second version information.

[0018] In some embodiments of the present application, optionally, when executing the instruction, the processor further performs the following operations: querying the version information of the files stored in each vehicle battery within the same local area network; reading the file with the latest version information; and upgrading each vehicle battery within the same local area network to have the file with the latest version information.

[0019] According to another aspect of the present application, a vehicle is provided. The vehicle includes a vehicle battery, and the vehicle battery can be charged and written with files via any one of the vehicle battery replacement systems described above.

[0020] In some embodiments of the present application, optionally, the vehicle further includes: a storage module configured to store instructions; a processor configured to execute the instructions to perform the following operations: sending a first query request to the vehicle battery to obtain the version information of the file stored in the vehicle battery; and determining whether to pull the file from the vehicle battery based on the comparison between the version information of its own file and the version information of the file stored in the vehicle battery.

[0021] In some embodiments of the present application, optionally, the vehicle further includes: a storage module configured to store instructions; a processor configured to execute the instructions to perform the following operations: sending a second query request to the server to obtain the latest version information of the file; sending a first query request to the vehicle battery to obtain the version information of the file stored in the vehicle battery; and determining whether to pull the file from the vehicle battery based on the comparison between the latest version information and the version information of the file stored in the vehicle battery.

[0022] In some embodiments of the present application, optionally, when the processor executes the instructions, the following operations are further performed: performing a security check on the file pulled from the vehicle battery.

[0023] According to another aspect of the present application, there is provided a computer-readable storage medium storing instructions, characterized in that when the instructions are executed by a processor, the processor is caused to execute any one of the file update methods described above. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] From the following detailed description in conjunction with the accompanying drawings, the above and other objects and advantages of the present application will become more fully apparent, wherein like or similar elements are denoted by the same reference numerals.

[0025] Figure 1 FIG. 1 shows a file update system according to an embodiment of the present application;

[0026] Figure 2 FIG. 2 shows a file update method according to an embodiment of the present application;

[0027] Figure 3 FIG. 3 shows a file update method according to an embodiment of the present application;

[0028] Figure 4 FIG. 4 shows a file update method according to an embodiment of the present application;

[0029] Figure 5 FIG. 5 shows a file update system according to an embodiment of the present application;

[0030] Figure 6 FIG. 6 shows a vehicle battery replacement system according to an embodiment of the present application;

[0031] Figure 7 FIG. 7 shows a vehicle according to an embodiment of the present application. DETAILED DESCRIPTION

[0032] For the sake of brevity and illustrative purposes, the principles of the present application are mainly described herein with reference to its exemplary embodiments. However, those skilled in the art will readily recognize that the same principles can be equivalently applied to all types of file update methods, vehicle battery replacement systems, vehicles, and storage media, and that these same or similar principles can be implemented therein, and any such variations do not depart from the true spirit and scope of the present application.

[0033] Figure 1 FIG. 1 shows a file update system 10 according to an embodiment of the present application, Figure 5The physical form of a file update system 50 according to an embodiment of the present application is shown. The basic principles of the present invention (including the basic working principles of the file update method, the vehicle battery replacement system and the vehicle, etc.) will be combined with Figure 1 The file update system 10 shown in Figure 5 The physical form of the file updating system 50 shown in FIG.

[0034] One aspect of the present application provides a file update method, such as Figure 2 As shown, the file update method 20 includes the following steps: in step S202, a file (having first version information) pointing to the vehicle is received from the server; in step S204, a security check is performed on the file, and the first version information is extracted if the file passes the security check; in step S206, whether the vehicle battery stores the file and if the file is stored, the second version information of the file is queried; and in step S208, if the vehicle battery does not store the file or the second version information is lower than the first version information, the file with the first version information is written to the vehicle battery.

[0035] The file updating method 20 receives a file directed to the vehicle from a server in step S202, where the file has first version information. Figure 1 As shown, the vehicle battery replacement system 104 in the file update system 10 initiates a query request to the server 106 in step S111, and the content of the query request may include the latest version of the file, etc. In some embodiments of the present application, the file may be an update data packet for the vehicle. For example, the file may be an update data packet for an operating system, or an update data packet for a program or service running on the operating system. It should be noted that although these files may be temporarily stored in, for example, the vehicle battery replacement system 104 or the vehicle battery 102 of the file update system 10, these files can ultimately be used to update the functions and services of the vehicle 108, and therefore these files are directed to the vehicle. Subsequently, the server 106 may send the file to the vehicle battery replacement system 104 in step S112, and the vehicle battery replacement system 104 may receive the file for subsequent processing.

[0036] The file updating method 20 performs a security check on the file in step S204, and extracts its version information (first version information) if the file passes the security check. Figure 1, the vehicle battery replacement system 104 will perform a security check on the received file in step S113, which may include signature verification, file hash verification, etc. The first version information contained in the file will only be extracted after passing the verification, and if the verification fails, the file will be discarded. The security check performed on the file by the file update method 20 in step S204 can ensure the security of the data finally loaded into the vehicle 108 and prevent the file from being maliciously tampered with during transmission.

[0037] Return Figure 2 , the file update method 20 queries in step S206 whether the vehicle battery stores a file and, if a file is stored, queries the version information (second version information) of the file. Specifically, please continue to refer to Figure 1 , the vehicle battery replacement system 104 can initiate a query request to the vehicle battery 102 in step S114. The content of the query request may include whether the vehicle battery 102 stores a file and, if a file is stored, queries the second version information of the file. The prefixes (first, second, etc.) of the version information described herein are only intended to distinguish its source or its storage location, and do not necessarily mean that there are differences in numerical values or content between the two. In addition, the forms of various version information may vary, and the present application does not limit this either.

[0038] Subsequently, the vehicle battery 102 will return a query result to the vehicle battery replacement system 104 in step S115. The query result may indicate whether a file and / or the version information of the file is stored in the vehicle battery 102.

[0039] Return Figure 2 , the file update method 20 writes a file with the first version information to the vehicle battery in step S208 when the vehicle battery does not store the file or the second version information is lower than the first version information. Figure 1 Step S116 in shows that the vehicle battery replacement system 104 can determine to write a file with the first version information to the vehicle battery 102 according to the query result returned from the vehicle battery 102. Specifically, if the vehicle battery 102 did not originally store a file or the stored file version was too low, then the vehicle battery replacement system 104 can write a file with the first version information to it. Since the file can be applicable to the vehicle 108 that can accommodate the vehicle battery 102, writing the latest file to the vehicle battery 102 can temporarily store the file in a pre-loaded manner, and once the vehicle battery 102 is installed on the vehicle 108, the file can be immediately called.

[0040] In some embodiments of the present application, writing a file with the first version information to the vehicle battery in step S208 may be a full version. Thus Figure 1The process of writing the file in step S116 in [description] can overwrite the file with the second version information stored in the vehicle battery with the file with the first version information. This update method will ensure that vehicle 108 can obtain a complete version of the file. Therefore, regardless of the version of the current file in vehicle 108, vehicle 108 can always be upgraded to the latest version.

[0041] In some embodiments of the present application, writing the file with the first version information to the vehicle battery in step S208 can be an incremental version. Thus Figure 1 The process of writing the file in step S116 in [description] can specifically include: determining the difference between the file with the first version information and the file with the second version information, so as to generate a file incremental update package; and overwriting the file with the second version information with the file incremental update package, where the incremental update package includes the first version information and the second version information. This update method will minimize the volume of the file for upgrade.

[0042] Generally speaking, the major version update cycle of an operating system such as that of vehicle 108 is generally relatively long. Therefore, most vehicles have been upgraded to the previous version of the operating system before updating to the latest version of the operating system. In view of this, a file incremental update package can be used for vehicle 108 to implement upgrades such as the operating system. Vehicle 108 can determine whether the file incremental update package stored in vehicle battery 102 is applicable to itself according to the first version information and the second version information in the incremental update package (thereby indicating that this file is applicable to upgrading from the second version to the first version).

[0043] It should be noted that vehicle battery 102 can only accept file writing from vehicle battery replacement system 104 to ensure data reliability. In addition, the data stored in vehicle battery 102 can be retrieved by vehicle battery replacement system 104 and vehicle 108.

[0044] Continue to refer to Figure 2 , after the file update method 20 finishes executing step S208, it will enter the A entrance shown in the figure, and the A entrance is the entrance to the subsequent steps (see Figure 3 and the appendix Figure 4 ). The content of the subsequent steps will be described in detail below.

[0045] In some embodiments of the present application, the file update method 20 can also implement "aligned" upgrades of vehicle batteries according to vehicle batteries connected to the same internal network (for example, vehicle batteries being charged in the same vehicle battery replacement system) - enabling all vehicle batteries to be upgraded to the latest version that all vehicle batteries can provide simultaneously. As Figure 2As shown, the file update method 20 may further include the following steps: querying the version information of the files stored in each vehicle battery within the same local area network in step S210; reading the file with the latest version information in step S212; and upgrading each vehicle battery within the same local area network to the file with the latest version information in step S214.

[0046] As a supplement to Figure 1 the update principle shown, according to Figure 2 the optional steps shown in, the vehicle battery replacement system 104 can also upgrade the files stored in the vehicle batteries 102 that the vehicle battery replacement system 104 can manage to the latest version (the latest version that each vehicle battery within the local area network can provide) without relying on the server 106. On the one hand, this can save the link overhead between the vehicle battery replacement system 104 and the server 106, and on the other hand, it can also provide an alternative or supplementary solution when the network connection is not smooth.

[0047] As Figure 2 shown, the file update method 20 will also enter the A entrance shown after executing step S214.

[0048] In some embodiments of the present application, the file update method 20 can directly update the vehicle according to the files stored in the vehicle battery. Specifically, as Figure 3 shown, the file update method 20 may further include the following steps: in step S302, the vehicle equipped with the vehicle battery sends a first query request to the vehicle battery to obtain the version information of the files stored in the vehicle battery; and in step S304, the vehicle determines whether to pull the file from the vehicle battery based on the comparison between the version information of its own files and the version information of the files stored in the vehicle battery. For example, if the version information of the vehicle's own files is higher than or the same as the version information of the files stored in the vehicle battery, the vehicle does not need to pull the file from the battery; if the version information of the vehicle's own files is lower than the version information of the files stored in the vehicle battery, the vehicle can pull the file from the battery and upgrade accordingly.

[0049] In some embodiments of the present application, continuing to refer to Figure 3 , the file update method 20 further includes that in step S306, the vehicle is also configured to perform a security check on the file pulled from the vehicle battery, and can use the file to update the vehicle's operating system, software or service, etc. after passing the security check.

[0050] In some embodiments of the present application, the file update method 20 can first query the server to check whether there is an updated version of the file and then update the vehicle according to the files stored in the vehicle battery. Specifically, as Figure 4As shown, the file update method 20 further includes the following steps: In step S402, a vehicle equipped with a vehicle battery can send a second query request to a server to obtain the latest version information of a file; In step S404, the vehicle sends a first query request to the vehicle battery to obtain the version information of the file stored in the vehicle battery; And in step S406, the vehicle determines whether to pull the file from the vehicle battery based on the comparison between the latest version information and the version information of the file stored in the vehicle battery.

[0051] For example, as Figure 1 shown, after the vehicle battery 102 is assembled to the vehicle 108, the vehicle 108 can send a query request to the server 106 in step S117 to obtain the latest version information of the file. The server 106 can then return the query result to the vehicle 108 in step S118, and the query result can include the latest version information of the file.

[0052] Further, the vehicle 108 can send a query request to the vehicle battery 102 in step S119 to obtain the latest version information of the file. The vehicle battery 102 can then return the query result to the vehicle 108 in step S120, and the query result can include the version information of the file stored in the vehicle battery 102.

[0053] The vehicle 108 can then determine whether to pull the file from the vehicle battery 102 in step S121 according to the comparison result between the latest version information obtained from the server 106 and the version information of the file stored in the vehicle battery 102. For example, the vehicle 108 can pull the file from the vehicle battery 102 to update only when the version information of the file stored in the vehicle battery 102 is the latest version information. As Figure 1 shown, the vehicle 108 can initiate a file request to the vehicle battery 102 in step S122 and receive the file from the vehicle battery 102 in step S123. And if the version information of the file stored in the vehicle battery 102 is not the latest version information, the vehicle 108 may still pull the latest version of the file from the server 106 ( Figure 1 this process is not shown in the figure).

[0054] In some embodiments of the present application, continuing to refer to Figure 4 , the file update method 20 further includes that in step S306, the vehicle is further configured to perform a security check on the file pulled from the vehicle battery, and can use the file to update the vehicle's operating system, software, service, etc. after passing the security check. Continuing to refer to Figure 1 , the vehicle 108 can perform a security check on the file pulled in step S123 in step S124.

[0055] Another aspect of the present application provides a vehicle battery replacement system. As Figure 6 shown, the vehicle battery replacement system 104 includes a storage module 602 and a processor 604. Among them, the storage module 602 is configured to store instructions; the processor 604 is configured to execute the instructions to perform the following operations: receive a file pointing to the vehicle from the server, the file having first version information; perform a security check on the file, and extract the first version information if the file passes the security check; query whether the vehicle battery stores the file and query the second version information of the file if the file is stored; and write the file with the first version information to the vehicle battery if the vehicle battery does not save the file or the second version information is lower than the first version information.

[0056] In some embodiments of the present application, the file is an update data packet for the vehicle.

[0057] In some embodiments of the present application, writing the file with the first version information to the vehicle battery specifically includes: overwriting the file with the second version information stored in the vehicle battery with the file with the first version information.

[0058] In some embodiments of the present application, writing the file with the first version information to the vehicle battery specifically includes: determining the difference between the file with the first version information and the file with the second version information, thereby generating a file incremental update package; and overwriting the file with the second version information with the file incremental update package, where the incremental update package includes the first version information and the second version information.

[0059] In some embodiments of the present application, when the processor executes the instructions, it also performs the following operations: query the version information of the files saved in each vehicle battery within the same local area network; read the file with the latest version information; and upgrade each vehicle battery within the same local area network to the file with the latest version information.

[0060] When the processor 604 of the vehicle battery replacement system 104 is configured to execute the instructions stored in the storage module 602, the operations performed can be carried out according to the corresponding steps of the method described above, the content of which is incorporated herein by reference and will not be elaborated here. The vehicle battery replacement system 104 can realize temporarily storing the file in the vehicle battery 102, making data preparations for subsequent transfer to the vehicle 108. It should be noted that the vehicle battery replacement system 104 can be implemented independently of the vehicle 108. In other words, the vehicle battery replacement system 104 is only used to realize the temporary storage of the file, regardless of whether the vehicle 108 utilizes the file subsequently.

[0061] Figure 5A file update system 50 is shown, which includes a vehicle battery 102, a vehicle battery replacement system 104 (specifically, a battery swapping station 104), a server 106, a vehicle 108, and a network infrastructure 110, etc. Among them, the network infrastructure 110 includes networks 502 and 504 that are respectively connected to the vehicle battery replacement system 104 and the vehicle 108. The vehicle battery replacement system 104 can be connected to the network 502 (and then connected to the server 106) through a wired link, while the vehicle can be connected to the network 504 (and then connected to the server 106) through a wireless link constructed by a base station 506.

[0062] The vehicle battery replacement system 104 can remove the vehicle battery 102 from the vehicle 108, for example, by a common chassis removal process to remove the vehicle battery 102, and transfer it to the charging station of the battery replacement system 104. Figure 5 It schematically depicts that multiple vehicle batteries 102 are charged in an upright manner at the charging station of the battery replacement system 104.

[0063] The vehicle battery replacement system 104 includes Figure 6 the storage module 602 and the processor 604 shown ( Figure 5 not shown in the figure). In addition, the vehicle battery replacement system 104 also includes a voltage conversion unit 1041 to convert the grid voltage into a voltage that can charge the vehicle battery 102, and provide the converted voltage to the vehicle battery 102 through the charging unit 1042.

[0064] The vehicle battery replacement system 104 also includes a network interface 1043 and a switching device 1044, enabling the vehicle battery replacement system 104 to be connected to the server 106 via the network infrastructure 110.

[0065] When the processor 604 of the vehicle battery replacement system 104 is configured to execute the instructions stored in the storage module 602, the vehicle battery replacement system 104 receives a file pointing to the vehicle 108 from the server 106 via the network infrastructure 110, the switching device 1044, and the network interface 1043. The file has first version information. The vehicle battery replacement system 104 can then perform a security check on the file received from the server 106 and extract the first version information if the file passes the security check.

[0066] Next, the vehicle battery replacement system 104 can query whether the vehicle battery 102 stores a file and, if so, query the second version information of the file. In the case where the vehicle battery does not save the file or the second version information is lower than the first version information, the vehicle battery replacement system 104 can write the file with the first version information to the vehicle battery 102.

[0067] Another aspect of the present application also provides a vehicle. As Figure 5 shown, the vehicle 108 includes a vehicle battery 102, wherein the vehicle battery 102 can be charged and documented via any one of the vehicle battery replacement systems 104 as described above.

[0068] In some embodiments of the present application, as Figure 7 shown, the vehicle 108 further includes a storage module 702 and a processor 704. Among them, the storage module 702 is configured to store instructions; the processor 704 is configured to execute the instructions to perform the following operations: send a first query request to the vehicle battery to obtain the version information of the file saved in the vehicle battery; and determine whether to pull the file from the vehicle battery based on the comparison between the version information of its own file and the version information of the file saved in the vehicle battery.

[0069] In some embodiments of the present application, the storage module 702 is configured to store instructions; the processor 704 is configured to execute the instructions to perform the following operations: send a second query request to the server to obtain the latest version information of the file; send a first query request to the vehicle battery to obtain the version information of the file saved in the vehicle battery; and determine whether to pull the file from the vehicle battery based on the comparison between the latest version information and the version information of the file saved in the vehicle battery.

[0070] In some embodiments of the present application, when the processor 704 of the vehicle 108 executes the instructions, it also performs the following operation: perform a security check on the file pulled from the vehicle battery.

[0071] When the processor 704 of the vehicle 108 is configured to execute the instructions stored in the storage module 702, the operations performed can be carried out according to the corresponding steps of the method described above, the content of which is incorporated herein by reference and will not be repeated here.

[0072] In some embodiments of the present application, when the processor 704 of the vehicle 108 is configured to execute the instructions stored in the storage module 702, the vehicle 108 sends a second query request to the server 106 via the network infrastructure 110 (including the base station 506) to obtain the latest version information of the file. Subsequently, the vehicle 108 sends a first query request to the vehicle battery 102 to obtain the version information of the file saved in the vehicle battery. Finally, the vehicle 108 can determine whether to pull the file from the vehicle battery based on the comparison between the latest version information obtained from the server 106 and the version information of the file saved in the vehicle battery. For example, the vehicle 108 can pull the file from the vehicle battery 102 to update only when the version information of the file saved in the vehicle battery 102 is the latest version information. If the version information of the file saved in the vehicle battery 102 is not the latest version information, the vehicle 108 may still pull the latest version of the file from the server 106.

[0073] Another aspect of the present application provides a computer-readable storage medium storing instructions that, when executed by a processor, cause the processor to perform any of the file update methods described above. The computer-readable medium referred to in the present application includes various types of computer storage media and can be any available medium accessible by a general or special-purpose computer. For example, the computer-readable medium can include RAM, ROM, EPROM, E 2 PROM, registers, hard disks, removable disks, CD-ROMs, or other optical disk memories, magnetic disk memories, or other magnetic storage devices, or any other transient or non-transient medium capable of carrying or storing desired program code units in the form of instructions or data structures and accessible by a general or special-purpose computer, or a general or special-purpose processor. As used herein, a disk typically magnetically replicates data, while a disc optically replicates data with a laser. The above combinations should also be included within the scope of protection of the computer-readable medium. An exemplary storage medium is coupled to the processor so that the processor can read from / write to the storage medium. In an alternative, the storage medium can be integrated into the processor. The processor and the storage medium can reside in an ASIC. The ASIC can reside in a user terminal. In an alternative, the processor and the storage medium can reside in the user terminal as discrete components.

[0074] According to an embodiment of the present invention, after the vehicle replaces the battery fully charged at the charging station, a file data packet can be quickly obtained. Since network interaction is reduced, while saving traffic, the potential risk of network hijacking is also avoided, and the security can be improved. The above is only the specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Those skilled in the art can think of other feasible changes or substitutions according to the technical scope disclosed in the present application, and such changes or substitutions are all covered by the protection scope of the present application. Without conflict, the embodiments of the present application and the features in the embodiments can also be combined with each other. The protection scope of the present application shall be subject to the records of the claims.

Claims

1. A method for upgrading a vehicle operating system using a vehicle battery replacement system, characterized in that, the vehicle battery replacement system includes at least one vehicle battery, and the method includes: Receiving a file with first version information for upgrading the vehicle operating system; Performing a security check on the file with the first version information, and extracting the first version information when the file with the first version information passes the security check; Querying whether the at least one vehicle battery stores a file with second version information, and querying the second version information it has when the file with the second version information is stored, where the file with the second version information is used for upgrading the vehicle operating system; Writing the file with the first version information to the vehicle battery when the vehicle battery does not store the file with the second version information or the second version information is lower than the first version information; The vehicle battery provides the version information of the file stored in the vehicle battery in response to a first query request from the vehicle; and When the version information of the vehicle's own file is lower than the version information of the file stored in the vehicle battery, the vehicle battery provides the file stored in the vehicle battery for the vehicle to upgrade the vehicle operating system.

2. The method according to claim 1, wherein, Writing the file with the first version information to the vehicle battery includes: Overwriting the file with the second version information stored in the vehicle battery with the file with the first version information.

3. The method according to claim 1, wherein, Writing the file with the first version information to the vehicle battery includes: Determining the difference between the file with the first version information and the file with the second version information, thereby generating a file incremental update package; and Overwriting the file with the second version information with the file incremental update package, where the incremental update package includes the first version information and the second version information.

4. The method according to claim 1, the method further includes: Querying the version information of the files stored in each vehicle battery included in the vehicle battery replacement system within the same local area network, where the files stored in each vehicle battery are used for upgrading the vehicle operating system; Reading the file with the latest version information among the files stored in each vehicle battery; and Upgrading the files stored in each vehicle battery included in the vehicle battery replacement system within the same local area network to the file with the latest version information.

5. A vehicle battery replacement system, characterized in that, the system includes: At least one vehicle battery; A storage module configured to store instructions; A processor configured to execute the instructions to perform the following operations: Receiving a file with first version information, where the file with the first version information is used for upgrading the vehicle operating system; Perform a security check on the file with the first version information, and extract the first version information if the file with the first version information passes the security check; Query whether the at least one vehicle battery stores a file with second version information, and query the second version information it has if the file with the second version information is stored, where the file with the second version information is used for vehicle operating system upgrade; and Write the file with the first version information to the vehicle battery if the vehicle battery does not store the file with the second version information or the second version information is lower than the first version information, wherein the vehicle battery is configured to: Provide the version information of the file stored in the vehicle battery in response to a first query request from the vehicle; and Provide the file stored in the vehicle battery for the vehicle to perform vehicle operating system upgrade if the version information of the vehicle's own file is lower than the version information of the file stored in the vehicle battery.

6. The system according to claim 5, wherein, Writing the file with the first version information to the vehicle battery includes: Overwriting the file with the second version information stored in the vehicle battery with the file with the first version information.

7. The system according to claim 5, wherein, Writing the file with the first version information to the vehicle battery includes: Determine the difference between the file with the first version information and the file with the second version information, so as to generate a file incremental update package; and Overwrite the file with the second version information with the file incremental update package, where the incremental update package includes the first version information and the second version information.

8. The system according to claim 5, wherein, When executing the instruction, the processor further performs the following operations: Query the version information of the files stored in each vehicle battery included in the vehicle battery replacement system within the same local area network, where the files stored in each vehicle battery are used for vehicle operating system upgrade; Read the file with the latest version information among the files stored in each vehicle battery; and Upgrade the files stored in each vehicle battery included in the vehicle battery replacement system within the same local area network to the files with the latest version information.

Citation Information

Patent Citations

  • Battery firmware treatment method and device, and charging cabinet system

    CN106775636A

  • Upgrading method and device for electronic control unit of vehicle, vehicle control circuit and vehicle

    CN108241494A

  • Incremental updating method and device, cloud server and computer readable storage medium

    CN109582344A