Vehicle upgrade file downloading method, vehicle-mounted equipment, cloud server and storage medium
By adopting distributed download methods of on-board devices and portable electronic devices in smart cars, the problem of long download time for OTA upgrade packages is solved, and faster download speed and better user experience is achieved.
Patent Information
- Application Number
- CN202510036781.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-09
- Publication Date
- 2025-04-11
AI Technical Summary
Currently, the download time of smart car OTA upgrade package is relatively long, which affects the user experience. Especially due to the limitations of 4G network, it takes a long time to download large OTA upgrade packages.
Distributed downloads through on-board devices and portable electronic devices (such as mobile phones), and use the download address information and network conditions of multiple devices to assign download tasks to improve download speed. Specific methods include address allocation based on preset download ratio, download speed and download traffic restrictions to ensure reasonable allocation of download tasks and improve overall download speed.
Through distributed download technology, the download speed of OTA upgrade files has been significantly improved, the user experience of the vehicle has been improved, and the waiting time has been reduced.
Smart Images

Figure CN119814771A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of intelligent connected vehicles, and specifically to a method for downloading vehicle upgrade files, an on-board device, a cloud server, and a storage medium. Background Art
[0002] With the continuous advancement of science and technology and the rapid development of the automobile industry, smart cars have become one of the main development directions of the automobile industry. The complexity of automobile software has also increased greatly. It is difficult to provide users with the best experience by only upgrading through 4S stores to repair software failures and update personalized customization needs. OTA (Over the Air) air download technology, as one of the important components of smart cars, provides a convenient way for smart car software upgrades. It can repair software failures through remote upgrades, add new vehicle functions, and improve user freshness and satisfaction.
[0003] With the continuous improvement of smart car systems and the increase of software functions, the size of OTA upgrade packages is getting larger and larger, sometimes even reaching several gigabytes (GB). However, 4G networks are commonly used in current vehicles, and downloading large OTA upgrade packages takes a long time, affecting the user experience. Summary of the invention
[0004] The present application provides a method for downloading vehicle upgrade files, a vehicle-mounted device, a cloud server and a storage medium. The method can increase the download speed of vehicle OTA upgrade files and enhance the user experience of the vehicle.
[0005] The technical solution of this application is implemented as follows:
[0006] An embodiment of the present application provides a method for downloading vehicle upgrade files, which is applied to a vehicle-mounted device, including: receiving vehicle upgrade file information fed back by a cloud server based on an upgrade file download request; the upgrade file information includes download address information of multiple sub-files corresponding to the vehicle's OTA upgrade file; and distributing the download address information to the vehicle-mounted device and at least one portable electronic device, so as to download the corresponding sub-files respectively through the vehicle-mounted device and the at least one portable electronic device to obtain the OTA upgrade file.
[0007] According to the above technical means, the sub-files of the OTA upgrade file are distributedly downloaded through the vehicle-mounted device and at least one portable electronic device, which can increase the download speed of the OTA upgrade file and enhance the user experience of the vehicle.
[0008] Furthermore, the download address information includes at least one first download address information and at least one second download address information; the download address information is distributed to the vehicle-mounted device and at least one portable electronic device, including: according to the download address distribution conditions, each first download address information is distributed to the portable electronic device in turn, and each second download address information is distributed to the vehicle-mounted device in turn; the download address distribution conditions include at least one of a preset download ratio, a download speed and a download traffic limit.
[0009] According to the above-mentioned technical means, by presetting at least one of the download ratio, download speed and download traffic limit, the first download address information can be reasonably allocated to the portable electronic device in turn, and the second download address information can be allocated to the vehicle-mounted device in turn, so as to better utilize the download conditions of the two devices and improve the download speed of the OTA upgrade file.
[0010] Furthermore, according to the download address allocation conditions, each first download address information is allocated to the portable electronic device in turn, and each second download address information is allocated to the vehicle-mounted device in turn, including: according to a preset download ratio, determining the first download address information corresponding to the portable electronic device and the second download address information corresponding to the vehicle-mounted device from the first candidate download address information; the first candidate download address information is part of the download address information among multiple download address information.
[0011] According to the above technical means, the first download address information corresponding to the portable electronic device and the second download address information corresponding to the vehicle-mounted device can be quickly determined from the first candidate download information by presetting the download ratio.
[0012] Further, according to the download address allocation condition, each first download address information is allocated to the portable electronic device in turn, and each second download address information is allocated to the vehicle-mounted device in turn, including: obtaining a first download speed of the portable electronic device for a specific first subfile, and a second download speed of the vehicle-mounted device for a specific second subfile; the specific first subfile and the specific second subfile are any one of a plurality of subfiles; if the first download speed is greater than the second download speed, the second candidate download address information is determined as the first download address information; the second candidate download address information is unallocated download address information; if the first download speed is less than the second download speed, the second candidate download address information is determined as the second download address information.
[0013] According to the above technical means, based on the download speeds of the portable electronic device and the vehicle-mounted device, it is determined whether the unallocated second candidate address information is allocated to the portable electronic device or the vehicle-mounted device, which can ensure that the undownloaded sub-files are allocated to the device with faster download speed for download, thereby improving the download speed of the OTA upgrade file.
[0014] Further, according to the download address allocation conditions, each first download address information is allocated to the portable electronic device in turn, and each second download address information is allocated to the vehicle-mounted device in turn, including: obtaining the download traffic restriction information of the portable electronic device or the vehicle-mounted device; according to the download traffic restriction information, determining the first download address information corresponding to the portable electronic device, or the second download address information corresponding to the vehicle-mounted device from the third candidate download address information; the third candidate download address information is part of the download address information among the multiple download address information.
[0015] According to the above-mentioned technical means, based on the download traffic restriction information of the portable electronic device or the vehicle-mounted device, the first download address information corresponding to the portable electronic device, or the second download address information corresponding to the vehicle-mounted device is determined from the third candidate address information, thereby avoiding the situation where the OTA upgrade file download fails due to insufficient download traffic of the two devices.
[0016] Furthermore, the method further includes: sending the first download address information to the portable electronic device; and obtaining the first sub-file obtained after the portable electronic device downloads based on the first download address information feedback.
[0017] According to the above technical means, sending the first download address information to the portable electronic device can enable the portable electronic device to complete the download of the sub-file corresponding to the OTA upgrade file based on the first address information, thereby realizing the download of partial files of the OTA upgrade file through the portable electronic device.
[0018] Furthermore, it also includes: using the vehicle-mounted device to download based on the second download address information to obtain a second sub-file; based on the first sub-file and the second sub-file, determining the OTA upgrade file; the first sub-file and the second sub-file both include multiple files.
[0019] According to the above technical means, the vehicle-mounted device downloads the second sub-file based on the second download address information, and then combines the first sub-file downloaded by the portable electronic device and the second sub-file downloaded by the vehicle-mounted device to obtain a complete OTA upgrade file.
[0020] Furthermore, the upgrade file information includes connection sequence identification information and first reference verification information of each sub-file; based on the first sub-file and the second sub-file, determining the OTA upgrade file includes: calculating the first verification information corresponding to the first sub-file, and the second verification information corresponding to the second sub-file; if the first reference verification information and the first verification information corresponding to the first sub-file are the same, and the first reference verification information and the second verification information corresponding to the second sub-file are the same, the first sub-file and the second sub-file are spliced based on the connection sequence identification information to obtain the OTA upgrade file.
[0021] According to the above-mentioned technical means, by comparing the first verification information of the first sub-file calculated by the vehicle-mounted device and the second verification information of the second sub-file with the first reference verification information of each sub-file sent by the cloud server, it can be determined whether the first sub-file downloaded by the portable electronic device and the second sub-file downloaded by the vehicle-mounted device are correct, and when it is determined that the first reference verification information and the corresponding first verification information (or second verification information) are the same, the first sub-file and the second sub-file are spliced, which can ensure the validity of the final OTA upgrade file.
[0022] Furthermore, it also includes: if the first reference verification information and the first verification information corresponding to the first subfile are different, re-downloading the first subfile through the portable electronic device or the vehicle-mounted device; if the first reference verification information and the second verification information corresponding to the second subfile are different, re-downloading the second subfile through the vehicle-mounted device.
[0023] According to the above-mentioned technical means, when it is determined that the first reference verification information corresponding to the sub-file (first sub-file or second sub-file) of the OTA upgrade file is different from the verification information (first verification information or second verification information) calculated by the vehicle-mounted device, the correct sub-file can be obtained by re-downloading through the portable electronic device or the vehicle-mounted device, thereby ensuring the correctness of the final complete OTA upgrade file.
[0024] Furthermore, the upgrade file information includes second reference verification information of the OTA upgrade file; the method also includes: calculating third verification information corresponding to the OTA upgrade file; if the second reference verification information and the third verification information are the same, the vehicle is upgraded using the OTA upgrade file.
[0025] According to the above-mentioned technical means, by comparing the third verification information of the OTA upgrade file downloaded by the portable electronic device and the vehicle-mounted device with the second reference verification information sent by the server, it can be determined whether the downloaded OTA upgrade file is correct. When it is determined that the third verification information and the second reference verification information are the same, the vehicle can be upgraded using the downloaded OTA upgrade file to ensure the effectiveness of the vehicle upgrade.
[0026] Furthermore, it also includes: when it is determined that there is an available OTA upgrade file on the cloud server, sending an upgrade file download request to the cloud server, and outputting prompt information to prompt the user to establish a communication connection between at least one portable electronic device and the vehicle-mounted device; the network speed of the at least one portable electronic device is faster than the network speed of the vehicle-mounted device.
[0027] According to the above technical means, when it is determined that the cloud server has an available OTA upgrade file, a request for downloading the upgrade file is sent to the cloud server, and the information of the valid OTA upgrade file can be obtained, which is convenient for subsequent vehicle upgrades. In addition, when it is determined that the cloud server has an available OTA upgrade file, a prompt message is output to prompt the user to connect at least one portable electronic device to the vehicle-mounted device, so that the portable electronic device can subsequently obtain the download address information of the OTA upgrade file from the vehicle-mounted device for downloading through the portable electronic device.
[0028] An embodiment of the present application provides a method for downloading vehicle upgrade files, which is applied to a cloud server, including: obtaining an upgrade file download request sent by a vehicle-mounted device; sending vehicle upgrade file information to the vehicle-mounted device based on the upgrade file download request, so that the vehicle-mounted device allocates download address information of multiple sub-files corresponding to the OTA upgrade file to itself and at least one portable electronic device, thereby enabling the vehicle-mounted device and at least one portable electronic device to download corresponding sub-files; the upgrade file information includes download address information of multiple sub-files corresponding to the OTA upgrade file.
[0029] According to the above-mentioned technical means, the cloud server can send the vehicle upgrade file information to the vehicle-mounted device according to the upgrade file download request sent by the vehicle-mounted device, so that the vehicle-mounted device distributes the download address information of each sub-file in the upgrade file information to the vehicle-mounted device and at least one portable electronic device, and distributes the sub-files of the OTA upgrade file through the vehicle-mounted device and at least one portable electronic device, thereby improving the download speed of the OTA upgrade file and enhancing the user experience of the vehicle.
[0030] Furthermore, it also includes: obtaining the OTA upgrade file of the vehicle; splitting the OTA upgrade file into multiple sub-files, and determining the download address information of the multiple sub-files; and generating upgrade file information based on the download address information of the multiple sub-files.
[0031] According to the above-mentioned technical means, by splitting the OTA upgrade file through the cloud server, various sub-files can be obtained, and the upgrade file information can be further generated based on the download address information of each sub-file, so that the upgrade file information can be subsequently sent to the vehicle-mounted device, and the download address information in the upgrade file information can be distributed through the vehicle-mounted device to realize distributed downloading of portable electronic devices and vehicle-mounted devices.
[0032] The present application provides a vehicle-mounted device, including:
[0033] A first receiving module is used to receive the upgrade file information of the vehicle fed back by the cloud server based on the upgrade file download request; the upgrade file information includes download address information of multiple sub-files corresponding to the OTA upgrade file of the vehicle;
[0034] The first allocation module is used to allocate the download address information to the vehicle-mounted device and at least one portable electronic device, so as to download the corresponding sub-files through the vehicle-mounted device and at least one portable electronic device respectively to obtain the OTA upgrade file.
[0035] The present application provides a cloud server, including:
[0036] A first acquisition module, used to acquire an upgrade file download request sent by the vehicle-mounted device;
[0037] The first sending module is used to send the vehicle upgrade file information to the vehicle-mounted device based on the upgrade file download request, so that the vehicle-mounted device allocates download address information of multiple sub-files corresponding to the OTA upgrade file to itself and at least one portable electronic device, thereby realizing the download of corresponding sub-files by the vehicle-mounted device and at least one portable electronic device; the upgrade file information includes the download address information of multiple sub-files corresponding to the OTA upgrade file; wherein, the upgrade file information includes the download address information of multiple sub-files corresponding to the OTA upgrade file.
[0038] The present application embodiment provides another vehicle-mounted device, including:
[0039] A first memory, for storing a computer program that can be run on the first processor;
[0040] The first processor is used to execute the vehicle upgrade file downloading method applied to the vehicle-mounted device provided in the embodiment of the present application when running the computer program.
[0041] The present application provides another cloud server device, including:
[0042] A second memory for storing a computer program that can be run on a second processor;
[0043] The second processor is used to execute the vehicle upgrade file downloading method applied to the cloud server provided in the embodiment of the present application when running the computer program.
[0044] An embodiment of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored, and the computer-executable instructions are configured to execute the above-mentioned method for downloading vehicle upgrade files applied to a vehicle-mounted device, or the method for downloading vehicle upgrade files applied to a cloud server. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 A schematic diagram of a process for downloading a vehicle upgrade file provided in an embodiment of the present application;
[0046] Figure 2A flowchart of another method for downloading vehicle upgrade files provided in an embodiment of the present application;
[0047] Figure 3 A flowchart illustrating a method for improving OTA download speed of a smart connected vehicle provided in an embodiment of the present application;
[0048] Figure 4 A schematic diagram of communication connection between a cloud, a vehicle computer and a mobile phone provided in an embodiment of the present application;
[0049] Figure 5 A schematic diagram of the structure of a vehicle-mounted device provided in an embodiment of the present application;
[0050] Figure 6 A schematic diagram of the structure of a cloud server provided in an embodiment of the present application;
[0051] Figure 7 A schematic diagram of the composition structure of another vehicle-mounted device provided in an embodiment of the present application;
[0052] Figure 8 A schematic diagram of the composition structure of another cloud server provided in an embodiment of the present application. DETAILED DESCRIPTION
[0053] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
[0054] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described below in conjunction with the accompanying drawings. The described embodiments should not be regarded as limiting the present application. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of this application.
[0055] In the following description, reference is made to “some embodiments\other embodiments”, which describe a subset of all possible embodiments, but it can be understood that “some embodiments\other embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0056] In the following description, the terms "first\second\third" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.
[0057] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0058] In the related art, an OTA download strategy in an in-vehicle OTA download method depends on the network speed of the vehicle computer. When the network speed is poor, the download of the OTA upgrade package will be canceled, resulting in the user being unable to upgrade the vehicle's software and hardware functions in the first place, thereby affecting the user's experience of using the vehicle computer.
[0059] Based on the problems existing in the related art, the embodiment of the present application provides a method for downloading vehicle upgrade files, which is applied to vehicle-mounted equipment. The method can increase the download speed of vehicle OTA upgrade files and improve the user experience of the vehicle. Figure 1 FIG. 1 is a flow chart of a method for downloading a vehicle upgrade file provided in an embodiment of the present application, the method comprising the following steps:
[0060] S101. Receive upgrade file information of a vehicle fed back by a cloud server based on an upgrade file download request.
[0061] In some embodiments, the upgrade file information includes download address information of multiple sub-files corresponding to the vehicle's OTA upgrade file. The download address information may be the storage address of each sub-file of the OTA upgrade file in the cloud server. The memory size occupied by different sub-files may be different, and the download address information corresponding to different sub-files may be different.
[0062] In some embodiments, when the vehicle-mounted device detects that there is an available OTA upgrade file, it can send an upgrade file download request to the cloud server. After receiving the upgrade file download request, the cloud server can send the download address information of each sub-file corresponding to the OTA upgrade file to the vehicle-mounted device.
[0063] S102: Distribute the download address information to the vehicle-mounted device and at least one portable electronic device, so as to download corresponding sub-files through the vehicle-mounted device and at least one portable electronic device respectively to obtain an OTA upgrade file.
[0064] In some embodiments, the portable electronic device may include one or more, each portable electronic device establishes a communication connection with the vehicle-mounted device, and the network speed of the portable electronic device is faster than the network speed of the vehicle-mounted device. For example, the portable electronic device may be a 5G network, and the vehicle-mounted device may be a 4G network.
[0065] In some embodiments, after the vehicle-mounted device obtains the download address information of each sub-file of the OTA upgrade file, it can distribute the download address information of each sub-file to the vehicle-mounted device and at least one portable electronic device. The download address information distributed to the portable electronic device is different from the download address information distributed to the vehicle-mounted device, thereby enabling the vehicle-mounted device and at least one portable electronic device to download different sub-files of the OTA upgrade file and obtain a complete OTA upgrade file.
[0066] In an embodiment of the present application, the upgrade file information of the vehicle fed back by the cloud server based on the upgrade file download request is received; the upgrade file information includes the download address information of multiple sub-files corresponding to the OTA upgrade file of the vehicle; the download address information is distributed to the vehicle-mounted device and at least one portable electronic device, so as to download the corresponding sub-files through the vehicle-mounted device and at least one portable electronic device respectively to obtain the OTA upgrade file. In this way, the sub-files of the OTA upgrade file are distributedly downloaded through the vehicle-mounted device and at least one portable electronic device, which can improve the download speed of the OTA upgrade file and enhance the user experience of the vehicle.
[0067] In some embodiments of the present application, before receiving the upgrade file information of the vehicle fed back by the cloud server based on the upgrade file download request, that is, before step S101, the following step S201 may also be executed, which is described below.
[0068] S201. When it is determined that the cloud server has an available OTA upgrade file, a request for downloading the upgrade file is sent to the cloud server, and a prompt message is output to prompt a user to establish a communication connection between at least one portable electronic device and a vehicle-mounted device.
[0069] In some embodiments, the cloud server can create an available OTA upgrade file, or create an available OTA upgrade file through other electronic devices, and send the available OTA upgrade file to the cloud server. When the cloud server creates an available OTA upgrade file, or receives an available OTA upgrade file sent by other electronic devices, it can push information about the available OTA upgrade file to the vehicle-mounted device. After obtaining the information, the vehicle-mounted device can determine that the cloud server has an available OTA upgrade file, and send an upgrade file download request to the cloud server to obtain the download address information of the available OTA upgrade file.
[0070] In some embodiments, the vehicle-mounted device can perform a detection after each power-on to determine whether there is an available OTA upgrade file on the cloud server, that is, to determine whether the cloud server has sent information that there is an available OTA upgrade file; in other embodiments, the vehicle-mounted device can also perform a detection periodically to determine whether there is an available OTA upgrade file on the cloud server, for example, once every 10 days, once a month, etc.
[0071] In some embodiments, when the vehicle-mounted device determines that there is an available OTA upgrade file on the cloud server, it can also output a prompt message to prompt the user's portable electronic device to establish a communication connection with the vehicle-mounted device. The prompt message can be output in the form of text display or voice broadcast. In the case of outputting in the form of text display, it can be output to the user interface of the OTA program running on the vehicle-mounted device.
[0072] In some embodiments, after receiving the prompt message, if the user determines that he or she is willing to upgrade the vehicle's hardware and software functions, the user can connect his or her portable electronic device to the vehicle-mounted device, for example, by establishing a communication connection between the vehicle-mounted device and at least one portable electronic device through a Universal Serial Bus (USB), a Wireless Fidelity (WiFi), or the like.
[0073] In some embodiments, the network speed of at least one portable electronic device is faster than the network speed of the in-vehicle device, so allocating the download address information to the portable electronic device can increase the download speed of the OTA upgrade file.
[0074] According to the above technical means, when it is determined that the cloud server has an available OTA upgrade file, a request for downloading the upgrade file is sent to the cloud server, and the information of the valid OTA upgrade file can be obtained, which is convenient for subsequent vehicle upgrades. In addition, when it is determined that the cloud server has an available OTA upgrade file, a prompt message is output to prompt the user to connect the portable electronic device to the vehicle-mounted device, so that the portable electronic device can subsequently obtain the download address information of the OTA upgrade file from the vehicle-mounted device for downloading through the portable electronic device.
[0075] In some embodiments of the present application, the download address information includes multiple first download address information and multiple second download address information. Based on this, "distributing the download address information to the vehicle-mounted device and at least one portable electronic device" in step S102 can be implemented through the following step S301, which is explained below.
[0076] S301: Allocate first download address information to portable electronic devices in sequence and allocate second download address information to vehicle-mounted devices in sequence according to download address allocation conditions, wherein the download address allocation conditions include at least one of a preset download ratio, a download speed, and a download flow limit.
[0077] It should be noted that the first download address information may be the download address information assigned to the portable electronic device, and the second download address information may be the download address information assigned to the vehicle-mounted device. The download address condition is used to determine the allocation method of the download address information, and the download address condition may include at least one of a preset download ratio, a download speed, and a download traffic limit.
[0078] In some embodiments, the vehicle-mounted device can obtain the download address information of all sub-files of the OTA file, and then allocate the corresponding download address information to the vehicle-mounted device and at least one portable electronic device according to the preset download ratio, download speed and download traffic limit. The vehicle-mounted device can allocate one, two or more first download address information to the portable electronic device at a time, and can also allocate one, two or more download address information to itself. The vehicle-mounted device can allocate the next download address information to the vehicle-mounted device or the portable electronic device after the vehicle-mounted device or the portable electronic device completes the download once.
[0079] In some embodiments, the preset download ratio can be the ratio of download address information allocated to the vehicle-mounted device and at least one portable electronic device respectively during an allocation process, which is determined by the cloud server or the vehicle-mounted device; the download speed can be determined by the time required for the vehicle-mounted device and at least one portable electronic device to complete an upgrade file download, and the download speed can be the data transmission rate of the vehicle-mounted device and at least one portable electronic device during a download process; the download traffic limit can be the maximum download traffic limit set by the vehicle-mounted device or the portable electronic device.
[0080] According to the above-mentioned technical means, by presetting at least one of the download ratio, download speed and download traffic limit, the first download address information can be reasonably allocated to the portable electronic device in turn, and the second download address information can be allocated to the vehicle-mounted device in turn, so as to better utilize the download conditions of the two devices and improve the download speed of the OTA upgrade file.
[0081] In some embodiments of the present application, according to the download address allocation conditions, each first download address information is allocated to the portable electronic device in turn, and each second download address information is allocated to the vehicle-mounted device in turn, that is, the above-mentioned step S301 can be implemented by the following step S301A, which is explained below.
[0082] S301A: According to a preset download ratio, determine the first download address information corresponding to the portable electronic device and the second download address information corresponding to the vehicle-mounted device from the first candidate download address information.
[0083] In some embodiments, the first candidate download address information is part of the download address information in the plurality of download address information. For example, if the download address information includes 10, the first candidate address information may be 2, 3, etc. of the 10 download address information. The first candidate download address information may be arbitrarily selected by the vehicle-mounted device in one allocation, that is, the first candidate address information may be determined by the vehicle-mounted device. For example, if the total download address information includes 8, the vehicle-mounted device may use the first two of the 8 download address information as the first candidate download address information.
[0084] In some embodiments, after the vehicle-mounted device determines the first candidate download address information, the first candidate download address information can be allocated according to the preset download ratio. For example, if the first candidate address information includes 3, and the preset download ratio corresponding to the portable electronic device and the vehicle-mounted device is 2:1, then 2 of the download address information can be allocated to the portable electronic device as the first download address information, and the other candidate download address information can be allocated to the vehicle-mounted device as the second download address information. The preset download ratio and the number of the first candidate address information are merely exemplary, and this application does not limit this.
[0085] According to the above technical means, the first download address information corresponding to the portable electronic device and the second download address information corresponding to the vehicle-mounted device can be quickly determined from the first candidate download information by presetting the download ratio.
[0086] In some embodiments of the present application, according to the download address allocation conditions, each first download address information is allocated to the portable electronic device in turn, and each second download address information is allocated to the vehicle-mounted device in turn, that is, the above-mentioned step S301 can be implemented by the following steps S301B to S303B, and each step is described below.
[0087] S301B, obtaining a first download speed of the portable electronic device for a specific first sub-file, and a second download speed of the in-vehicle device for a specific second sub-file.
[0088] In some examples, the specific first subfile and the specific second subfile are any one of a plurality of subfiles. For example, the specific first subfile may be a first subfile downloaded by the portable electronic device based on the first download address information allocated based on a preset download ratio, and the specific second subfile may be a second subfile downloaded by the vehicle-mounted device based on the second download address information allocated based on a preset download ratio.
[0089] In some embodiments, the vehicle-mounted device can monitor the first download speed of the portable electronic device downloading a specific first subfile, and can also monitor the first download speed of the vehicle-mounted device itself downloading a specific second subfile. The first download speed and the second download speed may be the same or different.
[0090] S302B: If the first download speed is greater than the second download speed, determine the second candidate download address information as the first download address information.
[0091] In some embodiments, the second candidate download address information is unallocated download address information, and the second candidate download address information includes one or more. If it is determined that the first download speed is greater than the second download speed, it can be said that the download speed of the portable electronic device is faster than the download speed of the vehicle-mounted device. In this case, in order to increase the download speed of the OTA upgrade file, the unallocated second candidate address information can be determined as the first download address information, that is, the second candidate address information is allocated to the portable electronic device for download.
[0092] S303B: If the first download speed is lower than the second download speed, determine the second candidate download address information as the second download address information.
[0093] In some embodiments, if it is determined that the first download speed is less than the second download speed, it may mean that the download speed of the portable electronic device is slower than the download speed of the vehicle-mounted device. In this case, in order to improve the download speed of the OTA upgrade file, the unallocated second candidate address information may be determined as the second download address information, that is, the second candidate address information may be allocated to the vehicle-mounted device for download.
[0094] According to the above technical means, based on the download speeds of the portable electronic device and the vehicle-mounted device, it is determined whether the unallocated second candidate address information is allocated to the portable electronic device or the vehicle-mounted device, which can ensure that the undownloaded sub-files are allocated to the device with faster download speed for download, thereby improving the download speed of the OTA upgrade file.
[0095] In some embodiments of the present application, according to the download address allocation conditions, each first download address information is allocated to the portable electronic device in turn, and each second download address information is allocated to the vehicle-mounted device in turn, that is, the above-mentioned step S301 can be implemented by the following steps S301C to S302C, and each step is described below.
[0096] S301C, obtaining download traffic restriction information of the portable electronic device or the vehicle-mounted device.
[0097] In some embodiments, the download traffic limit information of the portable electronic device can be determined based on the traffic usage of the portable electronic device. For example, when the portable electronic device is a mobile phone, if the mobile phone has 1GB of available traffic remaining in the current month, 1GB can be determined as the current limited traffic of the mobile phone. The limited traffic limit information of the mobile phone can be determined based on the traffic usage limit.
[0098] In some embodiments, the vehicle-mounted device may also be provided with download traffic restriction information, which may be set by the user through the human-computer interaction interface of the vehicle-mounted device, or may be set by the vehicle developer or designer during the vehicle development phase or the software update process.
[0099] S302C: Determine, according to the download traffic restriction information, the first download address information corresponding to the portable electronic device or the second download address information corresponding to the in-vehicle device from the third candidate download address information.
[0100] In some embodiments, the third candidate download address information is part of the download address information among the multiple download address information. After the download flow restriction information of the portable electronic device or the download flow restriction information of the vehicle-mounted device is determined, the first download address information corresponding to the portable electronic device can be determined based on the size of the subfile corresponding to the download flow restriction information of the portable electronic device and the third candidate download address information, or the second download address information corresponding to the vehicle-mounted device can be determined based on the size of the subfile corresponding to the download flow restriction information of the vehicle-mounted device and the third candidate download address information.
[0101] According to the above-mentioned technical means, based on the download traffic restriction information of the portable electronic device or the vehicle-mounted device, the first download address information corresponding to the portable electronic device, or the second download address information corresponding to the vehicle-mounted device is determined from the third candidate address information, thereby avoiding the situation where the OTA upgrade file download fails due to insufficient download traffic of the two devices.
[0102] In some embodiments of the present application, after allocating each first download address information to the portable electronic device in turn according to the download address allocation condition, and allocating each second download address information to the vehicle-mounted device in turn, that is, after step S301, the following steps S401 to S402 can be executed, and each step is described below.
[0103] S401: Send first download address information to a portable electronic device.
[0104] In some embodiments, after the first download address information is assigned to the portable electronic device, the first download address information can be sent to the portable electronic device so that the portable electronic device downloads the upgrade file based on the first download address information. The first download address information sent can be one or more, and one first download address information can correspond to one subfile.
[0105] In some embodiments, the vehicle-mounted device can alternately perform the download process of the download address information and the device, that is, the vehicle-mounted device can send the first download address information to the portable electronic device multiple times, that is, the vehicle-mounted device can send the first download address information to the portable electronic device, and after the portable electronic device completes the download based on the first download address information, it can continue to allocate other first download address information to the portable electronic device and send other download address information to the portable electronic device.
[0106] S402: Acquire a first sub-file obtained after the portable electronic device downloads based on the first download address information feedback.
[0107] In some embodiments, after the portable electronic device receives the first download address information sent by the vehicle-mounted device, it can download the upgrade file based on the first download address information to obtain the downloaded first sub-file, and the storage address information of the first sub-file is the first download address information.
[0108] According to the above technical means, sending the first download address information to the portable electronic device can enable the portable electronic device to complete the download of the sub-file corresponding to the OTA upgrade file based on the first address information, thereby realizing the download of partial files of the OTA upgrade file through the portable electronic device.
[0109] In some embodiments of the present application, after obtaining the first subfile obtained after the portable electronic device downloads based on the first download address information feedback, that is, step S402, the following steps S501 to S502 may also be executed, and each step is described below.
[0110] S501: Utilize the vehicle-mounted device to download based on the second download address information to obtain a second sub-file.
[0111] In some embodiments, the second subfile may be a subfile of the OTA upgrade file corresponding to the second download address information. After the vehicle-mounted device allocates the second download address information to itself, it can download based on the second download address information. The vehicle-mounted device can start the download process when it allocates one or more second download address information to itself after one allocation operation. Therefore, step S501 may be executed after step S301, before step S401, or after step S401 and before step S402.
[0112] S502: Obtain an OTA upgrade file based on the first sub-file and the second sub-file.
[0113] In some embodiments, the first subfile and the second subfile may include multiple ones. The multiple first subfiles may be subfiles of the OTA upgrade file downloaded through a portable electronic device, and the multiple second subfiles may be subfiles included in the OTA upgrade file downloaded through a vehicle-mounted device. The multiple first subfiles and the multiple second subfiles constitute all the subfiles of the OTA upgrade file. Therefore, after obtaining the multiple first subfiles and the multiple second subfiles, the first subfiles and the second subfiles can be combined to obtain a complete OTA upgrade file.
[0114] According to the above technical means, the vehicle-mounted device downloads the second sub-file based on the second download address information, and then combines the first sub-file downloaded by the portable electronic device and the second sub-file downloaded by the vehicle-mounted device to obtain a complete OTA upgrade file.
[0115] In some embodiments of the present application, the upgrade file information includes connection sequence identification information of each sub-file and first reference verification information, the connection sequence identification information can indicate the connection sequence of each sub-file, and the first reference verification information can be the message digest algorithm (Message-digest Algorithm 5, MD5) value corresponding to the sub-file. Based on this, based on the first sub-file and the second sub-file, the OTA upgrade file is determined, that is, step S502 can be implemented by the following steps S5011 to S5012, and each step is described below.
[0116] S5011. Calculate first verification information corresponding to the first subfile and second verification information corresponding to the second subfile.
[0117] In some embodiments, after receiving the first subfile sent by the portable electronic device, the vehicle-mounted device can calculate the first subfile to obtain corresponding first verification information. The first verification information can be used to identify the identity of the first subfile, and different first subfiles correspond to different first verification information. The vehicle-mounted device can calculate the corresponding first verification information each time it receives one or more portable electronic devices sent by the portable electronic device, or it can calculate the first verification information of each first subfile after receiving all the first subfiles sent by the portable electronic device.
[0118] In some embodiments, the vehicle-mounted device may calculate the second verification information corresponding to the second subfile after downloading the second subfile based on the allocated second address information each time, or may calculate the second verification information of each second subfile after downloading all the second subfiles, and different second subfiles may correspond to different second verification information. The vehicle-mounted device may calculate the first verification information of the first subfile and the second verification information corresponding to the second subfile in any order.
[0119] S5012: If the first reference verification information and the first verification information corresponding to the first subfile are the same, and the first reference verification information and the second verification information corresponding to the second subfile are the same, concatenate the first subfile and the second subfile based on the connection sequence identification information to obtain an OTA upgrade file.
[0120] In some embodiments, the first reference verification information may be verification information corresponding to each sub-file of the OTA upgrade file sent by the cloud server to the vehicle-mounted device. If the first reference verification information corresponding to the first sub-file is the same as the first verification information calculated by the vehicle-mounted device, it means that the first sub-file downloaded by the portable electronic device is correct; if the first reference verification information corresponding to the second sub-file is the same as the second verification information calculated by the vehicle-mounted device, it means that the second sub-file downloaded by the vehicle-mounted device is correct. In this case, the first sub-file and the second sub-file can be spliced according to the connection sequence identification information of the first sub-file and the connection sequence identification information of the second sub-file, so as to obtain the completed OTA upgrade file.
[0121] In some embodiments, the connection sequence identification information may be a connection sequence identification symbol of each sub-file determined by the cloud server. For example, if the OTA upgrade file corresponds to 8 sub-files, the connection sequence identification of each sub-file may be determined as 1, 2, 3, 4, 5, 6, 7, and 8 respectively. If the connection sequence identification corresponding to the current second sub-file is 2, it is determined to be the second sub-file. In the process of combining multiple sub-files, it may be spliced as the second sub-file.
[0122] According to the above-mentioned technical means, by comparing the first verification information of the first sub-file calculated by the vehicle-mounted device and the second verification information of the second sub-file with the first reference verification information of each sub-file sent by the cloud server, it can be determined whether the first sub-file downloaded by the portable electronic device and the second sub-file downloaded by the vehicle-mounted device are correct, and when it is determined that the first reference verification information and the corresponding first verification information (or second verification information) are the same, the first sub-file and the second sub-file are spliced, which can ensure the validity of the final OTA upgrade file.
[0123] In some embodiments of the present application, after calculating the first verification information corresponding to the first subfile and the second verification information corresponding to the second subfile, that is, step S5011, the following steps S601 to S602 may also be performed, and each step is described below.
[0124] S601: If the first reference verification information corresponding to the first subfile is different from the first verification information, re-download the first subfile through the portable electronic device or the vehicle-mounted device.
[0125] In some embodiments, if the first reference verification information and the first verification information corresponding to the first sub-file are different, it means that a download error may occur in the portable electronic device. In this case, the first address information corresponding to the first sub-file can be sent to the portable electronic device again for download; if the portable electronic device stores the first address information corresponding to the first sub-file, a re-download instruction or request can also be sent directly to the portable electronic device, so that the portable electronic device re-downloads the first sub-file.
[0126] In some other embodiments, when it is determined that the first reference verification information and the first verification information corresponding to the first sub-file are different, the first sub-file may also be re-downloaded by the vehicle-mounted device.
[0127] S602: If the first reference verification information and the second verification information corresponding to the second sub-file are different, re-download the second sub-file through the vehicle-mounted device.
[0128] In some embodiments, if the first reference verification information and the second verification information corresponding to the second subfile are different, it means that an error occurs in the download of the second subfile by the vehicle-mounted device. In this case, the second subfile can be downloaded again by the vehicle-mounted device. In other embodiments, the second address information corresponding to the second subfile can also be sent to the portable electronic device for downloading.
[0129] According to the above-mentioned technical means, when it is determined that the first reference verification information corresponding to the sub-file (first sub-file or second sub-file) of the OTA upgrade file is different from the verification information (first verification information or second verification information) calculated by the vehicle-mounted device, the correct sub-file can be obtained by re-downloading through the portable electronic device or the vehicle-mounted device, thereby ensuring the correctness of the final complete OTA upgrade file.
[0130] In some embodiments of the present application, the upgrade file information includes second reference verification information of the OTA upgrade file. The second reference verification information may be the verification information of the OTA upgrade file sent by the cloud server. The second reference verification information may be the MD5 value corresponding to the OTA upgrade file. Based on this, after step S502, the following steps S701 to S702 may also be executed. Each step is described below.
[0131] S701. Calculate third verification information corresponding to the OTA upgrade file.
[0132] In some embodiments, after the vehicle-mounted device concatenates the first sub-file and the second sub-file to obtain the OTA upgrade file, it can perform calculations based on the concatenated OTA upgrade file to obtain third verification information, which can also be the MD5 value of the OTA upgrade file.
[0133] S702: If the second reference verification information is the same as the third verification information, the vehicle is upgraded using the OTA upgrade file.
[0134] In some embodiments, if the second reference verification information and the third verification information are the same, it means that the OTA upgrade file downloaded through the portable electronic device and the vehicle-mounted device is the same as the OTA upgrade file stored in the cloud. In this case, the downloaded OTA upgrade file can be used to upgrade the vehicle.
[0135] According to the above-mentioned technical means, by comparing the third verification information of the OTA upgrade file downloaded by the portable electronic device and the vehicle-mounted device with the second reference verification information sent by the server, it can be determined whether the downloaded OTA upgrade file is correct. When it is determined that the third verification information and the second reference verification information are the same, the vehicle can be upgraded using the downloaded OTA upgrade file to ensure the effectiveness of the vehicle upgrade.
[0136] This application provides another method for downloading vehicle upgrade files. The method involves the interaction process between the cloud server and the vehicle-mounted device. Figure 2 This method will be described.
[0137] S801. The cloud server obtains an upgrade file download request sent by the vehicle-mounted device.
[0138] In some embodiments of the present application, when the vehicle-mounted device detects that the cloud server stores available OTA upgrade files, it can send an upgrade file download request to the cloud server. The upgrade file download request can be used to obtain download information of the OTA upgrade file, such as verification information of the OTA upgrade file, download address information of each sub-file, etc.
[0139] S802. The cloud server sends the vehicle upgrade file information to the vehicle-mounted device based on the upgrade file download request.
[0140] In some embodiments, after obtaining the upgrade file download request, the cloud server can send the vehicle upgrade file information to the vehicle-mounted device. The upgrade file information may include the download address information of each sub-file of the OTA upgrade file, so that after receiving the download address information, the vehicle-mounted device allocates corresponding download address information to itself and at least one portable electronic device, so as to complete the download of different sub-files through the portable electronic device and the vehicle-mounted device.
[0141] In some embodiments, after the above step S802, the vehicle-mounted device may also perform step S101, receiving the vehicle upgrade file information fed back by the cloud server based on the upgrade file download request, and step S102, distributing the download address information to the vehicle-mounted device and at least one portable electronic device, so as to download the corresponding sub-files through the vehicle-mounted device and at least one portable electronic device respectively, and obtain the OTA upgrade file. The relevant embodiments of steps S101 to S102 are as above, and are not repeated here.
[0142] According to the above-mentioned technical means, the cloud server can send the vehicle upgrade file information to the vehicle-mounted device according to the upgrade file download request sent by the vehicle-mounted device, so that the vehicle-mounted device distributes the download address information of each sub-file in the upgrade file information to the vehicle-mounted device and at least one portable electronic device, and distributes the sub-files of the OTA upgrade file through the vehicle-mounted device and at least one portable electronic device, thereby improving the download speed of the OTA upgrade file and enhancing the user experience of the vehicle.
[0143] In some embodiments of the present application, before the cloud server obtains the upgrade file download request sent by the vehicle-mounted device, that is, before step S801, the following steps S901 to S903 may also be executed, and each step is described below.
[0144] S901. Obtain the OTA upgrade file of the vehicle.
[0145] In some embodiments, the cloud server can receive the vehicle's OTA upgrade files sent by other electronic devices, and developers, etc. can also create the vehicle's OTA upgrade files through the cloud server.
[0146] S902: Split the OTA upgrade file into multiple sub-files, and determine download address information of the multiple sub-files.
[0147] In some embodiments, the cloud server can split the OTA upgrade file to obtain multiple sub-files, and the number of sub-files can be set arbitrarily, for example, 5, 8, 10, etc. For example, if the OTA upgrade file is 2048MB, and each sub-file is split into 100MB, then the 21 small files are finally split, the 1st to 20th files are all 100MB, and the 21st file is 48MB.
[0148] In some embodiments, after obtaining multiple sub-files, the cloud server can determine the storage address corresponding to each sub-file. Different sub-files have different corresponding storage addresses. The storage address can be the storage address of the sub-file in the corresponding storage area of the cloud server. The storage address can be used as the download address of the sub-file.
[0149] S903: Generate upgrade file information based on the download address information of the multiple sub-files.
[0150] In some embodiments, after determining the download address information of each sub-file, the cloud server can generate upgrade file information based on the download address information of each sub-file. In some embodiments, the upgrade file information can also include connection sequence identification information and verification information of each sub-file, as well as verification information of the entire OTA upgrade file.
[0151] According to the above-mentioned technical means, by splitting the OTA upgrade file through the cloud server, various sub-files can be obtained, and the upgrade file information can be further generated based on the download address information of each sub-file, so that the upgrade file information can be subsequently sent to the vehicle-mounted device, and the download address information in the upgrade file information can be distributed through the vehicle-mounted device to realize distributed downloading of portable electronic devices and vehicle-mounted devices.
[0152] Next, the implementation process of the application embodiment in the actual application scenario is introduced.
[0153] Figure 3 A flowchart of a method for improving the OTA download speed of a smart connected vehicle provided in an embodiment of the present application is shown. The method can be implemented through the following steps S11 to S17, and each step is described separately below.
[0154] S11. Divide the OTA upgrade file uploaded to the cloud OTA management system into multiple small files (equivalent to the "sub-files" in other embodiments).
[0155] After uploading the OTA upgrade file to the OTA management system in the cloud, the cloud can split the uploaded OTA upgrade file into multiple small files of fixed size, and record the index of each small file (equivalent to the "connection sequence identification information" in other embodiments) and the MD5 value (equivalent to the "first reference verification information" in other embodiments).
[0156] S12. The OTA program of the vehicle computer obtains information of the OTA upgrade file.
[0157] like Figure 4 As shown, the vehicle computer and the cloud have established a communication connection. The OTA program of the vehicle computer can obtain the upgrade package information by requesting the cloud application programming interface (Application Programming Interface, API) interface. The information returned by the cloud interface must at least include the size and MD5 value of the complete file, as well as the index number, file size, download address, and MD5 value information of the split file. Exemplarily, the data format returned by the cloud interface can be:
[0158]
[0159]
[0160] S13. The OTA program of the vehicle computer and the application APP of the mobile phone establish a communication link.
[0161] After the car computer detects the upgrade task, it can prompt the user to connect the mobile phone to the car computer and establish a communication connection with the application (Application, APP) on the mobile phone through the car computer's OTA program. The APP program is the corresponding mobile phone APP for smart cars. The ways of connecting the car computer and the mobile phone include USB, WIFI, Star Flash, Ultra Wide Band (UWB), etc. Here, the USB connection is taken as an example to illustrate the implementation method of establishing communication: After entering the collaborative download function module on the mobile phone APP, a local socket port P1 is listened to. At the same time, after the car computer's OTA program detects that the USB is connected to the mobile phone, the local P2 port of the car computer is mapped to the P1 port of the mobile phone through the Android Debug Bridge (ADB). Afterwards, the car computer's OTA program can establish a communication connection with the local P2 port to achieve two-way communication with the mobile phone's APP. Optionally, such as Figure 4 As shown, the vehicle computer can establish communication connections with multiple mobile phones at the same time through a variety of connection methods.
[0162] S14. The OTA program of the vehicle computer schedules the mobile phone's APP for distributed download.
[0163] The OTA program of the car computer can realize distributed download and scheduling functions, and can dynamically allocate the download address of the upgrade file obtained from the cloud to the car or mobile phone for download. The OTA program of the car computer puts the obtained download address list into the task queue and maintains a task status information. The task status values are: waiting to be downloaded, downloading, downloading completed, file verification in progress, and file verification completed. The scheduling module of the car computer can obtain the download address from the queue and allocate it to the car computer and mobile phone APP for collaborative download. The ratio of car computer and mobile phone download can be manually adjusted according to the total size of this upgrade package. If the default is not set, it will be automatically allocated according to the download speed. The party with a faster download speed will be scheduled to receive more download tasks.
[0164] The scheduling module in the OTA program can obtain the tasks to be downloaded from the task queue and distribute them to the download module of the OTA program of the vehicle computer and the download function module of the mobile phone's APP for simultaneous downloading, while monitoring the real-time status of the tasks. When the status of the task becomes download completed, the download task is assigned to the corresponding download module again until all tasks are assigned. If the user sets a maximum traffic limit that the mobile phone can download during this download process in the vehicle computer OTA program, the scheduling module controls the size of the cut file and will no longer schedule it to the download module on the mobile phone's APP when the limit is reached.
[0165] S15. The mobile phone sends the downloaded small file to the vehicle computer.
[0166] After the OTA program of the vehicle and the download module in the mobile phone's APP receive the task from the scheduling module, the task status in the task queue can be immediately updated to downloading. It should be noted that the download module in the mobile phone's APP needs to update the task status through the communication connection established in step S13. At the same time, the mobile phone's APP stores the downloaded files in the local directory of the mobile phone. When the download is completed, it sends data to update the task status to download completed, and sends the downloaded files to the OTA program of the vehicle. The communication protocol between the mobile phone's APP and the OTA program of the vehicle can be implemented by referring to the industry-common Type-Length-Value (TLV) protocol. When the mobile phone transmits the downloaded file data to the OTA program of the vehicle, it is necessary to identify in the data which file the current data belongs to. In this application, the index number is used as the identifier.
[0167] S16. The OTA program of the vehicle computer completes the verification of the received small files and merges them into a complete OTA upgrade file.
[0168] When the file management module in the OTA program of the vehicle computer detects that the task has been downloaded, it performs a file integrity check and changes the task status to file verification. The specific verification method is to calculate whether the MD5 value of the local file is consistent with the MD5 value of the segmented file obtained from the cloud in step S12. If they are inconsistent, it means that the file is damaged and needs to be downloaded again. Otherwise, the task status is updated to file verification completed. To achieve re-download, the task status in the task queue needs to be changed to pending download. When all files are verified, the file management module needs to merge these segmented files into a complete upgrade package. The segmented files can be read in sequence from small to large through the segmentation index and written into the merged file. After the merge is completed, a complete verification is performed on the merged file. The verification method is to calculate the MD5 value of the merged file and compare it with the complete_file_md5 obtained in step S12.
[0169] S17. The vehicle computer uses the complete OTA upgrade file to upgrade the vehicle.
[0170] After the OTA program of the car computer is merged to obtain a complete OTA upgrade file, subsequent upgrade installation can be carried out to achieve the upgrade of the vehicle.
[0171] The method for improving the OTA download speed of smart connected vehicles provided in this application, through the collaborative work of the vehicle computer and the mobile phone, utilizes the high-speed network and download capabilities of the mobile phone to accelerate and optimize the OTA upgrade process of the smart car, which can save user time, improve the efficiency of the smart car OTA upgrade and user experience, and meet the user's demand for fast upgrades.
[0172] The embodiment of the present application provides a vehicle-mounted device, Figure 5 A schematic diagram of the structure of a vehicle-mounted device provided in an embodiment of the present application is shown in FIG. Figure 5 As shown, the vehicle-mounted device 20 includes:
[0173] The first receiving module 21 is used to receive the upgrade file information of the vehicle fed back by the cloud server based on the upgrade file download request; the upgrade file information includes the download address information of multiple sub-files corresponding to the over-the-air OTA upgrade file of the vehicle;
[0174] The first allocation module 22 is used to allocate the download address information to the vehicle-mounted device and at least one portable electronic device, so as to download corresponding sub-files through the vehicle-mounted device and the at least one portable electronic device respectively to obtain the OTA upgrade file.
[0175] In some embodiments, the download address information includes a plurality of first download address information and a plurality of second download address information; the first allocation module 22 includes:
[0176] The first allocation submodule is used to allocate each first download address information to the portable electronic device in turn, and allocate each second download address information to the vehicle-mounted device in turn according to the download address allocation conditions; the download address allocation conditions include at least one of a preset download ratio, a download speed and a download traffic limit.
[0177] In some embodiments, the first allocation submodule includes:
[0178] The first determination unit is used to determine the first download address information corresponding to the portable electronic device and the second download address information corresponding to the vehicle-mounted device from the first candidate download address information according to the preset download ratio; the first candidate download address information is part of the download address information among the multiple download address information.
[0179] In some embodiments, the first allocation submodule includes:
[0180] A first acquisition unit is used to acquire a first download speed of the portable electronic device for a specific first subfile, and a second download speed of the vehicle-mounted device for a specific second subfile; the specific first subfile and the specific second subfile are any one of the multiple subfiles;
[0181] A second determining unit, configured to determine the second candidate download address information as the first download address information if the first download speed is greater than the second download speed; the second candidate download address information is unallocated download address information;
[0182] The third determining unit is configured to determine the second candidate download address information as the second download address information if the first download speed is lower than the second download speed.
[0183] In some embodiments, the first allocation submodule further includes:
[0184] A second acquisition unit, configured to acquire download flow restriction information of the portable electronic device or the vehicle-mounted device;
[0185] The fourth determination unit is used to determine the first download address information corresponding to the portable electronic device, or the second download address information corresponding to the vehicle-mounted device from the third candidate download address information according to the download traffic restriction information; the third candidate download address information is part of the download address information among multiple download address information.
[0186] In some embodiments, the vehicle-mounted device 20 further includes:
[0187] An address information sending module, used for sending the first download address information to the portable electronic device;
[0188] The upgrade file acquisition module is used to acquire the first sub-file obtained after the portable electronic device is downloaded based on the first download address information feedback.
[0189] In some embodiments, the vehicle-mounted device 20 further includes:
[0190] A first download module, configured to download using the vehicle-mounted device based on the second download address information to obtain a second sub-file;
[0191] The first determination module is used to determine the OTA upgrade file based on the first sub-file and the second sub-file; the first sub-file and the second sub-file each include a plurality.
[0192] In some embodiments, the upgrade file information includes connection sequence identification information of each sub-file and first reference verification information; the first determination module includes:
[0193] A calculation submodule, used to calculate first verification information corresponding to the first subfile and second verification information corresponding to the second subfile;
[0194] A splicing submodule is used to splice the first subfile and the second subfile based on the connection sequence identification information to obtain the OTA upgrade file if the first reference verification information corresponding to the first subfile is the same as the first verification information, and the first reference verification information corresponding to the second subfile is the same as the second verification information.
[0195] In some embodiments, the vehicle-mounted device 20 further includes:
[0196] a second downloading module, configured to re-download the first subfile through the portable electronic device or the vehicle-mounted device if the first reference verification information corresponding to the first subfile is different from the first verification information;
[0197] The third downloading module is used to re-download the second sub-file through the vehicle-mounted device if the first reference verification information corresponding to the second sub-file is different from the second verification information.
[0198] In some embodiments, the upgrade file information includes second reference verification information of the OTA upgrade file; the vehicle-mounted device 20 further includes:
[0199] A calculation module, used to calculate third verification information corresponding to the OTA upgrade file;
[0200] A vehicle upgrade module is used to upgrade the vehicle using the OTA upgrade file if the second reference verification information is the same as the third verification information.
[0201] In some embodiments, the vehicle-mounted device 20 further includes:
[0202] A request information sending module is used to send an upgrade file download request to the cloud server when it is determined that the cloud server has an available OTA upgrade file, and output prompt information to prompt the user to establish a communication connection between the at least one portable electronic device and the vehicle-mounted device; the network speed of the at least one portable electronic device is faster than the network speed of the vehicle-mounted device.
[0203] The present application embodiment provides a cloud server, Figure 6 A schematic diagram of the structure of a cloud server provided in an embodiment of the present application is shown in FIG. Figure 6 As shown, the cloud server 30 includes:
[0204] A first acquisition module 31 is used to acquire an upgrade file download request sent by the vehicle-mounted device;
[0205] The first sending module 32 is used to send the vehicle upgrade file information to the vehicle-mounted device based on the upgrade file download request, so that the vehicle-mounted device allocates download address information of multiple sub-files corresponding to the OTA upgrade file to itself and at least one portable electronic device, thereby enabling the vehicle-mounted device and the at least one portable electronic device to download the corresponding sub-files; wherein the upgrade file information includes the download address information of multiple sub-files corresponding to the OTA upgrade file.
[0206] In some embodiments, the cloud server 30 further includes:
[0207] A second acquisition module is used to acquire the OTA upgrade file of the vehicle;
[0208] A splitting module, used to split the OTA upgrade file into multiple sub-files and determine the download address information of the multiple sub-files;
[0209] A generating module is used to generate the upgrade file information based on the download address information of the multiple sub-files.
[0210] It should be noted that the description of the vehicle-mounted device and the cloud server in the embodiment of the present application is similar to the description of the corresponding method embodiment above, and has similar beneficial effects as the method embodiment, so it is not repeated. For technical details not disclosed in this embodiment, please refer to the description of the method embodiment of the present application for understanding.
[0211] It should be noted that in the embodiment of the present application, if the above-mentioned method for downloading vehicle upgrade files is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application can be essentially or in other words, the part that contributes to the relevant solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods of each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM), a magnetic disk or an optical disk. In this way, the embodiment of the present application is not limited to any specific combination of hardware and software.
[0212] Accordingly, an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the method for downloading vehicle upgrade files applied to a vehicle-mounted device or the method for downloading vehicle upgrade files applied to a cloud server provided in the above-mentioned embodiment is implemented.
[0213] Figure 7 A schematic diagram of the composition structure of another vehicle-mounted device provided in an embodiment of the present application is as follows: Figure 7 As shown, the vehicle-mounted device 40 includes: a first memory 401, a first processor 42, a first communication interface 43 and a first communication bus 44. The first memory 41 is used to store instructions for downloading executable vehicle upgrade files; the first processor 42 is used to execute the instructions for downloading executable vehicle upgrade files stored in the first memory 41 to implement the vehicle upgrade file download method applied to the vehicle-mounted device provided in the above embodiment.
[0214] The description of the above vehicle-mounted device embodiment is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the vehicle-mounted device embodiment of this application, please refer to the description of the method embodiment of this application for understanding.
[0215] Figure 8 A schematic diagram of the composition structure of another cloud server provided in an embodiment of the present application is shown in FIG. Figure 8 As shown, the cloud server 50 includes: a second memory 51, a second processor 52, a second communication interface 53 and a second communication bus 54. The second memory 51 is used to store instructions for downloading executable vehicle upgrade files; the second processor 52 is used to execute the instructions for downloading executable vehicle upgrade files stored in the second memory 51 to implement the vehicle upgrade file download method applied to the cloud server provided in the above embodiment.
[0216] The description of the above cloud server embodiment is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the cloud server embodiment of this application, please refer to the description of the method embodiment of this application for understanding.
[0217] It should be noted that, in this article, the term "comprises" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises at least one ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0218] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.
[0219] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0220] In addition, all functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may be a separate unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0221] A person of ordinary skill in the art can understand that: all or part of the steps of implementing the above-mentioned method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above-mentioned method embodiment; and the aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROM, disks or optical disks.
[0222] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application can essentially or in other words, the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a product to execute all or part of the methods of each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks, or optical disks.
[0223] The above are only implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any technical object familiar with the technical field can be easily thought of within the technical scope disclosed in the present application. Changes or substitutions should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A method for downloading vehicle upgrade files, applied to vehicle-mounted equipment, characterized in that: include: Receiving the upgrade file information of the vehicle fed back by the cloud server based on the upgrade file download request; The upgrade file information includes download address information of multiple sub-files corresponding to the over-the-air OTA upgrade file of the vehicle; The download address information is distributed to the vehicle-mounted device and at least one portable electronic device, so that the corresponding sub-files are downloaded through the vehicle-mounted device and the at least one portable electronic device respectively to obtain the OTA upgrade file.
2. The method according to claim 1, characterized in that The download address information includes at least one first download address information and at least one second download address information; The step of distributing the download address information to the vehicle-mounted device and at least one portable electronic device comprises: According to the download address allocation conditions, each first download address information is allocated to the portable electronic device in turn, and each second download address information is allocated to the vehicle-mounted device in turn; the download address allocation conditions include at least one of a preset download ratio, a download speed, and a download traffic limit.
3. The method according to claim 2, characterized in that The step of sequentially allocating each first download address information to the portable electronic device according to the download address allocation condition, and sequentially allocating each second download address information to the vehicle-mounted device, comprises: According to the preset download ratio, the first download address information corresponding to the portable electronic device and the second download address information corresponding to the vehicle-mounted device are determined from the first candidate download address information; the first candidate download address information is part of the download address information among the multiple download address information.
4. The method according to claim 2, wherein the first download address information is sequentially allocated to the portable electronic device and the second download address information is sequentially allocated to the vehicle-mounted device according to the download address allocation condition, comprising: Acquire a first download speed of the portable electronic device for a specific first subfile, and a second download speed of the in-vehicle device for a specific second subfile; The specific first subfile and the specific second subfile are any one of the multiple subfiles; If the first download speed is greater than the second download speed, the second candidate download address information is determined as the first download address information; the second candidate download address information is unassigned download address information; If the first download speed is lower than the second download speed, the second candidate download address information is determined as the second download address information.
5. The method according to claim 2, wherein the first download address information is sequentially allocated to the portable electronic device and the second download address information is sequentially allocated to the vehicle-mounted device according to the download address allocation condition, comprising: Obtaining download traffic restriction information of the portable electronic device or the vehicle-mounted device; According to the download traffic restriction information, the first download address information corresponding to the portable electronic device or the second download address information corresponding to the vehicle-mounted device is determined from the third candidate download address information; the third candidate download address information is part of the download address information among the multiple download address information.
6. The method according to claim 2, characterized in that Also includes: Sending the first download address information to the portable electronic device; A first subfile obtained after downloading and fed back by the portable electronic device based on the first download address information is obtained.
7. The method according to claim 6, characterized in that Also includes: Using the vehicle-mounted device to download based on the second download address information to obtain a second sub-file; Determine the OTA upgrade file based on the first subfile and the second subfile; The first subfile and the second subfile each include a plurality of subfiles.
8. The method according to claim 7, characterized in that The upgrade file information includes connection sequence identification information of each sub-file and first reference verification information; and determining the OTA upgrade file based on the first sub-file and the second sub-file includes: Calculating first verification information corresponding to the first subfile and second verification information corresponding to the second subfile; If the first reference verification information corresponding to the first subfile is the same as the first verification information, and the first reference verification information corresponding to the second subfile is the same as the second verification information, the first subfile and the second subfile are spliced based on the connection sequence identification information to obtain the OTA upgrade file.
9. The method according to claim 8, characterized in that The method further comprises: If the first reference verification information corresponding to the first subfile is different from the first verification information, re-downloading the first subfile through the portable electronic device or the vehicle-mounted device; If the first reference verification information corresponding to the second subfile is different from the second verification information, the second subfile is downloaded again through the in-vehicle device.
10. The method according to any one of claims 7 to 9, characterized in that: The upgrade file information includes second reference verification information of the OTA upgrade file; the method further includes: Calculating third verification information corresponding to the OTA upgrade file; If the second reference verification information is the same as the third verification information, the vehicle is upgraded using the OTA upgrade file.
11. The method according to claim 1, characterized in that: The method further comprises: When it is determined that the cloud server has an available OTA upgrade file, a request for downloading the upgrade file is sent to the cloud server, and a prompt message is output to prompt the user to establish a communication connection between the at least one portable electronic device and the vehicle-mounted device; the network speed of the at least one portable electronic device is faster than the network speed of the vehicle-mounted device.
12. A method for downloading vehicle upgrade files, applied to a cloud server, characterized in that: include: Get the upgrade file download request sent by the vehicle-mounted device; Sending the vehicle upgrade file information to the vehicle-mounted device based on the upgrade file download request, so that the vehicle-mounted device allocates download address information of multiple sub-files corresponding to the OTA upgrade file to itself and at least one portable electronic device, so that the vehicle-mounted device and the at least one portable electronic device download the corresponding sub-files; The upgrade file information includes download address information of multiple sub-files corresponding to the OTA upgrade file.
13. The method according to claim 12, characterized in that Also includes: Obtaining the OTA upgrade file of the vehicle; Splitting the OTA upgrade file into multiple sub-files, and determining download address information of the multiple sub-files; The upgrade file information is generated based on the download address information of the multiple sub-files.
14. A vehicle-mounted device, characterized in that: include: A first receiving module, configured to receive upgrade file information of the vehicle fed back by the cloud server based on the upgrade file download request; The upgrade file information includes download address information of multiple sub-files corresponding to the over-the-air OTA upgrade file of the vehicle; The first allocation module is used to allocate the download address information to the vehicle-mounted device and at least one portable electronic device, so as to download corresponding sub-files through the vehicle-mounted device and the at least one portable electronic device respectively to obtain the OTA upgrade file.
15. A cloud server, characterized in that: include: A first acquisition module, used to acquire an upgrade file download request sent by the vehicle-mounted device; The first sending module is used to send the vehicle upgrade file information to the vehicle-mounted device based on the upgrade file download request, so that the vehicle-mounted device allocates download address information of multiple sub-files corresponding to the OTA upgrade file to itself and at least one portable electronic device, thereby enabling the vehicle-mounted device and the at least one portable electronic device to download the corresponding sub-files; wherein the upgrade file information includes the download address information of multiple sub-files corresponding to the OTA upgrade file.
16. A vehicle-mounted device, characterized in that: include: a first processor and a first memory; wherein, The first memory is used to store a computer program that can be run on the first processor; The first processor is configured to execute the method according to any one of claims 1 to 11 when running the computer program.
17. A vehicle-mounted device, characterized in that: include: A second processor and a second memory; wherein, The second memory is used to store a computer program that can be run on the second processor; The second processor is configured to execute the method according to any one of claims 12 to 13 when running the computer program.
18. A computer-readable storage medium, characterized in that: The storage medium stores computer program code, and when the computer program code is executed by a computer, the method according to any one of claims 1 to 11 or claims 12 to 13 is executed.
Citation Information
Patent Citations
OTA upgrading device and method of vehicle-mounted equipment
CN114745696A
Electronic control unit upgrading method and device, electronic equipment and storage medium
CN117544605A
Vehicle-mounted device
CN118804342A
Data download method for in-vehicle information system, and in-vehicle information system
JP2004274415A
Method and apparatus for function assistance for vehicle-mounted terminal
WO2022161285A1