CN111698558A - Television software upgrading method, television terminal and computer readable storage medium - Google Patents

Television software upgrading method, television terminal and computer readable storage medium Download PDF

Info

Publication number
CN111698558A
CN111698558A CN202010487149.2A CN202010487149A CN111698558A CN 111698558 A CN111698558 A CN 111698558A CN 202010487149 A CN202010487149 A CN 202010487149A CN 111698558 A CN111698558 A CN 111698558A
Authority
CN
China
Prior art keywords
partition
upgraded
software
coupling
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.)
Pending
Application number
CN202010487149.2A
Other languages
Chinese (zh)
Inventor
田伟旭
黄兆文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen TCL Digital Technology Co Ltd
Original Assignee
Shenzhen TCL Digital 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 TCL Digital Technology Co Ltd filed Critical Shenzhen TCL Digital Technology Co Ltd
Priority to CN202010487149.2A priority Critical patent/CN111698558A/en
Publication of CN111698558A publication Critical patent/CN111698558A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
    • 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)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a television software upgrading method, a television terminal and a computer readable storage medium. The method comprises the following steps: when a software upgrading instruction is received, determining a partition to be upgraded in each partition of the software and a coupling partition which has a coupling relation with the partition to be upgraded; backing up the partition to be upgraded and the coupling partition to generate a backup partition; and upgrading the partition to be upgraded, restarting the television corresponding to the software based on the backup partition when the partition to be upgraded is abnormally upgraded, and upgrading the software again. The invention backs up the partition to be upgraded and the coupling partition with the coupling relation thereof, once the upgrade fails, the television is restarted by the backed-up partition to be upgraded and the corresponding coupling partition thereof in the backup partition, thereby being beneficial to quickly restoring the television function damaged by the upgrade failure, automatically guiding the upgrade again and facilitating the use of users.

Description

