[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN111752577B - Upgrading method and equipment for system version - Google Patents

Upgrading method and equipment for system version Download PDF

Info

Publication number
CN111752577B
CN111752577B CN201910242232.0A CN201910242232A CN111752577B CN 111752577 B CN111752577 B CN 111752577B CN 201910242232 A CN201910242232 A CN 201910242232A CN 111752577 B CN111752577 B CN 111752577B
Authority
CN
China
Prior art keywords
file
partition
upgrade
capacity
upgrading
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910242232.0A
Other languages
Chinese (zh)
Other versions
CN111752577A (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.)
Shenzhen Ubtech Technology Co ltd
Youbisxuan Shenyang Innovation Technology Co ltd
Original Assignee
Shenzhen Ubtech Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Ubtech Technology Co ltd filed Critical Shenzhen Ubtech Technology Co ltd
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

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 applicable to 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 the current version of the native system file to the root partition; installing the original system file in the root partition, and operating an equipment system corresponding to the original system file installed in the root partition; adjusting the partition capacity of a system partition through the equipment system so as to enable the partition capacity to be matched with the file capacity of a system upgrading file; and downloading the system upgrading file in the adjusted system partition, and executing the system version upgrading operation. According to the invention, the independently-operable 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

Upgrading method and equipment for system version
Technical Field
The invention belongs to the technical field of computers, and particularly relates to a system version upgrading method and equipment.
Background
With the continuous development of equipment technology, developers can reinforce the functions of original terminal equipment or adjust the original business logic in an equipment system upgrading mode, 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 insufficient to accommodate the newly released system upgrading file, maintenance personnel are required to carry out field upgrading on the terminal equipment, so that larger labor cost is required, the upgrading efficiency of the equipment system is reduced, and the upgrading difficulty is increased.
Disclosure of Invention
In view of this, the embodiments of the present invention provide a method and an apparatus for upgrading a system version, so as to solve the problem that when an existing system partition is insufficient to accommodate a newly issued system upgrade file, maintenance personnel is required to perform field upgrade on a terminal device, thereby wasting greater labor cost, reducing efficiency of device system upgrade, and increasing upgrade difficulty.
A first aspect of an embodiment of the present invention provides a method for upgrading a system version, including:
adding the current version of the native system file to the root partition;
installing the original system file in the root partition, and operating an equipment system corresponding to the original system file installed in the root partition;
adjusting the partition capacity of a system partition through the equipment system so as to enable the partition capacity to be matched with the file capacity of a system upgrading file;
and downloading the system upgrading file in the adjusted system partition, and executing the system version upgrading operation.
A second aspect of an embodiment of the present invention provides a system version upgrade apparatus, including:
a native system downloading unit for adding a native system file of a current version to the root partition;
A native system installation unit, configured to install the native system file in the root partition, and operate an equipment system corresponding to the native system file 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 upgrade execution unit is used for downloading the system upgrade file in the adjusted system partition and executing the system version upgrade operation.
A third aspect of the embodiments of the present invention provides a terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the steps of the first aspect when executing the computer program.
A fourth aspect of the embodiments of the present invention provides a computer readable storage medium storing a computer program which, when executed by a processor, implements the steps of the first aspect.
The method and the device for upgrading the system version provided by the embodiment of the invention have the following beneficial effects:
The embodiment of the invention downloads the original system file of the current version 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 so as to enable the partition capacity of the system partition to be matched with the system upgrade file, ensuring the normal running of the terminal equipment system, and realizing the repartition of the storage space of the terminal equipment, and after the system partition is adjusted, downloading the system upgrade file to the system partition and upgrading the version of the terminal equipment. Compared with the upgrading technology of the existing system version, the invention does not need maintenance personnel to perform upgrading operation on site on the terminal equipment when the condition that the original system partition is insufficient to accommodate the newly released system upgrading file is faced, and can install an independently operated equipment system under the root partition, thereby being capable of performing capacity adjustment on the system partition, realizing the purpose of off-line upgrading, reducing the labor cost of the upgrading operation, improving the equipment upgrading efficiency and reducing the difficulty of the upgrading operation.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of a system version upgrade method according to a first embodiment of the present invention;
FIG. 2 is a schematic diagram illustrating allocation of memory partitions according to one embodiment of the present invention;
fig. 3 is a flowchart of an implementation of a system version upgrade method S104 according to a second embodiment of the present invention;
FIG. 4 is a flowchart of a system version upgrade method according to a third embodiment of the present invention;
fig. 5 is a flowchart of an implementation of a system version upgrading method S101 according to a fourth embodiment of the present invention;
fig. 6 is a flowchart of an implementation of a system version upgrading method S1011 according to a fifth embodiment of the present invention;
FIG. 7 is a block diagram of a system version upgrade apparatus according to one 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
The present invention will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present invention more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
The embodiment of the invention downloads the original system file of the current version 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 so as to ensure that the partition capacity of the system partition is matched with the system upgrade file, ensuring the normal running of the terminal equipment system and realizing the repartitioning of the storage space of the terminal equipment, downloading the system upgrade file to the system partition after the system partition is adjusted, and carrying out version upgrade on the terminal equipment.
In the embodiment of the present invention, the execution subject of the flow is a terminal device. The terminal device includes, but is not limited to: and the server, the computer, the smart phone, the tablet personal computer and other devices capable of performing upgrading operation of the system version. Preferably, the terminal device may be an intelligent robot, where 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 through the upgrade method of the system version provided by the embodiment of the present invention. Fig. 1 shows a flowchart of an implementation of a system version upgrade method according to a first embodiment of the present invention, which is described in detail below:
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 procedure can be executed currently, the terminal device will execute the related 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 the associated devices through the internet, for example, all the intelligent robots of the device model related to the device system file, after receiving the system upgrade broadcast, the intelligent robots determine that the local system version needs to be upgraded, and detect whether the current network state matches with the preset file download state, for example, whether the terminal device is in a state of interconnection with WIFI, or whether the built-in network port has been connected to a wired network, and if the preset file download state is satisfied, the operation of S101 is performed.
In this embodiment, the terminal device queries the system version number of the device system of the local system partition, and generates the 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 original system file of the current version to the terminal equipment according to the system version number. Optionally, the terminal device may obtain the current version of the native system file through the upper server, and query the local storage module according to the file name of the native system file, where the terminal device may store the native system file in the local storage space after first installing the native system file, and in this case, it is not necessary to download the native system file again from the upper server, but may copy the root partition of the native system file to the terminal device in the local storage space, so that the obtaining rate of the native system file may be improved.
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 that are used in the process of starting the system. The root partition may be reserved with a corresponding storage space so that the relevant intermediate processing file may be stored in the root partition during the system start-up, based on which the terminal device may store the native system file in the root partition and perform the relevant operation of S102.
Optionally, in this embodiment, before downloading the native system file, the terminal device may determine a file capacity of the native system file, determine a size between the file capacity and an 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, execute a related operation of S102; otherwise, if the file capacity of the original system file is larger than the available storage capacity of the root partition, deleting all the temporary files, invalid files and other existing files in the root partition until the available storage capacity is larger than the file capacity of the original system file. Preferably, each type of existing file of the root partition is configured with a corresponding deletion priority, and the terminal device sequentially deletes each existing file according to the order of the deletion priorities until the available storage capacity is greater than or equal to the file capacity of the original 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 operate the partition dividing function of the device system, 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 a device system corresponding to the native system file installed in the root partition is operated.
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 adding the native system file to the root partition, the terminal device may install the native system file 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 installs the system file, a device system start partition may be set, and the system start partition is adjusted to be the root partition by the system partition, so that when the terminal device is started next time, the terminal device will read the original system file of the root partition, activate the device system installed in the root partition, and will not detect the system file of the system partition first.
In this embodiment, after detecting that the native system file of the root partition has been installed, the terminal device may restart the terminal device, so that the terminal device may run the device system of the native system file under the root partition after restarting. Optionally, the terminal device may adjust a system start priority list of each partition, and set the system start priority of the root partition to be the highest level, so that after restarting, the terminal device sequentially detects whether an installed device system exists in each partition according to the system start priority list, and starts the device system of the partition with the highest priority.
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, and partition adjustment can be performed on the system partition, and the operation of the terminal device will not be affected. The terminal device may detect a file capacity of the system upgrade file, thereby determining a target capacity value of the system partition based on the file capacity, and adjusting the partition capacity of the system partition to the target capacity value.
In this embodiment, a specific manner for the terminal device to adjust the partition capacity of the system may be: the terminal equipment performs formatting operation on the partition content of the system partition, acquires the partition initial value of the currently allocated system partition, calculates a differential capacity value based on the partition initial value and the target capacity value, extracts a storage space corresponding to the differential capacity value from a reserved partition, namely a unused partition, and adjusts the partition identification of the storage space into the system partition, thereby realizing the purpose of expanding the capacity of the system partition.
Alternatively, 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 space, when the partition capacity of the system partition is adjusted, a redundancy ratio may be provided, and the target capacity value is 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, a system version upgrade operation can be executed, a system installation interface is displayed, and a corresponding system configuration operation is executed based on the extraction of the interface to complete the system version upgrade.
For example, fig. 2 is a schematic diagram illustrating allocation of storage space according to an embodiment of the invention. In fig. 2, a is an allocation chart of storage space before system partition adjustment, and as can be seen from a in fig. 2, a current version of a native system file is stored in a root partition, and an independently operable device system is built in the root partition; b in fig. 2 is an allocation chart of the storage space after the system partition is adjusted, and as can be seen from b in fig. 2, the partition capacity of the system partition is increased, so that the capacity expansion of the system partition is realized, and the system partition is matched with the file capacity of the system upgrade file.
It can be seen from the foregoing that, in the upgrade method of a system version provided by the embodiment of the present invention, the device system of the terminal device may be operated by the root partition by downloading the native system file of the current version in the root partition, and the partition capacity of the system partition may be adjusted so as to match the partition capacity of the system partition with the system upgrade file, so that the normal operation of the terminal device system is ensured, the storage space of the terminal device is re-divided, and after the adjustment of the system partition is completed, the system upgrade file may be downloaded to the system partition, and the version of the terminal device is upgraded. Compared with the upgrading technology of the existing system version, the invention does not need maintenance personnel to perform upgrading operation on site on the terminal equipment when the condition that the original system partition is insufficient to accommodate the newly released system upgrading file is faced, and can install an independently operated equipment system under the root partition, thereby being capable of performing capacity adjustment on the system partition, realizing the purpose of off-line upgrading, reducing the labor cost of the upgrading operation, improving the equipment upgrading efficiency and reducing the difficulty of the upgrading operation.
Fig. 3 is a flowchart showing a specific implementation of a system version upgrade method S104 according to a second embodiment of the present invention. Referring to fig. 3, with respect to the embodiment described in fig. 1, the method S104 for upgrading a system version provided in this embodiment includes: s1041 to S1044 are specifically described below:
further, the downloading the system upgrade file by the adjusted system partition, and executing a system version upgrade operation, including:
in S1041, a current network state is detected.
In this embodiment, before the terminal device performs the downloading operation, the terminal device determines the current network state. 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 state may be set by the user, e.g., the networking state may specifically define the networking manner and network state parameters. 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. In this case, the terminal device may acquire network parameters of the current network, match with each preset parameter of the networking state, and identify the current network state as the networking state if each network parameter matches with the preset parameter 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 a non-networking state, the terminal device may output abnormal network state information to prompt the user to adjust the current access mode of the terminal device, and if the terminal device detects that the network state changes, the terminal device repeatedly executes the operation of S1041 to re-determine whether the current network state is a 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 a non-networking state, the terminal device starts a reconnection timer, and when the count value of the reconnection timer is consistent with the reconnection period, the operation of S1041 is repeatedly performed. Preferably, if the reconnection fails, the terminal device may increase the period duration of the reconnection period according to the preset adjustment step length of the reconnection period, so as to reduce repeated frequent reconnection operations, and reduce energy consumption of the terminal device.
In 1042, if the network state is a networking state, the system upgrade file is downloaded from an upper server to the adjusted system partition.
In this embodiment, when the terminal device detects that the current network state is a networking state, an upgrade file downloading instruction is sent 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 the network status change is detected and the system upgrade file is not downloaded, an offline upgrade prompt message is output to prompt the user to acquire the system upgrade file through the storage device storing the system upgrade file.
In this embodiment, the terminal device continuously monitors whether the current network state changes during the downloading process, and if it detects that the network state changes, i.e. the network is interrupted or the packet loss rate of the network is too high and is identified as a network abnormality, the operation of S1043 is performed. When the terminal equipment judges that the network state is changed and the upgrade file is failed to download, the off-line upgrade prompt information is output on the display interface, namely the upgrade flow cannot be downloaded from the upper server. The user may connect a storage device storing the system upgrade file to a serial port of the terminal device, including but not limited to: mobile hard disk, secure digital card (Secure Digital Memory Card, SD card), etc. In this case, after detecting that the serial port is connected to the device, the terminal device determines whether the storage device contains a system upgrade file, and if the storage device contains the system upgrade file, copies 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, the system upgrade file is installed in the adjusted system partition.
In this embodiment, if the network state of the terminal device is not changed during the process of downloading the system upgrade file, and the system upgrade file is already downloaded to the adjusted system partition. In this case, the terminal device may start the installation procedure 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-up priority of the system partition to the highest level, so that the system device of the system partition can be operated first when the terminal device is started up next time.
In the embodiment of the invention, the integrity of the downloaded system upgrade file can be ensured by detecting the network state of the terminal equipment and executing the corresponding downloading operation according to the network state, thereby avoiding the abnormal condition of the system upgrade file and improving the stability of the system.
Fig. 4 is a flowchart of a specific implementation of a system version upgrade method 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 current version of the native system file to the root partition: s401 to S403 are specifically described below:
In S401, the native system file is parsed, and an information digest of the native system file is generated.
In this embodiment, after the terminal device finishes downloading the current version of the native system file, the validity of the native system file needs to be judged, and based on this, the terminal device can obtain the information abstract of the native system file through a preset information abstract extraction algorithm. Alternatively, 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, so as to obtain the information abstract of the original system file. Through the information abstract, whether the original system file has data abnormality conditions such as data loss, data serial and the like can be judged, and the legality of the original system file is ensured.
Because the terminal equipment needs to reconstruct the equipment system of the terminal equipment in the root zone, if the equipment system of the system zone is deleted and the equipment system installed in the root zone is abnormal, the equipment system which can normally run is not existed in the terminal equipment, so that the terminal equipment can be in a state of being unable to be started, and the robustness of the terminal equipment is reduced. Based on the above, the terminal device needs to determine the validity of the obtained native system file, so as to avoid the occurrence of 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 may be downloaded from an upper server. If the generated information abstract is matched with the legal abstract, executing the related operation of S402; conversely; if the information does not match the legal digest, the relevant operation of S403 is performed.
In S402, if the information abstract matches with a legal abstract preset in the native system file, the native system file is installed in the root partition, and a device 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 abstract matches with the legal abstract preset by the native system file, it indicates that there is no abnormality in the data in the native system file obtained this time, and the subsequent installation procedure of the native system file may be executed, where the specific installation procedure is consistent with the related operation of S102, and detailed description may refer to the related description of S102 and will not be repeated here.
If the information digest does not match the legal digest, the current version of the native system file is returned to the root partition in S403.
In this embodiment, if the terminal device detects that the information abstract does not match with the legal abstract, it indicates that the obtained native system file has abnormal data conditions, which may be caused by network conditions such as network fluctuations, that part of the data in the native system file is inconsistent with the legal native system file, where the terminal device may re-obtain the native system file, and add the re-obtained native system file to the root partition.
Preferably, in this case, the terminal device may acquire the acquisition path of the current acquisition of the native system file, and acquire the native system file from the other acquisition paths. For example, if the method of acquiring 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 native system file is downloaded from the upper server in the manner of acquiring the native system file this time, the native system file may be downloaded from the distribution platform of other system files during the operation of S403, and the download success rate of the native system file may be improved by downloading the native system file from a plurality of different acquisition channels.
Preferably, the terminal device may set a maximum download threshold, and if the number of times of re-executing S403 is greater than the maximum download threshold, the download failure information of the native system may be output, so that the user manually obtains the native system file.
In the embodiment of the invention, the validity of the acquired original system file is determined by acquiring the information abstract of the original system file and judging whether the information abstract is matched with the legal abstract, so that the stability and the success rate of upgrading operation can be improved.
Fig. 5 shows a flowchart of a specific implementation of a system version upgrade method S101 according to a fourth embodiment of the present invention. Referring to fig. 5, with respect to the embodiments described in fig. 1 to 4, a system version upgrading method S101 provided in this embodiment includes: s1011 to S1012 are described in detail 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 the preset system upgrade condition is satisfied, the file capacity of the system upgrade file is determined.
In this embodiment, the terminal device is provided with 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 an 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 detects whether the current time meets a preset system upgrade period, and if the current time reaches the preset system upgrade period, the related operation of S1011 is executed.
In this embodiment, if the terminal device detects that the current time meets the preset system upgrade condition, the terminal device executes an upgrade procedure of the system version and obtains the file capacity of the system upgrade file. If the file capacity is smaller than or equal to the partition capacity of the system partition, directly downloading the system upgrading file to the system partition, and performing system version upgrading operation; if the file size is greater than the partition size of the system partition, then the relevant operation of S1012 is performed.
In S1012, if the file size is greater than the partition size of the system partition, the adding the current version of the native system file to the root partition is performed.
In this embodiment, the operation of S1012 is the same as that of S101, and the detailed description will be referred to the related description of S101, which is not repeated here.
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 flow of the system partition is carried out, so that the accuracy and the success rate of the system version upgrading operation can be improved.
Fig. 6 is a flowchart showing a specific implementation of a system version upgrading method S1011 according to a fifth embodiment of the present invention. Referring to fig. 6, with respect to the embodiment described in fig. 5, a system version upgrading method S1011 provided in this embodiment includes: s601 to S603, specifically described below:
Further, if it is detected that the 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 an upper server is received, an upgrade prompt message is displayed.
In this embodiment, when a new system version is released, the upper server may broadcast to all terminal devices associated with the system version, and send a version upgrade request to each terminal device. And if the terminal equipment receives the version upgrading request broadcast by the upper server, executing the operation of S601. The terminal device can extract the system version number to be upgraded from the version upgrading request, preferably, 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 can acquire an upgrade event through the display interface.
In S602, a voice command fed back based on the upgrade prompt information is received, and a command content of the voice command is determined.
In this embodiment, after displaying the upgrade prompt information, the terminal device may start the microphone module 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, determine that the user is inputting a voice command, collect the voice signal in the current environment, and generate the voice command according to the voice signal.
In this embodiment, the terminal device may perform voice analysis on the voice command, determine the command content included in the voice command, and determine whether the command content upgrades the confirmation command, if yes, execute the relevant operation of S603; otherwise, if the instruction content is the upgrade refusing instruction, the upgrade operation is ended.
In S603, if the instruction content is an upgrade confirmation instruction, the determining the file capacity of the system upgrade file is performed.
In the present embodiment, if it is detected that the user agrees to execute the upgrade operation of the system version, the relevant operation of S1011 is executed.
In the embodiment of the invention, the display module outputs the upgrade prompt information and collects the voice instruction fed back by the user based on the upgrade prompt information, thereby being convenient for the user to confirm the upgrade operation and improving the operation efficiency of the upgrade operation.
It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic, and should not limit the implementation process of the embodiment of the present invention.
Fig. 7 is a block diagram of a system version upgrade apparatus according to an embodiment of the present invention, where the system version upgrade apparatus includes units for performing the steps in the embodiment corresponding to fig. 1. Please refer to fig. 1 and the related description of the embodiment corresponding to fig. 1. For convenience of explanation, only the portions related to the present embodiment are shown.
Referring to fig. 7, the upgrade apparatus of the system version includes:
a native system download unit 71 for adding 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 a device system corresponding to the native system file installed in the root partition;
a system partition adjustment unit 73 for adjusting the partition capacity of the system partition by the device system so that the partition capacity matches the file capacity of the system upgrade file;
and a system upgrade execution unit 74, configured to download the system upgrade file in the adjusted system partition, and execute a system version upgrade operation.
Optionally, the system upgrade execution unit 74 includes:
a network state detection unit for detecting a current network state;
an upgrade file downloading unit, configured to download the system upgrade file from an upper server to the adjusted system partition if the network state is a networking state;
the download interrupt response unit is used for outputting offline upgrade prompt information to prompt a user to acquire the system upgrade file through a storage device storing the system upgrade file if the network state change is detected and the system upgrade file is not downloaded;
And the downloading completion response unit is used for installing the system upgrade file in the adjusted system partition if the system upgrade file is detected to be downloaded completely.
Optionally, the upgrade apparatus of the system version further includes:
the information abstract generating unit is used for analyzing the original system file and generating an information abstract of the original system file;
the information abstract matching unit is used for executing the installation of the original system file in the root partition and running the equipment system corresponding to the original system file installed in the root partition if the information abstract is matched with the legal abstract preset in the original system file;
and the information abstract exception unit is used for returning to execute the addition of the current version of the original system file to the root partition if the information abstract is not matched with the legal abstract.
Optionally, the native system download unit 71 includes:
a file capacity determining unit, configured to determine a file capacity of a system upgrade file if it is detected that a preset system upgrade condition is satisfied;
and the system partition capacity expansion response unit is used for executing the addition of the current version of the original system file to the root partition if the file capacity is larger than the partition capacity of the system partition.
Optionally, the file capacity determining unit includes:
the upgrade prompt output unit is used for displaying upgrade prompt information if receiving a version upgrade request sent by the upper server;
the instruction content extraction unit is used for receiving a voice instruction fed back based on the upgrading prompt information and determining 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 the upgrade confirmation instruction.
Therefore, the upgrade equipment of the system version provided by the embodiment of the invention can also perform upgrade operation on the terminal equipment without maintenance personnel on site when the condition that the original system partition is insufficient to accommodate the newly released system upgrade file is faced, and an independently operable equipment system can be installed under the root partition, so that the capacity of the system partition can be adjusted, the purpose of off-line upgrade is realized, the labor cost of upgrade operation is reduced, the equipment upgrade efficiency is improved, and the difficulty of upgrade operation is reduced.
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 executable on the processor 80. The processor 80, when executing the computer program 82, implements the steps in the upgrade method embodiment of the respective system versions described above, such as S101 to S104 shown in fig. 1. Alternatively, the processor 80, when executing the computer program 82, performs the functions of the units in the above-described device embodiments, such as the functions of the modules 71 to 74 shown in fig. 7.
By way of example, 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 complete the present invention. The one or more elements may be a series of computer program instruction segments capable of performing a specific function for describing 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 install unit, a system partition adjustment unit, and a system upgrade execution unit, each of which functions specifically as described above.
The terminal device 8 may be a computing device such as a desktop computer, a notebook computer, a palm computer, a cloud server, etc. The terminal device may include, but is not limited to, a processor 80, a memory 81. It will be appreciated by those skilled in the art that fig. 8 is merely an example of the terminal device 8 and does not constitute a limitation of the terminal device 8, and may include more or less components than illustrated, or may combine certain components, or different components, e.g., the terminal device may further include an input-output device, a network access device, a bus, etc.
The processor 80 may be a central processing unit (Central Processing Unit, CPU), other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 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 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) or 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 as well as 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, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the 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 scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention, and are intended to be included in the scope of the present invention.

