CN112040320B - Television fruit application upgrading method and device - Google Patents

Television fruit application upgrading method and device Download PDF

Info

Publication number
CN112040320B
CN112040320B CN202010899885.9A CN202010899885A CN112040320B CN 112040320 B CN112040320 B CN 112040320B CN 202010899885 A CN202010899885 A CN 202010899885A CN 112040320 B CN112040320 B CN 112040320B
Authority
CN
China
Prior art keywords
television
application
application version
fruit
identifier
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
CN202010899885.9A
Other languages
Chinese (zh)
Other versions
CN112040320A (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.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and 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 Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN202010899885.9A priority Critical patent/CN112040320B/en
Publication of CN112040320A publication Critical patent/CN112040320A/en
Application granted granted Critical
Publication of CN112040320B publication Critical patent/CN112040320B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/458Scheduling content for creating a personalised stream, e.g. by combining a locally stored advertisement with an incoming stream; Updating operations, e.g. for OS modules ; time-related management operations
    • H04N21/4586Content update operation triggered locally, e.g. by comparing the version of software modules in a DVB carousel to the version stored locally
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/262Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
    • H04N21/26291Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists for providing content or additional data updates, e.g. updating software modules, stored at the client
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Software Systems (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the invention provides a method and a device for upgrading a television program application, wherein the method comprises the following steps: receiving a first upgrading request sent by first television fruit equipment, wherein the first upgrading request carries a target gray level identifier of the first television fruit equipment; determining a latest application version identifier corresponding to the target gray identifier according to a corresponding relation between the pre-stored gray identifier and the application version identifier; transmitting the latest application version identification to first television equipment; after receiving a second upgrading request which is sent by first television fruit equipment and carries a latest application version identification, sending a first address of a first upgrading packet indicated by the latest application version identification to the first television fruit equipment; and the first television program equipment acquires the first upgrading packet from the content distribution network according to the first address and upgrades the television program application according to the first upgrading packet. By applying the technical scheme provided by the embodiment of the invention, the flexibility of upgrading the television application is improved, and the negative influence caused by the existence of a bug in an upgrade package is reduced.

Description

Television fruit application upgrading method and device
Technical Field
The invention relates to the technical field of computers, in particular to a method and a device for upgrading television application.
Background
The television program is intelligent screen projection hardware, and a program (which can be called as television program application) running in the television program can project videos, music, games and the like in small-screen equipment such as a mobile phone, a Pad and the like to large-screen equipment such as a television, a projector and the like in a wireless mode according to an operation instruction of a user so as to be watched by the user, and further, the watching experience of the user can be improved.
As the user's needs change over time, technicians need to continuously update the tv fruit application to optimize the functions of the tv fruit device and meet the user's needs. At present, when the tv application needs to be upgraded, a technician will deliver an upgrade package of the tv application to a CDN (Content Delivery Network). Subsequently, the tv fruit device may download the upgrade package from the CDN, and then upgrade the tv fruit application.
In the above upgrading mode of the tv application, all tv application devices can download the upgrade package from the CDN to upgrade the tv application, and the flexibility of upgrading the tv application is poor. In addition, in the upgrading mode, once the bug exists in the upgrading package, the bug will bring adverse effect to all television sets.
Disclosure of Invention
The embodiment of the invention aims to provide a method and a device for upgrading a television fruit application, so as to improve the flexibility of upgrading the television fruit application and reduce the negative influence caused by the existence of a bug in an upgrade package. The specific technical scheme is as follows:
in a first aspect of the present invention, there is provided a method for upgrading a tv application, applied to a server, the method including:
receiving a first upgrading request sent by first television fruit equipment, wherein the first upgrading request carries a target gray scale identifier of the first television fruit equipment, and the target gray scale identifier comprises a numerical value at a preset position in an equipment number of the first television fruit equipment;
determining a latest application version identifier corresponding to the target gray identifier according to a corresponding relation between a pre-stored gray identifier and an application version identifier, wherein the application version identifier is an identifier of an upgrading packet according to which the television fruit device represented by the gray identifier is allowed to upgrade the television fruit application;
sending the latest application version identification to the first television program equipment;
after receiving a second upgrade request which is sent by the first television fruit device and carries the latest application version identification, sending a first address of a first upgrade package indicated by the latest application version identification to the first television fruit device, so that the first television fruit device obtains the first upgrade package from a content distribution network according to the first address and upgrades the television fruit application according to the first upgrade package.
Optionally, the method further includes:
if the reminding message sent by the first television program is not received after the preset time length after the first address is sent to the first television program device, setting the gray scale identifier corresponding to the latest application version identifier to be null, wherein the reminding message indicates that the television program application after the first television program device is upgraded operates and has errors.
Optionally, the method further includes:
if the reminding message sent by the first television program is received within a preset time length after the first address is sent to the first television program device, deleting the corresponding relation including the latest application version identification; alternatively, the first and second electrodes may be,
if a reminding message sent by the first television program is received within a preset time length after a first address is sent to the first television program device, outputting the reminding message, wherein the reminding message comprises an error type; and if a deletion request input by a user according to the error type is received, deleting the corresponding relation comprising the latest application version identification.
Optionally, after determining the latest application version identifier, before sending the latest application version identifier to the first television program device, the method further includes:
acquiring the total equipment number of the target television fruit equipment, wherein the target television fruit equipment is the television fruit equipment which is used for upgrading the television fruit application according to the first upgrading packet;
determining the number of target devices corresponding to the latest application version identification according to the corresponding relation between the prestored application version identification and the number of devices, wherein the number of the devices is the number of the television fruit devices which are allowed to upgrade the television fruit application according to the upgrade package indicated by the application version identification;
and if the total equipment number is less than the target equipment number, continuing to execute the step of sending the latest application version identification to the first television program equipment.
Optionally, after determining the latest application version identifier, before sending the latest application version identifier to the first television program device, the method further includes:
determining a target must-pass application version identification corresponding to the latest application version identification according to a corresponding relation between pre-stored application version identifications and must-pass application version identifications, wherein the must-pass application version identification is an application version identification of an upgrading package when the television application is required to be upgraded before the television application is upgraded according to the upgrading package indicated by the application version identification;
sending the target must pass application version identification to the first television fruit device;
after receiving a third upgrade request of the first television program product equipment carrying the target must-be-used version identification, sending a second address of a second upgrade package indicated by the target must-be-used version identification to the first television program product equipment, so that the first television program product equipment obtains the second upgrade package from a content distribution network according to the second address, and upgrading the television program product application according to the second upgrade package before upgrading the television program product application according to the first upgrade package.
Optionally, the server has a release display interface matched with the tv application, where the release display interface includes a gray scale identification field, an application version identification field, and an address field for storing an upgrade package; the method further comprises the following steps:
acquiring a first gray scale identifier input to the gray scale identifier field by a user, acquiring a first application version identifier input to the application version identifier field by the user, and acquiring a third address input to the address field by the user;
and storing the upgrade package indicated by the first application version identification to the third address in the content distribution network, and storing the corresponding relation between the first gray scale identification and the first application version identification.
Optionally, the application version identification includes: the software number of the television fruit application, the hardware model of the television fruit equipment and the sales channel of the television fruit equipment; the upgrade package of the television program application comprises: a software version upgrade package and a plug-in upgrade package.
In a second aspect of the present invention, there is provided an apparatus for upgrading a tv application, applied to a server, the apparatus including:
the device comprises a receiving unit, a processing unit and a processing unit, wherein the receiving unit is used for receiving a first upgrading request sent by first television fruit equipment, the first upgrading request carries a target gray-scale identifier of the first television fruit equipment, and the target gray-scale identifier comprises a numerical value at a preset position in an equipment number of the first television fruit equipment;
the first determining unit is used for determining a latest application version identifier corresponding to the target gray identifier according to a corresponding relation between a pre-stored gray identifier and an application version identifier, wherein the application version identifier is an identifier of an upgrading packet according to which the television fruit equipment represented by the gray identifier is allowed to upgrade the television fruit application;
the first sending unit is used for sending the latest application version identification to the first television program equipment;
and a second sending unit, configured to send, to the first television program device, a first address of a first upgrade package indicated by the latest application version identifier after receiving a second upgrade request carrying the latest application version identifier sent by the first television program device, so that the first television program device obtains the first upgrade package from a content distribution network according to the first address, and upgrades the television program application according to the first upgrade package.
Optionally, the apparatus further comprises:
and the setting unit is used for setting the gray scale identifier corresponding to the latest application version identifier to be null if a reminding message sent by the first television program is not received after a preset time length after the first address is sent to the first television program device, wherein the reminding message indicates that the television program application after the first television program device is upgraded operates and is in error.
Optionally, the apparatus further comprises:
a deleting unit, configured to delete the corresponding relationship including the latest application version identifier if the reminder message sent by the first tv program is received within a preset time period after the first address is sent to the first tv program device; alternatively, the first and second electrodes may be,
the deleting unit is used for outputting a reminding message if the reminding message sent by the first television program is received within a preset time length after the first address is sent to the first television program device, wherein the reminding message comprises an error type; and if a deletion request input by a user according to the error type is received, deleting the corresponding relation comprising the latest application version identification.
Optionally, the apparatus further comprises:
a first obtaining unit, configured to obtain a total device number of the target television fruit devices, where the target television fruit devices are television fruit devices to which the television fruit application has been upgraded according to the first upgrade package;
a second determining unit, configured to determine, according to a correspondence between pre-stored application version identifiers and device numbers, the number of target devices corresponding to the latest application version identifier, where the device number is a number of tv fruit devices that allow the tv fruit application to be upgraded according to an upgrade package indicated by the application version identifier;
the first sending unit is specifically configured to send the latest application version identifier to the first television program device if the total device number is smaller than the target device number.
Optionally, the apparatus further comprises:
a third determining unit, configured to determine, according to a correspondence between a pre-stored application version identifier and a required application version identifier, a target required application version identifier corresponding to the latest application version identifier, where the required application version identifier is an application version identifier of an upgrade package according to which the tv application needs to be upgraded before the tv application is upgraded according to the upgrade package indicated by the application version identifier;
the first sending unit is further configured to send the target must-be-used application version identifier to the first television program device;
the second sending unit is further configured to send, to the first television fruit device, a second address of a second upgrade package indicated by the target must-be-applied version identifier after receiving a third upgrade request that the first television fruit device carries the target must-be-applied version identifier, so that the first television fruit device obtains the second upgrade package from a content distribution network according to the second address, and upgrades the television fruit application according to the second upgrade package before upgrading the television fruit application according to the first upgrade package.
Optionally, the server has a release display interface matched with the tv application, where the release display interface includes a gray scale identification field, an application version identification field, and an address field for storing an upgrade package; the device further comprises:
the second obtaining unit is used for obtaining a first gray scale identifier input to the gray scale identifier field by a user, obtaining a first application version identifier input to the application version identifier field by the user, and obtaining a third address input to the address field by the user;
a storage unit, configured to store the upgrade package indicated by the first application version identifier to the third address in the content distribution network, and store a corresponding relationship between the first grayscale identifier and the first application version identifier.
Optionally, the application version identification includes: the software number of the television fruit application, the hardware model of the television fruit equipment and the sales channel of the television fruit equipment; the upgrade package of the television program application comprises: a software version upgrade package and a plug-in upgrade package.
In another aspect of the present invention, there is also provided a server, including a processor, a communication interface, a memory and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing the steps of the upgrading method of the television application provided by the first aspect when executing the program stored in the memory.
In another aspect of the present invention, there is also provided a computer-readable storage medium, in which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the method for upgrading a tv application provided in the first aspect.
In another aspect of the present invention, there is also provided a computer program which, when running on a computer, causes the computer to execute the steps of the method for upgrading a tv application provided in the first aspect.
In the technical scheme provided by the embodiment of the invention, the corresponding relation between the gray scale identifier and the application version identifier is prestored in the server, wherein the gray scale identifier is used for representing the television fruit equipment, the application version identifier is the identifier of the upgrading packet, and if the corresponding relation between the gray scale identifier and the application version identifier is prestored in the server, the television fruit equipment represented by the gray scale identifier is allowed to be upgraded by using the upgrading packet represented by the application version identifier. If the corresponding relation between the gray scale identification and an application version identification is not stored in the server, the television equipment represented by the gray scale identification is prohibited from being upgraded by using the upgrading packet represented by the application version identification. Therefore, in the embodiment of the invention, the television program device can be flexibly controlled to download the upgrade package from the CDN to upgrade the television program application by utilizing the corresponding relation of the pre-stored gray scale identifier and the application version identifier, so that the flexibility of upgrading the television program application is improved.
In addition, in the embodiment of the present invention, the server pre-stores a corresponding relationship between a grayscale identifier and an application version identifier, so that the television device represented by the grayscale identifier is allowed to upgrade by using the upgrade package represented by the application version identifier. Therefore, when a bug exists in the upgrade package, the server only needs to delete the corresponding relation of the application version identification including the upgrade package, so that the corresponding relation of the application version identification including the upgrade package does not exist in the server, the television fruit device can be prohibited from being upgraded by using the upgrade package, and negative effects caused by the bug existing in the upgrade package are reduced.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below.
Fig. 1 is a schematic diagram of a first structure of an upgrade system for tv application according to an embodiment of the present invention;
fig. 2 is a first flowchart of a method for upgrading a tv application according to an embodiment of the present invention;
fig. 3 is a second flowchart of a method for upgrading a tv application according to an embodiment of the present invention;
fig. 4 is a third flowchart illustrating an upgrading method for a tv application according to an embodiment of the present invention;
fig. 5 is a fourth flowchart illustrating an upgrading method for a tv application according to an embodiment of the present invention;
fig. 6 is a fifth flowchart illustrating an upgrading method for a tv application according to an embodiment of the present invention;
fig. 7 is a sixth flowchart illustrating an upgrading method for a tv application according to an embodiment of the present invention;
fig. 8 is a schematic flowchart of a method for storing a correspondence between a grayscale marker and an application version marker according to an embodiment of the present invention;
FIG. 9 is a diagram of a display interface for publishing in accordance with an embodiment of the present invention;
fig. 10 is a schematic diagram of a second structure of an upgrade system for tv application according to an embodiment of the present invention;
fig. 11 is a schematic structural diagram of an apparatus for upgrading a tv application according to an embodiment of the present invention;
fig. 12 is a schematic structural diagram of a server according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention.
As the user's needs change over time, technicians need to continuously update the tv fruit application to optimize the functions of the tv fruit device and meet the user's needs. At present, in an upgrading mode of the television application, all the television application devices can download upgrading packages from the CDN to upgrade the television application, and the flexibility of upgrading the television application is poor. In addition, in the upgrading mode, once the bug exists in the upgrading package, the bug will bring adverse effects to all television sets.
In order to solve the above problem, an upgrade system for tv fruit applications according to an embodiment of the present invention is shown in fig. 1, and the upgrade system includes a tv fruit device 11, a server 12, and a CDN 13. The upgrade system for tv fruit application may include one or more tv fruit devices, and the example of the tv fruit application is only 1 tv fruit device, which is not limited herein. The server 12 may be an OTA (Over-the-Air Technology, space download Technology) cluster. The OTA cluster can be connected to the display so that the user can control the OTA cluster and the CDN through the content displayed by the display.
In the embodiment of the invention, the television program application runs in the television program equipment. Television fruit applications include, but are not limited to, television fruit versions and television fruit plug-ins. Correspondingly, the upgrade package of the tv fruit application may include a software version upgrade package corresponding to the tv fruit version and a plug-in upgrade package corresponding to the tv fruit plug-in.
Based on the television fruit application upgrading system, the embodiment of the invention provides a television fruit application upgrading method. Referring to fig. 2, fig. 2 is a first flowchart illustrating a method for upgrading a tv application according to an embodiment of the present invention, where the method is applied to a server, and includes the following steps.
Step S21, receiving a first upgrade request sent by a first television fruit device, where the first upgrade request carries a target grayscale identifier of the first television fruit device, and the target grayscale identifier includes a numerical value at a preset position in a device number of the first television fruit device.
Step S22, according to the pre-stored corresponding relationship between the gray scale mark and the application version mark, determining the latest application version mark corresponding to the target gray scale mark, wherein the application version mark is the mark of the upgrade package according to which the television fruit device characterized by the gray scale mark is allowed to upgrade the television fruit application.
Step S23, the latest application version identifier is sent to the first television program device.
Step S24, after receiving a second upgrade request carrying the latest application version identifier sent by the first television program device, sending a first address of the first upgrade package indicated by the latest application version identifier to the first television program device, so that the first television program device obtains the first upgrade package from the content distribution network according to the first address, and upgrades the television program application according to the first upgrade package.
In the method for upgrading a television program application provided by the embodiment of the present invention, a server pre-stores a corresponding relationship between a grayscale identifier and an application version identifier, where the grayscale identifier is used to characterize a television program device, and the application version identifier is an identifier of an upgrade package, and if a corresponding relationship between a grayscale identifier and an application version identifier is pre-stored in the server, the television program device characterized by the grayscale identifier is allowed to be upgraded by using the upgrade package characterized by the application version identifier. If the corresponding relation between the gray scale identification and an application version identification is not stored in the server, the television equipment represented by the gray scale identification is prohibited from being upgraded by using the upgrading packet represented by the application version identification. Therefore, in the embodiment of the invention, the television fruit equipment can be flexibly controlled to download the upgrade package from the CDN to upgrade the television fruit application by utilizing the corresponding relation of the pre-stored gray scale identifier and the application version identifier, so that the flexibility of upgrading the television fruit application is improved.
In addition, in the embodiment of the present invention, the server pre-stores a corresponding relationship between a grayscale identifier and an application version identifier, so that the television device represented by the grayscale identifier is allowed to upgrade by using the upgrade package represented by the application version identifier. Therefore, when a bug exists in the upgrade package, the server only needs to delete the corresponding relation of the application version identification including the upgrade package, so that the corresponding relation of the application version identification including the upgrade package does not exist in the server, the television fruit device can be prohibited from being upgraded by using the upgrade package, and negative effects caused by the bug existing in the upgrade package are reduced.
In step S21, the server may upgrade the request in a variety of ways, as follows.
The first is an active acquisition mode: the server sends an acquisition request to the first television fruit device, and the first television fruit device sends a first upgrading request to the server according to the acquisition request.
The second is a passive acquisition mode: the first television fruit device sends an upgrade request (namely a first upgrade request) to the server at regular time, and then the server receives the first upgrade request sent by the first television fruit device.
In the embodiment of the invention, the first television program equipment can be any television program equipment. For ease of understanding, the first television apparatus is used as an example and is not intended to be limiting.
The target gray scale mark comprises a numerical value at a preset position in the equipment number of the first television program equipment. And the gray scale marks are used for distinguishing the television fruit equipment which is specified by the user and needs to be upgraded from the television fruit equipment which does not need to be upgraded. The gray scale mark is a numerical value at a preset position in the equipment number of the television set. Here, the preset position may be set according to actual requirements. For example, the preset position may be the last two device numbers, the middle three device numbers, or the whole device number. In the embodiment of the present invention, a plurality of tv fruit devices may have the same gray scale identifier, and one tv fruit device may also have a unique gray scale identifier, which is not limited herein.
In step S22, the server stores in advance the correspondence between the grayscale markers and the application version markers. After receiving the first upgrade request, the server may obtain the target grayscale identifier from the first upgrade request, and then search for a corresponding relationship including the target grayscale identifier from a corresponding relationship between the prestored grayscale identifier and the application version identifier. The found corresponding relation may be one or more.
And if the found corresponding relation is one, the server takes the application version identification included in the corresponding relation as the latest application version identification corresponding to the target gray level identification.
If the found corresponding relations are multiple, the server compares the application version identifications included in the multiple corresponding relations to obtain the latest application version identification, and the latest application version identification is the latest application version identification corresponding to the target gray level identification. Here, the latest application version identification may be understood as an application version identification of an upgrade package whose release time is latest.
In the embodiment of the invention, the application version identification can uniquely determine an upgrading packet. The application version identification may include: the software number of the television fruit application, the hardware model of the television fruit device and the sales channel of the television fruit device. The application version identifier may further include other information, which is not limited in this embodiment of the present invention.
In step S23, after acquiring the latest application version identifier corresponding to the target grayscale identifier, the server sends the latest application version identifier to the first television program device.
In the embodiment of the present invention, the latest application version identifier may be carried in a response message of the first upgrade request, and the server sends the response message of the first upgrade request to the first television program device. The server may also send the latest application version identifier to the first television program device in other manners, which is not limited to this.
In the embodiment of the invention, after the first television program device acquires the latest application version identifier, the latest application version identifier can be compared with the version identifier of the television program application of the first television program device. If the latest application version identification is newer than the version identification of the television fruit application of the first television fruit device, the first television fruit device can determine that the television fruit application operated by the first television fruit device is not the television fruit application of the latest version, and sends a second upgrading request to the server, wherein the second upgrading request carries the latest application version identification and is used for requesting to download a first address of a first upgrading package indicated by the latest application version identification.
If the latest application version identifier is the same as the version identifier of the television fruit application of the first television fruit device or the latest application version identifier is old than the version identifier of the television fruit application of the first television fruit device, the first television fruit device can determine that the television fruit application operated by the first television fruit device is the television fruit application of the latest version and does not perform other processing.
In the embodiment of the present invention, after obtaining the latest application version identifier, the first television program device may also output a prompt message including the latest application version identifier. And the user inputs corresponding instructions to the first television fruit device based on the prompt message output by the first television fruit device. And if the instruction input by the user indicates that the television program application is upgraded, the first television program device sends a second upgrading request to the server. If the instruction input by the user indicates that the television program application is not to be upgraded, the first television program device may not perform other processing.
In step S24, the server records the correspondence between the application version identification and the address of the upgrade package. In the corresponding relationship, the address of the upgrade package is the storage address of the upgrade package in the CDN indicated by the application version identifier.
If a second upgrade request sent by the first television fruit device is received, the server acquires an address (namely a first address) of the first upgrade packet indicated by the latest application version identification, and sends the first address to the first television fruit device. After the first television program device obtains the first address, a first upgrade package stored by the CDN at the first address is obtained, and the television program application is upgraded according to the first upgrade package.
In an embodiment of the present invention, an embodiment of the present invention further provides a method for upgrading a tv application, as shown in fig. 3, the method may further include the following steps.
Step S25, if the reminder message sent by the first tv program is not received after the preset duration after the first address is sent to the first tv program device, setting the grayscale identifier corresponding to the latest application version identifier to be null, where the reminder message indicates that the first tv program device runs the upgraded tv program application and is faulty.
In the embodiment of the invention, after the first television program device upgrades the television program application according to the first upgrade package, the upgraded television program application is operated. If the upgraded television application has an error in operation, the first television application device sends a reminding message to the server to remind the server that the first television application has an error in operation. And if the upgraded television program application runs normally, the first television program device does not perform other processing.
After the server sends the first address to the first television fruit device for a preset time, the server does not receive the reminding message sent by the first television fruit all the time, so that the upgraded television fruit application can be determined to run normally, the first upgrade packet has no leak, and the gray scale identifier corresponding to the latest application version identifier is set to be null. The preset time length can be set according to actual requirements, and is not limited.
In the embodiment of the invention, the gray scale mark corresponding to the application version mark is empty, which indicates that the television fruit device for downloading the upgrade package indicated by the application version mark is not limited. The server determines that the first upgrade package has no leak, sets the gray scale identifier corresponding to the latest application version identifier to be null, cancels the limitation on the television fruit equipment for downloading the first upgrade package, allows all the television fruit equipment to download the first upgrade package, enables all the television fruit equipment to optimize the functions of the television fruit equipment, does not bring adverse effects, and improves user experience.
In an embodiment of the present invention, based on the embodiment shown in fig. 3, an embodiment of the present invention further provides a method for upgrading a tv application, as shown in fig. 4, the method may further include the following steps.
Step S26, if the reminder message sent by the first tv set is received within the preset duration after the first address is sent to the first tv set, deleting the corresponding relationship including the latest application version identifier.
In the embodiment of the invention, when the server receives the reminding message sent by the first television program within the preset time length after the server sends the first address to the first television program device, the fact that the upgraded television program application is in an operation error can be determined, the first upgrading packet has a bug, and the corresponding relation including the latest application version identification is deleted. At this time, the server does not have a corresponding relationship including the latest application version identifier, and thus the latest application version identifier corresponding to the target grayscale identifier cannot be determined according to the corresponding relationship between the prestored grayscale identifier and the application version identifier, and the first television program device cannot acquire the latest application version identifier, cannot acquire the first upgrade package indicated by the latest application version identifier, and cannot upgrade the television program application according to the first upgrade package.
Therefore, the situation that other television program equipment upgrades the television program application according to the existence of the bug is effectively avoided, and the negative influence caused by the existence of the bug in the upgrade package is further reduced.
In an embodiment of the present invention, based on the embodiment shown in fig. 3, an embodiment of the present invention further provides a method for upgrading a tv application, as shown in fig. 5, the method may further include the following steps.
Step S27, if the reminder message sent by the first tv program is received within the preset time after the first address is sent to the first tv program device, outputting the reminder message, where the reminder message includes an error type.
Step S28, if a deletion request input by the user according to the error type is received, deleting the corresponding relationship including the latest application version identifier.
In the embodiment of the invention, the server receives the reminding message sent by the first television program within the preset time after the server sends the first address to the first television program device, so that the running error of the upgraded television program application can be determined. In practical application, there are various reasons for errors in running the upgraded tv application, such as bugs existing in the upgrade package, failures of the tv application itself, and the like. The server outputs the reminder message. The reminding message comprises an error type, and the error type can comprise a type of operation error caused by the existence of a bug in the upgrade package, a type of operation error caused by the failure of the television program equipment, and the like.
And the user determines whether the upgrade package indicated by the latest application version identification is suitable for being popularized to other television equipment or not according to the error type output by the server. According to the error type output by the server, if the upgrade package indicated by the latest application version identification is determined to be unsuitable for being popularized to other television equipment, for example, the error type included in the reminding message is the type of operation error caused by the existence of a bug in the upgrade package, the user inputs a deletion request to the server. And the server deletes the corresponding relation comprising the latest application version identification according to a deletion request input by the user. The method effectively avoids the upgrade package which is wrongly operated due to the downloading of other television program equipment, and further reduces the negative influence caused by the existence of bugs in the upgrade package.
If it is determined that the upgrade package indicated by the latest application version identifier is suitable for being popularized to other television effect devices, for example, the error type included in the reminder message is a running error type caused by a failure of the television effect device itself, the user may not perform other processing, that is, the server does not delete the corresponding relationship including the latest application version identifier. At the moment, the user only needs to timely process the reason causing the television program application operation error, and the downloading of the corresponding upgrade package by other television program equipment is not influenced.
In an embodiment of the present invention, based on the embodiment shown in fig. 2, an embodiment of the present invention further provides a method for upgrading a tv application, as shown in fig. 6, after step S22 and before step S23, the method may further include the following steps.
Step S29, obtaining the total device number of the target tv fruit device, where the target tv fruit device is a tv fruit device that has upgraded the tv fruit application according to the first upgrade package.
Step S210, determining the number of target devices corresponding to the latest application version identification according to the corresponding relation between the application version identification stored in advance and the number of devices, wherein the number of devices is the number of television fruit devices which are allowed to upgrade the television fruit application according to the upgrade package indicated by the application version identification.
In step S211, it is determined whether the total number of devices is smaller than the number of target devices. If yes, go to step S23. If not, no other processing is carried out, and the upgrading process of the television application is ended.
In the embodiment of the invention, the television fruit equipment for downloading the upgrade package is controlled by utilizing the gray scale identification, and meanwhile, the television fruit equipment for downloading the upgrade package is controlled by utilizing the number of the television fruit equipment which allows the television fruit application to be upgraded according to the upgrade package. The television fruit device for downloading the upgrade package is flexibly controlled through two parameters, and negative effects brought by bugs existing in the upgrade package are further reduced.
In step S29, for each upgrade package, the server accumulates the tv program devices to be upgraded according to the upgrade package. The cumulative initial value of each upgrade package is 0. Take the first upgrade package as an example. After sending the first address to a tv fruit device, the server considers that the tv fruit device has upgraded the tv fruit application according to the first upgrade package, and accumulates the tv fruit devices that have upgraded the tv fruit application according to the first upgrade package plus 1. And taking the television program equipment which has upgraded the television program application according to the first upgrade package as the target television program equipment. And after determining the latest application version identification corresponding to the target gray level identification, the server acquires the total equipment number of the target television equipment.
In step S210, for each upgrade package, the number of tv fruit devices that allow the tv fruit application to be upgraded according to the upgrade package is preset, and is referred to as the number of devices corresponding to the upgrade package. The server stores the corresponding relationship between the application version identification of the upgrade package and the number of the devices corresponding to the upgrade package, that is, the corresponding relationship between the application version identification and the number of the devices.
After determining the latest application version identification corresponding to the target gray level identification, the server searches the corresponding relation including the latest application version identification from the corresponding relation of the application version identification and the equipment number stored in advance, wherein the equipment number included in the searched corresponding relation is the target equipment number.
In the embodiment of the present invention, the execution order of steps S29 and S210 is not limited.
In step S211, the server compares the total device number of the target television set and the target device number, and determines whether the total device number is smaller than the target device number. If the total device number is less than the target device number, the server may continue to perform step S23, so that the first tv program device continues to upgrade the tv program application. If the total equipment number is larger than or equal to the target equipment number, the server can determine that the number of the television fruit equipment which runs the television fruit application upgraded by using the first upgrading packet at present is exceeded, does not perform other processing, and ends the upgrading process of the television fruit application. Therefore, the negative influence caused by the existence of the bug in the upgrade package can be effectively controlled.
In an embodiment of the present invention, based on the embodiment shown in fig. 2, an embodiment of the present invention further provides a method for upgrading a tv application, as shown in fig. 7, after step S22 and before step S23, the method may further include the following steps.
Step S212, determining a target must-pass application version identification corresponding to the latest application version identification according to the corresponding relation between the pre-stored application version identification and the must-pass application version identification, wherein the must-pass application version identification is as follows: when the television application needs to be upgraded before the television application is upgraded according to the upgrade package indicated by the application version identification, the application version identification of the upgrade package is used as a basis.
Step S213, sending the target must be used version identifier to the first television program device.
Step S214, after receiving a third upgrade request that the first television program device carries the target must be applied version identification, sending a second address of a second upgrade package indicated by the target must be applied version identification to the first television program device, so that the first television program device obtains the second upgrade package from the content distribution network according to the second address, and upgrading the television program application according to the second upgrade package before upgrading the television program application according to the first upgrade package.
In the embodiment of the invention, the first television program equipment firstly upgrades the television program application by using the second upgrading packet indicated by the target mandatory application version identification, and then upgrades the television program application by using the first upgrading packet indicated by the latest application version identification. This ensures that the tv fruit application of the first tv fruit device is successfully upgraded.
In step S212, the mandatory application version is identified as: when the television application needs to be upgraded before the television application is upgraded according to the upgrade package indicated by the application version identification, the application version identification of the upgrade package is used as a basis. For example, before upgrading the tv application with the upgrade package indicated by the application version identifier 1, the tv application needs to be upgraded with the upgrade package indicated by the application version identifier 2. If the television application is not upgraded by using the upgrade package indicated by the application version identifier 2, the television application cannot be upgraded successfully by using the upgrade package indicated by the application version identifier 1, and the application version identifier 2 is the required application version identifier corresponding to the application version identifier 1.
The server stores the corresponding relation between the application version identification and the mandatory application version identification in advance. And searching the corresponding relation comprising the latest application version identification in the corresponding relation between the prestored application version identification and the compulsory application version identification, wherein the compulsory application version identification included in the searched corresponding relation is the target compulsory application version identification.
In step S213, after acquiring the target must pass application version identifier, the server sends the target must pass application version identifier to the first television program device.
In the embodiment of the invention, the target can be carried in the response message of the first upgrading request necessarily via the application version identification, and the server sends the response message of the first upgrading request to the first television program device. The server may also send the target to the first television program device via the application version identifier in other manners, which is not limited to this.
In the embodiment of the invention, after the first television program product device obtains the target must pass application version identification, the target must pass application version identification can be compared with the version identification of the television program product application of the first television program product device. If the target must-pass application version identifier is newer than the version identifier of the television program application of the first television program device, the first television program device can send a third upgrading request to the server, wherein the third upgrading request carries the target must-pass application version identifier and is used for requesting to download a second address of a second upgrading package indicated by the target must-pass application version identifier.
If the target must be the same as the version identifier of the tv fruit application of the first tv fruit device, or the target must be the old from the version identifier of the tv fruit application of the first tv fruit device, the first tv fruit device may determine that the tv fruit application running on the first tv fruit device is the latest version of the tv fruit application, and does not perform other processing, or send a response message indicating that the second upgrade package is not downloaded to the server.
In step S214, the server records the correspondence between the application version identifier and the address of the upgrade package. If a third upgrade request sent by the first television fruit device is received, the server acquires an address (namely a second address) of a second upgrade package which is necessarily indicated by the application version identification, and sends the second address to the first television fruit device. And after the first television program device obtains the second address, obtaining a second upgrade package stored by the CDN at the second address, and upgrading the television program application according to the second upgrade package. After determining that the upgrading of the tv program application by the first tv program device according to the second upgrade package is completed, the process proceeds to step S23.
If the third upgrade request sent by the first television program device is not received, or a response message indicating that the second upgrade package is not downloaded is received, the step S23 is continuously executed.
In an embodiment of the present invention, based on the embodiment shown in fig. 2, an embodiment of the present invention further provides a method for storing a correspondence between a grayscale marker and an application version marker. In the method, a server is provided with a release display interface matched with a television program application, and the release display interface comprises a gray scale identification field, an application version identification field and an address field for storing an upgrade package. As shown in fig. 8, the method may further include the following steps.
Step S81, obtaining the first grayscale marker input by the user to the grayscale marker field, obtaining the first application version marker input by the user to the application version marker field, and obtaining the third address input by the user to the address field.
Step S82, storing the upgrade package indicated by the first application version identifier to a third address in the CDN, and storing a corresponding relationship between the first grayscale identifier and the first application version identifier.
In the embodiment of the invention, the release display interface comprises a gray scale identification field, an application version identification field and an address field for storing the upgrade package. At the moment, the user only needs to input necessary information, such as a gray scale identifier, an application version identifier, an address for storing the upgrade package and the like, so that the distribution of the upgrade package can be realized, all command lines do not need to be manually input, the distribution efficiency of the upgrade package is improved, and the probability of errors in the distribution of the upgrade package is reduced.
In step S81, the server displays a distribution display interface. The user inputs corresponding information in different fields of the release display interface based on the release display interface displayed by the server, for example, a first gray scale identifier is input in a gray scale identifier field, a first application version identifier is input in an application version identifier field, and a third address is input in an address field.
In step S82, the server sends the CDN the first application version identification entered by the user in the application version identification field and the third address entered by the user in the address field. And the CDN pulls the upgrade package indicated by the first application version identification and stores the pulled upgrade package to a third address in the CDN. In addition, the server stores the corresponding relation between the first gray scale identifier and the first application version identifier. Therefore, the subsequent server can control the television program device to upgrade the television program application according to the upgrade package indicated by the first application version identification based on the corresponding relation.
In the embodiment of the present invention, the publishing display interface may further include: a version number field, an application scenario field of the upgrade package, an MD (Message-Digest Algorithm) 5 field of the upgrade package, an upgrade package size field, a field indicating whether it is a mandatory upgrade package, a field indicating whether configuration information configuration success or failure is output, a test quantity limit field, a production quantity limit field, and the like.
The version number is a number generated in a corresponding application scene according to a preset rule, and the preset rule can be set according to actual requirements. The application scene of the upgrade package comprises a development stage, a test stage and an online stage. The development phase represents a phase in which the upgrade package is developed and completed, but the upgrade package is not tested. At this time, the application scene of the upgrade package may be represented in a development version. The test phase represents a phase of testing the upgrade package, but the upgrade package is not provided to the television fruit device to upgrade the television fruit application. At this time, the application scene of the upgrade package may be represented in a test version. The online stage represents the stage that the upgrade package is tested and is provided for the television program equipment to upgrade the television program application. At this time, the application scene of the upgrade package may be represented in an online version.
The mandatory upgrade package is the upgrade package indicated by the mandatory application version identification.
The release display interface specifically refers to fig. 9, which includes the software number of the tv fruit application, the hardware model of the tv fruit device, and the sales channel of the tv fruit device.
In fig. 9, "software number" is a software number field of the tv application. The user can enter the software number of the TV program application in this field
"version number" is a version number field. The user may enter the version number of the upgrade package that needs to be pulled in this field.
The "version type" is an application scenario field of the upgrade package. The user can enter the application scenario of the upgrade package that needs to be pulled in this field. Such as development, test, and online versions, among others.
The "hardware model" is a hardware model field of the television set. The user may enter the hardware model of the television appliance in this field.
The "sales channel" is a sales channel field of the television fruit device. The user may enter the sales channel for the television program device in this field. And determining the application version identification of the upgrade package by combining the information in the fields of the software number, the hardware model and the sales channel.
"must or not" is a field indicating whether or not it is a must-upgrade package. If the upgrade package is a necessary upgrade package of a subsequent upgrade package, selecting 'yes' in the field; if the upgrade package is a necessary upgrade package of the subsequent upgrade package, selecting 'no' in the field.
"grayscale identification" is a grayscale identification field. The user may enter a grayscale identification for the television fruit device running the application for upgrading the television fruit using the upgrade package in this field.
The "test number limit" is a test number limit field. The user may enter in this field the maximum number of television apparatus that are allowed to download the upgrade package.
The "production quantity limit" is a production quantity limit field. The user may enter the maximum number of upgrade packages producing the same application version identification in this field.
The "package path" is an address field that stores the upgrade package. The user may enter an address in this field to store the upgrade package.
"package MD 5" is the MD5 field of the upgrade package. The user may enter the MD5 code of the upgrade package in this field.
The "file size" is the upgrade package size field. The user may enter the size value of the upgrade package in this field.
The "whether or not to pop up a prompt box" is a field indicating whether or not to output prompt information indicating success or failure in configuration of the configuration information. If the prompt information of successful or failed configuration of the configuration information needs to be output, selecting 'yes' in the field; if the prompt information of successful or failed configuration of the configuration information does not need to be output, selecting 'no' in the field.
The following describes the upgrade of the tv application provided in the embodiment of the present invention with reference to the upgrade system of the tv application shown in fig. 10. The OTA cluster comprises a version management module, a plug-in management module, a version supply module and a plug-in supply module. The version management module is used for managing new creation, modification, deletion and distribution of television fruit versions; the plug-in management module is used for managing the new creation, modification, deletion and distribution of the television fruit plug-ins; the version supply module is used for judging whether the television fruit equipment is required to be upgraded or not, and if the television fruit equipment meets the upgrading requirement, providing application version identification, addresses for storing software version upgrading packages and the like for the television fruit equipment; the plug-in supply module is used for judging whether the television fruit equipment is required to be upgraded or not, and if the television fruit equipment meets the upgrading requirement, providing the application version identification, the address for storing the plug-in upgrading package and the like for the television fruit equipment.
Step S101, a user displays the input configuration information of the release display interface on a display. The configuration information may include information that needs to be input in each field shown in fig. 9.
Specifically, when the tv fruit version needs to be newly created or modified, the user inputs the configuration information of the tv fruit version on the display publishing display interface. When the television effect plug-in needs to be newly built or modified, a user inputs configuration information of the television effect plug-in on a display publishing display interface.
Step S102, the OTA cluster sends the configuration information input by the user to the CDN.
Specifically, the user inputs the configuration information of the television program version on the display release display interface. The version management module acquires the configuration information and sends the configuration information to the CDN.
And the user inputs the configuration information of the television effect plug-in on a display publishing display interface. The plug-in management module acquires the configuration information and sends the configuration information to the CDN.
Step S103, the CDN pulls and stores the upgrade package based on the configuration information.
Specifically, if the configuration information is configuration information of the tv fruit version, the CDN pulls a software version upgrade package of the tv fruit version based on the configuration information.
If the configuration information is the configuration information of the television fruit plug-in, the CDN pulls a plug-in upgrade package of the television fruit plug-in based on the configuration information.
And step S104, the OTA cluster stores the configuration information to a preset database. The preset database may be integrated in the OTA cluster, or may be located on an independent physical machine, which is not limited to this.
Specifically, if the configuration information is the configuration information of the television fruit version, the version management module stores the configuration information to a preset database.
And if the configuration information is the configuration information of the television effect plug-in, the plug-in management module stores the configuration information to a preset database.
Step S105, the television fruit device sends an upgrade request to the OTA cluster, wherein the upgrade request comprises the gray scale identifier 1 of the television fruit device.
Specifically, when the television fruit version needs to be upgraded, the television fruit device sends an upgrade request to the version supply module of the OTA cluster. And when the television program plug-in is required to be upgraded, the television program device sends an upgrading request to a plug-in supply module of the OTA cluster.
And step S106, the OTA cluster judges whether the television fruit equipment meets the upgrading requirement or not according to the upgrading request. If the upgrade requirement is met, executing the step S107; if not, the upgrading operation is ended.
Specifically, when the television fruit version needs to be upgraded, the version supply module determines the latest application version identifier 1 corresponding to the gray identifier 1 and the upgrade package 1 indicated by the latest application version identifier 1 according to the configuration information stored in the preset database. The version provisioning module determines a total device number 1 of tv fruit devices that have upgraded the tv fruit application according to the upgrade package 1. And the version supply module determines the number 1 of the target devices corresponding to the latest application version identification 1 according to the configuration information stored in the preset database. If the total device number 1 is smaller than the target device number 1, step S107 is performed. And if the total equipment number 1 is greater than or equal to the target equipment number 1 and/or the latest application version identification corresponding to the gray scale identification 1 cannot be determined, ending the upgrading operation.
When the television version needs to be upgraded, the plug-in supply module determines the latest application version identifier 1 corresponding to the gray identifier 1 and the upgrade package 1 indicated by the latest application version identifier 1 according to the configuration information stored in the preset database. The plug-in provisioning module determines a total device number 1 of tv fruit devices that have upgraded the tv fruit application according to the upgrade package 1. And the plug-in supply module determines the number 1 of the target devices corresponding to the latest application version identification 1 according to the configuration information stored in the preset database. If the total device number 1 is smaller than the target device number 1, step S107 is performed. And if the total equipment number 1 is greater than or equal to the target equipment number 1 and/or the latest application version identification corresponding to the gray scale identification 1 cannot be determined, ending the upgrading operation.
And step S107, the television program equipment acquires the upgrade package from the CDN and upgrades the television program application.
Specifically, the OTA cluster sends a latest application version identifier 1 to the television fruit equipment; after receiving an upgrade request which is sent by television fruit equipment and carries a latest application version identifier 1, sending an address 1 of an upgrade package 1 indicated by the latest application version identifier 1 to the television fruit equipment. And the television program device acquires the upgrade package 1 from the CDN according to the address 1 and upgrades the television program application according to the upgrade package 1.
Corresponding to the above method for upgrading a tv application, an embodiment of the present invention further provides an upgrading apparatus for a tv application, as shown in fig. 11, where the upgrading apparatus is applied to a server, and includes:
the receiving unit 111 is configured to receive a first upgrade request sent by a first television fruit device, where the first upgrade request carries a target grayscale identifier of the first television fruit device, and the target grayscale identifier includes a numerical value at a preset position in a device number of the first television fruit device;
a first determining unit 112, configured to determine, according to a correspondence between a pre-stored grayscale identifier and an application version identifier, a latest application version identifier corresponding to a target grayscale identifier, where the application version identifier is an identifier of an upgrade package according to which a television program device represented by the grayscale identifier is allowed to upgrade a television program application;
a first sending unit 113, configured to send a latest application version identifier to a first television program device;
a second sending unit 114, configured to send, after receiving a second upgrade request carrying a latest application version identifier sent by the first television program device, a first address of the first upgrade package indicated by the latest application version identifier to the first television program device, so that the first television program device obtains the first upgrade package from the content distribution network according to the first address, and upgrades the television program application according to the first upgrade package.
In an embodiment of the present invention, the apparatus for upgrading a tv application may further include:
and a setting unit (not shown in the figure), configured to set the grayscale identifier corresponding to the latest application version identifier to be null if a reminder message sent by the first tv program is not received after a preset duration after the first address is sent to the first tv program device, where the reminder message indicates that the running of the first tv program device after the upgrade has an error.
In an embodiment of the present invention, the apparatus for upgrading a tv application may further include:
a deleting unit (not shown in the figure), configured to delete the corresponding relationship including the latest application version identifier if a notification message sent by the first tv program is received within a preset time period after the first address is sent to the first tv program device; alternatively, the first and second electrodes may be,
the deleting unit is used for outputting a reminding message if the reminding message sent by the first television program is received within a preset time length after the first address is sent to the first television program device, wherein the reminding message comprises an error type; and if a deleting request input by the user according to the error type is received, deleting the corresponding relation comprising the latest application version identification.
In an embodiment of the present invention, the apparatus for upgrading a tv application may further include:
a first obtaining unit (not shown in the figure) for obtaining a total device number of a target television fruit device, wherein the target television fruit device is a television fruit device which has upgraded a television fruit application according to a first upgrade package;
a second determining unit (not shown in the figure), configured to determine, according to a pre-stored correspondence between the application version identifier and the number of devices, the number of target devices corresponding to the latest application version identifier, where the number of devices is the number of tv fruit devices that are allowed to upgrade tv fruit applications according to the upgrade package indicated by the application version identifier;
the first sending unit 113 may be specifically configured to send the latest application version identifier to the first television program device if the total device number is smaller than the target device number.
In an embodiment of the present invention, the apparatus for upgrading a tv application may further include:
a third determining unit (not shown in the figure), configured to determine, according to a correspondence between a pre-stored application version identifier and a required application version identifier, a target required application version identifier corresponding to a latest application version identifier, where the required application version identifier is an application version identifier of an upgrade package according to which the tv application needs to be upgraded before the tv application is upgraded according to the upgrade package indicated by the application version identifier;
the first sending unit 113 may be further configured to send the inevitable application version identifier of the target to the first television program device;
the second sending unit 114 may be further configured to, after receiving a third upgrade request that the first television program product device carries the target must-be-applied version identifier, send a second address of a second upgrade package indicated by the target must-be-applied version identifier to the first television program product device, so that the first television program product device obtains the second upgrade package from the content distribution network according to the second address, and upgrade the television program product application according to the second upgrade package before upgrading the television program product application according to the first upgrade package.
In one embodiment of the invention, the server is provided with a release display interface matched with the television application, and the release display interface comprises a gray scale identification field, an application version identification field and an address field for storing the upgrade package; in this case, the apparatus for upgrading a tv application may further include:
a second obtaining unit (not shown in the figure), configured to obtain a first grayscale identifier input by the user to the grayscale identifier field, obtain a first application version identifier input by the user to the application version identifier field, and obtain a third address input by the user to the address field;
and a storage unit (not shown in the figure) for storing the upgrade package indicated by the first application version identifier to a third address in the content distribution network, and storing a corresponding relationship between the first grayscale identifier and the first application version identifier.
In one embodiment of the present invention, the application version identification may include: the software number of the TV fruit application, the hardware model of the TV fruit equipment and the sale channel of the TV fruit equipment; the upgrade package for the tv program application may include: a software version upgrade package and a plug-in upgrade package.
In the technical scheme provided by the embodiment of the invention, the corresponding relation between the gray scale identifier and the application version identifier is prestored in the server, wherein the gray scale identifier is used for representing the television fruit equipment, the application version identifier is the identifier of the upgrading packet, and if the corresponding relation between the gray scale identifier and the application version identifier is prestored in the server, the television fruit equipment represented by the gray scale identifier is allowed to be upgraded by using the upgrading packet represented by the application version identifier. If the corresponding relation between the gray scale identification and an application version identification is not stored in the server, the television equipment represented by the gray scale identification is prohibited from being upgraded by using the upgrading packet represented by the application version identification. Therefore, in the embodiment of the invention, the television fruit equipment can be flexibly controlled to download the upgrade package from the CDN to upgrade the television fruit application by utilizing the corresponding relation of the pre-stored gray scale identifier and the application version identifier, so that the flexibility of upgrading the television fruit application is improved.
In addition, in the embodiment of the present invention, the server pre-stores a corresponding relationship between a grayscale identifier and an application version identifier, so that the television device represented by the grayscale identifier is allowed to upgrade by using the upgrade package represented by the application version identifier. Therefore, when the bug exists in the upgrade package, the server only needs to delete the corresponding relation of the application version identification comprising the upgrade package, so that the corresponding relation of the application version identification comprising the upgrade package does not exist in the server, the television fruit equipment can be prohibited from being upgraded by using the upgrade package, and the negative influence caused by the bug existing in the upgrade package is reduced.
An embodiment of the present invention further provides a server, as shown in fig. 12, including a processor 121, a communication interface 122, a memory 123 and a communication bus 124, where the processor 121, the communication interface 122 and the memory 123 complete mutual communication through the communication bus 124;
a memory 123 for storing a computer program;
the processor 121, when executing the program stored in the memory 123, implements the following steps:
receiving a first upgrading request sent by first television fruit equipment, wherein the first upgrading request carries a target gray scale identifier of the first television fruit equipment, and the target gray scale identifier comprises a numerical value at a preset position in an equipment number of the first television fruit equipment;
determining a latest application version identifier corresponding to the target gray identifier according to a corresponding relation between a pre-stored gray identifier and an application version identifier, wherein the application version identifier is an identifier of an upgrading package according to which the television fruit equipment represented by the gray identifier is allowed to upgrade the television fruit application;
transmitting the latest application version identification to first television equipment;
after receiving a second upgrade request which is sent by the first television fruit device and carries the latest application version identification, sending a first address of a first upgrade package indicated by the latest application version identification to the first television fruit device, so that the first television fruit device obtains the first upgrade package from a content distribution network according to the first address and upgrades the television fruit application according to the first upgrade package.
In the technical scheme provided by the embodiment of the invention, the corresponding relation between the gray scale identifier and the application version identifier is prestored in the server, wherein the gray scale identifier is used for representing the television fruit equipment, the application version identifier is the identifier of the upgrading packet, and if the corresponding relation between the gray scale identifier and the application version identifier is prestored in the server, the television fruit equipment represented by the gray scale identifier is allowed to be upgraded by using the upgrading packet represented by the application version identifier. If the corresponding relation between the gray scale identification and an application version identification is not stored in the server, the television equipment represented by the gray scale identification is prohibited from being upgraded by using the upgrading packet represented by the application version identification. Therefore, in the embodiment of the invention, the television fruit equipment can be flexibly controlled to download the upgrade package from the CDN to upgrade the television fruit application by utilizing the corresponding relation of the pre-stored gray scale identifier and the application version identifier, so that the flexibility of upgrading the television fruit application is improved.
In addition, in the embodiment of the present invention, the server pre-stores a corresponding relationship between a grayscale identifier and an application version identifier, so that the television device represented by the grayscale identifier is allowed to upgrade by using the upgrade package represented by the application version identifier. Therefore, when a bug exists in the upgrade package, the server only needs to delete the corresponding relation of the application version identification including the upgrade package, so that the corresponding relation of the application version identification including the upgrade package does not exist in the server, the television fruit device can be prohibited from being upgraded by using the upgrade package, and negative effects caused by the bug existing in the upgrade package are reduced.
The communication bus may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the server and other devices.
The Memory may include a RAM (Random Access Memory) or an NVM (Non-Volatile Memory), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also a DSP (Digital Signal Processing), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component.
Based on the server provided by the embodiment of the invention, after the reminding message sent by the television program is received, the server deletes the locally recorded version information of the target application program with the running error. And because the version information of the target application program which runs in error is deleted, the version information recorded locally by the server is the version information of the target application program which runs normally. Subsequently, the latest version information acquired by the television program from the server is the version information of the target application program which normally runs, and the television program updates the target application program based on the latest version information, so that the user can normally use the television program, the problem that the user cannot use television program equipment due to the fact that the target application program corresponding to the latest version information runs in error is solved, and user experience is improved.
In another embodiment of the present invention, a computer-readable storage medium is further provided, in which a computer program is stored, and the computer program, when executed by a processor, implements the method for upgrading any of the tv program applications described above.
In another embodiment of the present invention, there is also provided a computer program which, when running on a computer, causes the computer to execute any of the above-mentioned methods for upgrading a tv program application.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the apparatus, the system, the computer-readable storage medium, and the computer program embodiment, since they are substantially similar to the method embodiment, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (8)

1. A method for upgrading a television application is applied to a server, and comprises the following steps:
receiving a first upgrading request sent by first television fruit equipment, wherein the first upgrading request carries a target gray scale identifier of the first television fruit equipment, and the target gray scale identifier comprises a numerical value at a preset position in an equipment number of the first television fruit equipment;
determining a latest application version identifier corresponding to the target gray identifier according to a corresponding relation between a pre-stored gray identifier and an application version identifier, wherein the application version identifier is an identifier of an upgrading packet according to which the television fruit device represented by the gray identifier is allowed to upgrade the television fruit application;
sending the latest application version identification to the first television program equipment;
after receiving a second upgrade request which is sent by the first television fruit device and carries the latest application version identification, sending a first address of a first upgrade package indicated by the latest application version identification to the first television fruit device, so that the first television fruit device obtains the first upgrade package from a content distribution network according to the first address and upgrades the television fruit application according to the first upgrade package;
the method further comprises the following steps:
if a reminding message sent by the first television program is not received after a preset time length after the first address is sent to the first television program device, setting a gray scale identifier corresponding to the latest application version identifier to be null, wherein the reminding message indicates that the television program application after the first television program device is upgraded operates and has errors;
the method further comprises the following steps:
if the reminding message sent by the first television program is received within a preset time length after the first address is sent to the first television program device, deleting the corresponding relation comprising the latest application version identification; alternatively, the first and second electrodes may be,
if a reminding message sent by the first television program is received within a preset time length after a first address is sent to the first television program device, outputting the reminding message, wherein the reminding message comprises an error type; and if a deletion request input by a user according to the error type is received, deleting the corresponding relation comprising the latest application version identification.
2. The method of claim 1, wherein after determining the latest application version identification, prior to transmitting the latest application version identification to the first television program device, the method further comprises:
acquiring the total equipment number of target television fruit equipment, wherein the target television fruit equipment is the television fruit equipment which is used for upgrading the television fruit application according to the first upgrading packet;
determining the number of target devices corresponding to the latest application version identification according to the corresponding relation between the prestored application version identification and the number of devices, wherein the number of the devices is the number of the television fruit devices which are allowed to upgrade the television fruit application according to the upgrade package indicated by the application version identification;
if the total equipment number is less than the target equipment number, continuing to execute the step of sending the latest application version identification to the first television program equipment.
3. The method of claim 1, wherein after determining the latest application version identification, prior to transmitting the latest application version identification to the first television program device, the method further comprises:
determining a target must-pass application version identification corresponding to the latest application version identification according to a corresponding relation between pre-stored application version identifications and must-pass application version identifications, wherein the must-pass application version identification is an application version identification of an upgrading package when the television application is required to be upgraded before the television application is upgraded according to the upgrading package indicated by the application version identification;
sending the target must pass application version identification to the first television fruit device;
after receiving a third upgrade request of the first television program product equipment carrying the target must-be-used version identification, sending a second address of a second upgrade package indicated by the target must-be-used version identification to the first television program product equipment, so that the first television program product equipment obtains the second upgrade package from a content distribution network according to the second address, and upgrading the television program product application according to the second upgrade package before upgrading the television program product application according to the first upgrade package.
4. The method according to claim 1, wherein the server has a release display interface matched with the tv program application, and the release display interface comprises a gray scale identification field, an application version identification field and an address field for storing an upgrade package; the method further comprises the following steps:
acquiring a first gray scale identifier input to the gray scale identifier field by a user, acquiring a first application version identifier input to the application version identifier field by the user, and acquiring a third address input to the address field by the user;
and storing the upgrade package indicated by the first application version identification to the third address in the content distribution network, and storing the corresponding relation between the first gray scale identification and the first application version identification.
5. The method according to any of claims 1-4, wherein the application version identification comprises: the software number of the television fruit application, the hardware model of the television fruit equipment and a sale channel of the television fruit equipment; the upgrade package of the television program application comprises: a software version upgrade package and a plug-in upgrade package.
6. An apparatus for upgrading a tv application, applied to a server, the apparatus comprising:
the device comprises a receiving unit, a processing unit and a processing unit, wherein the receiving unit is used for receiving a first upgrading request sent by first television fruit equipment, the first upgrading request carries a target gray-scale identifier of the first television fruit equipment, and the target gray-scale identifier comprises a numerical value at a preset position in an equipment number of the first television fruit equipment;
the first determining unit is used for determining a latest application version identifier corresponding to the target gray identifier according to a corresponding relation between a pre-stored gray identifier and an application version identifier, wherein the application version identifier is an identifier of an upgrading packet according to which the television fruit equipment represented by the gray identifier is allowed to upgrade the television fruit application;
the first sending unit is used for sending the latest application version identification to the first television program equipment;
a second sending unit, configured to send, to the first television program device, a first address of a first upgrade package indicated by the latest application version identifier after receiving a second upgrade request that is sent by the first television program device and carries the latest application version identifier, so that the first television program device obtains the first upgrade package from a content distribution network according to the first address, and upgrades the television program application according to the first upgrade package;
the setting unit is used for setting the gray scale identifier corresponding to the latest application version identifier to be null if a reminding message sent by the first television program is not received after a preset time length after the first address is sent to the first television program device, wherein the reminding message indicates that the television program application after the first television program device is operated and upgraded is in error;
the device further comprises:
a deleting unit, configured to delete the corresponding relationship including the latest application version identifier if the reminder message sent by the first tv program is received within a preset time period after the first address is sent to the first tv program device; alternatively, the first and second electrodes may be,
the deleting unit is used for outputting a reminding message if the reminding message sent by the first television program is received within a preset time length after the first address is sent to the first television program device, wherein the reminding message comprises an error type; and if a deletion request input by a user according to the error type is received, deleting the corresponding relation comprising the latest application version identification.
7. A server is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing the communication between the processor and the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any one of claims 1 to 5 when executing a program stored in the memory.
8. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of the claims 1-5.
CN202010899885.9A 2020-08-31 2020-08-31 Television fruit application upgrading method and device Active CN112040320B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010899885.9A CN112040320B (en) 2020-08-31 2020-08-31 Television fruit application upgrading method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010899885.9A CN112040320B (en) 2020-08-31 2020-08-31 Television fruit application upgrading method and device

Publications (2)

Publication Number Publication Date
CN112040320A CN112040320A (en) 2020-12-04
CN112040320B true CN112040320B (en) 2022-06-03

Family

ID=73586620

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010899885.9A Active CN112040320B (en) 2020-08-31 2020-08-31 Television fruit application upgrading method and device

Country Status (1)

Country Link
CN (1) CN112040320B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114466098B (en) * 2022-01-19 2023-12-26 上海黑眸智能科技有限责任公司 OTA upgrading method, system, equipment end and APP end based on APP interaction

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1503267A2 (en) * 2003-07-31 2005-02-02 Sony United Kingdom Limited Access control for digital content
CN104954394A (en) * 2014-03-24 2015-09-30 中兴通讯股份有限公司 Software differential packet production and update method, server, terminal and update system
CN105700927A (en) * 2016-01-15 2016-06-22 青岛海信移动通信技术股份有限公司 Version upgrade method, terminal equipment and version server
CN107172460A (en) * 2017-06-16 2017-09-15 深圳市云联志远网络科技有限公司 Network television upgrade method, device and computer-readable recording medium
CN109189431A (en) * 2018-09-18 2019-01-11 郑州云海信息技术有限公司 A kind of client side upgrading method, device, equipment and readable storage medium storing program for executing
CN110134420A (en) * 2019-05-22 2019-08-16 上海诺雅克电气有限公司 Firmware upgrade method and system based on cloud platform
CN110958314A (en) * 2019-11-28 2020-04-03 盛业信息科技服务(深圳)有限公司 Grayscale publishing method and device of service and computer equipment
CN111158717A (en) * 2019-12-24 2020-05-15 深圳怡化电脑股份有限公司 Firmware upgrading method, device and medium for device
CN111324364A (en) * 2020-02-18 2020-06-23 中国建设银行股份有限公司 Method, device, equipment and storage medium for equipment management

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050120384A1 (en) * 2003-12-01 2005-06-02 General Instrument Corporation Methods and systems for enabling software and firmware downloads to high definition television appliances
JP5004857B2 (en) * 2008-04-18 2012-08-22 日本電信電話株式会社 Application update information providing system and application update information providing method
CN104717260A (en) * 2013-12-16 2015-06-17 ***通信集团公司 Development resource updating and management method, device, system and related equipment
CN105224343B (en) * 2014-05-27 2019-09-17 阿里巴巴集团控股有限公司 A kind of the update reminding method and device of application program
CN106648562B (en) * 2015-10-29 2020-04-21 腾讯科技(深圳)有限公司 Version updating method and device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1503267A2 (en) * 2003-07-31 2005-02-02 Sony United Kingdom Limited Access control for digital content
CN104954394A (en) * 2014-03-24 2015-09-30 中兴通讯股份有限公司 Software differential packet production and update method, server, terminal and update system
CN105700927A (en) * 2016-01-15 2016-06-22 青岛海信移动通信技术股份有限公司 Version upgrade method, terminal equipment and version server
CN107172460A (en) * 2017-06-16 2017-09-15 深圳市云联志远网络科技有限公司 Network television upgrade method, device and computer-readable recording medium
CN109189431A (en) * 2018-09-18 2019-01-11 郑州云海信息技术有限公司 A kind of client side upgrading method, device, equipment and readable storage medium storing program for executing
CN110134420A (en) * 2019-05-22 2019-08-16 上海诺雅克电气有限公司 Firmware upgrade method and system based on cloud platform
CN110958314A (en) * 2019-11-28 2020-04-03 盛业信息科技服务(深圳)有限公司 Grayscale publishing method and device of service and computer equipment
CN111158717A (en) * 2019-12-24 2020-05-15 深圳怡化电脑股份有限公司 Firmware upgrading method, device and medium for device
CN111324364A (en) * 2020-02-18 2020-06-23 中国建设银行股份有限公司 Method, device, equipment and storage medium for equipment management

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
提高C/S模式***可维护性研究;高志刚等;《微机发展》;20040310(第03期);全文 *

Also Published As

Publication number Publication date
CN112040320A (en) 2020-12-04

Similar Documents

Publication Publication Date Title
CN102289382B (en) TV software update method, Apparatus and system
CN105307195B (en) A kind of method and device updating access point name parameter
CN111158738B (en) Headset firmware upgrading method and device and readable storage medium
CN106951284B (en) User interface upgrading method and device based on android system application and intelligent terminal
CN105808278A (en) Client version upgrading method and device
CN110597545A (en) Hot patch intelligent upgrading method and system based on OTA component
CN110633092A (en) Server for OTA (over the air) upgrading and embedded equipment upgrading method and device
CN112115049B (en) Application program testing method, device, equipment and computer readable storage medium
CN112040320B (en) Television fruit application upgrading method and device
CN110597764B (en) File downloading and version management method and device
CN116257438A (en) Updating method of interface test case and related equipment
WO2016082450A1 (en) Method for upgrading user terminal, and user terminal
CN111506358A (en) Method and device for updating container configuration
CN113596087A (en) Application upgrading method and device and computer readable storage medium
US20040147253A1 (en) Information processing system, mobile phone and information processing server
CN113094064A (en) Gateway software module upgrading method, device, equipment and storage medium
CN112306973A (en) Picture importing system and method
CN111679842B (en) Application program hot update processing method, device and system
KR101461319B1 (en) Methods and device for upgrading firmware of set-top box
CN114546842A (en) Interface test method and device, storage medium and electronic equipment
CN114327548A (en) Software upgrading method and related device
CN115437660A (en) Firmware updating method and device, electronic equipment and storage medium
CN112328288A (en) Method, system, equipment and storage medium for updating server component
CN112148330A (en) Target equipment system upgrading method and device
KR20100129439A (en) Method for updating software of pc integrated tv

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