Television software upgrading method, television terminal and computer readable storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a television software upgrading method, a television terminal, and a computer-readable storage medium.
Background
With the development of science and technology, the intelligent degree of a household television is higher and higher, and the functions of the television are richer and richer, such as more and more televisions supporting network functions and bidirectional communication functions. The realization of each function can not be separated from the support of software, and the increase of the functions is accompanied with the upgrade of the software.
Currently, software generally exists in a modular partition form, and all partitions are coupled to realize the overall function of the software. When a user downloads a software package for upgrading in the use process of a television, if the upgrading fails due to abnormal operation or the influence of external factors, not only are the upgraded partition files damaged and the functions not realized, but also the partition functions having a coupling relation with the upgraded partition files are influenced. At this time, after-sales personnel need to detect each partition with the coupling relation one by one to recover each function before upgrading, and the detection time is long; meanwhile, the waiting time of the user is increased, and the use of the television by the user is influenced.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a television software upgrading method, a television terminal and a computer readable storage medium, and aims to solve the technical problem that in the prior art, when partition upgrading with a coupling relation in television software fails, the detection time for recovering the original function before upgrading is long.
In order to achieve the above object, the present invention provides a television software upgrading method, which comprises the following steps:
when a software upgrading instruction is received, determining a partition to be upgraded in each partition of the software and a coupling partition which has a coupling relation with the partition to be upgraded;
backing up the partition to be upgraded and the coupling partition to generate a backup partition;
and upgrading the partition to be upgraded, restarting the television corresponding to the software based on the backup partition when the partition to be upgraded is abnormally upgraded, and upgrading the software again.
Preferably, the step of determining a partition to be upgraded in each partition of the software, and a coupling partition having a coupling relationship with the partition to be upgraded includes:
reading an upgrading identifier in the software upgrading instruction, and determining a partition to be upgraded in each partition of the software according to the upgrading identifier;
and reading the version identification in the partition to be upgraded, and determining a coupling partition which has a coupling relation with the partition to be upgraded according to the coupling partition code in the version identification.
Preferably, the step of backing up the partition to be upgraded and the coupling partition and generating a backup partition includes:
reading the current version code of the partition to be upgraded and the coupled version code in the version identification;
and according to the current version code and the coupling version code, respectively backing up the partition to be upgraded and the coupling partition to generate a backup partition.
Preferably, the step of upgrading the partition to be upgraded comprises the following steps:
judging whether the partition to be upgraded is abnormal in upgrading, if so, executing a step of restarting a television corresponding to the software based on the backup partition when the partition to be upgraded is abnormal in upgrading;
and if the partition to be upgraded is normally upgraded, taking the coupling partition as a new partition to be upgraded, executing the step of upgrading the partition to be upgraded until the coupling partition is normally upgraded, and finishing the upgrading of the software.
Preferably, if the partition to be upgraded is upgraded normally, the step of taking the coupled partition as a new partition to be upgraded includes:
if the partition to be upgraded is normally upgraded, determining the number of the coupling partitions;
if the number of the coupling partitions is single, taking the coupling partitions as new partitions to be upgraded;
if the number of the coupled partitions is multiple, determining the sequence relation between the partition to be upgraded and the plurality of coupled partitions according to the partition sequence of each partition;
and determining a coupling subarea which is adjacent to the subarea to be upgraded and is not upgraded according to the sequence relation, and taking the adjacent coupling subarea which is not upgraded as a new subarea to be upgraded.
Preferably, the step of restarting the television corresponding to the software based on the backup partition includes:
when a restart instruction for restarting the television corresponding to the software is received, determining an upgraded partition and an unemplified partition in the partitions;
and searching first version information of each upgraded partition before upgrading and second version information of each unemployed partition, and restarting the television according to each first version information, each second version information and the backup partition.
Preferably, the step of upgrading the software comprises:
and obtaining an upgrade log in the television, and searching the partition to be upgraded according to the upgrade log to upgrade again.
Preferably, when the software upgrading instruction is received, the step of determining the partition to be upgraded in each partition of the software includes:
and acquiring a coupling configuration file, and configuring the coupling relation of each partition in the software according to the coupling configuration file.
In order to achieve the above object, the present invention further provides a television terminal, where the television terminal includes a memory, a processor, and a television software upgrading program stored in the memory and capable of running on the processor, and the television software upgrading program, when executed by the processor, implements the steps of the television software upgrading method.
In addition, to achieve the above object, the present invention further provides a computer readable storage medium, in which a television software upgrading program is stored, and the television software upgrading program implements the steps of the television software upgrading method when being executed by a processor.
When a software upgrading instruction is received, determining a to-be-upgraded partition in each partition of software to be upgraded, and determining a coupling partition having a coupling relation with the to-be-upgraded partition; then, the partition to be upgraded and the coupling partition are backed up together to generate a backup partition, and the partition to be upgraded is upgraded; and in the upgrading process, once the upgrading abnormity of the partition to be upgraded is detected, restarting a television corresponding to the software based on the backup partition generated by backup, and guiding the software to be upgraded again. Therefore, by backing up the partition to be upgraded and the coupling partition with the coupling relation, which need to be upgraded, once the upgrade fails, the television is restarted by the backup partition to be upgraded and the coupling partition corresponding to the backup partition, so that the television function damaged due to the upgrade failure can be quickly recovered, the upgrade is automatically redirected, the detection of after-sales personnel is avoided, the detection time cost and the waiting time of a user are saved, and the use of the user is facilitated.
Drawings
Fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a television software upgrading method according to a first embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
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 invention provides a television terminal, as shown in fig. 1, fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the television terminal of the invention.
As shown in fig. 1, the television terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the television terminal architecture shown in fig. 1 is not intended to be limiting of television terminals and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a television software upgrade program.
In the television terminal shown in fig. 1, the network interface 1004 is mainly used for connecting to a background server and performing data communication with the background server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be configured to call the tv software upgrade program stored in the memory 1005 and perform the following operations:
when a software upgrading instruction is received, determining a partition to be upgraded in each partition of the software and a coupling partition which has a coupling relation with the partition to be upgraded;
backing up the partition to be upgraded and the coupling partition to generate a backup partition;
and upgrading the partition to be upgraded, restarting the television corresponding to the software based on the backup partition when the partition to be upgraded is abnormally upgraded, and upgrading the software again.
Further, the step of determining a partition to be upgraded in each partition of the software and a coupling partition having a coupling relationship with the partition to be upgraded includes:
reading an upgrading identifier in the software upgrading instruction, and determining a partition to be upgraded in each partition of the software according to the upgrading identifier;
and reading the version identification in the partition to be upgraded, and determining a coupling partition which has a coupling relation with the partition to be upgraded according to the coupling partition code in the version identification.
Further, the step of backing up the partition to be upgraded and the coupled partition and generating a backup partition includes:
reading the current version code of the partition to be upgraded and the coupled version code in the version identification;
and according to the current version code and the coupling version code, respectively backing up the partition to be upgraded and the coupling partition to generate a backup partition.
Further, after the step of upgrading the partition to be upgraded, the processor 1001 may be configured to call the television software upgrade program stored in the memory 1005, and perform the following operations:
judging whether the partition to be upgraded is abnormal in upgrading, if so, executing a step of restarting a television corresponding to the software based on the backup partition when the partition to be upgraded is abnormal in upgrading;
and if the partition to be upgraded is normally upgraded, taking the coupling partition as a new partition to be upgraded, executing the step of upgrading the partition to be upgraded until the coupling partition is normally upgraded, and finishing the upgrading of the software.
Further, if the partition to be upgraded is upgraded normally, the step of taking the coupled partition as a new partition to be upgraded includes:
if the partition to be upgraded is normally upgraded, determining the number of the coupling partitions;
if the number of the coupling partitions is single, taking the coupling partitions as new partitions to be upgraded;
if the number of the coupled partitions is multiple, determining the sequence relation between the partition to be upgraded and the plurality of coupled partitions according to the partition sequence of each partition;
and determining a coupling subarea which is adjacent to the subarea to be upgraded and is not upgraded according to the sequence relation, and taking the adjacent coupling subarea which is not upgraded as a new subarea to be upgraded.
Further, the step of restarting the television corresponding to the software based on the backup partition includes:
when a restart instruction for restarting the television corresponding to the software is received, determining an upgraded partition and an unemplified partition in the partitions;
and searching first version information of each upgraded partition before upgrading and second version information of each unemployed partition, and restarting the television according to each first version information, each second version information and the backup partition.
Further, the step of upgrading the software comprises:
and obtaining an upgrade log in the television, and searching the partition to be upgraded according to the upgrade log to upgrade again.
Further, when a software upgrade instruction is received, the step of determining a partition to be upgraded in each partition of the software is preceded, and the processor 1001 may be configured to call a television software upgrade program stored in the memory 1005, and perform the following operations:
and acquiring a coupling configuration file, and configuring the coupling relation of each partition in the software according to the coupling configuration file.
The specific implementation of the television terminal of the present invention is substantially the same as the embodiments of the television software upgrading method described below, and is not described herein again.
For a better understanding of the above technical solutions, exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
In order to better understand the technical solution, the technical solution will be described in detail with reference to the drawings and the specific embodiments.
Referring to fig. 2, a first embodiment of a television software upgrading method according to the present invention provides a television software upgrading method, where the television software upgrading method includes:
step S10, when receiving a software upgrading instruction, determining a partition to be upgraded in each partition of the software and a coupling partition having a coupling relation with the partition to be upgraded;
the television software upgrading method in the embodiment is applied to the control center of the television terminal, television software supporting the realization of various functions of the television terminal is arranged in the television terminal, and the television software upgrading method is suitable for realizing the upgrading of the television software through the control center. Television software (hereinafter, referred to as software) exists in a modular partition form, and generally, upgrading is performed on a certain module, a bug of the certain module is repaired, or a function of the certain module is optimized, and the like. The display interface of the television terminal (hereinafter referred to as television) displays shortcuts of various functions supported by the television, wherein the shortcuts include shortcuts for realizing the setting function, and the setting function includes an upgrading option, or the upgrading option is directly displayed on the display interface of the television in a shortcut mode.
After upgrading the software of the television, the television service provider issues the prompt information of the upgrading software package to the display interface of the television. And the television user initiates an upgrading instruction through the upgrading option of the display interface according to the prompt message. After receiving the upgrading instruction, the control center downloads the upgrading software package through the network, reads the upgrading information carried in the upgrading software package after the upgrading software package is downloaded, and determines the to-be-upgraded subarea which needs to be upgraded in the subareas of the software currently installed on the television according to the upgrading information. And meanwhile, determining the coupling subarea which has a coupling relation with the subarea to be upgraded according to the coupling information carried in the subarea to be upgraded. The coupling information carried by the partition to be upgraded is identification information set according to the coupling relationship between the partitions before upgrading, and is used for representing the coupling relationship between the partitions. Specifically, when a software upgrading instruction is received, the step of determining a partition to be upgraded in each partition of the software includes:
step a, acquiring a coupling configuration file, and configuring the coupling relation of each partition in the software according to the coupling configuration file.
Further, partition information having a coupling relationship among the partitions of the software is formed into a coupling configuration file, wherein the partition information at least includes names of the partitions, version numbers of the partitions, and the like. If the software comprises five partitions, namely a1, a2, a3, a4 and a5, wherein a1, a2 and a3 have coupling relations with each other, and a4 and a5 have coupling relations; the names and respective version numbers of a1, a2 and a3 are taken as one piece of partition information, and the names and respective version numbers of a4 and a5 are taken as another piece of partition information; the two pieces of partition information are then formed into a coupling profile. In addition, the coupling configuration file may be transmitted to the control center in real time, or may be embedded in software, and the embodiment is preferably embedded in software. The control center obtains the coupling configuration file from the software, and configures the coupling relation of each partition in the software according to the partition information in the coupling configuration file. And during configuration, adding partition information as coupling information to the partitions with the coupling relationship respectively, and representing the partitions with the coupling relationship with the partitions and the version numbers of the partitions. As the partition information formed by the names and respective version numbers of a1, a2 and a3 as described above, the partition information is added to the partitions a1, a2 and a3, respectively, as the coupling information of a1, a2 and a3, the partitions having a coupling relationship with a1 are characterized as a2 and a3, and the software partition versions characterized by the respective version numbers of a2 and a3 are coupled with the software partition version of a 1; the partitions having the coupling relation with the a2 are a1 and a3, and the software partition versions characterized by the respective version numbers of a1 and a3 are coupled with the software partition version of a 2; the partitions having a coupling relationship with a3 are a1 and a2, and the software partition versions characterized by the respective version numbers of a1 and a2 are coupled with the software partition version of a 3. The coupled partitions in the software can be determined through the coupling relation configured by the coupling configuration file, and the coupled partitions can be conveniently and quickly determined.
Step S20, the partition to be upgraded and the coupling partition are backed up to generate a backup partition;
furthermore, the software is also provided with a blank partition for backup, and before the partition to be upgraded is upgraded, the partition to be upgraded and the coupled partition thereof are copied to the blank partition for backup to generate a backup partition. The content of the backup partition is consistent with the content of the partition to be upgraded and the content of the coupling partition, so that when the file and the function of the partition to be upgraded are damaged due to failure of upgrading of the partition to be upgraded or the file or the function of the coupling partition is influenced, the damaged file and the function are recovered through the backup content of the backup partition.
And step S30, upgrading the partition to be upgraded, restarting the television corresponding to the software based on the backup partition when the partition to be upgraded is abnormally upgraded, and upgrading the software again.
Furthermore, after the partition to be upgraded and the backup partition thereof are backed up, the partition to be upgraded is upgraded. Whether the upgrade is abnormal or not is monitored in the upgrade process, and the abnormity represents that the upgrade fails due to the influence of other operations (such as artificial interruption) or external factors (such as power failure) and the like in the upgrade process. If the abnormality is monitored, restarting the television with the software based on the content backed up by the backup partition, and simultaneously rebooting the software for upgrading. If the abnormal condition is not monitored and the upgrading is finished, the coupling subarea which has the coupling relation with the subarea to be upgraded is continuously upgraded, so that the coupling function between the subarea to be upgraded and the coupling subarea is realized, and the normal use of the television function is ensured. Specifically, the step of upgrading the partition to be upgraded includes:
b, judging whether the partition to be upgraded is abnormal in upgrading, if so, executing the step of restarting the television corresponding to the software based on the backup partition when the partition to be upgraded is abnormal in upgrading;
and c, if the partition to be upgraded is normally upgraded, taking the coupling partition as a new partition to be upgraded, executing the step of upgrading the partition to be upgraded until the coupling partition is normally upgraded, and finishing the upgrading of the software.
Furthermore, for the situation that the upgrading fails due to the abnormality in the upgrading process, the partition to be upgraded feeds back a code representing the upgrading failure to the control center; and for the case of successful upgrade, feeding back the codes representing the successful upgrade. And the control center judges whether the partition to be upgraded is abnormal or not by identifying the received coding type. Namely, if the code type is a code representing an upgrading failure type, judging that the partition to be upgraded is abnormal in upgrading; and if the coding type is the coding representing the upgrading success type, judging that the partition to be upgraded is upgraded normally.
Further, after it is determined that the partition to be upgraded is abnormally upgraded, a process of recovering the functions of the television is executed, that is, the television is restarted based on the backup partition. The restart may be triggered by the television user or automatically after the control center detects an upgrade exception, which is not limited to this. If the partition to be upgraded is judged not to have upgrading abnormity, the partition to be upgraded is upgraded normally, and the upgrading is completed. And at the moment, the coupling subarea with the coupling relation is used as a new subarea to be upgraded to be monitored whether the upgrading is abnormal or not, if the upgrading is abnormal, the restarting is also carried out according to the backup subarea, if the upgrading is not abnormal, other coupling subareas are continuously used as new subareas to be upgraded until the upgrading of each coupling subarea is normal, and the software upgrading is completed.
Understandably, for the case of multiple coupled partitions, the functions performed between the coupled partitions are typically in a sequential relationship. At this time, before determining that the partition to be upgraded is upgraded normally and using the coupled partition as a new partition to be upgraded for upgrading, it is further necessary to determine whether a plurality of coupled partitions exist, and determine respective upgrading orders for the plurality of coupled partitions. Specifically, if the partition to be upgraded is upgraded normally, the step of using the coupled partition as a new partition to be upgraded includes:
step c1, if the partition to be upgraded is upgraded normally, determining the number of the coupling partitions
Step c2, if the number of the coupling partitions is single, the coupling partitions are used as new partitions to be upgraded;
step c3, if the number of the coupled partitions is multiple, determining the sequence relation between the partition to be upgraded and the multiple coupled partitions according to the partition sequence of each partition;
and c4, determining the coupling subarea which is adjacent to the subarea to be upgraded and is not upgraded yet according to the sequence relation, and taking the adjacent coupling subarea which is not upgraded yet as a new subarea to be upgraded.
Further, after the partition to be upgraded is judged to be upgraded normally, the coupling information in the partition to be upgraded is read, and the number of the coupling partitions having the coupling relation with the partition to be upgraded is determined according to the partition names representing the coupling relation included in the coupling information. If the number of the coupling subareas is single, namely only one subarea has a coupling relation with the subarea to be upgraded, the coupling subarea is directly used as a new subarea to be upgraded. If the number of the coupling subareas is multiple, namely, the coupling relation exists between the plurality of subareas and the subarea to be upgraded, the sequence relation between the subarea to be upgraded and the plurality of coupling subareas is determined according to the subarea sequence of each subarea. The partition sequence of each partition is the sequence of each function realized by the representation software set in the software design process. The functions implemented by software include P1, P2 and P3, and are implemented by partitions W1, W2 and W3, respectively; the three functions are realized in the sequence of P2, P1 and P3, and the partition sequence of the three partitions is W2, W1 and W3.
Furthermore, according to the sequence relation between the partition to be upgraded and each coupling partition, the coupling partition which is adjacent to the partition to be upgraded and is not upgraded yet is searched, and then the adjacent coupling partition which is not upgraded yet is used as a new partition to be upgraded for upgrading. As for the partitions W1, W2, and W3, after the partition W2 to be upgraded is upgraded, if the partitions W1, W2, and W3 have a coupling relationship, the sequential relationship between the partition to be upgraded and each coupling partition can be determined to be W2, W1, and W3 according to the partition sequence among the three partitions. And determining the coupling partition W1 which is adjacent to the partition W2 to be upgraded and is not yet upgraded as a new partition to be upgraded for upgrading, and after the new partition W1 to be upgraded is upgraded, continuing upgrading the W3 which is adjacent to the new partition W1 and is not yet upgraded until the upgrading of each coupling partition is completed, so as to realize the upgrading of the software.
When a software upgrading instruction is received, firstly determining a partition to be upgraded in each partition of software, which needs to be upgraded, and simultaneously determining a coupling partition which has a coupling relation with the partition to be upgraded; then, the partition to be upgraded and the coupling partition are backed up together to generate a backup partition, and the partition to be upgraded is upgraded; and in the upgrading process, once the upgrading abnormity of the partition to be upgraded is detected, restarting a television corresponding to the software based on the backup partition generated by backup, and guiding the software to be upgraded again. Therefore, by backing up the partition to be upgraded and the coupling partition with the coupling relation, which need to be upgraded, once the upgrade fails, the television is restarted by the backup partition to be upgraded and the coupling partition corresponding to the backup partition, so that the television function damaged due to the upgrade failure can be quickly recovered, the upgrade is automatically redirected, the detection of after-sales personnel is avoided, the detection time cost and the waiting time of a user are saved, and the use of the user is facilitated.
Further, based on the first embodiment of the television software upgrading method of the present invention, a second embodiment of the television software upgrading method of the present invention is provided, in which in the second embodiment, the step of determining the partition to be upgraded in each partition of the software, and the coupling partition having a coupling relationship with the partition to be upgraded includes:
step S11, reading the upgrade identification in the software upgrade instruction, and determining the partition to be upgraded in each partition of the software according to the upgrade identification;
step S12, reading the version identification in the partition to be upgraded, and determining the coupling partition having coupling relation with the partition to be upgraded according to the coupling partition code in the version identification.
After receiving the software upgrading instruction, the embodiment reads the upgrading information carried in the upgrading software package as the upgrading identifier in the software upgrading instruction, so as to determine the partition to be upgraded, which needs to be upgraded, through the partition represented by the upgrading information; namely, the partition to be upgraded in each partition of the software is determined according to the upgrading identifier. Meanwhile, the coupling information carried in the partition to be upgraded is used as the version identification in the partition to be upgraded. The partition name and the partition version number included in the partition information as the coupling information form a coupling partition code and a coupling version code in the version identification, respectively. I.e. the coupled partition code in the version identification characterizes the coupled partition name and the coupled version code characterizes the coupled version of the coupled partition.
Furthermore, the version identifier carried in the partition to be upgraded is read, and the coupling partition having a coupling relation with the partition to be upgraded is determined according to the partition name represented by the coupling partition code, so that the partition to be upgraded and the coupling partition thereof are backed up to generate a backup partition. The method comprises the following steps of backing up a partition to be upgraded and a coupling partition, and generating a backup partition, wherein the steps of:
step S21, reading the current version code of the partition to be upgraded and the coupling version code in the version identification;
and step S22, according to the current version code and the coupling version code, respectively backing up the partition to be upgraded and the coupling partition to generate a backup partition.
And further, reading the current version code of the partition to be upgraded, wherein the current version code represents the original version number of the partition to be upgraded before upgrading. And reading the coupled version code in the version identification, wherein the coupled version code represents the version number of the partition coupled with the partition to be upgraded. Then, according to the current version code and the coupling version code, backing up the partition to be upgraded and the coupling partition; namely, the partition to be upgraded with the current version code and the coupled partition with the coupled version code are backed up to generate a backup partition. The method comprises the steps that the division among versions of a partition to be upgraded is formed through the encoding of the current version, and the backup error of each version of the partition to be upgraded is avoided; meanwhile, the division among the versions of the coupled partition is formed through the coupled version coding, so that the backup error of each version of the coupled partition is avoided; the accuracy of the generated backup partitions is facilitated.
In the embodiment, the version identifier is set in the partition with the coupling relationship, and the coupling partition code and the coupling version code in the version identifier are used for determining the coupling partition and the coupling version number coupled with the partition to be upgraded, so that the coupling partition and the coupling version number can be determined conveniently and quickly, and quick and accurate backup of the partition to be upgraded and the coupling partition thereof is facilitated.
Further, a third embodiment of the television software upgrading method according to the present invention is proposed based on the first embodiment and the second embodiment of the television software upgrading method according to the present invention, and in the third embodiment, the step of restarting the television corresponding to the software based on the backup partition includes:
step S31, when a restart instruction for restarting the television corresponding to the software is received, determining an upgraded partition and an unemplified partition in each partition;
step S32, searching for first version information of each upgraded partition before upgrading and second version information of each unemployed partition, and restarting the television according to each first version information, each second version information, and the backup partition.
Understandably, the upgrade exception of the partition to be upgraded may be the upgrade exception of the initial partition to be upgraded determined by the upgrade identifier, or may be the upgrade exception of a new partition to be upgraded formed by the subsequent coupled partitions. The restarting operation of the television due to the abnormal upgrading depends on the realization of the original partition of the backup, so that the partition which is upgraded before the abnormal upgrading needs to be restored to the original state, and the function of the partition can be realized by being coupled with the original partition of the backup. Therefore, when the upgrading is abnormal and a restarting instruction for restarting the television corresponding to the software is received, the upgraded subarea which is upgraded when the upgrading is abnormal and the non-upgraded subarea which is not upgraded when the upgrading is abnormal are determined. And searching the version number of the upgraded subarea before upgrading as first version information, and searching the current version number of the unequalized subarea as second version information. And then restarting the television by combining the backup partition according to the searched first version information and second version information, so that the software installed in the television is restored to the version before upgrading, and the initial function before upgrading the television is realized.
It should be noted that, if there are duplicate partitions in the first version information and the backup partition, the duplicate partitions need to be removed, and only one of the partitions is reserved for restarting, so as to ensure the accuracy of restarting. And after the television is restarted and the software installed in the television is restored to the version before upgrading, the software is restarted and upgraded. Specifically, the step of upgrading the software again includes:
step S33, obtaining the upgrade log in the TV, and according to the upgrade log, searching the partition to be upgraded for re-upgrading.
Further, the present embodiment is provided with a mechanism for monitoring the software upgrading process through the upgrade log. And in the upgrading process of the partition to be upgraded, an upgrading log is generated no matter the upgrading is successful or failed. In the process of upgrading the abnormal boot software, the partition needing to be upgraded can be determined through the upgrade log. And acquiring an upgrade log which is generated in the upgrade process and stored in the television, screening log data generated last time from the upgrade log, searching the log data screened from the upgrade log to obtain a partition to be upgraded recorded in the upgrade log, and upgrading again according to the partition to be upgraded.
In the embodiment, the upgraded subarea which is upgraded and the unemplified subarea which is not upgraded are determined when the upgrade is abnormal, and the television is restarted according to the initial version before the upgrade of the upgraded subarea, the version of the unemplified subarea and the backup subarea, so that the initial function before the upgrade of the television is recovered, and the influence on the normal function of the television caused by the abnormal upgrade is avoided. Meanwhile, the upgrade is redirected according to the partition to be upgraded recorded in the upgrade log, so that the upgrade operation is avoided being redirected, and the upgrade optimization of the television is automatically realized.
In addition, the present invention also provides a computer readable storage medium, on which a television software upgrading program is stored, and when being executed by a processor, the television software upgrading program realizes the steps of the embodiments of the television software upgrading method.
In the embodiment of the computer-readable storage medium of the present invention, all technical features of the embodiments of the television software upgrading method are included, and the description and the explanation contents are substantially the same as those of the embodiments of the image optimization method, and will not be described in detail herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A television software upgrading method is characterized by comprising the following steps:
when a software upgrading instruction is received, determining a partition to be upgraded in each partition of the software and a coupling partition which has a coupling relation with the partition to be upgraded;
backing up the partition to be upgraded and the coupling partition to generate a backup partition;
and upgrading the partition to be upgraded, restarting the television corresponding to the software based on the backup partition when the partition to be upgraded is abnormally upgraded, and upgrading the software again.
2. The method for upgrading television software according to claim 1, wherein the step of determining the partition to be upgraded in each partition of the software and the coupled partition having a coupling relationship with the partition to be upgraded comprises:
reading an upgrading identifier in the software upgrading instruction, and determining a partition to be upgraded in each partition of the software according to the upgrading identifier;
and reading the version identification in the partition to be upgraded, and determining a coupling partition which has a coupling relation with the partition to be upgraded according to the coupling partition code in the version identification.
3. The method for upgrading television software according to claim 2, wherein the step of backing up the partition to be upgraded and the coupled partition and generating a backup partition comprises:
reading the current version code of the partition to be upgraded and the coupled version code in the version identification;
and according to the current version code and the coupling version code, respectively backing up the partition to be upgraded and the coupling partition to generate a backup partition.
4. The television software upgrade method according to claim 1, wherein said step of upgrading said partition to be upgraded comprises, after:
judging whether the partition to be upgraded is abnormal in upgrading, if so, executing a step of restarting a television corresponding to the software based on the backup partition when the partition to be upgraded is abnormal in upgrading;
and if the partition to be upgraded is normally upgraded, taking the coupling partition as a new partition to be upgraded, executing the step of upgrading the partition to be upgraded until the coupling partition is normally upgraded, and finishing the upgrading of the software.
5. The method for upgrading television software according to claim 4, wherein if the partition to be upgraded is upgraded normally, the step of using the coupled partition as a new partition to be upgraded comprises:
if the partition to be upgraded is normally upgraded, determining the number of the coupling partitions;
if the number of the coupling partitions is single, taking the coupling partitions as new partitions to be upgraded;
if the number of the coupled partitions is multiple, determining the sequence relation between the partition to be upgraded and the plurality of coupled partitions according to the partition sequence of each partition;
and determining a coupling subarea which is adjacent to the subarea to be upgraded and is not upgraded according to the sequence relation, and taking the adjacent coupling subarea which is not upgraded as a new subarea to be upgraded.
6. The television software upgrade method according to claim 1, wherein the restarting the television corresponding to the software based on the backup partition comprises:
when a restart instruction for restarting the television corresponding to the software is received, determining an upgraded partition and an unemplified partition in the partitions;
and searching first version information of each upgraded partition before upgrading and second version information of each unemployed partition, and restarting the television according to each first version information, each second version information and the backup partition.
7. A method for upgrading television software according to any one of claims 1 to 6, wherein the step of re-upgrading the software comprises:
and obtaining an upgrade log in the television, and searching the partition to be upgraded according to the upgrade log to upgrade again.
8. The television software upgrading method according to any one of claims 1 to 6, wherein the step of determining the partition to be upgraded among the partitions of the software when the software upgrading instruction is received comprises:
and acquiring a coupling configuration file, and configuring the coupling relation of each partition in the software according to the coupling configuration file.
9. A television terminal, characterized in that it comprises a memory, a processor and a television software upgrade program stored on said memory and executable on said processor, said television software upgrade program, when executed by said processor, implementing the steps of the television software upgrade method according to any one of claims 1 to 8.
10. A computer-readable storage medium, having a television software upgrade program stored thereon, which, when executed by a processor, performs the steps of the television software upgrade method according to any one of claims 1-8.
CN202010487149.2A 2020-06-01 2020-06-01 Television software upgrading method, television terminal and computer readable storage medium Pending CN111698558A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010487149.2A CN111698558A (en) 2020-06-01 2020-06-01 Television software upgrading method, television terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010487149.2A CN111698558A (en) 2020-06-01 2020-06-01 Television software upgrading method, television terminal and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN111698558A true CN111698558A (en) 2020-09-22