Claims (7)

1. A method for upgrading a system version, comprising:
adding the current version of the native system file to the root partition;
installing the original system file in the root partition, and operating an equipment system corresponding to the original system file installed in the root partition;
Adjusting the partition capacity of a system partition through the equipment system so as to enable the partition capacity to be matched with the file capacity of a system upgrading file;
downloading the system upgrade file in the adjusted system partition, and executing a system version upgrade operation, which comprises the following steps:
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 change is detected and the system upgrade file is not downloaded, outputting offline upgrade prompt information to prompt a user to acquire the system upgrade file through a storage device storing the system upgrade file;
if the fact that the system upgrading file is downloaded is detected, installing the system upgrading file in the adjusted system partition;
the adding the current version of the native system file to the root partition includes:
if the condition that the preset system upgrading condition is met is detected, determining the file capacity of the system upgrading file;
and if the file capacity is larger than the partition capacity of the system partition, executing the step of adding the current version of the original system file to the root partition.
2. The upgrade method according to claim 1, further comprising, after said adding the current version of the native system file to the root partition:
analyzing the original system file to generate an information abstract of the original system file;
if the information abstract is matched with a preset legal abstract in the original system file, executing the installation of the original system file in the root partition, and operating an equipment system corresponding to the original system file installed in the root partition;
and if the information abstract is not matched with the legal abstract, returning to execute the step of adding the current version of the original system file to the root partition.
3. The method for upgrading according to claim 1, wherein determining a file capacity of the system upgrade file if it is detected that a preset system upgrade condition is satisfied comprises:
if a version upgrading request sent by an upper server is received, upgrading prompt information is displayed;
receiving a voice instruction fed back based on the upgrading prompt information, and determining instruction content of the voice instruction;
and if the instruction content is the upgrade confirmation instruction, executing the step of determining the file capacity of the system upgrade file.
4. An upgrade apparatus for a system version, comprising:
a native system downloading unit for adding a native system file of a current version to the root partition;
a native system installation unit, configured to install the native system file in the root partition, and operate an equipment system corresponding to the native system file 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;
the system upgrade execution unit is used for downloading the system upgrade file in the adjusted system partition and executing the system version upgrade operation;
the system upgrade execution unit includes:
a network state detection unit for detecting a current network state;
an upgrade file downloading unit, configured to download the system upgrade file from an upper server to the adjusted system partition if the network state is a networking state;
the download interrupt response unit is used for outputting offline upgrade prompt information to prompt a user to acquire the system upgrade file through a storage device storing the system upgrade file if the network state change is detected and the system upgrade file is not downloaded;
The system comprises a download completion response unit, a download completion response unit and a download completion unit, wherein the download completion response unit is used for installing the system upgrade file in the adjusted system partition if the system upgrade file is detected to be downloaded completely;
the native system download unit includes:
a file capacity determining unit, configured to determine a file capacity of a system upgrade file if it is detected that a preset system upgrade condition is satisfied;
and the system partition capacity expansion response unit is used for executing the addition of the current version of the original system file to the root partition if the file capacity is larger than the partition capacity of the system partition.
5. The upgrade apparatus of claim 4, wherein the upgrade apparatus of the system version further comprises:
the information abstract generating unit is used for analyzing the original system file and generating an information abstract of the original system file;
the information abstract matching unit is used for executing the installation of the original system file in the root partition and running the equipment system corresponding to the original system file installed in the root partition if the information abstract is matched with the legal abstract preset in the original system file;
and the information abstract exception unit is used for returning to execute the addition of the current version of the original system file to the root partition if the information abstract is not matched with the legal abstract.
6. A terminal device, characterized in that it comprises a memory, a processor and a computer program stored in the memory and executable on the processor, the processor executing the steps of the method according to any one of claims 1 to 3.
7. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the steps of the method according to any one of claims 1 to 3.
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 CN111752577A (en) 2020-10-09
CN111752577B true 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)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN118555190B (en) * 2024-07-24 2024-10-29 深圳市鸿升光通讯设备有限公司 Optical network unit equipment upgrading method and system based on continuous transmission data capacity

Citations (8)

* 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
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9569195B2 (en) * 2014-05-13 2017-02-14 Zscaler, Inc. Systems and methods for live operating system upgrades of inline cloud servers

Patent Citations (8)

* 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
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

Also Published As

Publication number Publication date
CN111752577A (en) 2020-10-09

Similar Documents

Publication Publication Date Title
CN111752577B (en) Upgrading method and equipment for system version
CN107291481B (en) Component updating method, device and system
US10404568B2 (en) Agent manager for distributed transaction monitoring system
CN110543327B (en) Service component multiplexing method, device, computer equipment and storage medium
CN110968331B (en) Method and device for running application program
US9268662B2 (en) Method and system for a high availability framework
WO2020143199A1 (en) Application program plug-in method and system, and related apparatus
CN109885332A (en) Image quality chip software upgrade method, device, display equipment and storage medium
CN103309712A (en) Mobile phone software upgrade method and system
CN109408135A (en) Dual system upgrade method, device, equipment and computer readable storage medium
CN111488163B (en) Firmware updating method and device, electronic equipment and storage medium
CN112612513A (en) Message middleware upgrading method and device, computer equipment and storage medium
WO2021057880A1 (en) Program upgrade method and apparatus for internet of things device, and internet of things device
CN112748949A (en) Software package management method, device, equipment and storage medium of operating system
CN111679842B (en) Application program hot update processing method, device and system
CN111679850B (en) Application program hot update processing method, device and system
CN111506331A (en) Server BMC refreshing method, system, terminal and storage medium
WO2018010603A1 (en) Storage mode upgrade method, apparatus and system based on video cloud storage system
WO2016074460A1 (en) Data processing method and device
CN111984287A (en) Equipment upgrading method and system
CN106293814B (en) Upgrading method and device
CN113094064A (en) Gateway software module upgrading method, device, equipment and storage medium
CN104348646A (en) Configuration data processing method, device and system
CN112199099A (en) Application updating method, device, server and storage medium
CN114253906A (en) Method and device for managing configuration file, configuration distribution system and storage medium

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
CP03 Change of name, title or address

Address after: 518000 16th and 22nd Floors, C1 Building, Nanshan Zhiyuan, 1001 Xueyuan Avenue, Nanshan District, Shenzhen City, Guangdong Province

Patentee after: Shenzhen UBTECH Technology Co.,Ltd.

Country or region after: China

Address before: 518000 16th and 22nd Floors, C1 Building, Nanshan Zhiyuan, 1001 Xueyuan Avenue, Nanshan District, Shenzhen City, Guangdong Province

Patentee before: Shenzhen UBTECH Technology Co.,Ltd.

Country or region before: China

CP03 Change of name, title or address
TR01 Transfer of patent right

Effective date of registration: 20240929

Address after: No. 59 Tuanjie Road, Shenhe District, Shenyang City, Liaoning Province (2901)

Patentee after: Youbisxuan (Shenyang) Innovation Technology Co.,Ltd.

Country or region after: China

Address before: 518000 16th and 22nd Floors, C1 Building, Nanshan Zhiyuan, 1001 Xueyuan Avenue, Nanshan District, Shenzhen City, Guangdong Province

Patentee before: Shenzhen UBTECH Technology Co.,Ltd.

Country or region before: China

TR01 Transfer of patent right