CN110580167A - system upgrading method, intelligent device and server - Google Patents
system upgrading method, intelligent device and server Download PDFInfo
- Publication number
- CN110580167A CN110580167A CN201810596485.3A CN201810596485A CN110580167A CN 110580167 A CN110580167 A CN 110580167A CN 201810596485 A CN201810596485 A CN 201810596485A CN 110580167 A CN110580167 A CN 110580167A
- Authority
- CN
- China
- Prior art keywords
- system file
- version
- file
- partition
- intelligent equipment
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 57
- 238000005192 partition Methods 0.000 claims abstract description 246
- 230000006870 function Effects 0.000 claims description 6
- 238000000638 solvent extraction Methods 0.000 abstract description 2
- 238000010586 diagram Methods 0.000 description 7
- 230000006399 behavior Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000007689 inspection Methods 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 230000000717 retained effect Effects 0.000 description 1
- 238000005728 strengthening Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
- G06F8/66—Updates of program code stored in read-only memory [ROM]
Abstract
The invention provides a system upgrading method, intelligent equipment and a server. A system upgrading method is applied to intelligent equipment, the intelligent equipment comprises two system partitions, and the intelligent equipment can load system files stored in any one system partition to start running; the method comprises the following steps: when the system file needs to be upgraded, the system file in the idle system partition is upgraded, so that the version of the system file in the idle system partition is higher than that of the system file in the running system partition. By adopting the technical scheme of the invention, the intelligent equipment is subjected to system partitioning, the system file of the idle system partition is upgraded every time the system file is upgraded, and the system file of the running system partition is reserved, so that the system files of two versions can be ensured to exist in the intelligent equipment all the time, the condition that no available system file exists when the system file is unsuccessfully upgraded is avoided, and the normal running of the intelligent equipment can be ensured.
Description
Technical Field
the invention relates to the technical field of software, in particular to a system upgrading method, intelligent equipment and a server.
Background
Over-The-Air (Firmware Over The Air) is a common way for intelligent devices to update Firmware, which means that an upgrade package is transmitted Over The Air (wirelessly). Since the wireless environment is not as stable as the wired environment, the upgrade package used in the wireless environment is a differential package subjected to a special differential process. The differential packet only contains the difference part between the old version and the new version, so the size is small, the network transmission is convenient, and the differential packet is widely applied. However, the FOTA upgrade is also a kind of firmware upgrade, and is a behavior that an exception may occur to cause the system to fail to boot.
in the prior art, the situation of FOTA upgrade failure is avoided as much as possible by strengthening the inspection of each flow in the FOTA upgrade process. For example, after the FOTA package is downloaded, its version and md5 are checked to ensure integrity; in the unpacking process, the size of a cache region is detected, and a sufficient space is ensured for cache operation and the like.
however, the existing FOTA upgrade safeguard measures can only reduce the probability of the fault occurring in the upgrade process to a certain extent, and cannot help the real system upgrade fault. If the new version fails to be upgraded, the original version of the system file in the device is not available for the device to operate, so that the intelligent device cannot be used.
disclosure of Invention
Based on the defects and shortcomings of the prior art, the invention provides a system upgrading method which can realize upgrading of system files on the premise of keeping the existing system files and can effectively avoid the condition that intelligent equipment cannot be used due to failure of upgrading of the system files.
in order to achieve the purpose, the invention provides the following technical scheme:
A system upgrading method is applied to intelligent equipment, the intelligent equipment comprises two system partitions, and the intelligent equipment can load system files stored in any one system partition to start running; the method comprises the following steps:
when the system file needs to be upgraded, the system file in the idle system partition is upgraded, so that the version of the system file in the idle system partition is higher than that of the system file in the running system partition.
Preferably, the method further comprises:
When the system file in the idle system partition is upgraded, reloading the system file in the system partition with the higher system file version, and starting to run;
and if the intelligent equipment cannot be normally started and operated, reloading the system file in the system partition with the lower system file version, and starting and operating.
Preferably, after the system file in the system partition with the lower version of the system file is reloaded and started to run, the method further comprises the following steps:
and carrying out re-upgrading treatment on the system file in the idle system partition, or erasing the system file in the idle system partition and rewriting a new system file.
Preferably, the method further comprises:
When the intelligent equipment is started, system partition information selected by a user is acquired;
And loading the system file in the system partition corresponding to the system partition information, and starting and running.
a system upgrading method is applied to a server and comprises the following steps:
When the system file of the intelligent equipment is upgraded for the first time, generating an adjacent version differential upgrade package from the system file of the initial version to the system file of the higher version;
sending the adjacent version differential upgrade package to the intelligent equipment, so that the intelligent equipment upgrades the system files in the idle system partition;
when the system file of the intelligent equipment is upgraded again, generating an interval version difference upgrading packet; the interval version differential upgrade package is a differential upgrade package between a lower version system file in the intelligent equipment and a higher version system file of a higher version system file in the intelligent equipment;
and sending the interval version differential upgrading packet to the intelligent equipment, so that the intelligent equipment upgrades the system files in the idle system partition.
The intelligent equipment comprises two system partitions, and can load a system file stored in any one system partition to start running;
when the intelligent device needs to upgrade the system file, the system file in the idle system partition is upgraded, so that the system file version in the idle system partition is higher than the system file version in the running system partition.
Preferably, the smart device further comprises:
the first processing unit is used for reloading the system file in the system partition with the higher system file version to start running when the system file in the idle system partition is upgraded;
and the second processing unit is used for reloading the system file in the system partition with the lower system file version to start and operate when the system file reloaded by the intelligent equipment in the system partition with the higher system file version cannot be started and operated normally.
preferably, after the system file in the system partition with the lower version of the system file is reloaded and started to run, the intelligent device is further configured to:
And carrying out re-upgrading treatment on the system file in the idle system partition, or erasing the system file in the idle system partition and rewriting a new system file.
preferably the smart device is further configured to:
When the intelligent equipment is started, system partition information selected by a user is acquired;
And loading the system file in the system partition corresponding to the system partition information, and starting and running.
The intelligent equipment comprises two system partitions, and can load a system file stored in any one system partition to start running; the smart device includes:
A first memory and a first processor;
wherein the first memory is connected with the first processor and used for storing programs;
the first processor is configured to implement the following functions by running the program stored in the first memory:
When the system file needs to be upgraded, the system file in the idle system partition is upgraded, so that the version of the system file in the idle system partition is higher than that of the system file in the running system partition.
preferably, the first processor is further configured to:
when the system file in the idle system partition is upgraded, reloading the system file in the system partition with the higher system file version, and starting to run; and if the intelligent equipment cannot be normally started and operated, reloading the system file in the system partition with the lower system file version, and starting and operating.
Preferably, the first processor is further configured to:
and carrying out re-upgrading treatment on the system file in the idle system partition, or erasing the system file in the idle system partition and rewriting a new system file.
Preferably, the first processor is further configured to:
when the intelligent equipment is started, system partition information selected by a user is acquired; and loading the system file in the system partition corresponding to the system partition information, and starting and running.
a server, comprising:
the intelligent device comprises a first generating unit, a second generating unit and a third generating unit, wherein the first generating unit is used for generating an adjacent version differential upgrade package from an initial version system file to a higher version system file when the intelligent device system file is upgraded for the first time;
The first sending unit is used for sending the adjacent version differential upgrading packet to the intelligent equipment so that the intelligent equipment upgrades the system files in the idle system partition;
the second generation unit is used for generating an interval version difference upgrading packet when the intelligent equipment system file is upgraded again; the interval version differential upgrade package is a differential upgrade package between a lower version system file in the intelligent equipment and a higher version system file of a higher version system file in the intelligent equipment;
And the second sending unit is used for sending the interval version differential upgrading packet to the intelligent equipment so that the intelligent equipment upgrades the system files in the idle system partition.
a server, comprising:
A second memory and a second processor;
wherein the second memory is connected with the second processor and used for storing programs;
The second processor is configured to implement the following functions by running the program stored in the second memory:
When the system file of the intelligent equipment is upgraded for the first time, generating an adjacent version differential upgrade package from the system file of the initial version to the system file of the higher version; sending the adjacent version differential upgrade package to the intelligent equipment, so that the intelligent equipment upgrades the system files in the idle system partition; when the system file of the intelligent equipment is upgraded again, generating an interval version difference upgrading packet; the interval version differential upgrade package is a differential upgrade package between a lower version system file in the intelligent equipment and a higher version system file of a higher version system file in the intelligent equipment; and sending the interval version differential upgrading packet to the intelligent equipment, so that the intelligent equipment upgrades the system files in the idle system partition.
By adopting the technical scheme of the invention, the intelligent equipment is subjected to system partitioning, the system file of the idle system partition is upgraded every time the system file is upgraded, and the system file of the running system partition is reserved, so that the system files of two versions can be ensured to exist in the intelligent equipment all the time, the condition that no available system file exists when the system file is unsuccessfully upgraded is avoided, and the normal running of the intelligent equipment can be ensured.
drawings
in order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a schematic processing diagram of an upgrade system according to an embodiment of the present invention;
Fig. 2 is a schematic flowchart of a system upgrade method according to an embodiment of the present invention;
Fig. 3 is a schematic flow chart of another system upgrading method provided in the embodiment of the present invention;
fig. 4 is a schematic flow chart of another system upgrading method provided in the embodiment of the present invention;
Fig. 5 is a schematic structural diagram of an intelligent device according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of another intelligent device provided in the embodiment of the present invention;
Fig. 7 is a schematic structural diagram of a server according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of another server according to an embodiment of the present invention.
Detailed Description
the technical scheme of the embodiment of the invention is suitable for the application scene of upgrading the system file of the intelligent equipment. By adopting the technical scheme of the embodiment of the invention, the system file with the original lower version can be kept when the system file is upgraded, and the intelligent equipment can not work normally when the upgrade fails.
the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
the embodiment of the invention discloses a system upgrading method, which is applied to intelligent equipment, and is shown in figure 1.
It should be noted that, because the smart device in the embodiment of the present invention includes two system partitions, that is, a first system partition and a second system partition, and system files in the first system partition and the second system partition are system files that can be loaded and run by the smart device. Therefore, the embodiment of the invention also sets the system partition which can be selected by the user to run.
When the intelligent equipment is started, an interactive interface is generated, the system partition is selected by a user, and correspondingly, the intelligent equipment acquires the system partition information selected by the user, namely, whether the user selects the first system partition or the second system partition is acquired.
and then, the intelligent equipment loads the system file in the system partition corresponding to the system partition information selected by the user to start running.
for example, assuming that the user selects the first system partition, the smart device loads a system file in the first system partition to start running; and if the user selects the second system partition, the intelligent equipment loads the system file in the second system partition for running.
It will be appreciated that when different versions of system files are stored in the first system partition and the second system partition, the selection by the user to run the different versions of system files may be implemented.
As shown in fig. 1, in the initial state, both the first system partition and the second system partition of the smart device store an initial version of the system file, i.e., a 1.0 version of the system file. And in the later operating process of the intelligent equipment, upgrading the system file from the 1.0 version.
Referring to fig. 2, when the system file needs to be upgraded, the intelligent device executes step S201 to upgrade the system file in the idle system partition, so that the version of the system file in the idle system partition is higher than the version of the system file in the running system partition.
Specifically, when the intelligent device runs, the system file in one system partition of the two system partitions is loaded to start running. At this time, the system partition in which the system file is loaded and run is the running system partition, and correspondingly, the system partition in which the other system file is not loaded and run is the idle system partition.
When the intelligent device loads the system file in a certain system partition to run, if the system file needs to be updated, the system file in the idle system partition can only be updated.
As shown in fig. 1, it is assumed that the intelligent device is running the system file of version 1.0 in the first system partition, and at this time, if the system file needs to be upgraded to version 1.1, the server sends a differential upgrade package of the system file of version 1.0 to the system file of version 1.1, and the intelligent device downloads the upgrade package to upgrade the system file of version 1.0 in the idle second system partition to the system file of version 1.1.
At this time, the 1.1 version system file and the 1.0 version system file coexist in the smart device. If the system file of the 1.0 version in the second system partition is successfully upgraded, the intelligent device can select to load the system file of the 1.1 version in the second system partition for operation when restarting; if the upgrade of the system file of the version 1.0 in the second system partition fails, the intelligent device can select to load the system file of the version 1.0 in the first system partition again to operate when restarting, and the intelligent device cannot fail to operate due to the failure of the upgrade of the system file.
Correspondingly, in each later system file upgrading process, the intelligent equipment selects and upgrades the system files in the idle system partition based on the system files in the currently running system partition, and upgrades the system files in the idle system partition to a version higher than the version of the currently running system files. By adopting the upgrading mode, the system files of two versions can be kept in the upgrading process of the system files, so that when the upgrading of the system files of the high version fails, the intelligent equipment can load the system files of the lower version to operate.
For example, after upgrading the 1.0 version system file in the second system partition to the 1.1 version system file, the intelligent device may load the 1.1 version system file successfully upgraded in the second system partition to run. When the system file needs to be upgraded to the 1.2 version, the intelligent device upgrades the system file of the 1.0 version in the idle first system partition and upgrades the system file to the system file of the 1.2 version. If the upgrade is successful, the intelligent device can restart to load the system file of the 1.2 version in the first system partition for operation; if the upgrade fails, the smart device may reload the 1.1 version of the system file in the second system partition for operation.
It can be seen from the above description that, by adopting the technical solution of the embodiment of the present invention, the system partition is performed on the intelligent device, the system file of the idle system partition is updated each time the system file is updated, and the system file of the system partition in operation is retained, so that the system files of two versions are always present in the intelligent device, and the situation that no available system file exists when the system file is failed to be updated is avoided, and the normal operation of the intelligent device can be ensured.
it can be understood that when the system file of the intelligent device is upgraded, the server needs to provide the upgrade file, and based on the system upgrade method applied to the intelligent device, the server should provide the system file differential upgrade package of the corresponding version in cooperation with the intelligent terminal. The embodiment of the invention discloses a system upgrading method applied to a server, and as shown in figure 3, the method comprises the following steps:
when the system file of the intelligent device is upgraded for the first time, executing the step S301, and generating an adjacent version differential upgrade package from the system file of the initial version to the system file of the higher version;
specifically, the high-version system file refers to a system file version to be upgraded when the system file of the intelligent device is upgraded for the first time. For example, as shown in fig. 1, if the 1.0 version system file needs to be upgraded to the 1.1 version system file at the time of the first upgrade, the 1.1 version system file is a higher version system file. The server generates an adjacent version differential upgrade package from the initial version system file to a higher version system file.
S302, sending the adjacent version differential upgrading packet to the intelligent equipment, so that the intelligent equipment upgrades the system files in the idle system partition;
Specifically, after the adjacent version differential upgrade package is generated, the server sends the upgrade package to the intelligent device, and because the technical scheme of the embodiment of the invention has set that the intelligent device can select the idle system partition upgrade system file according to the running system partition condition, the intelligent device can upgrade the system file in the idle system partition according to the upgrade package after receiving the adjacent version differential upgrade package.
when the system file of the intelligent device is upgraded again, executing the step S303 and generating an interval version difference upgrade package; the interval version differential upgrade package is a differential upgrade package between a lower version system file in the intelligent equipment and a higher version system file of a higher version system file in the intelligent equipment;
Specifically, when the system file is upgraded each time after the system file is upgraded for the first time, the server does not generate the adjacent version differential upgrade package any more, but generates the interval version differential upgrade package. The interval version differential upgrade package specifically refers to a differential upgrade package between a lower version system file in the intelligent device and a higher version system file (i.e., the version to which the upgrade needs to be upgraded) of a higher version system file in the intelligent device.
For example, referring to fig. 1, after the system file of the smart device is upgraded for the first time, at this time, the lower version of the 1.0 version system file and the higher version of the 1.1 version system file exist in the smart device. When the system file is upgraded again, the 1.1 version system file needs to be upgraded to the 1.2 version system file. At this time, the server does not directly generate an adjacent version differential upgrade package between the 1.1 version system file and the 1.2 version system file, but generates an interval version differential upgrade package between the 1.0 version system file and the 1.2 version system file.
S304, sending the interval version difference upgrading packet to the intelligent equipment, and enabling the intelligent equipment to upgrade the system files in the idle system partition.
specifically, the server sends the generated interval version difference upgrade package to the intelligent device, and the intelligent device upgrades the system file of the lower version in the idle system partition on the basis of running the existing system file of the higher version in the intelligent device.
It should be noted that the above technical solution is based on that the intelligent device can successfully upgrade the system file each time, and the system file is upgraded and then the system file of the latest version is loaded for operation. When the intelligent device fails to upgrade the system file and operates in the lower version system file, or the user selects to operate the lower version system file, if the intelligent device needs to upgrade the system file, a differential upgrade package request can be actively sent to the server according to the version of the system file in the idle system partition, and the server provides a corresponding differential upgrade package. In this manner, the smart device may select the requested system file version based on the circumstances. But to ensure that system files that can be used normally must be kept in the system.
It can be understood from the above description that the system upgrade method provided in the embodiment of the present invention requires the server to provide the upgrade file, and the intelligent device executes a specific system file upgrade process, where the system upgrade method is a system file upgrade implemented by the cooperation of the server and the intelligent device. In addition, the intelligent device is set to comprise two system partitions, and the intelligent device can load the system file stored in any system partition to start running.
The following describes a specific processing procedure of the system upgrading method disclosed in the present invention.
Referring to fig. 4, the system upgrading method disclosed in the embodiment of the present invention specifically includes:
When the system file needs to be upgraded, the intelligent device executes the step S401 to upgrade the system file in the idle system partition, so that the version of the system file in the idle system partition is higher than that of the system file in the running system partition;
specifically, as shown in fig. 1, in the initial state, both the first system partition and the second system partition of the smart device store an initial version of the system file, that is, a 1.0 version of the system file. When the intelligent device runs, the system file in one system partition of the two system partitions is loaded to start running. At this time, the system partition in which the system file is loaded and run is the running system partition, and correspondingly, the system partition in which the other system file is not loaded and run is the idle system partition. And in the later operating process of the intelligent equipment, upgrading the system file from the 1.0 version.
When the intelligent device loads the system file in a certain system partition to run, if the system file needs to be updated, the system file in the idle system partition can only be updated.
when the system file is upgraded for the first time, as shown in fig. 1, it is assumed that the intelligent device is running the system file of the 1.0 version in the first system partition, at this time, if the system file needs to be upgraded to the 1.1 version, the server sends a differential upgrade package of the system file of the 1.0 version to the system file of the 1.1 version, and the intelligent device downloads the upgrade package and upgrades the system file of the 1.0 version in the idle second system partition to the system file of the 1.1 version.
At this time, the 1.1 version system file and the 1.0 version system file coexist in the smart device. If the system file of the 1.0 version in the second system partition is successfully upgraded, the intelligent device can select to load the system file of the 1.1 version in the second system partition for operation when restarting; if the upgrade of the system file of the version 1.0 in the second system partition fails, the intelligent device can select to load the system file of the version 1.0 in the first system partition again to operate when restarting, and the intelligent device cannot fail to operate due to the failure of the upgrade of the system file.
It should be noted that the above selection process is actually a process of selecting a system partition by a user. The intelligent equipment acquires user selection information, selects a corresponding system partition to load a system file, and starts running.
in each later system file upgrading process, the intelligent equipment selects to upgrade the system files in the idle system partition based on the system files in the currently running system partition, and upgrades the system files in the idle system partition to a version higher than the version of the currently running system files. Correspondingly, the server provides an available differential upgrade package in the system file upgrade process. By adopting the upgrading mode, the system files of two versions can be kept in the upgrading process of the system files, so that when the upgrading of the system files of the high version fails, the intelligent equipment can load the system files of the lower version to operate.
for example, after upgrading the 1.0 version system file in the second system partition to the 1.1 version system file, the intelligent device may load the 1.1 version system file successfully upgraded in the second system partition to run. When the system file needs to be upgraded to the 1.2 version, the server generates a differential upgrade package from the 1.0 version system file to the 1.1 version system file, the intelligent device downloads the differential upgrade package, upgrades the 1.0 version system file in the idle first system partition, and upgrades the system file to the 1.2 version system file.
when the system file in the idle system partition is upgraded, the intelligent device executes the step S402 to reload the system file in the system partition with the higher system file version for starting operation;
Specifically, the system file in the system partition with the higher version of the system file refers to the system file obtained by upgrading the system file in the free system partition in step S401.
after the system files in the idle system partitions are upgraded, the intelligent device is restarted, and the system files with the upgraded versions and higher versions are loaded to start running.
if the intelligent device cannot be started and operated normally, the intelligent device executes the step S403 to reload the system file in the system partition with the lower system file version for starting and operation;
Specifically, if the system file in the idle system partition is upgraded, and the intelligent device loads the upgraded system file and cannot normally operate, it indicates that the system file in the idle system partition fails to be upgraded, at this time, the intelligent device may be restarted, and the system file in the system partition with the lower version of the system file is reloaded to start operation, that is, the system file operated when the system file in the idle system partition is upgraded is operated again to continue to operate.
Further, if the intelligent device cannot operate normally, the embodiment of the present invention may further set the intelligent device to continue to execute step S404, perform a re-upgrade process on the system file in the idle system partition, or erase the system file in the idle system partition and rewrite a new system file.
Specifically, when the system file in the idle system partition fails to be upgraded, the intelligent device may run the system file of the lower version that has not been upgraded to continue working, and at this time, the differential upgrade package may be requested from the server again to upgrade the system file in the idle system partition again, or the intelligent device may completely erase the system file in the idle system partition, request a complete system file data package from the server, and rewrite a new system file into the idle system partition. And the intelligent device can try to run the newly written or upgraded system file in the idle system partition again, and judge whether the system file in the idle system partition can run normally.
if the device can be started and operated normally, the upgraded system file is an available system file, and further the system file in the idle system partition is upgraded successfully, and the intelligent device can operate in a high-version system file.
at this time, the other system partition of the smart device still stores the system file of the low version, that is, the smart device stores the system files of the high and low versions at the same time, and both the system files can normally run. The user can select the system partition to decide to run the high-version system file or the low-version system file by restarting the intelligent device.
it can be seen from the above description that, by adopting the technical solution of the embodiment of the present invention, the system partition is performed on the intelligent device, and the system partition is divided into two system partitions, and when updating the system file, the system file in the idle system partition is upgraded to the system file version higher than the currently running system file version, so that the system file of two versions can be always kept in the intelligent device, a user can freely select the running system file version, and when the upgrade fails, the system file with the lower version can be returned to continue running, thereby ensuring the normal work of the intelligent device.
The embodiment of the invention also discloses intelligent equipment, which comprises two system partitions, wherein the intelligent equipment can load the system file stored in any one system partition to start running, and is shown in figure 5;
When the intelligent device needs to upgrade the system file, the system file in the idle system partition is upgraded, so that the system file version in the idle system partition is higher than the system file version in the running system partition.
in another embodiment of the present invention, the intelligent device further includes:
the first processing unit is used for reloading the system file in the system partition with the higher system file version to start running when the system file in the idle system partition is upgraded;
And the second processing unit is used for reloading the system file in the system partition with the lower system file version to start and operate when the system file reloaded by the intelligent equipment in the system partition with the higher system file version cannot be started and operated normally.
After the system file in the system partition with the lower reloaded system file version is started to run, the intelligent device is further configured to:
and carrying out re-upgrading treatment on the system file in the idle system partition, or erasing the system file in the idle system partition and rewriting a new system file.
in another embodiment of the present invention, the smart device is further configured to:
when the intelligent equipment is started, system partition information selected by a user is acquired;
and loading the system file in the system partition corresponding to the system partition information, and starting and running.
For the details of the intelligent device and the operation of each unit thereof, please refer to the contents of the above method embodiment, which is not described herein again.
Fig. 6 is a schematic structural diagram of another intelligent device disclosed in the embodiment of the present invention, where the intelligent device includes two system partitions, and the intelligent device may load a system file stored in any one of the system partitions to start running; the above-mentioned smart machine specifically includes:
a first memory 100 and a first processor 110;
The first memory 100 is connected to the first processor 110, and is used for storing programs;
the first processor 100 is configured to execute the program stored in the first memory 100 to implement the following functions:
When the system file needs to be upgraded, the system file in the idle system partition is upgraded, so that the version of the system file in the idle system partition is higher than that of the system file in the running system partition.
In another embodiment of the present invention, the first processor 110 is further configured to:
when the system file in the idle system partition is upgraded, reloading the system file in the system partition with the higher system file version, and starting to run; and if the intelligent equipment cannot be normally started and operated, reloading the system file in the system partition with the lower system file version, and starting and operating.
In another embodiment of the present invention, the first processor 110 is further configured to:
and carrying out re-upgrading treatment on the system file in the idle system partition, or erasing the system file in the idle system partition and rewriting a new system file.
in another embodiment of the present invention, the first processor 110 is further configured to:
when the intelligent equipment is started, system partition information selected by a user is acquired; and loading the system file in the system partition corresponding to the system partition information, and starting and running.
specifically, please refer to the contents of the above method embodiments for the specific working contents of each part in the above embodiments, which are not described herein again.
The embodiment of the present invention further discloses a server, as shown in fig. 7, the server includes:
the first generating unit 200 is configured to generate an adjacent version differential upgrade package from an initial version system file to a higher version system file when the system file of the smart device is upgraded for the first time;
a first sending unit 210, configured to send the adjacent version differential upgrade package to the intelligent device, so that the intelligent device upgrades a system file in an idle system partition;
The second generating unit 220 is configured to generate an interval version difference upgrade package when the system file of the smart device is upgraded again; the interval version differential upgrade package is a differential upgrade package between a lower version system file in the intelligent equipment and a higher version system file of a higher version system file in the intelligent equipment;
a second sending unit 230, configured to send the interval version difference upgrade package to the intelligent device, so that the intelligent device upgrades the system file in the idle system partition.
Specifically, please refer to the contents of the above method embodiment for the specific working contents of each unit, which are not described herein again.
Fig. 8 is a schematic structural diagram of another server disclosed in the embodiment of the present invention, where the server includes:
A second memory 300 and a second processor 310;
Wherein, the second memory 300 is connected to the second processor 310 for storing programs;
the second processor 310 is configured to execute the program stored in the second memory 300 to implement the following functions:
When the system file of the intelligent equipment is upgraded for the first time, generating an adjacent version differential upgrade package from the system file of the initial version to the system file of the higher version; sending the adjacent version differential upgrade package to the intelligent equipment, so that the intelligent equipment upgrades the system files in the idle system partition; when the system file of the intelligent equipment is upgraded again, generating an interval version difference upgrading packet; the interval version differential upgrade package is a differential upgrade package between a lower version system file in the intelligent equipment and a higher version system file of a higher version system file in the intelligent equipment; and sending the interval version differential upgrading packet to the intelligent equipment, so that the intelligent equipment upgrades the system files in the idle system partition.
specifically, please refer to the contents of the above method embodiments for the specific working contents of the above parts, which are not described herein again.
finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
the previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (15)
1. the system upgrading method is applied to intelligent equipment, the intelligent equipment comprises two system partitions, and the intelligent equipment can load system files stored in any one system partition to start running; the method comprises the following steps:
When the system file needs to be upgraded, the system file in the idle system partition is upgraded, so that the version of the system file in the idle system partition is higher than that of the system file in the running system partition.
2. the method of claim 1, further comprising:
When the system file in the idle system partition is upgraded, reloading the system file in the system partition with the higher system file version, and starting to run;
And if the intelligent equipment cannot be normally started and operated, reloading the system file in the system partition with the lower system file version, and starting and operating.
3. the method of claim 2, wherein after the system file in the system partition with the lower version of the system file is reloaded and started, the method further comprises:
and carrying out re-upgrading treatment on the system file in the idle system partition, or erasing the system file in the idle system partition and rewriting a new system file.
4. The method according to any one of claims 1 to 3, further comprising:
When the intelligent equipment is started, system partition information selected by a user is acquired;
And loading the system file in the system partition corresponding to the system partition information, and starting and running.
5. a system upgrading method is applied to a server, and comprises the following steps:
When the system file of the intelligent equipment is upgraded for the first time, generating an adjacent version differential upgrade package from the system file of the initial version to the system file of the higher version;
sending the adjacent version differential upgrade package to the intelligent equipment, so that the intelligent equipment upgrades the system files in the idle system partition;
When the system file of the intelligent equipment is upgraded again, generating an interval version difference upgrading packet; the interval version differential upgrade package is a differential upgrade package between a lower version system file in the intelligent equipment and a higher version system file of a higher version system file in the intelligent equipment;
and sending the interval version differential upgrading packet to the intelligent equipment, so that the intelligent equipment upgrades the system files in the idle system partition.
6. the intelligent device is characterized by comprising two system partitions, wherein the intelligent device can load a system file stored in any one of the system partitions to start running;
When the intelligent device needs to upgrade the system file, the system file in the idle system partition is upgraded, so that the system file version in the idle system partition is higher than the system file version in the running system partition.
7. The smart device of claim 6, further comprising:
the first processing unit is used for reloading the system file in the system partition with the higher system file version to start running when the system file in the idle system partition is upgraded;
And the second processing unit is used for reloading the system file in the system partition with the lower system file version to start and operate when the system file reloaded by the intelligent equipment in the system partition with the higher system file version cannot be started and operated normally.
8. the smart device of claim 7, wherein after reloading the system file in the system partition with the lower version of the system file, the smart device is further configured to:
And carrying out re-upgrading treatment on the system file in the idle system partition, or erasing the system file in the idle system partition and rewriting a new system file.
9. the smart device of any one of claims 6 to 8, wherein the smart device is further configured to:
when the intelligent equipment is started, system partition information selected by a user is acquired;
And loading the system file in the system partition corresponding to the system partition information, and starting and running.
10. the intelligent device is characterized by comprising two system partitions, wherein the intelligent device can load a system file stored in any one of the system partitions to start running; the smart device includes:
A first memory and a first processor;
wherein the first memory is connected with the first processor and used for storing programs;
the first processor is configured to implement the following functions by running the program stored in the first memory:
When the system file needs to be upgraded, the system file in the idle system partition is upgraded, so that the version of the system file in the idle system partition is higher than that of the system file in the running system partition.
11. the smart device of claim 10, wherein the first processor is further configured to:
When the system file in the idle system partition is upgraded, reloading the system file in the system partition with the higher system file version, and starting to run; and if the intelligent equipment cannot be normally started and operated, reloading the system file in the system partition with the lower system file version, and starting and operating.
12. The smart device of claim 11, wherein the first processor is further configured to:
and carrying out re-upgrading treatment on the system file in the idle system partition, or erasing the system file in the idle system partition and rewriting a new system file.
13. the smart device of any of claims 10 to 12, wherein the first processor is further configured to:
when the intelligent equipment is started, system partition information selected by a user is acquired; and loading the system file in the system partition corresponding to the system partition information, and starting and running.
14. a server, comprising:
the intelligent device comprises a first generating unit, a second generating unit and a third generating unit, wherein the first generating unit is used for generating an adjacent version differential upgrade package from an initial version system file to a higher version system file when the intelligent device system file is upgraded for the first time;
the first sending unit is used for sending the adjacent version differential upgrading packet to the intelligent equipment so that the intelligent equipment upgrades the system files in the idle system partition;
The second generation unit is used for generating an interval version difference upgrading packet when the intelligent equipment system file is upgraded again; the interval version differential upgrade package is a differential upgrade package between a lower version system file in the intelligent equipment and a higher version system file of a higher version system file in the intelligent equipment;
and the second sending unit is used for sending the interval version differential upgrading packet to the intelligent equipment so that the intelligent equipment upgrades the system files in the idle system partition.
15. A server, comprising:
a second memory and a second processor;
Wherein the second memory is connected with the second processor and used for storing programs;
The second processor is configured to implement the following functions by running the program stored in the second memory:
When the system file of the intelligent equipment is upgraded for the first time, generating an adjacent version differential upgrade package from the system file of the initial version to the system file of the higher version; sending the adjacent version differential upgrade package to the intelligent equipment, so that the intelligent equipment upgrades the system files in the idle system partition; when the system file of the intelligent equipment is upgraded again, generating an interval version difference upgrading packet; the interval version differential upgrade package is a differential upgrade package between a lower version system file in the intelligent equipment and a higher version system file of a higher version system file in the intelligent equipment; and sending the interval version differential upgrading packet to the intelligent equipment, so that the intelligent equipment upgrades the system files in the idle system partition.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810596485.3A CN110580167A (en) | 2018-06-11 | 2018-06-11 | system upgrading method, intelligent device and server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810596485.3A CN110580167A (en) | 2018-06-11 | 2018-06-11 | system upgrading method, intelligent device and server |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110580167A true CN110580167A (en) | 2019-12-17 |
Family
ID=68810216
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810596485.3A Pending CN110580167A (en) | 2018-06-11 | 2018-06-11 | system upgrading method, intelligent device and server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110580167A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112860297A (en) * | 2021-01-19 | 2021-05-28 | 北京中科慧眼科技有限公司 | Storage system based on automobile binocular camera and system updating method |
CN113885928A (en) * | 2021-05-31 | 2022-01-04 | 荣耀终端有限公司 | Program updating method and electronic device |
CN113905039A (en) * | 2021-09-30 | 2022-01-07 | 苏州挚途科技有限公司 | System upgrade file transmission method, device and system |
CN116661812A (en) * | 2022-11-25 | 2023-08-29 | 荣耀终端有限公司 | Equipment upgrading method, electronic equipment and system |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101078993A (en) * | 2007-03-13 | 2007-11-28 | 中兴通讯股份有限公司 | Method for on-line upgrading of edition in terminal product without interrupting the operation |
CN103106092A (en) * | 2013-02-18 | 2013-05-15 | 青岛海信宽带多媒体技术有限公司 | System software updating method and device in terminal appliance |
CN103634668A (en) * | 2013-12-20 | 2014-03-12 | 乐视致新电子科技(天津)有限公司 | System upgrading method and device in smart television |
WO2014161339A1 (en) * | 2013-08-12 | 2014-10-09 | 中兴通讯股份有限公司 | Firmware upgrade method and device |
CN105760200A (en) * | 2016-02-26 | 2016-07-13 | 晨星半导体股份有限公司 | Terminal device and system updating method thereof |
CN106020865A (en) * | 2016-05-10 | 2016-10-12 | 百度在线网络技术(北京)有限公司 | System upgrading method and device |
CN107273160A (en) * | 2017-06-09 | 2017-10-20 | 青岛海信电器股份有限公司 | A kind of method and device of edition upgrading |
CN108279916A (en) * | 2017-12-28 | 2018-07-13 | 宁德时代新能源科技股份有限公司 | Electronic control unit program updating method and device |
-
2018
- 2018-06-11 CN CN201810596485.3A patent/CN110580167A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101078993A (en) * | 2007-03-13 | 2007-11-28 | 中兴通讯股份有限公司 | Method for on-line upgrading of edition in terminal product without interrupting the operation |
CN103106092A (en) * | 2013-02-18 | 2013-05-15 | 青岛海信宽带多媒体技术有限公司 | System software updating method and device in terminal appliance |
WO2014161339A1 (en) * | 2013-08-12 | 2014-10-09 | 中兴通讯股份有限公司 | Firmware upgrade method and device |
CN103634668A (en) * | 2013-12-20 | 2014-03-12 | 乐视致新电子科技(天津)有限公司 | System upgrading method and device in smart television |
CN105760200A (en) * | 2016-02-26 | 2016-07-13 | 晨星半导体股份有限公司 | Terminal device and system updating method thereof |
CN106020865A (en) * | 2016-05-10 | 2016-10-12 | 百度在线网络技术(北京)有限公司 | System upgrading method and device |
CN107273160A (en) * | 2017-06-09 | 2017-10-20 | 青岛海信电器股份有限公司 | A kind of method and device of edition upgrading |
CN108279916A (en) * | 2017-12-28 | 2018-07-13 | 宁德时代新能源科技股份有限公司 | Electronic control unit program updating method and device |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112860297A (en) * | 2021-01-19 | 2021-05-28 | 北京中科慧眼科技有限公司 | Storage system based on automobile binocular camera and system updating method |
CN113885928A (en) * | 2021-05-31 | 2022-01-04 | 荣耀终端有限公司 | Program updating method and electronic device |
CN113885928B (en) * | 2021-05-31 | 2022-10-11 | 荣耀终端有限公司 | Program updating method and electronic device |
CN113905039A (en) * | 2021-09-30 | 2022-01-07 | 苏州挚途科技有限公司 | System upgrade file transmission method, device and system |
CN116661812A (en) * | 2022-11-25 | 2023-08-29 | 荣耀终端有限公司 | Equipment upgrading method, electronic equipment and system |
CN116661812B (en) * | 2022-11-25 | 2024-04-02 | 荣耀终端有限公司 | Equipment upgrading method, electronic equipment and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107179909B (en) | Software upgrading method and device and computer readable storage medium | |
CN110580167A (en) | system upgrading method, intelligent device and server | |
CN106325929B (en) | Firmware upgrading method, firmware upgrading device, refrigerator and server | |
CN110597542B (en) | Software automatic OTA (over the air) upgrading method and device and electronic equipment | |
CN101778376A (en) | Method and device for realizing wireless firmware update | |
CN109558160A (en) | Upgrade method, embedded system | |
TWI533216B (en) | Operating system updating method | |
CN103106092A (en) | System software updating method and device in terminal appliance | |
CN111309354A (en) | OTA (over the air) upgrading method and device of networking equipment | |
CN105517015A (en) | Upgrading method, device of wifi product by over the air OTA and terminal | |
CN107908417B (en) | Firmware upgrading method and electronic equipment | |
CN104918114A (en) | Method and device for upgrading operation system | |
CN106775873B (en) | Method and equipment for updating mobile phone software and acquiring patch file | |
CN110597545A (en) | Hot patch intelligent upgrading method and system based on OTA component | |
CN112416411B (en) | Upgrading method and device, equipment end, server and computer readable medium | |
US20160321057A1 (en) | Electronic apparatus | |
CN113626059B (en) | System upgrade method, camera and computer readable storage medium | |
CN105677409A (en) | System upgrading method and device | |
CN106708494B (en) | JAR upgrading method and device | |
CN106293790B (en) | application program upgrading method and device based on Firefox operating system | |
CN113138788A (en) | Air conditioner program upgrading method and air conditioner system | |
CN113032183A (en) | System management method, device, computer equipment and storage medium | |
JP2011175352A (en) | Firmware updating device, communication apparatus, electronic apparatus, firmware updating system, firmware updating method and program | |
CN114296764A (en) | System upgrading method and device, storage medium and electronic equipment | |
WO2019237222A1 (en) | System upgrading method, smart device, and server |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20191217 |