CN111752577A - System version upgrading method and device - Google Patents

System version upgrading method and device Download PDF

Info

Publication number
CN111752577A
CN111752577A CN201910242232.0A CN201910242232A CN111752577A CN 111752577 A CN111752577 A CN 111752577A CN 201910242232 A CN201910242232 A CN 201910242232A CN 111752577 A CN111752577 A CN 111752577A
Authority
CN
China
Prior art keywords
file
partition
upgrading
upgrade
capacity
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.)
Granted
Application number
CN201910242232.0A
Other languages
Chinese (zh)
Other versions
CN111752577B (en
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.)
Ubtech Robotics Corp
Original Assignee
Ubtech Robotics Corp
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 Ubtech Robotics Corp filed Critical Ubtech Robotics Corp
Priority to CN201910242232.0A priority Critical patent/CN111752577B/en
Publication of CN111752577A publication Critical patent/CN111752577A/en
Application granted granted Critical
Publication of CN111752577B publication Critical patent/CN111752577B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Landscapes

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

Abstract

The invention is suitable for the technical field of equipment updating, and provides a method and equipment for upgrading a system version, wherein the method comprises the following steps: adding a current version of a native system file to a root partition; installing the native system file in the root partition, and operating an equipment system corresponding to the native system file installed in the root partition; adjusting partition capacity of a system partition through the equipment system to match the partition capacity with file capacity of a system upgrade file; and downloading the system upgrading file in the adjusted system partition, and executing system version upgrading operation. According to the invention, the independently-operated equipment system is arranged under the root partition, so that the capacity of the system partition can be adjusted, the purpose of off-line upgrading is realized, the labor cost of upgrading operation is reduced, the equipment upgrading efficiency is improved, and the difficulty of upgrading operation is reduced.

Description

