CN113986277A - Method for upgrading firmware based on terminal state - Google Patents

Method for upgrading firmware based on terminal state Download PDF

Info

Publication number
CN113986277A
CN113986277A CN202111124475.8A CN202111124475A CN113986277A CN 113986277 A CN113986277 A CN 113986277A CN 202111124475 A CN202111124475 A CN 202111124475A CN 113986277 A CN113986277 A CN 113986277A
Authority
CN
China
Prior art keywords
terminal
upgrade package
upgrade
cloud
information
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
CN202111124475.8A
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.)
Chengdu Kafrog Technology Co ltd
Original Assignee
Chengdu Kafrog Technology 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 Chengdu Kafrog Technology Co ltd filed Critical Chengdu Kafrog Technology Co ltd
Priority to CN202111124475.8A priority Critical patent/CN113986277A/en
Priority to PCT/CN2021/135873 priority patent/WO2023045090A1/en
Publication of CN113986277A publication Critical patent/CN113986277A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

本发明涉及一种基于终端状态进行固件升级的方法,包括:S10.终端主动或被动触发向云端检查是否有匹配升级包信息;S20.若有,获取终端的资源信息,并判断终端的资源信息是否满足升级包所需资源要求;S30.若是,下载升级包,否则,根据终端的资源信息重新生成新的升级包并下载;S40.根据下载的升级包内的校验信息,判断源版本与新的升级包是否匹配;S50.若是,执行升级并向云端上报升级结果,否则,直接向云端上报升级结果。本发明能在最大限度的根据终端的资源使用情况,给出升级时终端资源的空闲预测,并反馈给云端制作对应的升级包,或加速升级过程,或降低升级包的大小,进而减少存储空间占用使得资源紧张的终端也能成功执行升级,进而提升用户体验。

Figure 202111124475

The present invention relates to a method for upgrading firmware based on a terminal state, comprising: S10. The terminal actively or passively triggers to check whether there is matching upgrade package information to the cloud; S20. If so, obtain resource information of the terminal, and determine the resource information of the terminal Whether it meets the resource requirements of the upgrade package; S30. If so, download the upgrade package, otherwise, regenerate a new upgrade package according to the resource information of the terminal and download it; S40. According to the verification information in the downloaded upgrade package, determine the source version and the Whether the new upgrade package matches; S50. If so, execute the upgrade and report the upgrade result to the cloud, otherwise, directly report the upgrade result to the cloud. The invention can give the idle prediction of terminal resources during the upgrade according to the resource usage of the terminal to the maximum extent, and feed it back to the cloud to make a corresponding upgrade package, or speed up the upgrade process, or reduce the size of the upgrade package, thereby reducing the storage space. Occupancy enables the terminal with limited resources to successfully perform the upgrade, thereby improving the user experience.

Figure 202111124475

Description

Method for upgrading firmware based on terminal state
Technical Field
The invention relates to the technical field of equipment upgrading, in particular to a method for upgrading firmware based on a terminal state.
Background
Reviewing the development history of personal computers and smart phones, it is easy to find: the interactive experience brought by the software application is the underlying driving force for the hardware equipment to really realize the intellectualization and be popularized. The automobile is the most important intelligent terminal in the future, and software of the automobile is required to be realized when the automobile is required to be intelligentized. The software makes the automobile iteration cycle shortened from 3 years to about 6 months directly, and the iteration of different software versions of the same generation of products is more 'time-to-date'. In order to continuously improve the user experience of products in the market and enhance the user stickiness, the ECU firmware on the automobile in the hands of the user needs to be continuously upgraded. With The increasing popularity of The internet of vehicles, The FOTA (Firmware Over-The-Air) technology can provide a convenient method for upgrading The Firmware of The vehicle. FOTA means that firmware upgrade service is provided for equipment with networking function through cloud upgrade technology, a user obtains an equipment system upgrade package in an easily expandable manner as required by using a network, and performs cloud upgrade through FOTA to complete system repair and optimization!
The system upgrade package provided by the terminal equipment manufacturer is usually a differential upgrade package, that is, a data package containing difference information between the current system version and the upgraded target version of the equipment is generated by a differential algorithm. The differential algorithm involves operations such as data partitioning, difference finding, instruction generation, data compression and the like. There are also a few system upgrade packages that use full packages, and the making of full packages also involves data blocking, instruction generation, data compression, and so on. The relevant algorithms of each operation need to be adjusted according to the specific ECU, so that the upgrade package with better upgrade performance can be manufactured.
At present, firmware upgrading performed in the industry based on the FOTA technology generates an upgrade package (a differential package or a full package) based on a firmware version, then issues the upgrade package to a cloud, and then issues the upgrade package to a terminal device, and the terminal device calculates new version data by using current version data of the terminal device and data in the upgrade package through a certain reduction algorithm and writes the new version data into a related storage address.
However, this upgrading scheme has the following disadvantages: 1. and parameters of the upgrade package are generated, all the terminals are consistent, and dynamic adjustment cannot be performed according to the terminal resource condition. 2. For a terminal with surplus resources, the resources of the terminal cannot be fully utilized to reduce data traffic consumption and improve user experience.
Disclosure of Invention
The invention provides a method for upgrading firmware based on terminal states, aiming at solving the problems that all terminals are consistent and cannot be dynamically adjusted according to terminal resource conditions when the firmware is upgraded in the prior art, and simultaneously, the resources of the terminals with surplus resources cannot be fully utilized to reduce data traffic consumption and improve user experience.
In order to solve the technical problems, the technical scheme of the invention is as follows:
a method for upgrading firmware based on terminal state includes:
s10, the terminal actively or passively triggers to check whether the matched upgrade package information exists or not to the cloud;
s20, if yes, acquiring resource information of the terminal, and judging whether the resource information of the terminal meets the resource requirement required by the upgrade package;
s30, if yes, downloading the upgrade package, and otherwise, regenerating a new upgrade package according to the resource information of the terminal and downloading the new upgrade package;
s40, judging whether the source version is matched with the new upgrade package according to the verification information in the downloaded upgrade package;
and S50, if so, executing upgrading and reporting an upgrading result to the cloud, otherwise, directly reporting the upgrading result to the cloud.
Further, as a preferred technical solution, step S10 specifically includes:
the terminal actively or passively triggers to send related information to the cloud end, and the cloud end matches the related information with the existing upgrade package information on the cloud end after receiving the related information;
wherein the active trigger comprises the trigger of a user through a UI interface or the trigger of the polling cycle;
the passive trigger comprises pushing a Push message by a cloud end;
the related information comprises equipment ID and software version information.
Further, as a preferred technical solution, the acquired resource information of the terminal includes the acquired available resource condition of the terminal;
step S20 specifically includes:
s201, if matched upgrade package information exists, the cloud sends instruction information to inform the terminal of reporting available resource conditions;
s202, after receiving an instruction issued by a cloud, the terminal calculates available resource information according to the upgrade package information and reports the available resource information to the cloud;
and S203, after receiving the available resource information reported by the terminal, the cloud compares whether the resources required by the existing upgrade package are matched with the available resources of the terminal.
Further, as a preferred technical solution, step S30 specifically includes:
if the upgrade package information is matched with the available resource information, the cloud sends the matched existing upgrade package information to the terminal, and the terminal downloads the upgrade package according to the upgrade package information sent by the cloud, otherwise, the cloud regenerates a new upgrade package according to the available resource information reported by the terminal, sends the new upgrade package information to the terminal, and the terminal downloads the new upgrade package according to the new upgrade package information.
Further, as a preferred technical solution, the specific step of judging whether the resources required by the existing upgrade package are matched with the available resources of the terminal is as follows:
and judging whether the resources required by the existing upgrade package are larger than the product of the minimum threshold coefficient and the available resources of the terminal and smaller than the product of the maximum threshold coefficient and the available resources of the terminal, if so, judging that the resources required by the existing upgrade package are matched with the available resources of the terminal, and otherwise, judging that the resources are not matched.
Further, as a preferred technical solution, before acquiring the resource information of the terminal, the method further includes:
if the matched upgrade package information exists, the cloud end issues the related information of the upgrade package to the terminal;
and after receiving the relevant information sent by the cloud, the terminal judges whether a new upgrade package exists, and if so, acquires resource information required by the corresponding upgrade package to perform restoration from the cloud.
Further, as a preferred technical solution, the acquired resource information of the terminal includes a terminal available resource condition;
step S20 specifically includes:
and if the matched upgrade package information exists, judging whether the available resources of the terminal can meet the resource requirement required by the upgrade package during the execution of the restoration.
Further, as a preferred technical solution, step S30 specifically includes:
if so, downloading the upgrade package, otherwise, reporting the available resource information of the current terminal to the cloud;
the cloud terminal regenerates a new upgrade package according to the available resource information reported by the terminal and issues the new upgrade package information to the terminal;
and the terminal downloads the upgrade package.
Further, as a preferred technical solution, step S40 specifically includes:
and verifying the Flash data block to be updated in the equipment by using the verification information in the downloaded update package so as to judge whether the data on the corresponding Flash in the current equipment is consistent with the new version.
Further, as a preferred technical solution, the upgrade result reported to the cloud in step S50 includes: when the verification is passed and the upgrading is completed, the terminal reports upgrading success to the cloud end, and when the verification fails, the terminal directly reports upgrading failure to the cloud end.
Compared with the prior art, the technical scheme of the invention has the beneficial effects that:
according to the invention, the idle prediction of the terminal resources during upgrading can be given to the greatest extent according to the resource use condition of the terminal, and the idle prediction is fed back to the cloud end to manufacture a corresponding upgrading packet, or the upgrading process is accelerated, or the size of the upgrading packet is reduced, so that the occupation of storage space is reduced, the upgrading of the terminal with short resources can be successfully executed, the optimal solution is achieved in the aspects of resources and performance as far as possible, the size of the upgrading packet can be reduced as much as possible, the time consumed by upgrading is prolonged, and the user experience is further improved; the problem that package making parameters are fixed when the upgrade package is made currently, and for terminal equipment under different working conditions, the performance of the terminal equipment is not optimal when the upgrade package is used for upgrading is solved.
Drawings
FIG. 1 is a flow chart of example 1 of the present invention.
FIG. 2 is a flow chart of embodiment 2 of the present invention.
The drawings are for illustrative purposes only and are not to be construed as limiting the patent; for the purpose of better illustrating the embodiments, certain features of the drawings may be omitted, enlarged or reduced, and do not represent the size of an actual product; it will be understood by those skilled in the art that certain well-known structures in the drawings and descriptions thereof may be omitted; the same or similar reference numerals correspond to the same or similar parts; the terms describing positional relationships in the drawings are for illustrative purposes only and are not to be construed as limiting the patent.
Detailed Description
The following detailed description of the preferred embodiments of the present invention, taken in conjunction with the accompanying drawings, will make the advantages and features of the invention easier to understand for those skilled in the art and will therefore make the scope of the invention more clearly defined. .
The same or similar reference numerals in the drawings of the embodiments of the present invention correspond to the same or similar components; in the description of the present invention, it is to be understood that the terms "upper", "lower", "left", "right", "top", "bottom", "inner", "outer", and the like, if any, are used in the orientations and positional relationships indicated in the drawings only for the convenience of describing the present invention and simplifying the description, but not for indicating or implying that the referred device or element must have a specific orientation, be constructed in a specific orientation, and be operated, and therefore the terms describing the positional relationships in the drawings are used for illustrative purposes only and are not to be construed as limiting the present patent.
Furthermore, if the terms "first," "second," and the like are used for descriptive purposes only, they are used for mainly distinguishing different devices, elements or components (the specific types and configurations may be the same or different), and they are not used for indicating or implying relative importance or quantity among the devices, elements or components, but are not to be construed as indicating or implying relative importance.
Example 1
The embodiment discloses a method for upgrading firmware based on a terminal state, as shown in fig. 1, including:
a method for upgrading firmware based on terminal state is characterized by comprising the following steps:
s10, the terminal actively or passively triggers to check whether the upgrade package information is matched with the cloud.
The method specifically comprises the following steps:
the terminal actively or passively triggers to send relevant information to the cloud end, and the cloud end matches the existing upgrade package information on the cloud end by using the relevant information after receiving the relevant information.
In the step, the active triggering comprises the triggering of a user through a UI interface or the triggering of a polling cycle;
the passive triggering comprises pushing a Push message by a cloud end;
the related information includes a device ID, software version information, and the like.
And S20, if so, acquiring the resource information of the terminal, and judging whether the resource information of the terminal meets the resource requirement required by the upgrade package.
In this step, the acquired resource information of the terminal includes the acquired available resource condition of the terminal.
The method specifically comprises the following steps:
s201, if the matched upgrade package information exists, the cloud sends instruction information to inform the terminal of reporting the available resource condition.
In this step, the reported available resource condition includes a CPU, a memory, an IO, or a storage space, which may be adjusted according to a specific upgrade package generation algorithm.
The method also comprises the following steps: and if the matched upgrade package information does not exist, issuing instruction information to the terminal to finish the upgrade process.
And S202, after receiving the command issued by the cloud, the terminal calculates the available resource information according to the upgrade package information and reports the available resource information to the cloud.
In this step, the calculation of the available resource information includes: the terminal counts the resource use condition of the terminal side within a period of time through the resource monitoring module of the terminal, and the terminal counts the minimum available resource within the period of time and reserves a certain proportion of margin.
For example: 0.7 multiplied by the minimum available resource, 0.8 multiplied by the minimum available resource, 0.9 multiplied by the minimum available resource, 0.7, 0.8, 0.9 are all scaling factors, which can be adjusted according to specific items.
And S203, after receiving the available resource information reported by the terminal, the cloud compares whether the resources required by the existing upgrade package are matched with the available resources of the terminal, namely, the cloud judges whether the existing upgrade package executed by the current terminal has resource surplus.
In this step, the specific steps of judging whether the resources required by the existing upgrade package are matched with the available resources of the terminal are as follows:
and judging whether the resources required by the existing upgrade package are larger than the product of the minimum threshold coefficient and the available resources of the terminal and smaller than the product of the maximum threshold coefficient and the available resources of the terminal, if so, judging that the resources required by the existing upgrade package are matched with the available resources of the terminal, and otherwise, judging that the resources are not matched.
That is, the resources required by the currently existing upgrade package need to be in the following interval [ minimum threshold coefficient x terminal available resources, maximum threshold coefficient x terminal available resources ].
Wherein the minimum threshold coefficient can be set to 0.7-0.8, and the maximum threshold coefficient can be set to 0.9-1, and as a preferred embodiment, the minimum threshold coefficient is 0.8, and the maximum threshold coefficient is 1.
And S30, if so, downloading the upgrade package, otherwise, regenerating a new upgrade package according to the resource information of the terminal and downloading.
The method comprises the following specific steps:
if the current terminal executes the existing upgrade package, the cloud end judges that the existing upgrade package executed by the current terminal has no resource surplus, the cloud end sends the matched existing upgrade package information to the terminal, and the terminal downloads the upgrade package according to the upgrade package information sent by the cloud end, otherwise, the cloud end judges that the existing upgrade package executed by the current terminal has resource surplus, the cloud end regenerates a new upgrade package according to available resource information reported by the terminal, sends the new upgrade package information to the terminal, and the terminal downloads the new upgrade package according to the new upgrade package information.
And S40, judging whether the source version is matched with the new upgrade package according to the verification information in the downloaded upgrade package.
The method specifically comprises the following steps: after the upgrade package is downloaded, the Flash data block to be upgraded in the equipment is verified by using the verification information in the downloaded upgrade package, and the data in the related data block in the current equipment is ensured to be consistent with the expected data, so that the data block information restored after the upgrade is ensured to be consistent with the corresponding data block on the new version, namely, the data on the corresponding Flash in the equipment is ensured to be consistent with the new version after the upgrade is executed.
And S50, if so, executing upgrading and reporting an upgrading result to the cloud, otherwise, directly reporting the upgrading result to the cloud.
The method specifically comprises the following steps:
if the data is matched with the new version, namely the verification is passed, the data on the corresponding flash in the equipment after the upgrade is finished is ensured to be consistent with the new version, the upgrade operation is executed, the upgrade result is reported to the cloud after the upgrade is finished, otherwise, the verification is not passed, at this moment, the upgrade operation is not executed, and the upgrade result is directly reported to the cloud.
In this step, the upgrade result reported to the cloud includes: when the verification is passed and the upgrading is completed, the terminal reports upgrading success to the cloud end, and when the verification fails, the terminal directly reports upgrading failure to the cloud end.
In the embodiment, the current resource use information of the terminal is collected through the cloud, whether the terminal executes the current existing upgrade package resource is appropriate or not is judged, namely, in the range of the reserved allowance, if the terminal executes the current existing upgrade package resource, the existing corresponding upgrade package is issued, and if the terminal executes the current existing upgrade package resource, the upgrade package is regenerated according to the condition of the residual resource of the terminal equipment; the upgrade process and the generation method of the upgrade package of this embodiment can make the corresponding upgrade package according to the resource usage of the terminal to the maximum extent, or accelerate the upgrade process, or reduce the size of the upgrade package, thereby reducing the occupation of the storage space and enabling the terminal with short resources to successfully execute the upgrade.
Example 2
A method for upgrading firmware based on terminal state is characterized by comprising the following steps:
s10, the terminal actively or passively triggers to check whether the upgrade package information is matched with the cloud.
The method specifically comprises the following steps:
the terminal actively or passively triggers to send relevant information to the cloud end, and the cloud end matches the existing upgrade package information on the cloud end by using the relevant information after receiving the relevant information.
In the step, the active triggering comprises the triggering of a user through a UI interface or the triggering of a polling cycle;
the passive triggering comprises pushing a Push message by a cloud end;
the related information includes a device ID, software version information, and the like.
And S20, if so, acquiring the resource information of the terminal, and judging whether the resource information of the terminal meets the resource requirement required by the upgrade package.
In this step, before acquiring the resource information of the terminal, the method further includes:
if the matched upgrade package information does not exist, the cloud end returns information to inform the terminal that no new upgrade package exists so as to end the upgrade process;
if the matched upgrade package information exists, the cloud end issues the related information of the upgrade package to the terminal;
and after receiving the relevant information sent by the cloud, the terminal judges whether a new upgrade package exists, and if so, acquires resource information required by the corresponding upgrade package to perform restoration from the cloud.
The method specifically comprises the following steps:
if the matched upgrade package information exists, the cloud end issues the related information of the upgrade package to the terminal, the terminal judges whether a new upgrade package exists after receiving the related information issued by the cloud end, if not, the upgrade flow is ended, and if yes, the resource information required when the corresponding upgrade package is executed and restored is obtained from the cloud end.
And meanwhile, acquiring available resource information of the terminal, and judging whether the available resources of the terminal can meet the resource requirement required by the upgrade package during the execution of the restoration.
And S30, if so, downloading the upgrade package, otherwise, regenerating a new upgrade package according to the resource information of the terminal and downloading.
The method specifically comprises the following steps:
if the available resources of the terminal can meet the resource requirements required by the restoration executed by the upgrade package, downloading the upgrade package, and executing the step S40, otherwise, reporting the current available resources of the terminal to the cloud;
and the cloud terminal regenerates a new upgrade package according to the available resource information reported by the terminal, issues the new upgrade package information to the terminal, and the terminal downloads the upgrade package.
And S40, judging whether the source version is matched with the new upgrade package according to the verification information in the downloaded upgrade package.
The method specifically comprises the following steps: after the upgrade package is downloaded, the Flash data block to be upgraded in the equipment is verified by using the verification information in the downloaded upgrade package, and the data in the related data block in the current equipment is ensured to be consistent with the expected data, so that the data block information restored after the upgrade is ensured to be consistent with the corresponding data block on the new version, namely, the data on the corresponding Flash in the equipment is ensured to be consistent with the new version after the upgrade is executed.
And S50, if so, executing upgrading and reporting an upgrading result to the cloud, otherwise, directly reporting the upgrading result to the cloud.
The method specifically comprises the following steps:
if the data is matched with the new version, namely the verification is passed, the data on the corresponding flash in the equipment after the upgrade is finished is ensured to be consistent with the new version, the upgrade operation is executed, the upgrade result is reported to the cloud after the upgrade is finished, otherwise, the verification is not passed, at this moment, the upgrade operation is not executed, and the upgrade result is directly reported to the cloud.
In this step, the upgrade result reported to the cloud includes: when the verification is passed and the upgrading is completed, the terminal reports upgrading success to the cloud end, and when the verification fails, the terminal directly reports upgrading failure to the cloud end.
In this embodiment, the terminal determines resource matching when the upgrade package executes upgrade, and when the effect of embodiment 1 is achieved, for a terminal with a short resource, the resource occupation can be reduced by adjusting the manufacturing parameters of the upgrade package, so that the terminal can be guaranteed to complete upgrade successfully.
It should be understood that the above-described embodiments of the present invention are merely examples for clearly illustrating the present invention, and are not intended to limit the embodiments of the present invention. Other variations and modifications will be apparent to persons skilled in the art in light of the above description. And are neither required nor exhaustive of all embodiments. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the claims of the present invention.

Claims (10)

1.一种基于终端状态进行固件升级的方法,其特征在于,包括步骤:1. a method for carrying out firmware upgrade based on terminal state, is characterized in that, comprises the steps: S10.终端主动或被动触发向云端检查是否有匹配升级包信息;S10. The terminal actively or passively triggers the cloud to check whether there is matching upgrade package information; S20.若有,获取终端的资源信息,并判断终端的资源信息是否满足升级包所需资源要求;S20. If yes, obtain resource information of the terminal, and determine whether the resource information of the terminal meets the resource requirements required by the upgrade package; S30.若是,下载升级包,否则,根据终端的资源信息重新生成新的升级包并下载;S30. If yes, download the upgrade package, otherwise, regenerate and download a new upgrade package according to the resource information of the terminal; S40.根据下载的升级包内的校验信息,判断源版本与新的升级包是否匹配;S40. According to the verification information in the downloaded upgrade package, determine whether the source version matches the new upgrade package; S50.若是,执行升级,并向云端上报升级结果,否则,直接向云端上报升级结果。S50. If yes, execute the upgrade and report the upgrade result to the cloud, otherwise, directly report the upgrade result to the cloud. 2.根据权利要求1所述的一种基于终端状态进行固件升级的方法,其特征在于,步骤S10具体包括:2. the method for firmware upgrade based on terminal state according to claim 1, is characterized in that, step S10 specifically comprises: 终端主动或被动触发向云端发送相关信息,云端端收到相关信息后,使用该相关信息与云端上已有的升级包信息进行匹配;The terminal actively or passively triggers to send relevant information to the cloud, and after receiving the relevant information, the cloud uses the relevant information to match the existing upgrade package information on the cloud; 其中,所述主动触发包括用户通过UI界面触发或者轮询周期到了触发;Wherein, the active triggering includes triggering by the user through the UI interface or triggering when the polling cycle arrives; 所述被动触发包括云端推送Push消息;The passive triggering includes cloud push Push messages; 所述相关信息包括设备ID、软件版本信息。The related information includes device ID and software version information. 3.根据权利要求1所述的一种基于终端状态进行固件升级的方法,其特征在于,获取的终端的资源信息包括获取的终端可用资源情况;3. A method for upgrading firmware based on terminal state according to claim 1, wherein the acquired resource information of the terminal comprises the acquired terminal available resource situation; 步骤S20具体包括:Step S20 specifically includes: S201.若有匹配的升级包信息,云端下发指令信息通知终端上报可用资源情况;S201. If there is matching upgrade package information, the cloud sends instruction information to notify the terminal to report the available resources; S202.终端接收到云端下发的指令后,根据升级包信息计算可用资源信息并上报云端;S202. After the terminal receives the instruction issued by the cloud, it calculates the available resource information according to the upgrade package information and reports it to the cloud; S203.云端收到终端上报的可用资源信息后,比对当前已有的升级包所需资源是否与终端的可用资源匹配。S203. After receiving the available resource information reported by the terminal, the cloud compares whether the resources required by the currently existing upgrade package match the available resources of the terminal. 4.根据权利要求3所述的一种基于终端状态进行固件升级的方法,其特征在于,步骤S30具体包括:4. a kind of method for firmware upgrade based on terminal state according to claim 3, is characterized in that, step S30 specifically comprises: 若匹配,云端下发匹配的已有升级包信息给终端,终端按照云端端下发的升级包信息下载升级包,否则,云端根据终端上报的可用资源信息重新生成新的升级包,并将新的升级包信息下发给终端,终端根据新的升级包信息下载新的升级包。If there is a match, the cloud sends the matching existing upgrade package information to the terminal, and the terminal downloads the upgrade package according to the upgrade package information sent by the cloud. The updated upgrade package information is delivered to the terminal, and the terminal downloads the new upgrade package according to the new upgrade package information. 5.根据权利要求3所述的一种基于终端状态进行固件升级的方法,其特征在于,判断当前已有的升级包所需资源是否与终端的可用资源匹配具体为:5. a kind of method for carrying out firmware upgrade based on terminal state according to claim 3, is characterized in that, judging whether the resources required for the existing upgrade package match the available resources of the terminal is specifically: 判断当前已有的升级包所需资源是否大于最小阈值系数与终端可用资源的乘积,并小于最大阈值系数与终端可用资源的乘积,若是,则判断当前已有的升级包所需资源与终端的可用资源匹配,否则,不匹配。Determine whether the resources required by the currently existing upgrade package are greater than the product of the minimum threshold coefficient and the terminal's available resources, and are less than the product of the maximum threshold coefficient and the terminal's available resources. Available resources match, otherwise, do not match. 6.根据权利要求1所述的一种基于终端状态进行固件升级的方法,其特征在于,在获取终端的资源信息之前,还包括:6. a kind of method for firmware upgrade based on terminal state according to claim 1, is characterized in that, before acquiring the resource information of terminal, also comprises: 若有匹配的升级包信息,云端下发升级包的相关信息至终端;If there is matching upgrade package information, the cloud will deliver the relevant information of the upgrade package to the terminal; 终端收到云端下发的相关信息之后,判断是否有新的升级包,若有,向云端获取对应升级包执行还原时所需的资源信息。After receiving the relevant information sent by the cloud, the terminal determines whether there is a new upgrade package, and if so, obtains the resource information required for restoring the corresponding upgrade package from the cloud. 7.根据权利要求6所述的一种基于终端状态进行固件升级的方法,其特征在于,获取的终端的资源信息包括终端可用资源情况;7. The method for upgrading firmware based on the terminal state according to claim 6, wherein the acquired resource information of the terminal comprises the available resources of the terminal; 步骤S20具体包括:Step S20 specifically includes: 若有匹配的升级包信息,判断终端可用资源是否能满足升级包执行还原时所需的资源要求。If there is matching upgrade package information, it is judged whether the available resources of the terminal can meet the resource requirements required when the upgrade package is restored. 8.根据权利要求7所述的一种基于终端状态进行固件升级的方法,其特征在于,步骤S30具体包括:8. The method for firmware upgrade based on terminal state according to claim 7, wherein step S30 specifically comprises: 若是,下载升级包,否则,则将当前终端可用资源信息上报给云端;If so, download the upgrade package, otherwise, report the current terminal available resource information to the cloud; 云端根据终端上报的可用资源信息重新生成新的升级包,并将新的升级包信息下发给终端;The cloud regenerates a new upgrade package according to the available resource information reported by the terminal, and delivers the new upgrade package information to the terminal; 终端下载升级包。The terminal downloads the upgrade package. 9.根据权利要求1所述的一种基于终端状态进行固件升级的方法,其特征在于,步骤S40具体包括:9. The method for upgrading firmware based on terminal state according to claim 1, wherein step S40 specifically comprises: 使用下载的升级包内的校验信息,对设备中将进行升级的Flash数据块进行校验,以判断当前设备中对应flash上的数据与新版本对否一致。Use the verification information in the downloaded upgrade package to verify the flash data block to be upgraded in the device to determine whether the data on the corresponding flash in the current device is consistent with the new version. 10.根据权利要求9所述的一种基于终端状态进行固件升级的方法,其特征在于,步骤S50中向云端上报的升级结果包括:当校验通过,且升级完成后,终端向云端上报升级成功,当校验失败,终端直接向云端上报升级失败。10. The method for upgrading firmware based on terminal state according to claim 9, wherein the upgrade result reported to the cloud in step S50 comprises: when the verification is passed and the upgrade is completed, the terminal reports the upgrade to the cloud Success, when the verification fails, the terminal directly reports the upgrade failure to the cloud.
CN202111124475.8A 2021-09-24 2021-09-24 Method for upgrading firmware based on terminal state Pending CN113986277A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202111124475.8A CN113986277A (en) 2021-09-24 2021-09-24 Method for upgrading firmware based on terminal state
PCT/CN2021/135873 WO2023045090A1 (en) 2021-09-24 2021-12-06 Terminal state-based firmware upgrade method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111124475.8A CN113986277A (en) 2021-09-24 2021-09-24 Method for upgrading firmware based on terminal state

Publications (1)

Publication Number Publication Date
CN113986277A true CN113986277A (en) 2022-01-28

Family

ID=79736631

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111124475.8A Pending CN113986277A (en) 2021-09-24 2021-09-24 Method for upgrading firmware based on terminal state

Country Status (2)

Country Link
CN (1) CN113986277A (en)
WO (1) WO2023045090A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119002970B (en) * 2024-10-22 2025-01-07 浙江索罗威科技有限公司 Chip online upgrading method, chip device and computer readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110865842A (en) * 2018-08-28 2020-03-06 成都鼎桥通信技术有限公司 OTA (over the air) upgrading method and device
CN110990046A (en) * 2019-11-29 2020-04-10 惠州市德赛西威汽车电子股份有限公司 Upgrading method based on dynamic file
CN112073994A (en) * 2020-09-03 2020-12-11 百度在线网络技术(北京)有限公司 Method and device for over-the-air upgrading, electronic equipment and readable storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007148900A1 (en) * 2006-06-19 2007-12-27 Samsung Electronics Co., Ltd. Program upgrade system and method for ota-capable portable device
CN106708548A (en) * 2015-11-13 2017-05-24 阿里巴巴集团控股有限公司 Program upgrading method and terminal device
CN107992312A (en) * 2016-10-25 2018-05-04 中兴通讯股份有限公司 A kind of upgrade package delivery method and device
CN107273156A (en) * 2017-06-06 2017-10-20 珠海全志科技股份有限公司 A kind of OTA upgrade methods and device
CN112817617B (en) * 2019-11-18 2024-11-01 华为技术有限公司 Software upgrade method, device and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110865842A (en) * 2018-08-28 2020-03-06 成都鼎桥通信技术有限公司 OTA (over the air) upgrading method and device
CN110990046A (en) * 2019-11-29 2020-04-10 惠州市德赛西威汽车电子股份有限公司 Upgrading method based on dynamic file
CN112073994A (en) * 2020-09-03 2020-12-11 百度在线网络技术(北京)有限公司 Method and device for over-the-air upgrading, electronic equipment and readable storage medium

Also Published As

Publication number Publication date
WO2023045090A1 (en) 2023-03-30

Similar Documents

Publication Publication Date Title
CN112104702B (en) Power management method of vehicle TBOX, vehicle TBOX, and media
CN112052017A (en) OTA (over the air) upgrading system and method for automobile CAN (controller area network) controller
CN110134418A (en) Vehicle upgrade method and device, storage medium and terminal based on space download technology
CN111399884A (en) Vehicle component upgrading method and device and electronic equipment
CN112000355B (en) Method and device for firmware upgrading and household appliance
WO2023241458A1 (en) Software upgrade method and apparatus for vehicle-mounted controller, and device and storage medium
CN101909282B (en) Triggering method, device and system of terminal operation
CN111367544B (en) Multi-peripheral firmware upgrade control method, intelligent device, firmware and electronic device
CN111158714B (en) Method and device, storage medium, and terminal for OTA software upgrade of vehicle-mounted domain controller
CN107769949A (en) A kind of application component dispositions method and deployment node
CN103002024A (en) Application program upgrade system and application program upgrade method
CN102646043A (en) Mobile terminal software upgrading method, upgrading device and mobile terminal
CN109361544A (en) A method, device and computing device for locating terminal firmware
CN111901142A (en) Firmware silent upgrading method and device for embedded equipment cluster
WO2025145955A1 (en) Vehicle software upgrade method and apparatus, terminal device and storage medium
CN113986277A (en) Method for upgrading firmware based on terminal state
CN107733974A (en) A kind of upgrade method of mobile terminal
CN107179918B (en) Software processing method, device and system
CN116133011A (en) Upgrading method, system and device of vehicle-mounted system
CN115495460A (en) Map data updating method, map data updating system, electronic equipment and storage medium
CN110990046A (en) Upgrading method based on dynamic file
CN115686561A (en) Vehicle upgrading method and device and vehicle
CN115277671A (en) OTA (over the air) upgrading method and device for vehicle, vehicle and storage medium
CN110045969A (en) Application program installation method, server, system, device and storage medium
CN118413573B (en) Resource management method, device, computer equipment, storage medium and product

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
CB02 Change of applicant information

Country or region after: China

Address after: Floor 1-5, Building 2, No. 171 Hele Er Street, Chengdu High tech Zone, China (Sichuan) Pilot Free Trade Zone, Chengdu City, Sichuan Province, 610000

Applicant after: Chengdu Desai Xiweika Frog Technology Co.,Ltd.

Address before: Floors 1-5, Building 2, No. 171 Hele Second Street, Chengdu High tech Zone, China (Sichuan) Pilot Free Trade Zone, Chengdu, Sichuan Province

Applicant before: Chengdu kafrog Technology Co.,Ltd.

Country or region before: China

CB02 Change of applicant information
RJ01 Rejection of invention patent application after publication

Application publication date: 20220128

RJ01 Rejection of invention patent application after publication