CN116319745A - Application resource downloading method and device, vehicle machine, vehicle and storage medium - Google Patents

Application resource downloading method and device, vehicle machine, vehicle and storage medium Download PDF

Info

Publication number
CN116319745A
CN116319745A CN202310156716.XA CN202310156716A CN116319745A CN 116319745 A CN116319745 A CN 116319745A CN 202310156716 A CN202310156716 A CN 202310156716A CN 116319745 A CN116319745 A CN 116319745A
Authority
CN
China
Prior art keywords
resource
application
vehicle
downloading
update request
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310156716.XA
Other languages
Chinese (zh)
Inventor
刘倩
苟现敏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chongqing Changan Automobile Co Ltd
Original Assignee
Chongqing Changan Automobile Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chongqing Changan Automobile Co Ltd filed Critical Chongqing Changan Automobile Co Ltd
Priority to CN202310156716.XA priority Critical patent/CN116319745A/en
Publication of CN116319745A publication Critical patent/CN116319745A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Computer Security & Cryptography (AREA)
  • Medical Informatics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Stored Programmes (AREA)

Abstract

The application relates to the technical field of vehicle-mounted application resources, in particular to an application resource downloading method, an application resource downloading device, a vehicle-mounted device, a vehicle and a storage medium, wherein the method comprises the following steps: identifying whether the application resource of the vehicle machine meets the update request condition; if the application resource meets the update request condition, an update request is sent to a server, wherein the server feeds back an up-to-date resource list according to the update request; and determining new resources of the application resources according to the latest resource list and the local resource list, and downloading the new resources when the new resources are compatible with the current version of the application program in the vehicle, wherein the application resources are stored in the first partition, the application program is stored in the second partition, and the application resources and the application program are updated through different update paths. Therefore, the problems that when application resources are downloaded in the related technology, the application resources can only be upgraded along with a vehicle-mounted system, the system upgrade package is large, the storage space of the vehicle-mounted system is occupied, the user experience is poor and the like are solved.

Description

