CN110311960B - Software upgrading method, system, equipment and storage medium - Google Patents
Software upgrading method, system, equipment and storage medium Download PDFInfo
- Publication number
- CN110311960B CN110311960B CN201910531367.9A CN201910531367A CN110311960B CN 110311960 B CN110311960 B CN 110311960B CN 201910531367 A CN201910531367 A CN 201910531367A CN 110311960 B CN110311960 B CN 110311960B
- Authority
- CN
- China
- Prior art keywords
- software
- upgrade
- work
- backup area
- partition
- 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.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
- G06F8/658—Incremental updates; Differential updates
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
- H04L67/025—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols 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)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Health & Medical Sciences (AREA)
- Computing Systems (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Stored Programmes (AREA)
Abstract
本发明公开了一种软件升级方法、装置、设备及储存介质,所述方法包括:将软件工作区分成至少两个工作分区;接收软件升级指令,将升级包下载到备份区,并进行校验工作;根据软件升级指令,确定待升级软件所在原工作分区,将所述备份区作为新的工作分区进入工作状态,所述原工作分区作为新的备份区,本发明通过设置多个工作分区,能够减少备份区的预设容量,从而降低储存空间需求,节约了成本。
The invention discloses a software upgrade method, device, equipment and storage medium. The method includes: dividing a software work area into at least two work divisions; receiving a software upgrade instruction, downloading an upgrade package to a backup area, and verifying work; according to the software upgrade instruction, determine the original working partition where the software to be upgraded is located, and use the backup area as a new working partition to enter the working state, and the original working partition is used as a new backup area. The preset capacity of the backup area can be reduced, thereby reducing storage space requirements and saving costs.
Description
技术领域technical field
本发明涉及软件升级技术领域,特别涉及一种软件升级方法、系统、设备及储存介质。The present invention relates to the technical field of software upgrade, and in particular, to a software upgrade method, system, device and storage medium.
背景技术Background technique
近年来,随着互联网技术的快速发展,各行各业都发生了变化,汽车行业也出现了新的变革,汽车智能化、网联化成为新的发展方向。与传统汽车相比,汽车智能车载系统能够实现汽车上车载软件和车载系统的自动升级,包括汽车上各控制单元的整车控制器(ECU)升级,如整车控制器、车身控制模块、电机控制器、电池管理系统等。当车载系统由于功能增加或Bug修复,需要对汽车上的各种软件、固件或汽车ECU进行更新时,智能车载系统可通过网络对汽车上的软件、固件或ECU进行升级。In recent years, with the rapid development of Internet technology, changes have taken place in all walks of life, and new changes have also occurred in the automotive industry. Vehicle intelligence and networking have become a new development direction. Compared with the traditional car, the car intelligent car system can realize the automatic upgrade of the on-board software and on-board system on the car, including the upgrade of the vehicle controller (ECU) of each control unit on the car, such as the vehicle controller, body control module, motor Controllers, battery management systems, etc. When the in-vehicle system needs to update various software, firmware or car ECUs on the car due to increased functions or bug fixes, the intelligent in-vehicle system can upgrade the software, firmware or ECU on the car through the network.
传统车载系统的升级大多需要到4S店进行才能升级,这大大减少了车载系统升级的便利性,同时大大增加了用户和车长的升级成本。而智能车载系统采用无线升级的方式,即空中编程(Over-the-air programming,缩写OTA)升级。智能车载系统可直接通过网络自动从云端服务器下载升级包到车机端进行本地升级,能够增加系统的便利性、降低升级成本,也符合汽车智能化、网联化的发展趋势。Most of the upgrades of traditional in-vehicle systems need to be upgraded in 4S stores, which greatly reduces the convenience of in-vehicle system upgrades, and at the same time greatly increases the upgrade costs for users and drivers. The intelligent in-vehicle system adopts the method of wireless upgrade, that is, Over-the-air programming (Over-the-air programming, abbreviated OTA) upgrade. The intelligent in-vehicle system can automatically download the upgrade package from the cloud server directly through the network to the vehicle terminal for local upgrade, which can increase the convenience of the system and reduce the upgrade cost, which is also in line with the development trend of automobile intelligence and networking.
OTA是汽车软件更新的发展趋势,会逐步普及,但是软件更新有一定的失败概率,为了防止刷写失败导致ECU不工作,目前采用的都是备份方案,当前的备份方案中一般设置两个分区:工作区和备份区,在软件需要更新时,当前软件工作区,备份区进行更新新版本,备份区更新完成后,工作软件跳转到备份区,原工作区转为备份区,因此如果备份区更新失败,工作区仍然可以正常工作。但是这种方案对备份区储存空间有很大的要求,在设备成本上有很大的要求。OTA is the development trend of automotive software update, which will gradually become popular, but software update has a certain probability of failure. In order to prevent the ECU from not working due to the failure of flashing, the backup scheme is currently used. Generally, two partitions are set in the current backup scheme. : Work area and backup area. When the software needs to be updated, the current software work area and backup area will be updated with a new version. After the backup area is updated, the working software will jump to the backup area, and the original work area will be turned into the backup area. The zone update fails, the workspace still works fine. However, this scheme has great requirements on the storage space of the backup area, and has great requirements on the equipment cost.
因此急需一种新的技术方案解决现有技术的缺陷。Therefore, a new technical solution is urgently needed to solve the defects of the prior art.
发明内容SUMMARY OF THE INVENTION
针对现有技术的上述问题,本发明的目的在于,提供一种软件升级方法、系统、设备及储存介质。In view of the above problems in the prior art, the purpose of the present invention is to provide a software upgrade method, system, device and storage medium.
为了解决上述技术问题,本发明的具体技术方案如下:In order to solve the above-mentioned technical problems, the concrete technical scheme of the present invention is as follows:
一方面,本发明提供一种软件升级方法,所述升级方法包括:将软件工作区分成至少两个工作分区;In one aspect, the present invention provides a software upgrade method, the upgrade method includes: dividing a software work area into at least two work divisions;
接收软件升级指令,将升级包下载到备份区,并进行校验工作,所述备份区的容量大小不小于每个所述工作分区的容量大小;Receive the software upgrade instruction, download the upgrade package to the backup area, and perform verification work, and the capacity of the backup area is not less than the capacity of each of the working partitions;
根据软件升级指令,确定待升级软件所在原工作分区;According to the software upgrade instruction, determine the original working partition where the software to be upgraded is located;
其中所述备份区作为新的工作分区进入工作状态,所述原工作分区作为新的备份区。The backup area enters a working state as a new working partition, and the original working partition serves as a new backup area.
进一步地,所述将软件工作区分成至少两个工作分区包括:Further, dividing the software work area into at least two work divisions includes:
获取软件的状态信息;Get the status information of the software;
根据所述软件的状态信息将所述工作区分成至少两个工作分区。The work area is divided into at least two work divisions according to the state information of the software.
具体地,所述工作区等分成若干个工作分区,所述备份区的大小不小于所述工作分区的大小。Specifically, the work area is equally divided into several work partitions, and the size of the backup area is not smaller than the size of the work partition.
作为优选地,所述备份区的大小等于所述工作分区的大小。Preferably, the size of the backup area is equal to the size of the working partition.
进一步地,所述软件的状态信息包括软件种类、软件大小和软件使用频率中的一种或几种。Further, the state information of the software includes one or more of software type, software size and software usage frequency.
进一步地,所述接收软件升级指令,将升级包下载到备份区,并进行校验工作包括:Further, receiving the software upgrade instruction, downloading the upgrade package to the backup area, and performing the verification work include:
接收软件升级指令,并获取升级包下载链接;Receive software upgrade instructions and obtain upgrade package download links;
缓存升级包的数据至备份区,并进行校验;Cache the data of the upgrade package to the backup area and verify it;
判断所述升级包是否校验成功,若是,则进入下一步,若否,则重新下载升级包。It is judged whether the verification of the upgrade package is successful, and if so, the next step is entered, and if not, the upgrade package is re-downloaded.
第二方面,本发明还提供一种软件升级系统,所述系统包括:In a second aspect, the present invention also provides a software upgrade system, the system includes:
分区模块,用于将软件工作区分成至少两个工作分区;Partitioning module for dividing the software work area into at least two work divisions;
升级模块,用于接收软件升级指令,将升级包下载到备份区,并进行校验工作,所述备份区的容量大小不小于每个所述工作分区的容量大小;an upgrade module, used for receiving a software upgrade instruction, downloading the upgrade package to a backup area, and performing verification work, and the capacity of the backup area is not less than the capacity of each of the working partitions;
分区定位模块,用于根据软件升级指令,确定待升级软件所在原工作分区;The partition positioning module is used to determine the original working partition where the software to be upgraded is located according to the software upgrade instruction;
工作分区转换模块,用于将所述备份区作为新的工作分区进入工作状态,并且所述原工作分区作为新的备份区。The working partition conversion module is configured to use the backup area as a new working partition to enter a working state, and the original working partition as a new backup area.
进一步地,所述分区模块包括:Further, the partition module includes:
获取单元,用于获取软件的状态信息;an acquisition unit, used to acquire the status information of the software;
工作分区单元,用于根据所述软件的状态信息将所述工作区分成至少两个工作分区。A work partition unit, configured to divide the work area into at least two work partitions according to the state information of the software.
进一步地,所述软件的状态信息包括软件种类、软件大小和软件使用频率中的一种或几种。Further, the state information of the software includes one or more of software type, software size and software usage frequency.
进一步地,所述升级模块包括:Further, the upgrade module includes:
下载链接获取单元,用于接收软件升级指令,并获取升级包下载链接;The download link obtaining unit is used to receive the software upgrade instruction and obtain the download link of the upgrade package;
缓存及校验单元,用于缓存升级包的数据至所述备份区,并进行校验;a cache and verification unit, used to cache the data of the upgrade package to the backup area and perform verification;
判断单元,用于判断所述升级包是否校验成功,若是,则进入下一步,若否,则重新下载升级包。A judging unit for judging whether the verification of the upgrade package is successful, if yes, go to the next step, if not, download the upgrade package again.
第三方面,本发明还提供一种软件升级设备,包括处理器和存储器,所述存储器存储有计算机程序,所述处理器用于加载并执行所述计算机程序以实现上述所述的一种软件升级方法的步骤。In a third aspect, the present invention also provides a software upgrade device, including a processor and a memory, the memory stores a computer program, and the processor is configured to load and execute the computer program to implement the above-mentioned software upgrade steps of the method.
第四方面,本发明还提供一种储存介质,所述储存介质上存储有计算机程序,所述计算机程序被处理器执行时实现上述所述的一种软件升级方法的步骤。In a fourth aspect, the present invention further provides a storage medium, where a computer program is stored on the storage medium, and when the computer program is executed by a processor, the steps of the above-mentioned software upgrade method are implemented.
采用上述技术方案,本发明所述的一种软件升级方法、系统、设备及储存介质具有如下有益效果:通过设置多个工作分区,能够减少备份区的预设容量,从而降低储存空间需求,节约了成本。By adopting the above technical solution, the software upgrade method, system, device and storage medium of the present invention have the following beneficial effects: by setting up multiple working partitions, the preset capacity of the backup area can be reduced, thereby reducing storage space requirements and saving energy cost.
附图说明Description of drawings
为了更清楚地说明本发明的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单的介绍。显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它附图。In order to illustrate the technical solutions of the present invention more clearly, the following will briefly introduce the accompanying drawings that are required to be used in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only some embodiments of the present invention, and for those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative effort.
图1本发明所述的一种软件升级方法的步骤图;Fig. 1 is a step diagram of a software upgrade method according to the present invention;
图2本发明一个实施例的工作分区示意图;2 is a schematic diagram of a work partition according to an embodiment of the present invention;
图3本发明一种实施例的流程图;3 is a flowchart of an embodiment of the present invention;
图4本发明所述的一种软件升级系统的结构示意图。FIG. 4 is a schematic structural diagram of a software upgrade system according to the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of the present invention.
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本发明的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、装置、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "first", "second" and the like in the description and claims of the present invention and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific sequence or sequence. It is to be understood that the data so used may be interchanged under appropriate circumstances such that the embodiments of the invention described herein can be practiced in sequences other than those illustrated or described herein. Furthermore, the terms "comprising" and "having", and any variations thereof, are intended to cover non-exclusive inclusion, for example, a process, method, apparatus, product or device comprising a series of steps or units is not necessarily limited to those expressly listed Rather, those steps or units may include other steps or units not expressly listed or inherent to these processes, methods, products or devices.
实施例1Example 1
OTA是汽车软件更新的发展趋势,越来越受到广大厂商的重视,但是由于软件更新有一定的失败概率,为了防止软件刷写失败导致整车控制器ECU不工作,所以目标通常会采用备份的方案,当前的备份方案中一般设置两个分区:工作区和备份区,在软件需要更新时,当前软件工作区,备份区进行更新新版本,备份区更新完成后,工作软件跳转到备份区,原工作区转为备份区,因此如果备份区更新失败,工作区任然可以正常工作。但是这种方案对备份区储存空间有很大的要求,在设备成本上有很大的要求。OTA is the development trend of automotive software update, which is more and more valued by the majority of manufacturers. However, because software update has a certain probability of failure, in order to prevent the failure of software flashing and cause the ECU of the vehicle controller to not work, the target usually uses backup. Scheme, the current backup scheme generally sets two partitions: the work area and the backup area. When the software needs to be updated, the current software work area and the backup area are updated with a new version. After the backup area is updated, the working software jumps to the backup area. , the original work area is converted into a backup area, so if the update of the backup area fails, the work area can still work normally. However, this scheme has great requirements on the storage space of the backup area, and has great requirements on the equipment cost.
如图1所示,本说明书的一个实施例提供了一种软件升级方法,具体步骤如下:As shown in FIG. 1, an embodiment of this specification provides a software upgrade method, and the specific steps are as follows:
将软件工作区分成至少两个工作分区;Divide the software work area into at least two work partitions;
接收软件升级指令,将升级包下载到备份区,并进行校验工作;Receive software upgrade instructions, download the upgrade package to the backup area, and perform verification work;
根据软件升级指令,确定待升级软件所在原工作分区,将所述备份区作为新的工作分区进入工作状态,所述原工作分区作为新的备份区。According to the software upgrade instruction, the original working partition where the software to be upgraded is located is determined, and the backup area is used as a new working partition to enter a working state, and the original working partition is used as a new backup area.
至于工作分区的数量则需根据软件的状态进行分配,因此工作分区的数量可以是两个,三个甚至更多。需要说明的是所述软件的状态信息包括软件种类、软件大小和软件使用频率中的一种或几种。当然也要根据实际情况考虑其他因素进行划分。其中可以通过调整工作分区数量和大小,也不排除存在硬件限制的可能性。As for the number of working partitions, it needs to be allocated according to the state of the software, so the number of working partitions can be two, three or even more. It should be noted that the state information of the software includes one or more of software type, software size, and software usage frequency. Of course, other factors must be considered according to the actual situation. Among them, the number and size of working partitions can be adjusted, and the possibility of hardware limitations is not excluded.
需要说明的是,所述工作分区的容量大小都一致,只有这样在进行软件升级备份的时候,任何一个工作分区都能满足备份区的容量需求,因此在初始状态下备份区的容量不小于工作分区的容量大小,特别的,为了更好的体现降低储存空间的需求,备份区的容量大小等于所述工作分区的容量大小。It should be noted that the capacity of the working partitions is the same. Only in this way, when the software is upgraded and backed up, any working partition can meet the capacity requirements of the backup area. Therefore, in the initial state, the capacity of the backup area is not less than that of the working partition. The capacity of the partition, in particular, in order to better reflect the requirement for reducing storage space, the capacity of the backup area is equal to the capacity of the working partition.
为了更好的说明本实施例提供的方法,如图2所述,将工作区分成三个工作分区A1、A2和A3,B为备份区,如图3所示,为本实例提供方法的流程图,其中A1、A2和A3为当前的工作软件,在系统检测到需要更新软件时,会将升级包下载到备份区B,并且在备份区B进行校验,使得备份区B满足升级软件的工作环境,进而将A2、A3和B作为新的软件工作区进行工作,而A1转化为新的备份区,以上为一次软件升级的工作流程。In order to better illustrate the method provided in this embodiment, as shown in FIG. 2 , the working area is divided into three working partitions A1, A2 and A3, and B is the backup area. As shown in FIG. 3 , the flow of the method provided in this example is shown in FIG. 3 . In the figure, A1, A2 and A3 are the current working software. When the system detects that the software needs to be updated, it will download the upgrade package to the backup area B, and verify it in the backup area B, so that the backup area B meets the requirements of the upgrade software. Work environment, and then use A2, A3 and B as a new software work area, and A1 is converted into a new backup area, the above is a software upgrade workflow.
本实施例提供的一种软件升级方法通过设置多个工作分区,能够减少备份区的预设容量,从而降低储存空间需求,节约了成本。The software upgrade method provided by this embodiment can reduce the preset capacity of the backup area by setting multiple working partitions, thereby reducing the storage space requirement and saving the cost.
基于上述所述的一种软件升级方法,本说明书一个实施例还提供一种软件升级系统。所述系统可以包括使用了本说明书实施例所述方法的装置、软件(应用)、模块、组件、服务器、客户端等并结合必要的实施硬件的装置。基于同一创新构思,本说明书实施例提供的一个或多个实施例中的装置如下面的实施例所述。由于系统解决问题的实现方案与方法相似,因此本说明书实施例具体的系统的实施可以参加前述方法的实施,重复之处不再赘述。以下所使用的,术语“单元”或者“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。Based on the above-mentioned software upgrade method, an embodiment of the present specification further provides a software upgrade system. The system may include apparatuses, software (applications), modules, components, servers, clients, etc. that use the methods described in the embodiments of this specification, in combination with apparatuses for implementing necessary hardware. Based on the same innovative idea, the apparatuses in one or more embodiments provided by the embodiments of this specification are described in the following embodiments. Since the implementation solution of the system to solve the problem is similar to the method, the implementation of the specific system in the embodiments of the present specification may participate in the implementation of the foregoing method, and the repetition will not be repeated. As used below, the term "unit" or "module" may be a combination of software and/or hardware that implements a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, implementations in hardware, or a combination of software and hardware, are also possible and contemplated.
具体地,本说明书的一个实施例提供了一种软件升级系统,如图4所述,为所述软件升级系统的结构示意图,所述系统包括:Specifically, an embodiment of this specification provides a software upgrade system, as shown in FIG. 4 , which is a schematic structural diagram of the software upgrade system, and the system includes:
分区模块,用于将软件工作区分成至少两个工作分区;Partitioning module for dividing the software work area into at least two work divisions;
升级模块,用于接收软件升级指令,将升级包下载到所述备份区,并进行校验工作;an upgrade module, used for receiving software upgrade instructions, downloading the upgrade package to the backup area, and performing verification work;
分区定位模块,用于根据软件升级指令,确定待升级软件所在原工作分区;The partition positioning module is used to determine the original working partition where the software to be upgraded is located according to the software upgrade instruction;
工作分区转换模块,用于将所述备份区作为新的工作分区进入工作状态,并且所述原工作分区作为新的备份区。The working partition conversion module is configured to use the backup area as a new working partition to enter a working state, and the original working partition as a new backup area.
具体地,所述分区模块包括:Specifically, the partition module includes:
获取单元,用于获取软件的状态信息;an acquisition unit, used to acquire the status information of the software;
工作分区单元,用于根据所述软件的状态信息将所述工作区分成至少两个工作分区。A work partition unit, configured to divide the work area into at least two work partitions according to the state information of the software.
具体地,所述软件的状态信息包括软件种类、软件大小和软件使用频率中的一种或几种。Specifically, the state information of the software includes one or more of software type, software size, and software usage frequency.
具体地,所述升级模块包括:Specifically, the upgrade module includes:
下载链接获取单元,用于接收软件升级指令,并获取升级包下载链接;The download link obtaining unit is used to receive the software upgrade instruction and obtain the download link of the upgrade package;
缓存及校验单元,用于缓存升级包的数据至所述备份区,并进行校验;a cache and verification unit, used to cache the data of the upgrade package to the backup area and perform verification;
判断单元,用于判断所述升级包是否校验成功,若是,则进入下一步,若否,则重新下载升级包。A judging unit for judging whether the verification of the upgrade package is successful, if yes, go to the next step, if not, download the upgrade package again.
需要说明的,上述所述的系统根据上述提供的一种软件升级方法提供的,而实施例的描述还可以包括其他的实施方式。具体的实现方式可以参照相关方法实施例的描述,在此不作一一赘述。It should be noted that the system described above is provided according to a software upgrade method provided above, and the description of the embodiment may also include other implementation manners. For a specific implementation manner, reference may be made to the description of the related method embodiments, which will not be repeated here.
在上述实施例的基础上,本说明书的另一实施例提供了一种软件升级设备,包括处理器和存储器,所述处理器执行指令时实现上述一个实施例中所述方法的步骤。存储器可用于存储应用软件的软件程序以及模块,如本说明书实施例中的一种软件升级方法的对应的程序指令/模块,处理器通过运行存储在存储器内的软件程序以及模块,从而执行各种功能应用以及数据处理。存储器可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。On the basis of the above-mentioned embodiment, another embodiment of this specification provides a software upgrade device, including a processor and a memory, and the processor implements the steps of the method described in the above-mentioned one embodiment when the processor executes an instruction. The memory can be used to store software programs and modules of application software, such as corresponding program instructions/modules of a software upgrade method in the embodiments of this specification. The processor executes various software programs and modules by running the software programs and modules stored in the memory. Functional application and data processing. The memory may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory.
本说明书的一种实施例也提供了一种储存介质,所述存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现上述所述的一种软件升级方法的步骤。An embodiment of this specification also provides a storage medium, where a computer program is stored on the storage medium, and when the computer program is executed by a processor, the steps of the above-mentioned software upgrade method are implemented.
上述对本说明书特定实施例进行了描述。其它实施例在所附权利要求书的范围内。在一些情况下,在权利要求书中记载的动作或步骤可以按照不同于实施例中的顺序来执行并且仍然可以实现期望的结果。另外,在附图中描绘的过程不一定要求示出的特定顺序或者连续顺序才能实现期望的结果。The foregoing describes specific embodiments of the present specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims can be performed in an order different from that in the embodiments and still achieve desirable results. Additionally, the processes depicted in the figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results.
本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参加即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于硬件+程序类实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参加方法实施例的部分说明即可。The various embodiments in this specification are described in a progressive manner, and the same and similar parts of the various embodiments only need to be added to each other, and each embodiment focuses on the differences from other embodiments. Especially, for the hardware+program embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant part can be referred to the partial description of the method embodiment.
以上所述仅为本发明的较佳实施例,并不用以限制本发明,对于本领域技术人员而言,显然本发明不限于上述示范性实施例的细节,而且在不背离本发明的精神或基本特征的情况下,能够以其他的具体形式实现本发明。因此,无论从哪一点来看,均应将实施例看作是示范性的,而且是非限制性的,本发明的范围由所附权利要求而不是上述说明限定,因此旨在将落在权利要求的等同要件的含义和范围内的所有变化囊括在本发明内。不应将权利要求中的任何附图标记视为限制所涉及的权利要求。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. For those skilled in the art, it is obvious that the present invention is not limited to the details of the above-mentioned exemplary embodiments, and does not deviate from the spirit of the present invention or With the essential features, the present invention can be implemented in other specific forms. Therefore, the embodiments are to be regarded in all respects as illustrative and not restrictive, and the scope of the invention is to be defined by the appended claims rather than the foregoing description, which are therefore intended to fall within the scope of the claims. All changes within the meaning and scope of the equivalents of , are included in the present invention. Any reference signs in the claims shall not be construed as limiting the involved claim.
此外,应当理解,虽然本说明书按照实施方式加以描述,但并非每个实施方式仅包含一个独立的技术方案,说明书的这种叙述方式仅仅是为清楚起见,本领域技术人员应当将说明书作为一个整体,各实施例中的技术方案也可以经适当组合,形成本领域技术人员可以理解的其他实施方式。In addition, it should be understood that although this specification is described in terms of embodiments, not each embodiment only includes an independent technical solution, and this description in the specification is only for the sake of clarity, and those skilled in the art should take the specification as a whole , the technical solutions in each embodiment can also be appropriately combined to form other implementations that can be understood by those skilled in the art.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910531367.9A CN110311960B (en) | 2019-06-19 | 2019-06-19 | Software upgrading method, system, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910531367.9A CN110311960B (en) | 2019-06-19 | 2019-06-19 | Software upgrading method, system, equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110311960A CN110311960A (en) | 2019-10-08 |
CN110311960B true CN110311960B (en) | 2022-05-10 |
Family
ID=68076969
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910531367.9A Active CN110311960B (en) | 2019-06-19 | 2019-06-19 | Software upgrading method, system, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110311960B (en) |
Families Citing this family (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110704076A (en) * | 2019-10-15 | 2020-01-17 | 上海元城汽车技术有限公司 | Data processing method and device, vehicle-mounted controller and computer-readable storage medium |
CN111443927A (en) * | 2020-02-25 | 2020-07-24 | 厦门亿联网络技术股份有限公司 | Method and system for clone upgrading between DECT roaming system devices |
CN111679848A (en) * | 2020-04-16 | 2020-09-18 | 福建星网物联信息系统有限公司 | Software updating method and terminal |
CN113835723A (en) * | 2020-06-08 | 2021-12-24 | 上汽通用汽车有限公司 | A system-on-chip, upgrading system and method for vehicle electronic control unit |
CN112099819A (en) * | 2020-08-20 | 2020-12-18 | 深圳市元征科技股份有限公司 | Data processing method, data processing device and vehicle-mounted terminal |
CN112882743A (en) * | 2021-02-09 | 2021-06-01 | 上海金脉电子科技有限公司 | Software upgrading method |
CN112882734B (en) * | 2021-03-11 | 2024-04-16 | 北京百度网讯科技有限公司 | Upgrading method and device, computer equipment and medium |
CN113641382A (en) * | 2021-07-27 | 2021-11-12 | 瑞芯微电子股份有限公司 | Partitionable system update method and storage medium |
CN113824620A (en) * | 2021-08-20 | 2021-12-21 | 中国第一汽车股份有限公司 | Partition switching method, device, vehicle and storage medium |
CN114546719B (en) * | 2022-01-25 | 2024-12-24 | 东风汽车集团股份有限公司 | A method for backing up vehicle-mounted electronic control unit software |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102033790A (en) * | 2010-12-15 | 2011-04-27 | 中兴通讯股份有限公司 | Method and device for upgrading embedded-type system BOOTROM |
CN105183525A (en) * | 2015-10-09 | 2015-12-23 | 深圳市网心科技有限公司 | Upgrading method of system software and electronic equipment for implementing upgrading method |
CN106598597A (en) * | 2016-12-14 | 2017-04-26 | 普华基础软件股份有限公司 | Electronic control unit-based application software refreshing method |
CN107608705A (en) * | 2017-09-29 | 2018-01-19 | 深圳市瑞科慧联科技有限公司 | A kind of wireless WIFI video equipments and its firmware upgrade method |
CN109032632A (en) * | 2018-07-13 | 2018-12-18 | 深圳高新兴物联科技有限公司 | A kind of FOTA upgrade method, wireless communication terminal and storage medium |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6928579B2 (en) * | 2001-06-27 | 2005-08-09 | Nokia Corporation | Crash recovery system |
TW200713037A (en) * | 2005-09-06 | 2007-04-01 | Benq Corp | System and method for updating firmware |
US9886264B2 (en) * | 2014-12-09 | 2018-02-06 | Xiaomi Inc. | Method and device for upgrading firmware |
CN105893091A (en) * | 2016-01-29 | 2016-08-24 | 北京云迹科技有限公司 | Method and system for upgrading software program of intelligent robot |
CN107071570A (en) * | 2017-02-13 | 2017-08-18 | 青岛海信宽带多媒体技术有限公司 | A kind of set top box upgrading method and device |
-
2019
- 2019-06-19 CN CN201910531367.9A patent/CN110311960B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102033790A (en) * | 2010-12-15 | 2011-04-27 | 中兴通讯股份有限公司 | Method and device for upgrading embedded-type system BOOTROM |
CN105183525A (en) * | 2015-10-09 | 2015-12-23 | 深圳市网心科技有限公司 | Upgrading method of system software and electronic equipment for implementing upgrading method |
CN106598597A (en) * | 2016-12-14 | 2017-04-26 | 普华基础软件股份有限公司 | Electronic control unit-based application software refreshing method |
CN107608705A (en) * | 2017-09-29 | 2018-01-19 | 深圳市瑞科慧联科技有限公司 | A kind of wireless WIFI video equipments and its firmware upgrade method |
CN109032632A (en) * | 2018-07-13 | 2018-12-18 | 深圳高新兴物联科技有限公司 | A kind of FOTA upgrade method, wireless communication terminal and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN110311960A (en) | 2019-10-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110311960B (en) | Software upgrading method, system, equipment and storage medium | |
US12260210B2 (en) | Using data deltas in controllers and managing interdependencies between software versions in controllers using tool chain | |
CN112104736B (en) | OTA-based multi-ECU upgrading method | |
US20180341476A1 (en) | Software updating device, software updating system, and software updating method | |
CN114895947A (en) | Software upgrading method, device, equipment and storage medium of vehicle-mounted controller | |
US10274919B2 (en) | Method, device and computer program product for programming a plurality of control units | |
US12190100B2 (en) | OTA software update based on ECU non-volatile memory type | |
CN115202684A (en) | In-vehicle software update method and in-vehicle system | |
CN108897565B (en) | Software upgrading method and device in electronic equipment and electronic equipment | |
CN112732301A (en) | Vehicle upgrading method and device | |
CN117950707A (en) | OTA upgrading and refreshing method and device of vehicle ECU, VBOX and new energy automobile | |
CN110677466A (en) | Application program downloading method, device, gateway and storage medium | |
CN113254030B (en) | Method, device, storage medium and system for refreshing software of vehicle-mounted microprocessor in emergency | |
CN115987971A (en) | Program file downloading method, device and electronic equipment for control unit of automobile | |
WO2022215402A1 (en) | Vehicle electronic control device and program rewriting method | |
CN118981329A (en) | Firmware upgrade method, vehicle, computer device and computer program product | |
CN117591147A (en) | Vehicle control unit upgrading method and system, electronic equipment and automobile | |
CN118484218A (en) | MCU bootloader upgrading method and device |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |