Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The flow diagrams depicted in the figures are merely illustrative and not necessarily all of the elements and operations/steps are included or performed in the order described. For example, some operations/steps may be further divided, combined, or partially combined, so that the order of actual execution may be changed according to actual situations.
It is to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
The embodiment of the invention provides a terminal equipment upgrading method, terminal equipment, a control system and a storage medium. The terminal equipment upgrading method can be applied to terminal equipment, for example, a set top box. The terminal equipment comprises electronic equipment such as a set top box, a mobile phone, a tablet personal computer, a notebook computer, a desktop computer, a personal digital assistant, wearable equipment and the like, and the set top box comprises a bidirectional set top box, a digital set top box, a network set top box and the like. It can be understood that the method for upgrading terminal equipment can be applied to servers, for example, to a server cluster formed by a single server or multiple servers, and the embodiment of the invention is not limited in detail.
The following explains the embodiment of the present invention by taking the terminal equipment upgrading method applied to the terminal equipment as an example. Mainly, the set top box is exemplified, and the implementation process of other terminal devices may refer to specific implementation steps of the set top box in the embodiment of the present invention, which is not described in detail.
Some embodiments of the present invention are described in detail below with reference to the accompanying drawings. The following embodiments and features of the embodiments may be combined with each other without conflict.
Referring to fig. 1, fig. 1 is a flow chart of a method for upgrading a terminal device according to an embodiment of the present invention.
As shown in fig. 1, the terminal device upgrade method includes steps S101 to S102.
Step S101, the terminal equipment is subjected to software upgrading, so that the terminal equipment after the software upgrading can communicate with the decoding server.
In general, a terminal device, such as a set top box, is configured to connect an external signal source with a display device, that is, obtain video data to be played from the external signal source, decode the video data to be played, and send the decoded video data to the display device, so that the display device displays the decoded video data for a viewer to watch. The external signal source is, for example, a broadband network, a cable, a satellite antenna, or terrestrial broadcasting, and the display device is, for example, a television, a projector, or the like.
However, as viewers pursue viewing higher resolution video data, the performance of set-top boxes in many viewers 'homes is insufficient, and the higher resolution video data cannot be decoded, resulting in a user's inability to satisfy the pursue of viewing higher resolution video data and poor user experience.
Based on the above, the inventor of the present invention considers that, by deploying decoding servers in advance in a plurality of areas, the decoding servers are used to assist the terminal device in decoding video data with higher resolution, so as to improve the decoding capability of the terminal device, and enable the terminal device to put in a slice source with higher resolution.
The decoding server is provided with a decoding chip for decoding video data of a predetermined resolution. For example, the decoding chip of the existing set top box can decode video data with 2K resolution, and the decoding chip of the decoding server can decode video data with 4K or 8K, so that the capability of the set top box for delivering a higher resolution film source to a television can be remarkably improved. Or the decoding chip is configured by the decoding server to decode the video data with at least one preset resolution, i.e. the decoding chip can decode the video data with the preset resolution of the multi-code stream at the same time.
Illustratively, the set top box is software upgraded so that the software upgraded set top box can communicate with the decoding server. For example, the set top box is subjected to software upgrading to establish a handshake protocol between the set top box after the software upgrading and the decoding server, and the set top box after the software upgrading can be communicated with the decoding server according to the handshake protocol, or the communication capability between the set top box after the software upgrading and the decoding server is enhanced. For example, the set top box is upgraded by software so as to optimize the communication program between the set top box after the software upgrade and the decoding server, thereby enhancing the communication capability between the set top box and the decoding server.
In one embodiment, the step of performing software upgrading on the terminal equipment comprises the steps of obtaining a software upgrading instruction, downloading a corresponding software data packet according to the software upgrading instruction, and performing software upgrading on the terminal equipment based on the software data packet. It should be noted that, the software upgrade instruction may be sent by the user. For example, the user sends a software upgrade instruction to the set-top box through a remote control, a control on the set-top box, etc., or the user triggers the software upgrade instruction of the set-top box connected with the display device through the operation of the display device. After the set top box obtains the software upgrading instruction, the corresponding software data package is downloaded from the network according to the software upgrading instruction, and the software data package is installed, so that the set top box is subjected to software upgrading.
Further, the specific mode of downloading the corresponding software data package according to the software upgrading instruction comprises verifying authority information carried in the software upgrading instruction, and if the verification is passed, downloading the software data package corresponding to the software upgrading instruction. The authority information includes, but is not limited to, payment history information, authority level information, authority remaining time and the like of the user.
In an embodiment, the user sends a timing upgrade instruction to the terminal device, where the timing upgrade instruction is used to instruct the terminal device to perform a software upgrade at a preset time. For example, the user controls the set-top box to perform a software upgrade at eight evening, or the timing upgrade instructs the user to instruct the terminal device to perform a software upgrade after a preset time, for example, the user controls the set-top box to perform a software upgrade after 3 hours. After the terminal device obtains the timing upgrade instruction, the corresponding software data packet is downloaded in advance from the network according to the timing upgrade instruction, and when the timing upgrade condition is reached, the software data packet is installed, so that the software upgrade of the terminal device is realized.
In an embodiment, after the decoding server is updated, the terminal device obtains the update information of the decoding server, and performs software upgrade on the terminal device according to the update information of the decoding server, so that the terminal device after the software upgrade can communicate with the decoding server after the update, and further, the binding relationship between the terminal device and the decoding server can be re-established.
Step S102, a binding relation between the terminal equipment and the decoding server is established, so that the terminal equipment can call the bound decoding server to decode the video data with the preset resolution.
The decoding server may be deployed according to the number of terminal devices. For example, each corresponding one thousand set-top boxes is provided with a decoding server nearby the corresponding one thousand set-top boxes, and the decoding server can meet the decoding requirement of the nearby one thousand set-top boxes, or the decoding servers can be deployed according to the area of the area. For example, a decoding server is disposed in the corresponding area every 10 square kilometers, and the decoding server can meet the decoding requirements of a plurality of set-top boxes in the area of 10 square kilometers. It can be understood that the embodiment of the present invention further includes other deployment manners of the decoding servers, and the deployment manners of the decoding servers in the foregoing embodiment do not represent limitations on the protection scope of the present invention.
In one embodiment, after the software of the terminal device is upgraded, the terminal device broadcasts the detection data packet, the detection terminal device receives response information returned by the decoding server based on the detection data packet, and a binding relation between the terminal device and the decoding server is established according to the response information. It should be noted that, the response information returned by the decoding server carries a decoding server tag, and a binding relationship between the terminal device and the decoding server is established according to the decoding server tag, so that the terminal device can call the binding decoding server to decode the video data with the preset resolution, and further the terminal device can put in the film source with the higher resolution.
Further, the binding relation between the terminal equipment and the decoding server is established according to the response information, and the binding relation between the terminal equipment and the decoding server is established by acquiring the decoding server label carried in the response information and the label information of the terminal equipment and binding the label information of the decoding server label and the label information of the terminal equipment. In some embodiments, the binding relationship between the terminal device and the decoding server is stored in a database or a memory of the terminal device, so that the terminal device can quickly call the decoding server with the binding according to the stored binding relationship.
In one embodiment, after software upgrading of the terminal device is completed, the terminal device restarts, and obtains grouping information in a software data packet for software upgrading after restarting, wherein the grouping information comprises label information of a decoding server in an area where the terminal device is located, the decoding server is sent to the detecting data packet according to the grouping information, whether the terminal device receives response information returned by the decoding server based on the sent detecting data packet is detected, and when the response information is detected, a binding relation between the terminal device and the decoding server is established according to the response information.
In an embodiment, the response information received by the terminal device is multiple. The method comprises the steps of obtaining a plurality of receiving time points by the terminal equipment, obtaining the time points recorded by each response message, determining target response messages from a plurality of response messages according to the plurality of receiving time points, and establishing a binding relation between the terminal equipment and the decoding server according to the target response messages. It should be noted that, response information corresponding to the earliest receiving time point in the plurality of receiving time points is taken as target response information, and a binding relationship between the terminal device and a decoding server corresponding to the target response information is established, so that the terminal device can call the bound decoding server to decode the video data with preset resolution.
Or the response information received by the terminal equipment is multiple. The method comprises the steps of obtaining decoding capability values of a decoding server corresponding to each response message received by the terminal equipment to obtain a plurality of decoding capability values, determining target response messages from a plurality of response messages according to the decoding capability values, and establishing a binding relation between the terminal equipment and the decoding server according to the target response messages. It should be noted that, response information corresponding to the largest decoding capability value in the plurality of decoding capability values is taken as target response information, and a binding relationship between the terminal device and a decoding server corresponding to the target response information is established, so that the terminal device can call the bound decoding server to decode the video data with the preset resolution.
Or the response information received by the terminal equipment is multiple. The method comprises the steps of obtaining residual binding capacity of a decoding server corresponding to each response message received by the terminal equipment to obtain a plurality of residual binding capacities, determining target response messages from a plurality of response messages according to the plurality of residual binding capacities, and establishing a binding relation between the terminal equipment and the decoding server according to the target response messages. It should be noted that, response information corresponding to the most residual binding capacity in the plurality of residual binding capacities is taken as target response information, and a binding relationship between the terminal device and a decoding server corresponding to the target response information is established, so that the terminal device can call the bound decoding server to decode the video data with preset resolution. The residual binding capacity is the capacity of the terminal equipment which can be bound by the decoding server. For example, the set top box receives response information sent by each of the decoding server a, the decoding server B and the decoding server C, where the maximum binding capacity of the decoding server a, the decoding server B and the decoding server C is 1000, the remaining binding capacity of the decoding server a is 500, the remaining binding capacity of the decoding server B is 600, and the remaining binding capacity of the decoding server C is 400, and then the set top box may select the decoding server B with the remaining binding capacity of 600 as the target decoding server for binding.
In an embodiment, after the binding relation between the terminal device and the decoding server is established, the method further comprises the steps of obtaining the decoding capability value of the decoding server which is bound, obtaining corresponding slice source pushing information according to the decoding capability value of the decoding server which is bound, and storing the slice source pushing information. The slice source pushing information comprises a plurality of slice sources corresponding to the decoding capability values.
Illustratively, as shown in fig. 2, the set top box 10 obtains a decoding capability value of 4.0 for the bound decoding server 20, the decoding capability value of 4.0 indicating that the decoding server is capable of decoding 4K resolution slices. The set top box 10 reports the decoding capability of the current set top box 10 supporting the 4K resolution to the service server 30, the service server 30 can push the 4K resolution source channel information and the source program information to the set top box 10, and the set top box 10 stores the 4K resolution source channel information and the source program information pushed by the service server 30 to the memory, so that the 4K resolution source channel information and the source program information pushed by the service server 30 are put into the display device for user to select and broadcast after the display device is started.
In one embodiment, if the terminal device does not receive the response returned by the decoding server based on the broadcasted probe data packet, the decoding capability value of the terminal device is obtained, and the slice source pushing information is obtained according to the decoding capability value of the terminal device, wherein the slice source pushing information comprises a plurality of slice sources corresponding to the decoding capability value of the terminal device.
Or the terminal equipment and the decoding server have binding relation, and when the bound decoding server is detected to be abnormal, the slice source pushing information comprising a plurality of slice source pushing information corresponding to the decoding capability value is obtained according to the decoding capability value of the terminal equipment. For example, an 8K program of an operator in a certain city may be abnormal due to the decoding server, so that the display device cannot play the source of the 8K program. In order not to affect the use of the user, the decoding server with the abnormality is disconnected with the bound set top box, the set top box reports the decoding capability value of the set top box to the service server, and the service server does not push the 8K program any more, but pushes a source corresponding to the decoding capability value of the set top box, for example, pushes the 4K program. And after the problem repair is completed by the abnormal decoding server, the set top box reestablishes connection with the decoding server, and the service server re-pushes the 8K program to the user. Advantageously, when the bound decoding server is abnormal, the software version of the set top box can be repaired without changing, and the use of a user is not affected.
In one embodiment, after the binding relation between the terminal device and the decoding server is established, the method further comprises the steps of generating a video data decoding request according to the playing request when the playing request of the video data with the preset resolution is received, sending the video data decoding request to the binding decoding server, enabling the binding decoding server to acquire corresponding video data based on the video data decoding request, decoding the video data, sending the decoded video data to the terminal device, and enabling the terminal device to acquire the decoded video data sent by the binding decoding server and output the decoded video data. It should be noted that the decoded video data may be in the form of a video stream or multi-frame picture data. Under the condition that the hardware part of the terminal equipment is not replaced, the decoding capability of the terminal equipment is greatly improved, so that the terminal equipment can put in video data with higher resolution.
When the terminal equipment is an electronic device which does not carry a display screen, such as a set top box, an intelligent refrigerator, an intelligent controller and the like, the decoded video data is sent to the electronic device which carries the display screen, so that the electronic device which carries the display screen outputs the decoded video data.
Referring to fig. 3, fig. 3 is a schematic view of a scenario for implementing the terminal device upgrading method provided by the present embodiment, as shown in fig. 3, a user sends a play request of video data with a preset resolution to the set top box 10 through the display device 40, when the set top box 10 receives the play request, generates a video data decoding request according to the play request, and sends the generated video data decoding request to the bound decoding server 20, so that the bound decoding server 20 obtains corresponding video data from a network based on the video data decoding request, decodes the video data, and sends the decoded video data to the set top box 10, and then the set top box 10 puts the decoded video data sent by the bound decoding server 20 to the display device 40 for the display device 40 to display the decoded video data for viewing by the user.
According to the terminal equipment upgrading method provided by the embodiment, the terminal equipment is subjected to software upgrading, so that the terminal equipment after the software upgrading can communicate with the decoding server, then a binding relation between the terminal equipment and the decoding server is established, and the terminal equipment can call the bound decoding server to decode video data with preset resolution. Under the condition that the hardware part of the terminal equipment is not replaced, the decoding capability of the terminal equipment is greatly improved, so that the terminal equipment can put in a higher-resolution film source. Meanwhile, the hardware cost and time cost for updating the terminal equipment are greatly reduced, the video-on-demand quantity of the user on the ultrahigh-definition images and videos can be improved, and the play benefit of operators is increased.
Referring to fig. 4, fig. 4 is a schematic block diagram of a structure of a terminal device according to an embodiment of the present invention.
As shown in fig. 4, the terminal device 200 includes a processor 201 and a memory 202, and the processor 201 and the memory 202 are connected by a bus 203, such as an I2C (Inter-INTEGRATED CIRCUIT) bus.
In particular, the processor 201 is used to provide computing and control capabilities, supporting the operation of the entire terminal device. The Processor 201 may be a central processing unit (Central Processing Unit, CPU), and the Processor 201 may also be other general purpose processors, digital signal processors (DIGITAL SIGNAL processors, DSPs), application SPECIFIC INTEGRATED Circuits (ASICs), field-Programmable gate arrays (Field-Programmable GATE ARRAY, FPGA) or other Programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Wherein the general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Specifically, the Memory 202 may be a Flash chip, a Read-Only Memory (ROM) disk, an optical disk, a U-disk, a removable hard disk, or the like.
It will be appreciated by those skilled in the art that the structure shown in fig. 4 is merely a block diagram of a portion of the structure associated with an embodiment of the present invention and is not intended to limit the terminal device to which an embodiment of the present invention is applied, and that a particular terminal device may include more or fewer components than shown, or may combine some of the components, or may have a different arrangement of components.
The processor is configured to run a computer program stored in the memory, and implement any one of the terminal device upgrading methods provided by the embodiments of the present invention when the computer program is executed.
In an embodiment, the processor is configured to run a computer program stored in a memory and to implement the following steps when the computer program is executed:
The terminal equipment is subjected to software upgrading, so that the terminal equipment after the software upgrading can communicate with a decoding server;
and establishing a binding relation between the terminal equipment and the decoding server, so that the terminal equipment can call the bound decoding server to decode the video data with preset resolution.
In an embodiment, when implementing the establishment of the binding relationship between the terminal device and the decoding server, the processor is configured to implement:
Broadcasting a detection data packet;
the terminal equipment receives response information returned by the decoding server based on the detection data packet;
And establishing a binding relation between the terminal equipment and the decoding server according to the response information.
In an embodiment, when implementing the binding relationship between the terminal device and the decoding server according to the response information, the processor is configured to implement:
acquiring a decoding server tag carried in the response information and tag information of the terminal equipment;
And binding the label information of the decoding server label and the label information of the terminal equipment so as to establish a binding relation between the terminal equipment and the decoding server.
In an embodiment, after implementing the establishing of the binding relationship between the terminal device and the decoding server, the processor is further configured to implement:
acquiring a decoding capability value of the bound decoding server;
and acquiring corresponding slice source pushing information according to the decoding capability value of the decoding server, and storing the slice source pushing information.
In one embodiment, the response information is multiple, and the processor is configured to, when implementing the binding relationship between the terminal device and the decoding server according to the response information, implement:
Acquiring the time points recorded by the response information received by the terminal equipment, and obtaining a plurality of receiving time points;
Determining target response information from a plurality of response information according to the plurality of receiving time points;
And establishing a binding relation between the terminal equipment and the decoding server according to the target response information.
In an embodiment, when implementing the software upgrade to the terminal device, the processor is configured to implement:
Acquiring a software upgrading instruction, and downloading a corresponding software data packet according to the software upgrading instruction;
and carrying out software upgrading on the terminal equipment based on the software data package.
In an embodiment, after implementing the establishing of the binding relationship between the terminal device and the decoding server, the processor is further configured to implement:
when a play request of video data with preset resolution is received, generating a video data decoding request according to the play request;
transmitting the video data decoding request to the bound decoding server, so that the bound decoding server obtains corresponding video data based on the video data decoding request, decodes the video data, and transmits the decoded video data to the terminal equipment;
And acquiring the decoded video data sent by the bound decoding server, and outputting the decoded video data.
It should be noted that, for convenience and brevity of description, a person skilled in the art may clearly understand that, for a specific working process of the above-described terminal device, reference may be made to a corresponding process in the foregoing embodiment of the terminal device upgrading method, which is not described herein again.
Referring to fig. 5, fig. 5 is a schematic block diagram of a control system according to an embodiment of the present invention.
As shown in fig. 5, the control system 300 includes a terminal device 301 and a decoding server 302, in which:
The terminal device 301 is configured to perform a software upgrade on the terminal device 301, so that the terminal device 301 after the software upgrade can communicate with the decoding server 302;
The terminal device 301 is further configured to establish a binding relationship between the terminal device 301 and the decoding server 302, so that the terminal device 301 can invoke the bound decoding server 302 to decode video data with a preset resolution;
The terminal device 301 is further configured to, when receiving a play request of video data with a preset resolution, generate a video data decoding request of the video data, and send the video data decoding request to the decoding server 302;
The decoding server 302 is configured to receive the video data decoding request sent by the bound terminal device 301, and obtain corresponding video data according to the video data decoding request;
the decoding server 302 is further configured to decode the video data to obtain a decoded code stream, and send the decoded code stream to the terminal device 301;
the terminal device 301 is further configured to output the decoded code stream.
In an embodiment, the terminal device 301 is further configured to:
Broadcasting a detection data packet;
the terminal equipment receives response information returned by the decoding server based on the detection data packet;
And establishing a binding relation between the terminal equipment and the decoding server according to the response information.
In an embodiment, the terminal device 301 is further configured to:
acquiring a decoding server tag carried in the response information and tag information of the terminal equipment;
And binding the label information of the decoding server label and the label information of the terminal equipment so as to establish a binding relation between the terminal equipment and the decoding server.
In an embodiment, the terminal device 301 is further configured to:
Acquiring the time points recorded by the response information received by the terminal equipment, and obtaining a plurality of receiving time points;
Determining target response information from a plurality of response information according to the plurality of receiving time points;
And establishing a binding relation between the terminal equipment and the decoding server according to the target response information.
In an embodiment, the terminal device 301 is further configured to:
acquiring a decoding capability value of the bound decoding server;
and acquiring corresponding slice source pushing information according to the decoding capability value of the decoding server, and storing the slice source pushing information.
In an embodiment, the terminal device 301 is further configured to:
Acquiring a software upgrading instruction, and downloading a corresponding software data packet according to the software upgrading instruction;
and carrying out software upgrading on the terminal equipment based on the software data package.
The embodiment of the invention also provides a storage medium for computer readable storage, wherein the storage medium stores one or more programs, and the one or more programs can be executed by one or more processors, so as to implement the steps of any one of the terminal equipment upgrading method or the video data decoding method provided by the embodiment of the invention.
The storage medium may be an internal storage unit of the control system according to the foregoing embodiment, for example, a hard disk or a memory of the control system. The storage medium may also be an external storage device of the control system, such as a plug-in hard disk, a smart memory card (SMART MEDIA CARD, SMC), a Secure Digital (SD) card, a flash memory card (FLASH CARD), or the like, which are provided on the control system.
Those of ordinary skill in the art will appreciate that all or some of the steps, systems, functional modules/units in the apparatus, and methods disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components, for example, one physical component may have a plurality of functions, or one function or step may be cooperatively performed by several physical components. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes both volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as known to those skilled in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by a computer. Furthermore, as is well known to those of ordinary skill in the art, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media.
It should be understood that the term "and/or" as used in the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations. It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments. While the invention has been described with reference to certain preferred embodiments, it will be understood by those skilled in the art that various changes and substitutions of equivalents may be made and equivalents will be apparent to those skilled in the art without departing from the scope of the invention. Therefore, the protection scope of the invention is subject to the protection scope of the claims.