Application resource downloading method and device, vehicle machine, vehicle and storage medium
Technical Field
The present disclosure relates to the field of application resource technologies, and in particular, to an application resource downloading method, an application resource downloading device, a vehicle, and a storage medium.
Background
With The development of intelligent networking automobiles, applications/APPs (Application programs) carried by an in-vehicle entertainment system are increasing, the applications/APPs comprise a lot of audio and video resources, occupy more system storage space, and are packaged in an APK (Android Application package ) to be updated along with an Over-The-Air technology (OTA) of The in-vehicle entertainment system according to common industry practice.
However, the size of the FOTA partition occupied during OTA upgrade is 4 times that of the original upgrade package (and the encryption package, the decryption package and the decompression package are stored at the same time), so that the resource occupation is large.
Disclosure of Invention
The application resource downloading method, device, vehicle machine, vehicle and storage medium are provided to solve the problems that when application resource downloading is carried out in the related technology, only the application resource downloading can be updated along with a vehicle machine system, the system upgrading package is large, the storage space of the vehicle machine is occupied, the user experience is poor and the like.
An embodiment of a first aspect of the present application provides an application resource downloading method, including the following steps: identifying whether the application resource of the vehicle machine meets the update request condition; if the application resource meets the update request condition, an update request is sent to a server, wherein the server feeds back an up-to-date resource list according to the update request; and determining a new added resource of the application resource according to the latest resource list and the local resource list, and downloading the new added resource when the new added resource is compatible with the current version of the application program in the vehicle, wherein the application resource is stored in a first partition, the application program is stored in a second partition, the first partition and the second partition belong to different partitions, and the application resource and the application program are updated through different updating paths.
According to the technical means, when the application resources of the vehicle machine meet the updating conditions, the application goes to the server to download the resource files for updating, the update is not carried out along with the vehicle machine system, the user experience is improved, the application resources are not packaged when the vehicle machine system is updated, the storage space of the vehicle machine occupied by the application resources is reduced, the size of a system update package is reduced, the application resources and the application programs are divided into different updating paths for updating, the updating efficiency is improved, and the user experience is improved.
Optionally, the downloading the new added resource includes: identifying the actual file capacity of the newly added resource; and if the residual memory capacity of the vehicle is larger than the actual file capacity, downloading the newly-added resource from the server according to a resource downloading link, otherwise ending the resource downloading.
According to the technical means, the embodiment of the application can judge whether the residual memory capacity of the vehicle is enough, and when the capacity is enough, the resource downloading is carried out, otherwise, the resource downloading is ended.
Optionally, the downloading the new added resource further includes: judging whether the newly added resource is downloaded successfully or not; if the newly added resource fails to download, counting the failure times of the newly added resource, and ending the resource downloading when the failure times are larger than the preset times.
According to the technical means, the embodiment of the application can finish the resource downloading after the newly added resource is downloaded for a plurality of times, so that time waste is avoided.
Optionally, the downloading the new added resource further includes: if the downloading is interrupted, detecting whether an interruption recovery condition is met; and when the interrupt recovery condition is met, continuing to download the newly-added resources until the downloading is successful.
According to the technical means, when unexpected situations such as downloading interruption occur, the embodiment of the application can resume downloading after the unexpected situations disappear.
Optionally, before sending the update request to the server, the method includes: acquiring a vehicle identifier and an application identifier of an application program; and generating the update request according to the vehicle identifier and the application identifier.
According to the technical means, the embodiment of the application can generate the update request according to the vehicle representation and the application identifier of the application program, and the update request is used for sending the update request to the server for resource downloading.
Optionally, the identifying whether the application resource of the vehicle machine meets the update request condition includes: detecting whether the application program is opened, whether the vehicle-mounted system is successfully upgraded and whether the vehicle-mounted system is in a starting state; and if the application program is opened, the vehicle system is updated successfully and/or the vehicle is in a starting state, judging that the application resource meets the update request condition.
According to the technical means, the embodiment of the application can send the update request when the application resource of the vehicle machine meets the update request condition, otherwise, the application resource is not updated.
An embodiment of a second aspect of the present application provides an application resource downloading device, including: the identification module is used for identifying whether the application resource of the vehicle machine meets the update request condition; the request module is used for sending an update request to a server if the application resource meets the update request condition, wherein the server feeds back an latest resource list according to the update request; and the downloading module is used for determining the new resources of the application resources according to the latest resource list and the local resource list, and downloading the new resources when the new resources are compatible with the current version of the application program in the vehicle, wherein the application resources are stored in a first partition, the application program is stored in a second partition, the first partition and the second partition belong to different partitions, and the application resources and the application program are updated through different updating paths.
An embodiment of a third aspect of the present application provides a vehicle apparatus, including: the system comprises a memory, a processor and a computer program stored in the memory and capable of running on the processor, wherein the processor executes the program to realize the application resource downloading method according to the embodiment.
An embodiment of a fourth aspect of the present application provides a vehicle, including a vehicle machine as described in the above embodiment.
An embodiment of a fifth aspect of the present application provides a computer-readable storage medium having stored thereon a computer program that is executed by a processor for implementing the application resource downloading method as described in the above embodiment.
Therefore, the application has at least the following beneficial effects:
(1) According to the method and the device for updating the application resource, when the application resource of the vehicle machine meets the updating condition, the application goes to the server to download the resource file for updating, the updating is not carried out along with the vehicle machine system, the updating can be carried out at any time, the user experience is improved, the application resource is not packaged when the vehicle machine system is updated, the storage space of the vehicle machine occupied by the application resource is reduced, the size of a system updating packet is reduced, the application resource and the application program are divided into different updating paths for updating, the updating efficiency is improved, and the user experience is improved.
(2) The method and the device can judge whether the residual memory capacity of the vehicle is enough, and download the resources when the capacity is enough, otherwise, finish the downloading of the resources.
(3) The embodiment of the application can finish the resource downloading after the newly added resource downloading fails for a plurality of times, so that the time waste is avoided.
(4) According to the embodiment of the application, when unexpected situations such as downloading interruption occur, the downloading can be continuously resumed after the unexpected situations disappear.
(5) The embodiment of the application can generate the update request according to the vehicle representation and the application identifier of the application program, and is used for sending the update request to the server for resource downloading.
(6) The embodiment of the application can send the update request when the application resource of the vehicle machine meets the update request condition, otherwise, the application resource is not updated.
Additional aspects and advantages of the application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the application.
Drawings
The foregoing and/or additional aspects and advantages of the present application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings, in which:
fig. 1 is a flowchart of an application resource downloading method according to an embodiment of the present application;
FIG. 2 is a flow chart of an application resource downloading method provided according to one embodiment of the present application;
FIG. 3 is an exemplary diagram of an application resource downloading apparatus provided according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a vehicle machine according to an embodiment of the present application.
Detailed Description
Embodiments of the present application are described in detail below, examples of which are illustrated in the accompanying drawings, wherein the same or similar reference numerals refer to the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the drawings are exemplary and intended for the purpose of explaining the present application and are not to be construed as limiting the present application.
The related art application resource updating method includes: when triggering loading application identifiers on the mobile terminal, sending an address reading request carrying a random serial number to a public server; receiving response information returned by the public server for the address reading request; establishing connection with a development server corresponding to the URL address of the application resource, and acquiring description information of the application resource to be used from the development server; comparing the version of the application resource to be used with the version of the current application resource of the mobile terminal; downloading the application resource to be used from the development server when the version of the application resource to be used is different from the version of the current application resource of the mobile terminal; and updating the current application resource of the mobile terminal into the application resource to be used.
But does not relate to a method of comparing whether a resource is updated by means of a resource list, and does not relate to application resource updating on an on-board application.
The following describes an application resource downloading method, an application resource downloading device, a vehicle machine, a vehicle and a storage medium according to the embodiments of the present application with reference to the accompanying drawings. Aiming at the problems that more and more applications/APPs carried by the existing vehicle-mounted entertainment system and more system storage spaces are occupied, and the Resources are packed in APKs (application program packages) to be updated together with an OTA (over the air) system, but the Resources are occupied, the application provides an application resource downloading method, in which the APKs and the Resources are decoupled, a system partition exists in the APKs, and a Resources partition exists in the APKs; the update and maintenance of the application Resources are put in the cloud, and the application removes the cloud to download the resource files for updating, but a default set of Resources still need to be preset in the Resources partition. When the vehicle system is upgraded, only the APK is packaged, and the application resources are not packaged, namely, only the application is upgraded when the system is upgraded, and the path of the vehicle cloud is upgraded by downloading the application resources. Therefore, the problems that when application resources are downloaded in the related technology, the application resources can only be upgraded along with a vehicle-mounted system, the system upgrade package is large, the storage space of the vehicle-mounted system is occupied, the user experience is poor and the like are solved.
Specifically, fig. 1 is a flow chart of an application resource downloading method provided in an embodiment of the present application.
As shown in fig. 1, the application resource downloading method includes the following steps:
in step S101, it is identified whether the application resource of the vehicle machine satisfies the update request condition.
The identifying whether the application resource of the vehicle machine meets the update request condition comprises the following steps: detecting whether an application program is opened, whether a vehicle-mounted system is successfully upgraded, and whether a vehicle-mounted system is in a starting state; and if the application program is opened, the vehicle system is successfully upgraded and/or the vehicle is in a starting state, judging that the application resource meets the update request condition.
In step S102, if the application resource satisfies the update request condition, an update request is sent to the server, where the server feeds back the latest resource list according to the update request.
In an embodiment of the present application, before sending an update request to a server, the method includes: acquiring a vehicle identifier and an application identifier of an application program; and generating an update request according to the vehicle identifier and the application identifier.
It may be appreciated that in the implementation of the present application, the update request includes a vehicle identifier and an application identifier of the application program, and the update request is sent to the server, and the server feeds back the latest resource list according to the update request.
The latest resource list mainly comprises a vehicle identifier, an application identifier of an application program, a primary function list, a secondary function list, a new resource file size and the like.
In step S103, a new added resource of the application resource is determined according to the latest resource list and the local resource list, and when the new added resource is compatible with the current version of the application program in the vehicle, the new added resource is downloaded, wherein the application resource is stored in the first partition, the application program is stored in the second partition, the first partition and the second partition belong to different partitions, and the application resource and the application program are updated through different update paths.
The first partition and the second partition may be selected according to specific situations, for example, the first partition is a system partition, and the second partition is a Resources partition.
It can be understood that after the vehicle receives the latest resource list fed back by the server, the vehicle needs to compare with the local resource list to determine whether the resource is updated, if the vehicle determines that the resource is updated, the vehicle further determines whether the newly added resource is compatible with the current application version, and when the newly added resource is compatible, the vehicle downloads the newly added resource, and after the matching is successful, the old resource is deleted. In addition, the application resources and the application programs are stored in different partitions of the vehicle, and the application resources and the application programs are updated through different update paths.
If the vehicle machine judges that the new resource is not compatible with the current application version, the new resource file is stored, the matching action is not performed, and after the APP is updated along with the system, the compatibility judgment and the resource matching are performed. The application decouples the application APK from the application Resources, the APK has a system partition, upgrades with the system, and the Resources have Resources partitions. The update and maintenance of the application Resources are put in the cloud, the resource update is carried out by powering on each time, the application goes to the cloud to download the resource file for updating, but the application needs to preset a set of default Resources in the Resources partition, and the default Resources are used in the conditions of leaving a factory, failing in downloading the Resources, incompatibility of the Resources and the application, and the like. When the vehicle system is upgraded, only the APK is packaged, and the application resources are not packaged, namely, only the application is upgraded when the system is upgraded, and the path of the vehicle cloud is upgraded by downloading the application resources.
In this embodiment of the present application, downloading the newly added resource includes: identifying the actual file capacity of the newly added resource; and if the residual memory capacity of the vehicle is larger than the actual file capacity, downloading the newly-added resources from the server according to the resource downloading link, otherwise, ending the resource downloading.
It can be understood that in the embodiment of the present application, after the vehicle determines that the new resource is compatible with the current application version, whether the storage space of the vehicle is sufficient is determined according to the obtained new resource file size, if not, the vehicle cloud is fed back with "the storage space of the vehicle is insufficient", if the vehicle determines that the storage space of the vehicle is sufficient, the vehicle cloud is requested to obtain the resource download link, and Che Yun returns the download link after receiving the request.
After the vehicle receives the download, the vehicle first judges the gear of the power supply of the whole vehicle, if the gear is not the ON gear, the process is ended, and if the gear is judged to be the ON gear, the resource file is downloaded.
In this embodiment of the present application, downloading the newly added resource further includes: judging whether the newly added resource is downloaded successfully; if the newly added resource fails to download, counting the failure times of the newly added resource, and ending the resource downloading when the failure times are larger than the preset times.
The preset number of times may be set to two or three times, which is not limited.
It can be understood that in the embodiment of the present application, the downloading process of the resource file may be monitored by the vehicle cloud, after the downloading is completed, the downloading result is returned, if the failure occurs, the failure number is counted, and when the failure number is greater than the preset number, the resource downloading is ended.
In this embodiment of the present application, downloading the newly added resource further includes: if the downloading is interrupted, detecting whether an interruption recovery condition is met; and when the interrupt recovery condition is met, continuing to download the newly added resources until the downloading is successful.
When downloading the newly added resources, the terminals may be disconnected or powered down, and if the terminal is interrupted, the last interrupt task is continuously executed after the next condition is returned.
In summary, if the application at the vehicle end judges that the resource list/resource file fed back by the TSP is updated, compatibility judgment with the application is performed according to the resource class mark/resource file name fed back by the TSP, if so, whether the storage space of the current vehicle is enough or not is judged according to the size of the resource file, if not, the current vehicle is not downloaded, if so, the updated resource file is downloaded, if so, the current resource is still used, and if not, the downloading of the new resource file is not performed; after the vehicle-end application matches the new resource, the old resource should be deleted; after the vehicle-end application is successfully upgraded with the system each time, checking whether a resource list/resource version is updated or not according to the request of the TSP, and downloading and matching according to the flow if a new version resource packet exists; the vehicle-end application downloads the resource file and performs silent execution in the background, and if the condition of network disconnection, power-down and the like is met, the last interrupt task is continuously executed after the next condition is recovered; traffic generated by downloading the application resource file at the vehicle end should be borne by the vehicle enterprise.
Specifically, the application resource downloading method described in the above embodiment mainly includes the steps of: the operation and maintenance personnel upload updated resource files in the background, the vehicle end is normally connected with the cloud end, the two ends can normally work, when the whole vehicle power is in an ON state, the vehicle machine application requests the cloud end to confirm whether the resource files are updated or not when the application is started/opened each time, and if the resource files are updated, the vehicle machine application downloads the resource files. The application is mainly used for independently upgrading and downloading the resources of the APK and the application with decoupled resources, the application scene is that each application of the vehicle is started each time or after the system upgrading is completed, the latest resource list is requested to the TSP to judge whether the updating exists, and if the updating exists, the downloading and the matching of the resource files are carried out after the updating meets the conditions of application compatibility, storage space, power supply gear and the like. The upgrading of the product resources is not carried out along with the upgrading of the vehicle-mounted system, the size of a system upgrading packet is reduced, the application resources are used along with the new, and the user experience is improved.
The following describes the application resource downloading method according to a specific embodiment, as shown in fig. 2, and the steps are as follows:
1. when each application of the vehicle-mounted system monitors that the application is opened or the vehicle-mounted system is successfully upgraded, requesting the vehicle cloud platform to acquire an APP resource list with fields such as a vehicle system, an APP name and the like;
2. the vehicle cloud returns to the latest list after receiving the request of the vehicle machine, and the main parameters comprise a vehicle system, an APP name, a primary function list, a secondary function list and a new resource file size;
3. the vehicle receives the latest resource list and compares the local current resource list to judge whether the update exists;
4. if the vehicle machine judges that the resource is updated, judging whether the newly added resource is compatible with the current application version or not; if the vehicle machine judges that the resources are not updated, ending the flow;
5. if the vehicle machine judges that the newly added resource is compatible with the current application version, judging whether the storage space of the vehicle machine is enough according to the acquired new resource file size, and if not, feeding back 'the storage space of the vehicle machine is insufficient' to the vehicle cloud; if the vehicle machine judges that the newly added resource is not compatible with the current application version, storing a new resource file, and not performing matching action, and after the APP is updated along with the system, performing compatibility judgment and resource matching;
6. if the vehicle determines that the storage space of the vehicle is enough, requesting the vehicle cloud to acquire a resource download link, and returning the download link after Che Yun receives the request;
7. after receiving the download link, the vehicle machine judges the gear of the power supply of the whole vehicle first, and if the gear is not the ON gear, the process is ended, and the process is carried out after the ON gear is finished; if the file is judged to be the ON file, downloading the resource file;
8. the cloud monitoring resource file downloading process, and returning a downloading result after the downloading is completed; if the test fails, the vehicle machine retries twice, and if the test fails for three times, the process is ended;
9. and if the vehicle machine judges that the resource downloading is successful, the application and the resource are matched.
According to the application resource downloading method provided by the embodiment of the application resource downloading method, when the application resource of the vehicle machine meets the updating condition, the application server downloads the resource file for updating without upgrading along with the vehicle machine system, so that the user experience is improved, the application resource is not packaged when the vehicle machine system is upgraded, the storage space of the vehicle machine occupied by the application resource is reduced, the size of a system upgrading packet is reduced, the application resource and the application program are divided into different updating paths for updating, the updating efficiency is improved, and the user experience is improved; the method comprises the steps of judging whether the residual memory capacity of the vehicle is enough, if so, downloading resources, otherwise, ending the downloading of the resources; the resource downloading can be finished after the newly added resource is downloaded for a plurality of times, so that the time waste is avoided; when unexpected situations such as downloading interruption occur, the downloading can be continuously resumed after the unexpected situations disappear; the method comprises the steps that an update request can be generated according to vehicle representation and application identification of an application program, and the update request is sent to a server for resource downloading; the update request may be sent only when the application resource of the vehicle machine satisfies the update request condition, otherwise the update is not performed.
The application resource downloading device according to the embodiment of the application is described with reference to the accompanying drawings.
Fig. 3 is a block schematic diagram of an application resource downloading device according to an embodiment of the present application.
As shown in fig. 3, the application resource downloading apparatus 10 includes: an identification module 100, a request module 200, and a download module 300.
The identifying module 100 is configured to identify whether an application resource of the vehicle machine meets an update request condition; the request module 200 is configured to send an update request to a server if the application resource meets an update request condition, where the server feeds back an updated resource list according to the update request; the download module 300 is configured to determine a new resource of an application resource according to the latest resource list and the local resource list, and download the new resource when the new resource is compatible with a current version of an application program in a vehicle, where the application resource is stored in a first partition, the application program is stored in a second partition, the first partition and the second partition belong to different partitions, and the application resource and the application program are updated through different update paths.
It should be noted that the foregoing explanation of the embodiment of the application resource downloading method is also applicable to the application resource downloading device of this embodiment, and will not be repeated herein.
According to the application resource downloading device provided by the embodiment of the application resource downloading method, when the application resource of the vehicle machine meets the updating condition, the application server downloads the resource file for updating without upgrading along with the vehicle machine system, so that the user experience is improved, the application resource is not packaged when the vehicle machine system is upgraded, the storage space of the vehicle machine occupied by the application resource is reduced, the size of a system upgrading packet is reduced, the application resource and the application program are divided into different updating paths for updating, the updating efficiency is improved, and the user experience is improved; the method comprises the steps of judging whether the residual memory capacity of the vehicle is enough, if so, downloading resources, otherwise, ending the downloading of the resources; the resource downloading can be finished after the newly added resource is downloaded for a plurality of times, so that the time waste is avoided; when unexpected situations such as downloading interruption occur, the downloading can be continuously resumed after the unexpected situations disappear; the method comprises the steps that an update request can be generated according to vehicle representation and application identification of an application program, and the update request is sent to a server for resource downloading; the update request may be sent only when the application resource of the vehicle machine satisfies the update request condition, otherwise the update is not performed.
Fig. 4 is a schematic structural diagram of a vehicle machine according to an embodiment of the present application. The car machine may include:
memory 401, processor 402, and a computer program stored on memory 401 and executable on processor 402.
The processor 402 implements the application resource downloading method provided in the above embodiment when executing a program.
Further, the car machine further includes:
a communication interface 403 for communication between the memory 401 and the processor 402.
A memory 401 for storing a computer program executable on the processor 402.
The memory 401 may include high speed RAM (Random Access Memory ) memory, and may also include non-volatile memory, such as at least one disk memory.
If the memory 401, the processor 402, and the communication interface 403 are implemented independently, the communication interface 403, the memory 401, and the processor 402 may be connected to each other by a bus and perform communication with each other. The bus may be an ISA (Industry Standard Architecture ) bus, a PCI (Peripheral Component, external device interconnect) bus, or EISA (Extended Industry Standard Architecture ) bus, among others. The buses may be divided into address buses, data buses, control buses, etc. For ease of illustration, only one thick line is shown in fig. 4, but not only one bus or one type of bus.
Alternatively, in a specific implementation, if the memory 401, the processor 402, and the communication interface 403 are integrated on a chip, the memory 401, the processor 402, and the communication interface 403 may perform communication with each other through internal interfaces.
The processor 402 may be a CPU (Central Processing Unit ) or ASIC (Application Specific Integrated Circuit, application specific integrated circuit) or one or more integrated circuits configured to implement embodiments of the present application.
The embodiment of the application also provides a vehicle, comprising the vehicle machine.
The embodiment of the application also provides a computer readable storage medium, on which a computer program is stored, wherein the program is executed by a processor, so as to implement the above-mentioned application resource downloading method.
In the description of the present specification, a description referring to terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present application. In this specification, schematic representations of the above terms are not necessarily directed to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or N embodiments or examples. Furthermore, the different embodiments or examples described in this specification and the features of the different embodiments or examples may be combined and combined by those skilled in the art without contradiction.
Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include at least one such feature. In the description of the present application, the meaning of "N" is at least two, such as two, three, etc., unless explicitly defined otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more N executable instructions for implementing specific logical functions or steps of the process, and further implementations are included within the scope of the preferred embodiment of the present application in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the embodiments of the present application.
It is to be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above-described embodiments, the N steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. As with the other embodiments, if implemented in hardware, may be implemented using any one or combination of the following techniques, as is well known in the art: discrete logic circuits having logic gates for implementing logic functions on data signals, application specific integrated circuits having suitable combinational logic gates, programmable gate arrays, field programmable gate arrays, and the like.
Those of ordinary skill in the art will appreciate that all or a portion of the steps carried out in the method of the above-described embodiments may be implemented by a program to instruct related hardware, where the program may be stored in a computer readable storage medium, and where the program, when executed, includes one or a combination of the steps of the method embodiments.
Although embodiments of the present application have been shown and described above, it will be understood that the above embodiments are illustrative and not to be construed as limiting the application, and that variations, modifications, alternatives, and variations may be made to the above embodiments by one of ordinary skill in the art within the scope of the application.

Claims (10)

1. An application resource downloading method is characterized by comprising the following steps:
identifying whether the application resource of the vehicle machine meets the update request condition;
if the application resource meets the update request condition, an update request is sent to a server, wherein the server feeds back an up-to-date resource list according to the update request;
and determining a new added resource of the application resource according to the latest resource list and the local resource list, and downloading the new added resource when the new added resource is compatible with the current version of the application program in the vehicle, wherein the application resource is stored in a first partition, the application program is stored in a second partition, the first partition and the second partition belong to different partitions, and the application resource and the application program are updated through different updating paths.
2. The method of claim 1, wherein the downloading the newly added resource comprises:
identifying the actual file capacity of the newly added resource;
and if the residual memory capacity of the vehicle is larger than the actual file capacity, downloading the newly-added resource from the server according to a resource downloading link, otherwise ending the resource downloading.
3. The method of claim 1, wherein the downloading the newly added resource further comprises:
judging whether the newly added resource is downloaded successfully or not;
if the newly added resource fails to download, counting the failure times of the newly added resource, and ending the resource downloading when the failure times are larger than the preset times.
4. The method of claim 1, wherein the downloading the newly added resource further comprises:
if the downloading is interrupted, detecting whether an interruption recovery condition is met;
and when the interrupt recovery condition is met, continuing to download the newly-added resources until the downloading is successful.
5. The method of claim 1, comprising, prior to sending the update request to the server:
acquiring a vehicle identifier and an application identifier of an application program;
and generating the update request according to the vehicle identifier and the application identifier.
6. The method of claim 1, wherein identifying whether the application resource of the vehicle machine satisfies the update request condition comprises:
detecting whether the application program is opened, whether the vehicle-mounted system is successfully upgraded and whether the vehicle-mounted system is in a starting state;
and if the application program is opened, the vehicle system is updated successfully and/or the vehicle is in a starting state, judging that the application resource meets the update request condition.
7. An application resource downloading apparatus, comprising:
the identification module is used for identifying whether the application resource of the vehicle machine meets the update request condition;
the request module is used for sending an update request to a server if the application resource meets the update request condition, wherein the server feeds back an latest resource list according to the update request;
and the downloading module is used for determining the new resources of the application resources according to the latest resource list and the local resource list, and downloading the new resources when the new resources are compatible with the current version of the application program in the vehicle, wherein the application resources are stored in a first partition, the application program is stored in a second partition, the first partition and the second partition belong to different partitions, and the application resources and the application program are updated through different updating paths.
8. A vehicle machine, comprising: a memory, a processor and a computer program stored on the memory and executable on the processor, the processor executing the program to implement the application resource downloading method as claimed in any one of claims 1 to 6.
9. A vehicle comprising the vehicle machine of claim 8.
10. A computer readable storage medium having stored thereon a computer program, characterized in that the program is executed by a processor for implementing the application resource downloading method according to any of claims 1-6.
CN202310156716.XA 2023-02-23 2023-02-23 Application resource downloading method and device, vehicle machine, vehicle and storage medium Pending CN116319745A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310156716.XA CN116319745A (en) 2023-02-23 2023-02-23 Application resource downloading method and device, vehicle machine, vehicle and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310156716.XA CN116319745A (en) 2023-02-23 2023-02-23 Application resource downloading method and device, vehicle machine, vehicle and storage medium