System version upgrading method and device
Technical Field
The invention belongs to the technical field of computers, and particularly relates to a method and equipment for upgrading a system version.
Background
With the continuous development of the equipment technology, developers can reinforce the functions of the original terminal equipment or adjust the original service logic by upgrading the equipment system, so that the terminal equipment can meet the use requirements of users. In the existing upgrading technology of the system version, when the original system partition is not enough to accommodate the newly released system upgrading file, maintenance personnel is required to carry out field upgrading on the terminal equipment, so that great labor cost is wasted, the upgrading efficiency of the equipment system is reduced, and the upgrading difficulty is increased.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method and an apparatus for upgrading a system version, so as to solve the problem that, in the existing technology for upgrading a system version, when an original system partition is insufficient to accommodate a newly released system upgrade file, a maintenance worker needs to perform field upgrade on a terminal device, which wastes a large labor cost, reduces the efficiency of upgrading an apparatus system, and increases the difficulty of upgrading.
A first aspect of an embodiment of the present invention provides a method for upgrading a system version, including:
adding a current version of a native system file to a root partition;
installing the native system file in the root partition, and operating an equipment system corresponding to the native system file installed in the root partition;
adjusting partition capacity of a system partition through the equipment system to match the partition capacity with file capacity of a system upgrade file;
and downloading the system upgrading file in the adjusted system partition, and executing system version upgrading operation.
A second aspect of an embodiment of the present invention provides an upgrade apparatus for a system version, including:
the native system downloading unit is used for adding the native system file of the current version to the root partition;
the native system installation unit is used for installing the native system files in the root partition and operating the equipment system corresponding to the native system files installed in the root partition;
the system partition adjusting unit is used for adjusting the partition capacity of the system partition through the equipment system so as to enable the partition capacity to be matched with the file capacity of the system upgrading file;
and the system upgrading execution unit is used for downloading the system upgrading file in the adjusted system partition and executing the system version upgrading operation.
A third aspect of embodiments of the present invention provides a terminal device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the steps of the first aspect when executing the computer program.
A fourth aspect of embodiments of the present invention provides a computer-readable storage medium storing a computer program which, when executed by a processor, performs the steps of the first aspect.
The method and the equipment for upgrading the system version provided by the embodiment of the invention have the following beneficial effects:
according to the embodiment of the invention, the original system file of the current version is downloaded in the root partition, so that the equipment system of the terminal equipment can be operated through the root partition, the partition capacity of the system partition is adjusted, the partition capacity of the system partition is matched with the system upgrading file, the normal operation of the terminal equipment system is ensured, the storage space of the terminal equipment is divided again, and after the system partition is adjusted, the system upgrading file can be downloaded to the system partition, and the version of the terminal equipment is upgraded. Compared with the existing upgrading technology of the system version, the method and the system do not need to carry out upgrading operation on the terminal equipment on site by maintenance personnel when the original system partition is insufficient to accommodate the newly released system upgrading file, and can install an equipment system capable of running independently under the root partition, so that the capacity of the system partition can be adjusted, the purpose of off-line upgrading is realized, the labor cost of upgrading operation is reduced, the equipment upgrading efficiency is improved, and the difficulty of upgrading operation is reduced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a flowchart of an implementation of a method for upgrading a system version according to a first embodiment of the present invention;
FIG. 2 is a schematic diagram of allocation of a memory partition according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating a detailed implementation of the system version upgrading method S104 according to a second embodiment of the present invention;
fig. 4 is a flowchart of a specific implementation of a system version upgrading method according to a third embodiment of the present invention;
fig. 5 is a flowchart of a detailed implementation of a system version upgrading method S101 according to a fourth embodiment of the present invention;
fig. 6 is a flowchart illustrating an implementation details of an upgrade method S1011 for a system version according to a fifth embodiment of the present invention;
fig. 7 is a block diagram illustrating an upgrade apparatus for a system version according to an embodiment of the present invention;
fig. 8 is a schematic diagram of a terminal device according to another embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The embodiment of the invention downloads the current version of the original system file in the root partition, thereby running the equipment system of the terminal equipment through the root partition, and adjusting the partition capacity of the system partition to match the partition capacity of the system partition with the system upgrade file, the normal operation of the terminal equipment system is ensured, the memory space of the terminal equipment is divided again, after the system partition is adjusted, the system upgrading file can be downloaded to the system partition, and the version upgrading is carried out on the terminal equipment, thereby solving the upgrading technology of the system version, when the original system partition is not enough to accommodate the newly released system upgrade file, maintenance personnel is needed to carry out field upgrade on the terminal equipment, therefore, the great labor cost is wasted, the efficiency of upgrading the equipment system is reduced, and the upgrading difficulty is increased.
In the embodiment of the invention, the execution subject of the process is the terminal equipment. The terminal devices include but are not limited to: the system comprises equipment capable of executing upgrading operation of system versions, such as a server, a computer, a smart phone and a tablet computer. Preferably, the terminal device may be an intelligent robot, the intelligent robot is configured with a data processing module based on a Raspberry Pi (RPI), and a user may perform a remote online upgrade operation of a system version on the Raspberry Pi processor by using the upgrade method of the system version provided in the embodiment of the present invention. Fig. 1 shows a flowchart of an implementation of the method for upgrading a system version according to the first embodiment of the present invention, which is detailed as follows:
in S101, the current version of the native system file is added to the root partition.
In this embodiment, if the terminal device detects that the system version upgrade process can be currently executed, the terminal device executes the relevant operation of S101. For example, the upper server issues a new version of the device system file, at this time, a system upgrade broadcast may be sent to all associated devices through the internet, for example, all intelligent robots of the device model related to the device system file, after receiving the system upgrade broadcast, the intelligent robot determines that the local system version needs to be upgraded, and detects whether the current network state matches a preset file download state, for example, whether the terminal device is in a WIFI interconnection state or whether a built-in internet access has been connected to a wired network, and if the preset file download state is satisfied, the operation of S101 is executed.
In this embodiment, the terminal device queries a system version number of the device system of the local system partition, and generates a download request instruction based on the system version number. The terminal equipment sends the downloading request instruction through a communication link established between the terminal equipment and the upper server, and then the upper server feeds back the native system file of the current version to the terminal equipment according to the system version number. Optionally, the terminal device may obtain the native system file of the current version through the upper server, and may also query the local storage module according to the file name of the native system file, because the terminal device may store the native system file in the local storage space after first installing the native system file, in this case, the native system file may be copied to the root partition of the terminal device in the local storage space without downloading from the upper server again, so that the obtaining rate of the native system file may be increased.
In this embodiment, the root partition is specifically a storage partition in the device storage module, where the storage partition is used to store a kernel of the operating system and related files used in a process of starting the system. The root partition reserves a corresponding storage space so that during the system startup process, the relevant intermediate processing file can be stored in the root partition, based on which, the terminal device can store the native system file in the root partition and execute the relevant operation of S102.
Optionally, in this embodiment, before downloading the native system file, the terminal device may determine the file capacity of the native system file, determine the size between the file capacity and the available storage capacity of the root partition, and if the file capacity of the native system file is less than or equal to the available storage capacity of the root partition, perform the relevant operation of S102; otherwise, if the file capacity of the native system file is larger than the available storage capacity of the root partition, deleting all the existing files such as the temporary files, the invalid files and the like in the root partition until the available storage capacity is larger than the file capacity of the native system file. Preferably, each type of existing file of the root partition is configured with a corresponding deletion priority, and the terminal device may delete each existing file in sequence according to the deletion priority until the available storage capacity is greater than or equal to the file capacity of the native system file.
Optionally, in this embodiment, if the terminal device detects that the total capacity of the root partition is smaller than the file capacity of the native system file, the terminal device may run the partition dividing function of the device system, and adjust the total capacity of the root partition, for example, reduce the partition capacity of the reserved partition, and increase the partition capacity of the root partition.
In S102, the native system file is installed in the root partition, and the device system corresponding to the native system file installed in the root partition is run.
In this embodiment, in order to ensure that the system partition can be adjusted online, the terminal device needs to reconstruct an independently operable device system in the root partition. Based on this, after the terminal device adds the native system file to the root partition, the native system file may be installed in the root partition, and then the root partition constructs a device system having the same function as the native device system of the system partition. Optionally, after the terminal device finishes installing the system file, the device system starting partition may be set, and the system starting partition is adjusted from the system partition to the root partition, so that when the terminal device starts next time, the native system file of the root partition is read, and the device system installed in the root partition is activated, without detecting the system file of the system partition first.
In this embodiment, after detecting that the native system file of the root partition is installed, the terminal device may restart the terminal device, so that the device system of the native system file in the root partition is run after the terminal device is restarted. Optionally, the terminal device may adjust the system start priority list of each partition, and set the system start priority of the root partition to the highest level, so that after the terminal device is restarted, according to the system start priority list, it is sequentially detected whether an installed device system exists in each partition, and the device system of the partition with the highest priority is started.
In S103, the partition capacity of the system partition is adjusted by the device system so that the partition capacity matches the file capacity of the system upgrade file.
In this embodiment, since the device system is installed in the root partition, the native system of the system partition is in an inactive state at this time, partition adjustment can be performed on the system partition, and the operation of the terminal device is not affected. The terminal device can detect the file capacity of the system upgrade file, so that the target capacity value of the system partition is determined based on the file capacity, and the partition capacity of the system partition is adjusted to the target capacity value.
In this embodiment, the specific way for the terminal device to adjust the capacity of the system partition may be: the terminal device formats the partition content of the system partition, acquires the partition initial value of the currently allocated system partition, calculates the difference capacity value based on the partition initial value and the target capacity value, extracts the storage space corresponding to the difference capacity value from the reserved partition, namely the unused partition, and adjusts the partition identification of the storage space to the system partition, thereby realizing the purpose of expanding the capacity of the system partition.
Optionally, the terminal device may be provided with a redundancy ratio, and since a series of intermediate files may be generated in the system partition during the operation of the device system, in order to ensure that the intermediate files are stored in the corresponding storage spaces, when the partition capacity of the system partition is adjusted, a redundancy ratio may be provided, and the target capacity value may be determined based on the file capacity of the system upgrade file and the redundancy ratio.
In S104, the system upgrade file is downloaded in the adjusted system partition, and a system version upgrade operation is performed.
In this embodiment, after the terminal device expands the system partition, the system partition is matched with the system version of the newly released version, based on which, the terminal device may download the system upgrade file from the upper server according to the system version number of the system upgrade file, and store the downloaded system upgrade in the system partition. After the system upgrade file is downloaded, the system version upgrade operation can be executed, a system installation interface is displayed, and corresponding system configuration operation is executed based on the extraction of the interface, so that the system version upgrade is completed.
For example, fig. 2 is a schematic diagram of allocation of a storage space according to an embodiment of the present invention. Fig. 2a is an allocation diagram of a storage space before system partition adjustment, and as can be seen from fig. 2a, a current version of a native system file is stored in a root partition, and an independently operable device system is constructed in the root partition; fig. 2b is an allocation diagram of the adjusted storage space of the system partition, and as can be seen from fig. 2b, the partition capacity of the system partition is increased, so as to achieve the purpose of expanding the capacity of the system partition, so that the file capacity of the system partition is matched with the file capacity of the system upgrade file.
It can be seen from the above that, in the method for upgrading a system version provided in the embodiment of the present invention, the native system file of the current version is downloaded in the root partition, so that the device system of the terminal device can be run through the root partition, and the partition capacity of the system partition is adjusted, so that the partition capacity of the system partition matches with the system upgrade file, thereby ensuring the normal operation of the terminal device system, and implementing repartitioning of the storage space of the terminal device, and after the system partition is adjusted, the system upgrade file can be downloaded to the system partition, and the version of the terminal device is upgraded. Compared with the existing upgrading technology of the system version, the method and the system do not need to carry out upgrading operation on the terminal equipment on site by maintenance personnel when the original system partition is insufficient to accommodate the newly released system upgrading file, and can install an equipment system capable of running independently under the root partition, so that the capacity of the system partition can be adjusted, the purpose of off-line upgrading is realized, the labor cost of upgrading operation is reduced, the equipment upgrading efficiency is improved, and the difficulty of upgrading operation is reduced.
Fig. 3 shows a flowchart of a specific implementation of the method S104 for upgrading a system version according to the second embodiment of the present invention. Referring to fig. 3, with respect to the embodiment shown in fig. 1, the method for upgrading a system version S104 provided in this embodiment includes: s1041 to S1044, detailed description is as follows:
further, the downloading the system upgrade file in the adjusted system partition and performing a system version upgrade operation includes:
in S1041, the current network state is detected.
In this embodiment, the terminal device may determine the current network state before executing the downloading operation. If the current network is in a networking state, that is, the terminal device can communicate with the upper server and has the capability of downloading the system upgrade file, the operation of S1042 is executed. Of course, the specific definition of the networking status may be set by the user, for example, the networking status may specifically define the networking mode and the network status parameter. For example, the networking mode may be a wired network state, a WIFI network state, a mobile data traffic state, or the like, and the network state parameter may be an operation parameter such as a current download speed, a bandwidth of a connected network, a packet loss rate, or the like. Under the condition, the terminal equipment acquires the network parameters of the current network, matches the network parameters with the preset parameters of the networking state, and identifies the current network state as the networking state if the network parameters are matched with the preset parameters corresponding to the networking state; otherwise, the current network state is identified as a non-networking state.
Optionally, in this embodiment, if the terminal device detects that the current network state is the non-networking state, the terminal device may output network state abnormality information to prompt a user to adjust the current access mode of the terminal device, and if the terminal device detects that the network state is changed, the terminal device may repeatedly execute the operation of S1041 to re-determine whether the current network state is the networking state.
Preferably, in this embodiment, the terminal device may further be configured with a reconnection period, and if the terminal device detects that the current network state is the non-networking state, the reconnection timer may be started, and when a count value of the reconnection timer is consistent with the reconnection period, the operation of S1041 is repeatedly performed. Preferably, after the reconnection fails, the terminal device may increase the cycle duration of the reconnection cycle according to a preset adjustment step length of the reconnection cycle, so that repeated frequent reconnection operations can be reduced, and energy consumption of the terminal device is reduced.
In 1042, if the network status is a networking status, the system upgrade file is downloaded from an upper server to the adjusted system partition.
In this embodiment, when detecting that the current network state is the networking state, the terminal device sends an upgrade file download instruction to the upper server, the upper server obtains, according to the device model of the terminal device, a system upgrade file with the latest system version of the device model and feeds the system upgrade file back to the terminal device, and the terminal device stores the system upgrade file returned by the upper server to the system partition with the partition capacity adjusted.
In S1043, if it is detected that the network state is changed and the system upgrade file is not completely downloaded, an offline upgrade prompt message is output to prompt the user to acquire the system upgrade file through the storage device in which the system upgrade file is stored.
In this embodiment, the terminal device may continuously monitor whether the current network state changes during the downloading process, and if it is detected that the network state changes, that is, the network is interrupted or the packet loss rate of the network is too high and is identified as a network anomaly, the operation of S1043 may be performed. When the terminal equipment judges that the network state changes and the downloading of the upgrade file fails, the terminal equipment outputs off-line upgrade prompt information on a display interface, namely, the terminal equipment indicates that the upgrade process can not be downloaded from an upper server. The user may connect a storage device storing the system upgrade file with a serial port of the terminal device, where the storage device includes but is not limited to: a mobile hard disk, a Secure Digital Memory Card (SD Card), and the like. In this case, after detecting that the serial port is accessed to the device, the terminal device may determine whether the storage device includes the system upgrade file, and if the storage device includes the system upgrade file, copy the system upgrade file from the storage device to the adjusted system partition.
In S1044, if it is detected that the system upgrade file is downloaded, installing the system upgrade file in the adjusted system partition.
In this embodiment, if the network state is not changed during the process of downloading the system upgrade file by the terminal device, the system upgrade file is downloaded to the adjusted system partition. In this case, the terminal device may start an installation process of the system upgrade file, and install the system upgrade file in the adjusted system partition. Preferably, the terminal device may set the system start priority of the system partition to the highest level, so that the system device of the system partition can be run first when the terminal device is started next time.
In the embodiment of the invention, the network state of the terminal equipment is detected, and the corresponding downloading operation is executed according to the network state, so that the integrity of the downloaded system upgrade file can be ensured, the abnormal condition of the system upgrade file is avoided, and the stability of the system is improved.
Fig. 4 is a flowchart illustrating a specific implementation of a method for upgrading a system version according to a third embodiment of the present invention. Referring to fig. 4, with respect to the embodiment described in fig. 1, the method for upgrading a system version provided in this embodiment further includes, after the adding the native system file of the current version to the root partition: s401 to S403 are specifically described as follows:
in S401, the native system file is parsed to generate an information digest of the native system file.
In this embodiment, after the current version of the native system file is downloaded, the terminal device needs to determine the validity of the native system file, and based on this, the terminal device may obtain the information digest of the native system file through a preset information digest extraction algorithm. Optionally, the information summary extraction algorithm may be: and extracting node characters of a plurality of preset position nodes, and arranging the node characters according to the sequence of the position nodes in the original system file, thereby obtaining the information abstract of the original system file. Through the information abstract, whether the native system file has data abnormality such as data loss, data serial and the like can be judged, and the legality of the native system file is guaranteed.
Because the terminal device needs to reconstruct the device system of the terminal device in the root partition, if the device system of the system partition is deleted and the device system installed in the root partition is abnormal, the device system which can normally run does not exist in the terminal device, so that the terminal device can be in an unable starting state, and the robustness of the terminal device is reduced. Based on this, the terminal device needs to determine the validity of the acquired native system file, so as to avoid the above situation.
In this embodiment, the terminal device may obtain a legal digest of the native system file, where the legal digest may be stored in a local storage unit of the terminal device or downloaded from an upper server. If the generated information abstract is matched with the legal abstract, executing the relevant operation of S402; otherwise; if the information does not match the legal digest, the relevant operation of S403 is performed.
In S402, if the information digest matches a legal digest preset in the native system file, installing the native system file in the root partition is executed, and an equipment system corresponding to the native system file installed in the root partition is operated.
In this embodiment, if the terminal device detects that the information digest matches a preset legal digest of the native system file, it indicates that there is no abnormality in the data in the native system file obtained this time, and may execute a subsequent installation process of the native system file, where a specific installation process is consistent with the relevant operation of S102, and specific descriptions may refer to the relevant description of S102, and are not described herein again.
In S403, if the information digest does not match the legal digest, returning to execute the adding of the native system file of the current version to the root partition.
In this embodiment, if the terminal device detects that the information digest is not matched with the legal digest, it indicates that there is a data abnormality in the obtained native system file, which may be due to network conditions such as network fluctuation, where part of the data in the native system file is not consistent with the legal native system file.
Preferably, in this case, the terminal device may obtain an obtaining route for obtaining the native system file this time, and obtain the native system file from another obtaining route. For example, if the manner of obtaining the native system file this time is to copy the stored native system file from the local storage unit to the root partition, the native system file may be downloaded from the upper server when the operation of S403 is executed; if the manner of obtaining the native system file is to download the native system file from the upper server, in the operation of S403, the native system file may be downloaded from a publishing platform of another system file, and the native system file may be downloaded from a plurality of different obtaining channels, so that the success rate of downloading the native system file may be improved.
Preferably, the terminal device may be provided with a maximum download threshold, and if the number of times of re-executing S403 is greater than the maximum download threshold, the native system download failure information may be output, so that the user manually acquires the native system file.
In the embodiment of the invention, the legality of the acquired native system file is determined by acquiring the information abstract of the native system file and judging whether the information abstract is matched with the legal abstract, so that the stability and the success rate of the upgrading operation can be improved.
Fig. 5 shows a flowchart of a specific implementation of the method S101 for upgrading a system version according to a fourth embodiment of the present invention. Referring to fig. 5, with respect to the embodiments described in fig. 1 to 4, the method S101 for upgrading a system version provided in this embodiment includes: s1011 to S1012, detailed description is as follows:
further, the adding the current version of the native system file to the root partition includes:
in S1011, if it is detected that a preset system upgrade condition is satisfied, the file capacity of the system upgrade file is determined.
In this embodiment, the terminal device sets a system upgrade condition, where the system upgrade condition may be an event trigger condition or a time trigger condition. If the system upgrade condition is an event trigger condition, the terminal device may detect whether the operation parameter meets a trigger parameter configured by the event trigger condition, for example, whether a version upgrade request sent by the upper server is received, or whether a newly released system version exists in the upper server is detected. If the system upgrade condition is a time trigger condition, the terminal device may detect whether the current time meets a preset system upgrade period, and if the current time reaches the preset system upgrade period, execute the relevant operation of S1011.
In this embodiment, if the terminal device detects that the current time meets a preset system upgrade condition, it will execute an upgrade process of a system version and obtain a file capacity of the system upgrade file. If the file capacity is less than or equal to the partition capacity of the system partition, directly downloading the system upgrading file to the system partition, and carrying out system version upgrading operation; if the file capacity is larger than the partition capacity of the system partition, the relevant operation of S1012 is performed.
In S1012, if the file capacity is greater than the partition capacity of the system partition, the adding of the current version of the native system file to the root partition is performed.
In this embodiment, the operation related to S1012 is the same as the operation related to S101, and for the specific description, reference may be made to the related explanation of S101, which is not described herein again.
In the embodiment of the invention, when the preset system upgrading condition is met and the partition capacity of the system partition is smaller than the file capacity of the system upgrading file, the partition dividing process of the system partition is carried out, so that the accuracy and the success rate of the upgrading operation of the system version can be improved.
Fig. 6 shows a flowchart of a specific implementation of the method S1011 for upgrading a system version according to a fifth embodiment of the present invention. Referring to fig. 6, with respect to the embodiment shown in fig. 5, the method for upgrading a system version S1011 provided in this embodiment includes: s601 to S603 are specifically detailed as follows:
further, if it is detected that a preset system upgrade condition is met, determining a file capacity of the system upgrade file includes:
in S601, if a version upgrade request sent by the upper server is received, upgrade prompt information is displayed.
In this embodiment, when a new system version is released, the upper server may broadcast the new system version to all terminal devices associated with the system version, and send a version upgrade request to each terminal device. If the terminal device receives the version upgrade request broadcast by the upper server, the terminal device executes the operation of S601. The terminal device may extract a system version number to be upgraded from the version upgrade request, and preferably, may also extract upgrade content information, generate upgrade prompt information based on the system version number and the upgrade content information, and output the upgrade prompt information on a local display interface, so that a user may know an upgrade event through the display interface.
In S602, a voice instruction fed back based on the upgrade prompt information is received, and instruction content of the voice instruction is determined.
In this embodiment, after the terminal device displays the upgrade prompt information, the microphone module is turned on to collect the sound information of the current environment, and if it is detected that the sound signal of the environment is greater than the preset decibel threshold, it is determined that the user is inputting a voice instruction, and collects the voice signal in the current environment, and generates a voice instruction according to the voice signal.
In this embodiment, the terminal device may perform voice analysis on the voice instruction, determine instruction content included in the voice instruction, and determine whether the instruction content is an upgrade confirmation instruction, if yes, perform the relevant operation of S603; otherwise, if the instruction content is the upgrade refusal instruction, the upgrade operation is ended.
In S603, if the instruction content is an upgrade confirmation instruction, the file capacity of the system upgrade file is determined.
In this embodiment, if it is detected that the user agrees to perform the upgrade operation of the system version, the relevant operation of S1011 is performed.
In the embodiment of the invention, the upgrading prompt information is output through the display module, and the voice instruction fed back by the user based on the upgrading prompt information is collected, so that the user can conveniently confirm the upgrading operation, and the operation efficiency of the upgrading operation is improved.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
Fig. 7 is a block diagram illustrating a configuration of an upgrade apparatus for a system version according to an embodiment of the present invention, where the upgrade apparatus for a system version includes units to perform steps in the corresponding embodiment of fig. 1. Please refer to fig. 1 and fig. 1 for the corresponding description of the embodiment. For convenience of explanation, only the portions related to the present embodiment are shown.
Referring to fig. 7, the system version upgrading apparatus includes:
a native system download unit 71, configured to add a current version of a native system file to the root partition;
a native system installation unit 72, configured to install the native system file in the root partition, and run an equipment system corresponding to the native system file installed in the root partition;
a system partition adjusting unit 73, configured to adjust, by the device system, partition capacity of a system partition so that the partition capacity matches file capacity of a system upgrade file;
and the system upgrade executing unit 74 is configured to download the system upgrade file in the adjusted system partition, and execute a system version upgrade operation.
Optionally, the system upgrade executing unit 74 includes:
a network state detection unit for detecting the current network state;
the upgrade file downloading unit is used for downloading the system upgrade file from an upper server to the adjusted system partition if the network state is the networking state;
a download interruption response unit, configured to output an offline upgrade prompting message if it is detected that the network state changes and the system upgrade file is not completely downloaded, so as to prompt a user to acquire the system upgrade file through a storage device in which the system upgrade file is stored;
and the download completion response unit is used for installing the system upgrade file in the adjusted system partition if the download completion of the system upgrade file is detected.
Optionally, the apparatus for upgrading the system version further includes:
the information abstract generating unit is used for analyzing the native system file to generate an information abstract of the native system file;
the information abstract matching unit is used for installing the native system file in the root partition and operating the equipment system corresponding to the native system file installed in the root partition if the information abstract is matched with a legal abstract preset in the native system file;
and the information abstract exception unit is used for returning and executing the addition of the native system file of the current version to the root partition if the information abstract is not matched with the legal abstract.
Optionally, the native system download unit 71 includes:
the file capacity determining unit is used for determining the file capacity of the system upgrading file if the file capacity determining unit detects that the preset system upgrading condition is met;
and the system partition capacity expansion response unit is used for adding the native system file of the current version to the root partition if the file capacity is larger than the partition capacity of the system partition.
Optionally, the file capacity determination unit includes:
the upgrade prompt output unit is used for displaying upgrade prompt information if receiving a version upgrade request sent by an upper server;
the instruction content extraction unit is used for receiving a voice instruction fed back based on the upgrade prompt information and determining the instruction content of the voice instruction;
and the upgrade confirmation response unit is used for executing the determination of the file capacity of the system upgrade file if the instruction content is an upgrade confirmation instruction.
Therefore, the upgrading device of the system version provided by the embodiment of the invention can also install an equipment system capable of running independently under the root partition without needing maintenance personnel to carry out upgrading operation on the terminal equipment on site when the original system partition is insufficient to accommodate the newly released system upgrading file, thereby carrying out capacity adjustment on the system partition, achieving the purpose of off-line upgrading, reducing the labor cost of upgrading operation, improving the equipment upgrading efficiency and reducing the difficulty of upgrading operation.
Fig. 8 is a schematic diagram of a terminal device according to another embodiment of the present invention. As shown in fig. 8, the terminal device 8 of this embodiment includes: a processor 80, a memory 81, and a computer program 82, such as a system version upgrade program, stored in the memory 81 and operable on the processor 80. The processor 80, when executing the computer program 82, implements the steps in the above-described method embodiments of upgrading system versions, such as S101 to S104 shown in fig. 1. Alternatively, the processor 80, when executing the computer program 82, implements the functions of the units in the device embodiments described above, such as the functions of the modules 71 to 74 shown in fig. 7.
Illustratively, the computer program 82 may be divided into one or more units, which are stored in the memory 81 and executed by the processor 80 to accomplish the present invention. The one or more units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of the computer program 82 in the terminal device 8. For example, the computer program 82 may be divided into a native system download unit, a native system installation unit, a system partition adjustment unit, and a system upgrade execution unit, each of which functions as described above.
The terminal device 8 may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices. The terminal device may include, but is not limited to, a processor 80, a memory 81. Those skilled in the art will appreciate that fig. 8 is merely an example of a terminal device 8 and does not constitute a limitation of terminal device 8 and may include more or fewer components than shown, or some components may be combined, or different components, e.g., the terminal device may also include input-output devices, network access devices, buses, etc.
The Processor 80 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 81 may be an internal storage unit of the terminal device 8, such as a hard disk or a memory of the terminal device 8. The memory 81 may also be an external storage device of the terminal device 8, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the terminal device 8. Further, the memory 81 may also include both an internal storage unit and an external storage device of the terminal device 8. The memory 81 is used for storing the computer program and other programs and data required by the terminal device. The memory 81 may also be used to temporarily store data that has been output or is to be output.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (10)

1. A method for upgrading a system version, comprising:
adding a current version of a native system file to a root partition;
installing the native system file in the root partition, and operating an equipment system corresponding to the native system file installed in the root partition;
adjusting partition capacity of a system partition through the equipment system to match the partition capacity with file capacity of a system upgrade file;
and downloading the system upgrading file in the adjusted system partition, and executing system version upgrading operation.
2. The upgrading method according to claim 1, wherein the downloading the system upgrade file and performing a system version upgrading operation on the adjusted system partition comprises:
detecting a current network state;
if the network state is a networking state, downloading the system upgrading file from an upper server to the adjusted system partition;
if the network state is detected to be changed and the system upgrade file is not downloaded completely, outputting offline upgrade prompt information to prompt a user to acquire the system upgrade file through a storage device in which the system upgrade file is stored;
and if the system upgrading file is detected to be downloaded completely, installing the system upgrading file in the adjusted system partition.
3. The upgrade method according to claim 1, further comprising, after the adding the current version of the native system file to the root partition:
analyzing the native system file to generate an information abstract of the native system file;
if the information abstract is matched with a legal abstract preset in the native system file, executing installation of the native system file in the root partition, and operating an equipment system corresponding to the native system file installed in the root partition;
and if the information abstract is not matched with the legal abstract, returning to execute the addition of the native system file of the current version to the root partition.
4. The upgrade method according to any one of claims 1 to 3, wherein the adding the current version of the native system file to the root partition comprises:
if the file capacity of the system upgrading file is detected to meet the preset system upgrading condition, determining the file capacity of the system upgrading file;
and if the file capacity is larger than the partition capacity of the system partition, adding the native system file of the current version to a root partition.
5. The upgrading method according to any one of claim 4, wherein determining the file capacity of the system upgrade file if it is detected that a preset system upgrade condition is met comprises:
if a version upgrading request sent by an upper server is received, upgrading prompt information is displayed;
receiving a voice instruction based on the upgrade prompt information feedback, and determining the instruction content of the voice instruction;
and if the instruction content is an upgrading confirmation instruction, executing the file capacity of the system upgrading file.
6. An apparatus for upgrading a system version, comprising:
the native system downloading unit is used for adding the native system file of the current version to the root partition;
the native system installation unit is used for installing the native system files in the root partition and operating the equipment system corresponding to the native system files installed in the root partition;
the system partition adjusting unit is used for adjusting the partition capacity of the system partition through the equipment system so as to enable the partition capacity to be matched with the file capacity of the system upgrading file;
and the system upgrading execution unit is used for downloading the system upgrading file in the adjusted system partition and executing the system version upgrading operation.
7. The upgrade apparatus according to claim 6, wherein the system upgrade performing unit includes:
a network state detection unit for detecting the current network state;
the upgrade file downloading unit is used for downloading the system upgrade file from an upper server to the adjusted system partition if the network state is the networking state;
a download interruption response unit, configured to output an offline upgrade prompting message if it is detected that the network state changes and the system upgrade file is not completely downloaded, so as to prompt a user to acquire the system upgrade file through a storage device in which the system upgrade file is stored;
and the download completion response unit is used for installing the system upgrade file in the adjusted system partition if the download completion of the system upgrade file is detected.
8. The upgrade apparatus according to claim 6, wherein the system version upgrade apparatus further comprises:
the information abstract generating unit is used for analyzing the native system file to generate an information abstract of the native system file;
the information abstract matching unit is used for installing the native system file in the root partition and operating the equipment system corresponding to the native system file installed in the root partition if the information abstract is matched with a legal abstract preset in the native system file;
and the information abstract exception unit is used for returning and executing the addition of the native system file of the current version to the root partition if the information abstract is not matched with the legal abstract.
9. A terminal device, characterized in that the terminal device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, the processor executing the computer program with the steps of the method according to any of claims 1 to 5.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 5.
CN201910242232.0A 2019-03-28 2019-03-28 Upgrading method and equipment for system version Active CN111752577B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910242232.0A CN111752577B (en) 2019-03-28 2019-03-28 Upgrading method and equipment for system version

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910242232.0A CN111752577B (en) 2019-03-28 2019-03-28 Upgrading method and equipment for system version

Publications (2)

Publication Number Publication Date
CN111752577A true CN111752577A (en) 2020-10-09
CN111752577B CN111752577B (en) 2023-07-18

Family

ID=72672044

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910242232.0A Active CN111752577B (en) 2019-03-28 2019-03-28 Upgrading method and equipment for system version

Country Status (1)

Country Link
CN (1) CN111752577B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112783535A (en) * 2021-03-10 2021-05-11 广州优胜汽车科技有限公司 Firmware upgrading method, embedded device and storage medium
CN112817625A (en) * 2021-01-29 2021-05-18 青岛海信移动通信技术股份有限公司 System upgrading method and device, electronic equipment and storage medium
CN113032183A (en) * 2021-03-24 2021-06-25 西安闻泰信息技术有限公司 System management method, device, computer equipment and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101436141A (en) * 2008-11-21 2009-05-20 深圳创维数字技术股份有限公司 Firmware upgrading and encapsulating method and device based on digital signing
CN102033822A (en) * 2010-12-01 2011-04-27 北京同有飞骥科技股份有限公司 Method for binding storage operating system and hardware system
CN103309713A (en) * 2013-06-25 2013-09-18 北京小米科技有限责任公司 System upgrading method, device and equipment
US20150331692A1 (en) * 2014-05-13 2015-11-19 Zscaler, Inc. Systems and methods for live operating system upgrades of inline cloud servers
CN105446772A (en) * 2015-11-16 2016-03-30 青岛海信移动通信技术股份有限公司 System upgrading method and apparatus
CN105487903A (en) * 2015-12-04 2016-04-13 小米科技有限责任公司 System upgrading method and device
CN106484450A (en) * 2015-08-28 2017-03-08 青岛海信移动通信技术股份有限公司 A kind of method for upgrading software and device
CN108595113A (en) * 2018-03-22 2018-09-28 维沃移动通信有限公司 A kind of method and terminal of subregion adjustment
CN109086078A (en) * 2017-06-14 2018-12-25 展讯通信(上海)有限公司 Android system upgrade method, device, server and mobile terminal

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101436141A (en) * 2008-11-21 2009-05-20 深圳创维数字技术股份有限公司 Firmware upgrading and encapsulating method and device based on digital signing
CN102033822A (en) * 2010-12-01 2011-04-27 北京同有飞骥科技股份有限公司 Method for binding storage operating system and hardware system
CN103309713A (en) * 2013-06-25 2013-09-18 北京小米科技有限责任公司 System upgrading method, device and equipment
US20150331692A1 (en) * 2014-05-13 2015-11-19 Zscaler, Inc. Systems and methods for live operating system upgrades of inline cloud servers
CN106484450A (en) * 2015-08-28 2017-03-08 青岛海信移动通信技术股份有限公司 A kind of method for upgrading software and device
CN105446772A (en) * 2015-11-16 2016-03-30 青岛海信移动通信技术股份有限公司 System upgrading method and apparatus
CN105487903A (en) * 2015-12-04 2016-04-13 小米科技有限责任公司 System upgrading method and device
CN109086078A (en) * 2017-06-14 2018-12-25 展讯通信(上海)有限公司 Android system upgrade method, device, server and mobile terminal
CN108595113A (en) * 2018-03-22 2018-09-28 维沃移动通信有限公司 A kind of method and terminal of subregion adjustment

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112817625A (en) * 2021-01-29 2021-05-18 青岛海信移动通信技术股份有限公司 System upgrading method and device, electronic equipment and storage medium
CN112817625B (en) * 2021-01-29 2024-03-08 青岛海信移动通信技术有限公司 System upgrading method and device, electronic equipment and storage medium
CN112783535A (en) * 2021-03-10 2021-05-11 广州优胜汽车科技有限公司 Firmware upgrading method, embedded device and storage medium
CN113032183A (en) * 2021-03-24 2021-06-25 西安闻泰信息技术有限公司 System management method, device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN111752577B (en) 2023-07-18