Family

ID=72479138

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010487149.2A Pending CN111698558A (en) 2020-06-01 2020-06-01 Television software upgrading method, television terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111698558A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113656059A (en) * 2021-10-21 2021-11-16 北京联盛德微电子有限责任公司 Embedded software system
CN116737208A (en) * 2023-08-16 2023-09-12 深圳市德兰明海新能源股份有限公司 Software maintenance upgrade management method and device and electronic equipment
CN116781519A (en) * 2023-08-23 2023-09-19 北京中电普华信息技术有限公司 System upgrading method and device, storage medium and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101207699A (en) * 2006-12-22 2008-06-25 深圳市同洲电子股份有限公司 Method for upgrading set-top box
CN109947449A (en) * 2019-03-18 2019-06-28 Oppo广东移动通信有限公司 Method for upgrading system, device, storage medium and electronic equipment
CN109947456A (en) * 2019-03-27 2019-06-28 深圳Tcl数字技术有限公司 Upgrade method and its update device, the computer storage medium of operating system
US10452375B1 (en) * 2018-06-21 2019-10-22 Microsoft Technology Licensing, Llc Memory-efficient upgrade staging
CN110780890A (en) * 2019-10-24 2020-02-11 百度在线网络技术(北京)有限公司 System upgrading method and device, electronic equipment and medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101207699A (en) * 2006-12-22 2008-06-25 深圳市同洲电子股份有限公司 Method for upgrading set-top box
US10452375B1 (en) * 2018-06-21 2019-10-22 Microsoft Technology Licensing, Llc Memory-efficient upgrade staging
CN109947449A (en) * 2019-03-18 2019-06-28 Oppo广东移动通信有限公司 Method for upgrading system, device, storage medium and electronic equipment
CN109947456A (en) * 2019-03-27 2019-06-28 深圳Tcl数字技术有限公司 Upgrade method and its update device, the computer storage medium of operating system
CN110780890A (en) * 2019-10-24 2020-02-11 百度在线网络技术(北京)有限公司 System upgrading method and device, electronic equipment and medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
施超等: "基于Android平台OTA差分升级系统设计与实现", 《信息技术》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113656059A (en) * 2021-10-21 2021-11-16 北京联盛德微电子有限责任公司 Embedded software system
CN116737208A (en) * 2023-08-16 2023-09-12 深圳市德兰明海新能源股份有限公司 Software maintenance upgrade management method and device and electronic equipment
CN116737208B (en) * 2023-08-16 2023-10-24 深圳市德兰明海新能源股份有限公司 Software maintenance upgrade management method and device and electronic equipment
CN116781519A (en) * 2023-08-23 2023-09-19 北京中电普华信息技术有限公司 System upgrading method and device, storage medium and electronic equipment
CN116781519B (en) * 2023-08-23 2024-02-23 北京中电普华信息技术有限公司 System upgrading method and device, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
WO2017067448A1 (en) Firmware-over-the-air upgrade method, system and computer storage medium
CN101436138B (en) Control device and control method for software upgrade and dynamic rolling back
CN111698558A (en) Television software upgrading method, television terminal and computer readable storage medium
US7734945B1 (en) Automated recovery of unbootable systems
US20160132420A1 (en) Backup method, pre-testing method for environment updating and system thereof
CN101594613A (en) The method of terminal equipment and upgrading thereof, system
WO2012116637A1 (en) System rescue method and device
JP2007528534A (en) Using a loader to notify system software update services
CN104918114A (en) Method and device for upgrading operation system
CN105260209A (en) Hot-update solution of program
CN106775873B (en) Method and equipment for updating mobile phone software and acquiring patch file
WO2017198156A1 (en) Service deployment method, apparatus and system
CN112698846A (en) Method and system for automatically installing patch in Linux system
CN112433739B (en) Firmware upgrading method
EP3260981B1 (en) Information processing apparatus, information processing system, and information processing method for updating firmware
CN113485755A (en) Device driver verification method, device and storage medium
CN108595292B (en) System optimization method, mobile terminal and computer storage medium
CN112882871B (en) Host conflict detection method, device, equipment and storage medium
CN113656063A (en) System version replacing method, device, equipment and computer readable medium
CN114356357A (en) Mirror image file processing method and device and electronic equipment
GB2532076A (en) Backup method, pre-testing method for environment updating and system thereof
JP2000330778A (en) Method and device for restoration after correction load module replacement
CN113721959A (en) Information processing method and device and electronic equipment
US9081727B2 (en) Method, apparatus and computer program for loading files during a boot-up process
CN112527327A (en) Method, system, terminal and storage medium for factory restoration of UOS operating 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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200922