Publications (1)

Publication Number Publication Date
CN116319745A true CN116319745A (en) 2023-06-23

Family

ID=86816101

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310156716.XA Pending CN116319745A (en) 2023-02-23 2023-02-23 Application resource downloading method and device, vehicle machine, vehicle and storage medium

Country Status (1)

Country Link
CN (1) CN116319745A (en)

Similar Documents

Publication Publication Date Title
US20230004381A1 (en) Software version rollback method, apparatus, and system
CN109831338B (en) Vehicle machine system upgrading method, cloud server and mobile terminal
CN112673609B (en) Data transmission system, data transmission method, intelligent vehicle and device
WO2023241458A1 (en) Software upgrade method and apparatus for vehicle-mounted controller, and device and storage medium
US20240069906A1 (en) Server, software update system, distribution method, and non-transitory storage medium
CN113342419B (en) Push system loading method and device, electronic equipment and storage medium
CN116319745A (en) Application resource downloading method and device, vehicle machine, vehicle and storage medium
CN116633780A (en) Gateway upgrading method and device for vehicle, vehicle and storage medium
CN113050960A (en) OTA (over the air) upgrading method and device, vehicle-mounted terminal and storage medium
CN115277671A (en) OTA (over the air) upgrading method and device for vehicle, vehicle and storage medium
US20220391192A1 (en) Ota master, center, system, method, non-transitory storage medium, and vehicle
JP7484791B2 (en) OTA master, update control method, and update control program
CN114780114A (en) Firmware upgrading method, system, vehicle and storage medium
CN110825406A (en) Software upgrading method and related equipment
CN112732301A (en) Vehicle upgrading method and device
CN114647424A (en) ECU application program updating method, device, system, storage medium and electronic equipment
CN110769030A (en) Method, terminal, server and storage medium for downloading file
CN110677466A (en) Application program downloading method, device, gateway and storage medium
WO2022244588A1 (en) Electronic control device for vehicles, updating program, and data structure
CN116909609B (en) Software upgrading method and device of vehicle-mounted intelligent equipment and vehicle-mounted intelligent equipment
CN116382723A (en) Software upgrading method and device and electronic equipment
CN118276895A (en) Vehicle OTA upgrading system and vehicle
CN112954036B (en) Software upgrading method, terminal equipment and system
WO2022249846A1 (en) Vehicular electronic control device and update program
CN114153481A (en) Driving system updating method and device and computer equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination