CN-121984954-A - Software downloading method and related equipment
Abstract
The embodiment of the application discloses a software downloading method and related equipment, which are used for realizing ordered scheduling and management of sub-package downloading tasks under the condition that target software consists of a plurality of sub-packages capable of being independently downloaded, so as to improve the flexibility of software downloading and the user experience while ensuring the controllability of the software downloading process. The method comprises the steps of responding to a downloading instruction of target software, creating a double-layer downloading queue for the target software, wherein the target software is composed of a plurality of independent downloadable sub-packets, the double-layer downloading queue comprises a main task queue and a sub-task queue associated with the main task queue, the sub-task queue comprises downloading tasks corresponding to the plurality of sub-packets, adjusting the downloading sequence of the downloading tasks in the sub-task queue according to a preset scheduling strategy to obtain an adjusted downloading sequence, and executing the downloading tasks of the plurality of sub-packets according to the adjusted downloading sequence.
Inventors
- LIU XIN
- YANG ZHIPENG
Assignees
- 深圳市元征科技股份有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20260205
Claims (10)
- 1. A method of software download, comprising: the method comprises the steps of responding to a downloading instruction of target software, establishing a double-layer downloading queue for the target software, wherein the target software consists of a plurality of independently downloadable sub-packets, and the double-layer downloading queue comprises a main task queue and a sub-task queue associated with the main task queue, wherein the sub-task queue comprises downloading tasks corresponding to the sub-packets; According to a preset scheduling strategy, the downloading sequence of the downloading tasks in the subtask queue is adjusted, and the adjusted downloading sequence is obtained; and executing the downloading tasks of the plurality of sub-packages according to the adjusted downloading sequence.
- 2. The method of claim 1, wherein the adjusting the downloading sequence of the downloading tasks in the subtask queue according to the preset scheduling policy, to obtain the adjusted downloading sequence, includes: sending a request to a server to acquire using frequency data of each sub-packet of the target software; and adjusting the downloading sequence of each downloading task in the subtask queue according to the sequence from high to low based on the using frequency data to obtain the adjusted downloading sequence.
- 3. The method of claim 2, wherein the sending a request to a server to obtain usage frequency data for each subpacket of the target software comprises: sending a request to a server, wherein the request carries a user identifier for representing the identity of a user; if the user identification indicates a registered user, acquiring using frequency data of each sub-packet returned by the server based on the historical operation record of the registered user; And if the user identification indicates a new user or a user without history record, acquiring the use frequency data of each sub-packet returned by the server based on the history operation record of other users in the preset geographic area associated with the user identification.
- 4. The method of claim 1, wherein performing the download tasks of the plurality of subpackets in the adjusted download order comprises: And simultaneously executing the downloading tasks of the multiple sub-packages according to the preset concurrent downloading task number.
- 5. The method of claim 4, wherein performing the download tasks of the plurality of subpackets in the adjusted download order comprises: and if the using frequency data of the sub-packet positioned at the first position in the downloading sequence exceeds a preset threshold value, the current concurrent downloading task number is adjusted to be a single task, and the downloading task of the sub-packet positioned at the first position in the downloading sequence is preferentially executed.
- 6. The method of claim 1, wherein the sub-packages comprise at least a base sub-package and a language sub-package, the base sub-package and the language sub-package being used to achieve a minimum operating condition for enabling the target software, the method further comprising: Monitoring the downloading completion state of the plurality of sub-packages; If the fact that the downloading of the basic sub-package and the language package is completed is monitored, a first available notification is generated and used for indicating the target software to enter a usable state; if any sub-package except the basic package and the language package is detected to be downloaded, generating a second available notification corresponding to the sub-package, wherein the second available notification is used for indicating the available state of the new added corresponding function of the target software.
- 7. The method according to any one of claims 1 to 6, wherein said performing the download tasks of the plurality of sub-packages in the adjusted download order comprises: Monitoring the downloading completion state of all sub-packets; And after the downloading tasks of all the sub-packets in the sub-task queue are completed, removing the main task corresponding to the target software from the main task queue.
- 8. A software downloading apparatus, comprising: the system comprises a queue creation unit, a target software creation unit and a download unit, wherein the queue creation unit is used for responding to a download instruction of the target software to create a double-layer download queue for the target software, the target software consists of a plurality of independent downloadable sub-packets, the double-layer download queue comprises a main task queue and a sub-task queue associated with the main task queue, and the sub-task queue comprises download tasks corresponding to the plurality of sub-packets; the sequence adjusting unit is used for adjusting the downloading sequence of the downloading tasks in the subtask queue according to a preset scheduling strategy to obtain an adjusted downloading sequence; and the download execution unit is used for executing the download tasks of the plurality of sub-packages according to the adjusted download sequence.
- 9. A computer device, comprising: a central processing unit, a memory and an input/output interface; the memory is a short-term memory or a persistent memory; The central processor is configured to communicate with the memory and to execute instruction operations in the memory to perform the method of any of claims 1 to 7.
- 10. A computer readable storage medium, on which a computer program is stored, which computer program, when being executed by a processor, is adapted to carry out the method of any one of claims 1 to 7.
Description
Software downloading method and related equipment Technical Field The embodiment of the application relates to the technical field of computers, in particular to a software downloading method and related equipment. Background At present, vehicle diagnosis software is generally required to integrate various diagnosis function modules and support different vehicle types, different languages and diversified function combinations so as to meet the requirements of different users and application scenes. In the prior art, vehicle diagnosis software is usually provided for users to download in the form of complete software packages, i.e. all diagnosis functions and language resources required by a certain vehicle model are pre-packaged into an integral file. When a user needs to use a certain diagnostic function, the downloading and installation of the whole software package are often required to be completed before the user can enter the corresponding diagnostic interface. However, in the situation that the software volume is continuously increased and the function modules are increasingly increased, the integral software downloading mode is characterized in that the software downloading process is strongly bound with the availability of the software functions, a user cannot obtain the functional software package which is actually and urgently needed in the downloading process, and the user can use the related functions after the whole software package is downloaded, so that in the scene that the software volume is large or the network condition is limited, the waiting time of the user is easily caused to be long, and the integral experience in the software downloading and using processes is affected. Disclosure of Invention Based on the above problems, the embodiments of the present application provide a software downloading method and related devices, so as to orderly schedule a software downloading process when a target software includes a plurality of sub-packages that can be downloaded independently, so that a user can obtain a required software function earlier in the software downloading process, thereby reducing the waiting time of the function availability and improving the overall experience in the software downloading and using processes. In a first aspect, an embodiment of the present application provides a software downloading method, including: the method comprises the steps of responding to a downloading instruction of target software, establishing a double-layer downloading queue for the target software, wherein the target software consists of a plurality of independently downloadable sub-packets, and the double-layer downloading queue comprises a main task queue and a sub-task queue associated with the main task queue, wherein the sub-task queue comprises downloading tasks corresponding to the sub-packets; According to a preset scheduling strategy, the downloading sequence of the downloading tasks in the subtask queue is adjusted, and the adjusted downloading sequence is obtained; and executing the downloading tasks of the plurality of sub-packages according to the adjusted downloading sequence. In an embodiment, the adjusting the downloading sequence of the downloading task in the subtask queue according to a preset scheduling policy to obtain the adjusted downloading sequence includes: sending a request to a server to acquire using frequency data of each sub-packet of the target software; and adjusting the downloading sequence of each downloading task in the subtask queue according to the sequence from high to low based on the using frequency data to obtain the adjusted downloading sequence. In an embodiment, the sending a request to a server to obtain the usage frequency data for each sub-packet of the target software includes: sending a request to a server, wherein the request carries a user identifier for representing the identity of a user; if the user identification indicates a registered user, acquiring using frequency data of each sub-packet returned by the server based on the historical operation record of the registered user; And if the user identification indicates a new user or a user without history record, acquiring the use frequency data of each sub-packet returned by the server based on the history operation record of other users in the preset geographic area associated with the user identification. In an embodiment, the performing the downloading task of the plurality of sub-packets according to the adjusted downloading order includes: And simultaneously executing the downloading tasks of the multiple sub-packages according to the preset concurrent downloading task number. In an embodiment, the performing the downloading task of the plurality of sub-packets according to the adjusted downloading order includes: and if the using frequency data of the sub-packet positioned at the first position in the downloading sequence exceeds a preset threshold value, the current concurrent dow