Similar Documents

Publication Publication Date Title
CN107346252B (en) Application updating method and device
US9485134B2 (en) Managing configurations of system management agents in a distributed environment
US20150220326A1 (en) Mobile Terminal and Software Upgrade Method Thereof
CN111752577B (en) Upgrading method and equipment for system version
CN111367545A (en) Terminal upgrading method and device, server, terminal equipment and readable storage medium
CN107291481B (en) Component updating method, device and system
CN107066300B (en) Firmware upgrading method of storage device and storage device
CN110543327B (en) Service component multiplexing method, device, computer equipment and storage medium
US10404568B2 (en) Agent manager for distributed transaction monitoring system
KR101541112B1 (en) FOTA system and the method
CN110968331B (en) Method and device for running application program
WO2022142153A1 (en) Electricity meter upgrading method and system, smart meter, and storage medium
CN109885332A (en) Image quality chip software upgrade method, device, display equipment and storage medium
CN103309712A (en) Mobile phone software upgrade method and system
CN109002305B (en) Method and system for updating equipment program
CN110045969B (en) Application program installation method, server, system, device and storage medium
CN112968793B (en) Equipment upgrading method, device, equipment and storage medium based on Internet of things
CN114221866A (en) Method, device and medium for upgrading terminal
CN106293814B (en) Upgrading method and device
CN111984287A (en) Equipment upgrading method and system
CN111679842B (en) Application program hot update processing method, device and system
CN117369844A (en) OTA upgrading method, device, equipment and storage medium
CN115878138A (en) Application pre-downloading method and device, computer and storage medium
CN108989428A (en) Bluetooth terminal upgrade method, server, computer readable storage medium and system
CN104348646A (en) Configuration data processing method, device and system

Legal Events

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