CN106131682B - WiFi firmware upgrade method, device and set-top box built in set-top box - Google Patents

WiFi firmware upgrade method, device and set-top box built in set-top box Download PDF

Info

Publication number
CN106131682B
CN106131682B CN201610555170.5A CN201610555170A CN106131682B CN 106131682 B CN106131682 B CN 106131682B CN 201610555170 A CN201610555170 A CN 201610555170A CN 106131682 B CN106131682 B CN 106131682B
Authority
CN
China
Prior art keywords
upgrading
built
wifi
wifi firmware
network
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
CN201610555170.5A
Other languages
Chinese (zh)
Other versions
CN106131682A (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.)
Hisense Broadband Multimedia Technology Co Ltd
Original Assignee
Hisense Broadband Multimedia 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 Hisense Broadband Multimedia Technology Co Ltd filed Critical Hisense Broadband Multimedia Technology Co Ltd
Priority to CN201610555170.5A priority Critical patent/CN106131682B/en
Publication of CN106131682A publication Critical patent/CN106131682A/en
Application granted granted Critical
Publication of CN106131682B publication Critical patent/CN106131682B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • 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)
  • Software Systems (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Stored Programmes (AREA)

Abstract

The present invention relates to the upgrade method of WiFi firmware, device and set-top boxes built in a kind of set-top box, wherein, the method includes when downloading to the upgrade file of built-in WiFi firmware, obtain the result that the built-in WiFi firmware last time upgrades, it selects this upgrading mode to upgrade mode for network upgrade mode or serial ports according to the result of the built-in WiFi firmware last time upgrading, the built-in WiFi firmware is upgraded according to the upgrade file and the network upgrade mode or serial ports upgrading mode.Method provided in an embodiment of the present invention can be avoided built-in WiFi firmware due to accident power-off, upgrade procedure are destroyed or built-in WiFi firmware is in error condition etc., the case where causing built-in WiFi firmware that can not upgrade, it can prevent the possibility that can not upgrade in advance, so as to effectively repair built-in WiFi firmware loophole, the overall performance of set-top box is greatly improved.

Description

Method and device for upgrading built-in WiFi (Wireless Fidelity) firmware of set top box and set top box
Technical Field
The invention relates to the technical field of digital televisions, in particular to a method and a device for upgrading built-in WiFi firmware of a set top box and the set top box.
Background
With the development of information communication technology, digital television technology is becoming mature, and with the popularization of digital televisions, set-top boxes for spreading and converting digital programs have become essential household electrical appliances. After the broadband network and the broadcast television network are integrated by the set-top box, the set-top box can be connected with the network through built-in WiFi firmware of the set-top box, so that services such as network browsing, video on demand and downloading of more multimedia resources from a server are realized, and positive promotion effect is provided for user experience.
In the using process of the set-top box, a customer may put forward new requirements on functions of a product, so that the functions of the set-top box need to be continuously developed and improved, wherein for the built-in WiFi firmware of the set-top box, besides the functions of the module need to be continuously improved, the stability of the module needs to be enhanced, and the loopholes of the module need to be repaired, so that the built-in WiFi firmware needs to be updated, the requirements of the customer can be met, and richer applications are provided for the user. The existing upgrading method of the built-in WiFi of the set-top box mainly comprises the steps of converting files of the built-in WiFi firmware to be upgraded into upgrading streams in digital video broadcasting, periodically sending the upgrading streams to a cable of the set-top box through the data video broadcasting, and after the set-top box of a user detects the upgrading streams to be upgraded, establishing communication connection between the set-top box and the built-in WiFi firmware to realize data interaction, so that the upgrading files corresponding to the upgrading streams are received to complete network upgrading of the built-in WiFi firmware.
However, if the set-top box needs to perform network upgrade, for example, the set-top box cannot perform network communication due to unexpected power failure of the built-in WiFi firmware, the built-in WiFi firmware is in an error state, or the upgrade program of the built-in WiFi firmware is damaged, the built-in WiFi firmware may not perform network upgrade, or even the built-in WiFi firmware may be damaged and cannot be restored, which causes the problems that the bug of the original built-in WiFi firmware cannot be repaired, the user operation interface cannot be improved, and the like, and greatly affects the performance of the entire set-top box and the normal use of the user.
Disclosure of Invention
In order to overcome the problems in the related art, the invention provides a method and a device for upgrading built-in WiFi firmware of a set top box and the set top box.
According to a first aspect of the embodiments of the present invention, there is provided a method for upgrading a WiFi firmware built in a set-top box, including:
when an upgrading file of the built-in WiFi firmware is downloaded, obtaining the last upgrading result of the built-in WiFi firmware;
selecting the upgrading mode as a network upgrading mode or a serial port upgrading mode according to the last upgrading result of the built-in WiFi firmware;
and upgrading the built-in WiFi firmware according to the upgrading file and the network upgrading mode or the serial port upgrading mode.
According to a second aspect of the embodiments of the present invention, an upgrading apparatus for a WiFi firmware built in a set-top box is provided, including:
the acquisition module is used for acquiring the result of the last upgrading of the built-in WiFi firmware when the upgrading file of the built-in WiFi firmware is downloaded;
the selection module is used for selecting the upgrading mode to be a network upgrading mode or a serial port upgrading mode according to the result of the last upgrading of the built-in WiFi firmware acquired by the acquisition module;
and the upgrading module is used for upgrading the built-in WiFi firmware according to the upgrading file and the network upgrading mode or the serial port upgrading mode.
According to a third aspect of the embodiments of the present invention, an embodiment of the present invention provides a set top box, including built-in WiFi firmware, further including: a processor, a memory for storing processor-executable instructions; wherein the processor is configured to perform the method of upgrading the WiFi firmware set forth in the first aspect above.
The technical scheme provided by the embodiment of the invention can have the following beneficial effects:
the embodiment of the invention provides a method and a device for upgrading built-in WiFi firmware of a set top box, wherein the method comprises the following steps: when an upgrading file of the built-in WiFi firmware is downloaded, the last upgrading result of the built-in WiFi firmware is obtained, the upgrading mode is selected to be a network upgrading mode or a serial port upgrading mode according to the last upgrading result of the built-in WiFi firmware, and the built-in WiFi firmware is upgraded according to the upgrading file and the network upgrading mode or the serial port upgrading mode. The method provided by the embodiment of the invention can determine that the upgrading needs to be carried out in a network upgrading mode or a serial port upgrading mode according to the last upgrading result of the built-in WiFi firmware, can avoid the situation that the built-in WiFi firmware cannot be upgraded due to unexpected power failure of the built-in WiFi firmware, damage to an upgrading program or error state of the built-in WiFi firmware and the like during the upgrading of the built-in WiFi firmware, can prevent the possibility of incapability of upgrading in advance, judges whether the built-in WiFi firmware can be normally connected with a network during the upgrading according to the last upgrading result, realizes the possibility of two upgrading modes of network upgrading and serial port upgrading, can effectively repair the built-in WiFi firmware bugs, and greatly improves the overall performance of the set.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
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, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a schematic view of a scenario provided in an embodiment of the present invention;
fig. 2 is a schematic flowchart of a method for upgrading a WiFi firmware built in a set-top box according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of another method for upgrading WiFi firmware built in a set-top box according to an embodiment of the present invention;
FIG. 4 is a detailed flowchart of step S001 in FIG. 3 according to an embodiment of the present invention;
fig. 5 is a detailed flowchart of step S101 in fig. 2 according to an embodiment of the present invention;
fig. 6 is a detailed flowchart of step S102 in fig. 2 according to an embodiment of the present invention;
fig. 7 is a detailed flowchart of step S1021 according to an embodiment of the present invention;
fig. 8 is a schematic detailed flowchart of step S1021 according to an embodiment of the present invention;
fig. 9 is a flowchart illustrating a WiFi status identifier updating method in an upgrading process of a built-in WiFi firmware network according to an embodiment of the present invention;
fig. 10 is a flowchart illustrating a method for upgrading WiFi firmware built in a set-top box according to another embodiment of the present invention;
fig. 11 is a schematic structural diagram of a built-in WiFi firmware upgrading apparatus for a set-top box according to an embodiment of the present invention;
fig. 12 is a block diagram of a set top box according to an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
Fig. 1 is a schematic view of an application scenario of a set top box according to an embodiment of the present invention. As shown in fig. 1, the intelligent television 2 includes an intelligent television 2, a set-top box 4 and a server 1, the intelligent television 2 includes a display screen 3, the intelligent television 2 is connected with the server 1 through the set-top box 4, the server 1 may be a server of a broadcast television network and can send a television program and the like to the set-top box 4 of a user, the user sends a television program playing request to the set-top box 4, the set-top box 4 sends the television program playing request to the server 1, the server 1 issues the television program to the set-top box 4 according to the television program playing request, and the display screen 3 of the intelligent television 2 displays the television program. When the built-in WiFi firmware of the set-top box 4 needs to be upgraded, the server 1 automatically pushes an upgrade file to the set-top box 4, so that the set-top box 4 selects whether to upgrade according to the upgrade file.
Fig. 2 is a flowchart illustrating a method for upgrading WiFi firmware built in a set-top box according to an example embodiment. As shown in fig. 2, the method may include the following steps.
In step S101, a result of last upgrading the built-in WiFi firmware is obtained.
When the built-in WiFi firmware of the set-top box needs to be upgraded, a server of the broadcast television network automatically sends an upgrade file for upgrading the built-in WiFi firmware to the set-top box through the optical network, when the set-top box downloads the upgrade file corresponding to the built-in WiFi firmware, the last upgrade result of the built-in WiFi firmware is obtained, namely whether the last network upgrade of the built-in WiFi firmware is successful is obtained, and whether the current network connection of the built-in WiFi firmware is stable can be judged according to the last upgrade result of the built-in WiFi firmware.
When the last update result of the built-in WiFi firmware is obtained, in step S102, the current update mode is selected as a network update mode or a serial port update mode according to the last update result of the built-in WiFi firmware.
In the embodiment disclosed by the invention, the last time of upgrading the built-in WiFi firmware comprises the last time of network upgrading success and the last time of network upgrading failure of the built-in WiFi firmware, when the last time of network upgrading of the built-in WiFi firmware is successful, the network connection of the built-in WiFi firmware is determined to be stable, and the upgrading mode is selected as the network upgrading mode; and when the last network upgrading of the built-in WiFi firmware fails, determining that the built-in WiFi firmware network connection is unstable, and selecting the upgrading mode as a serial port upgrading mode. The network upgrading mode is online upgrading in a mode of connecting a wireless network through built-in WiFi firmware, and the serial port upgrading mode is offline upgrading through a serial interface of the built-in WiFi firmware.
When the corresponding upgrading mode of the current upgrading is selected, in step S103, the built-in WiFi firmware is upgraded according to the upgrading file and the network upgrading mode or the serial port upgrading mode.
In the embodiment disclosed by the invention, after the corresponding upgrading mode is selected in the step S102, the built-in WiFi firmware is upgraded according to the downloaded upgrading file and the corresponding upgrading mode, and when the last network upgrading of the built-in WiFi firmware is successful, the network upgrading is carried out on the built-in WiFi firmware according to the upgrading file; and when the last serial port of the built-in WiFi firmware is successfully upgraded, the serial port of the built-in WiFi firmware is upgraded according to the upgrade file.
When the built-in WiFi firmware needs to be upgraded in a network upgrading mode, a TFTP (simple File Transfer Protocol) server can be temporarily set up by the set-top box, the TFTP server wants to send a data Protocol to the built-in WiFi firmware to inform that the upgrading File of the built-in WiFi firmware is downloaded, the built-in WiFi firmware acquires the upgrading File through socket communication, and the upgrading File replaces the program originally stored in the built-in WiFi firmware, so that network upgrading is realized; and after the upgrade is finished, the set-top box deletes the TFTP server which is temporarily built again.
When the built-in WiFi firmware needs to be upgraded in a serial port upgrading mode, the built-in WiFi firmware is connected with the serial port of the set top box, the built-in WiFi firmware requests an upgrading file from a memory of the set top box, and the set top box gradually transmits upgrading data to the built-in WiFi firmware from the serial port to replace an original program, so that serial port upgrading is achieved.
The above description of the network upgrade mode and the serial port upgrade mode is only an exemplary implementation mode performed on the built-in WiFi firmware, and since both of the two upgrade modes are existing common upgrade modes, no further description is given here.
By adopting the method for upgrading the built-in WiFi firmware of the set top box, the reasons such as optional external power failure and network faults which may occur in the upgrading process of the built-in WiFi firmware can be judged according to whether the built-in WiFi firmware of the set top box is subjected to network upgrading last time or whether the network upgrading is successful, so that the situation that the built-in WiFi firmware cannot be upgraded and even damaged due to the fact that the built-in WiFi firmware is in an accident situation in the upgrading process can be avoided in advance, and the upgrading stability and the user operation problems of the built-in WiFi firmware are effectively improved.
In the embodiment of the present disclosure, reference may be made to fig. 3, which is a schematic flowchart illustrating downloading an upgrade file of a built-in WiFi firmware. As shown in fig. 3, the step of downloading the upgrade file of the built-in WiFi firmware includes the following steps.
In step S001, when an upgrade stream broadcasted by the broadcast television network is detected, it is determined whether an upgrade file corresponding to the upgrade stream matches a built-in WiFi firmware of the set-top box.
When the built-in WiFi firmware of the set-top box needs to be upgraded, the server automatically broadcasts an upgrade stream of an upgrade file through a broadcast television network, the upgrade stream can be a header file of the upgrade file, and whether the upgrade file corresponding to the upgrade stream is the upgrade file for upgrading the built-in WiFi firmware of the set-top box is judged through analyzing the upgrade stream. In the implementation process, the upgrade flow is generally a data flow with a certain length, whether the upgrade file is an upgrade file which can be upgraded or not can be judged according to the length of the upgrade flow, and whether the upgrade file is matched with the built-in WiFi firmware or not is further judged.
In the embodiment of the disclosure, the upgrade file carries various types of information including manufacturer information, set top box serial number information, upgrade version number, and the like, where the manufacturer information, the set top box serial number information, and the upgrade version number may all be represented by character strings and the like, and whether the manufacturer information, the set top box serial number information, and the upgrade version number information carried by the upgrade file are matched with the manufacturer information, the set top box serial number information, and the upgrade version number information of the WiFi firmware built in the set top box is determined, and whether the upgrade file corresponding to the upgrade stream is matched with the WiFi firmware built in the set top box is determined.
When it is determined that the upgrade file corresponding to the upgrade flow matches the built-in WiFi firmware, in step S002, the upgrade file is downloaded. Otherwise, ending the process, and not upgrading the built-in WiFi firmware.
In the embodiment of the disclosure, when it is determined that the upgrade file matches the built-in WiFi firmware, the upgrade file broadcasted by the broadcast television network is acquired, and the upgrade file is sequentially downloaded to the set-top box and stored in the memory of the set-top box, so that the built-in WiFi firmware is upgraded conveniently.
When the upgrade file is downloaded, in step S003, the upgrade file downloaded to the built-in WiFi firmware is determined.
In the embodiment of the present disclosure, the storage size of the upgrade file may be obtained when the upgrade file is downloaded, whether the upgrade file is downloaded is determined by obtaining the file size stored in the memory, when the obtained storage size of the upgrade file is equal to the file size stored in the memory, the upgrade file downloaded to the built-in WiFi firmware is determined, otherwise, the upgrade file may not be downloaded successfully due to a network reason, and the upgrade file is downloaded again.
In addition, referring to fig. 4, a detailed flowchart of step S001 provided in the embodiment of the present invention is shown, and as shown in fig. 4, step S001 includes the following steps.
In step S0011, identification information of the upgrade stream is acquired.
When an upgrade stream broadcasted by a broadcast television network is detected, acquiring identity identification information of the upgrade stream, wherein the identity identification information is used for identifying whether an upgrade file corresponding to the upgrade stream is a file upgraded by a WiFi firmware built in a set top box. The identification information may be information for describing an upgrade flow, and specifically may be information such as an upgrade version number, a manufacturer identification number, a hardware version number, and a serial number of a set top box, which are indicated by the upgrade flow.
When the identification information of the upgrade flow is acquired, in step S0012, it is determined whether the upgrade flow is an upgrade flow of the built-in WiFi firmware upgrade according to the identification information.
In the embodiment of the disclosure, whether the upgrade flow broadcasted by the broadcast television network is the upgrade flow of the built-in WiFi firmware upgrade can be judged through the identity identification information, wherein when the upgrade version number, the manufacturer identification number, the hardware version number and the set-top box serial number information represented by the identity identification information are matched with the upgrade version number, the manufacturer identification number, the hardware version number and the set-top box serial number which are pre-stored in the set-top box, the upgrade flow is determined to be the upgrade flow of the built-in WiFi firmware upgrade.
When it is determined that the upgrade flow is an upgrade flow for upgrading a built-in WiFi firmware, in step S0013, the identification information of the upgrade file is extracted.
In the embodiment disclosed in the present invention, the identification information includes an upgrade version number, a manufacturer identification number, and a serial number of the set-top box. The upgrading version number can be the version of an upgrading file, and if the upgrading version number is higher than the program version used by the built-in WiFi firmware, the built-in WiFi firmware needs to be upgraded; the manufacturer identification number can be used for identifying whether the corresponding upgrade file is the built-in WiFi firmware produced by a fixed manufacturer, and different manufacturer identification numbers of the built-in WiFi firmware produced by different manufacturers are different because different manufacturers can produce different built-in WiFi firmware; the hardware version number can be an identifier of built-in WiFi firmware of the set top box to be upgraded and is used for identifying and distinguishing different built-in WiFi firmware; the serial number of the set-top box can be a certain batch of set-top boxes produced by the same manufacturer, and the serial numbers of the set-top boxes corresponding to different batches of set-top boxes are different. In the embodiment of the present disclosure, the upgrade version number, the manufacturer identification number, and the serial number of the set-top box may be represented in the form of character strings.
When the representation information of the upgrade file is extracted, in step S0014, it is queried whether the data information in the database matches the upgrade version number, the manufacturer identification number, the hardware version number, and the serial number of the set-top box.
In the method for upgrading the built-in WiFi firmware of the set-top box provided by the embodiment of the present invention, the information such as the upgrade version number of the upgrade file to be upgraded of the built-in WiFi firmware of the local set-top box, the manufacturer identification number of the built-in WiFi firmware, the hardware version number of the set-top box, and the serial number of the set-top box is stored in advance in the database of the memory of the set-top box, so as to search whether the database has data that is matched with the upgrade version number, the manufacturer identification number, the hardware version number, and the serial number of the set-top box, and determine whether the upgrade file is matched with the built-in WiFi firmware of the.
When the data information in the database is matched with the upgrade version number, the manufacturer identification number, the hardware version number and the serial number of the set-top box, in step S0015, it is determined that the upgrade file corresponding to the upgrade flow is matched with the built-in WiFi firmware of the set-top box. Otherwise, the upgrading file corresponding to the upgrading stream is not matched with the built-in WiFi firmware of the set top box, the upgrading file does not need to be downloaded, and the built-in WiFi firmware does not need to be upgraded through the upgrading file.
By adopting the method for upgrading the built-in WiFi firmware of the set top box, whether the upgrading file is a file required by upgrading the built-in WiFi firmware of the set top box or not can be determined by judging the matching relationship between the upgrading stream and the set top box and the upgrading file corresponding to the upgrading stream, if so, the upgrading file is downloaded and the built-in WiFi firmware is upgraded, otherwise, the built-in WiFi firmware is not upgraded; the situation that in the prior art, when the upgrading version of the upgrading file or other reasons are not matched with the built-in WiFi firmware of the set-top box for upgrading, the built-in WiFi firmware program of the set-top box is damaged, even the set-top box cannot be used is avoided, and therefore the success rate of upgrading the built-in WiFi firmware of the set-top box is effectively improved.
On the basis of fig. 2, a detailed flowchart of step S101 disclosed in the embodiment of the present invention is shown in fig. 5, and step S101 further includes the following steps.
In step S1011, a WiFi status identifier stored in the set top box is acquired.
After an upgrading file of the built-in WiFi firmware is downloaded, firstly, a WiFi status identifier is obtained, wherein the WiFi status identifier is used for indicating whether network upgrading is successful in the last upgrading process of the built-in WiFi firmware of the set top box; the WiFi state identifier can be a character string or a binary identification bit, the WiFi communication state stored in the set top box in advance is judged according to the size of characters on the character string or the identification bit, and whether network upgrading is carried out or not in the upgrading process of the built-in WiFi firmware or whether network upgrading is successful or not can be determined according to the stored WiFi communication state.
In the embodiment of the present invention, taking the WiFi status identifier as a binary identification bit as an example, whether the last network upgrade of the built-in WiFi firmware is successful is determined according to a binary value represented by the WiFi status identifier. Wherein, the value size of the WiFi status identifier may include 0 or 1.
In step S1012, when the WiFi status identifier is 1, it is determined that the last network upgrade of the WiFi firmware is successful.
In step S1013, when the WiFi status identifier is 0, it is determined that the WiFi firmware has failed the last network upgrade.
By adopting the method provided by the embodiment of the disclosure, whether the last time of upgrading the built-in WiFi firmware of the set-top box is network upgrading or whether the last time of network upgrading is successful is determined by acquiring the WiFi status identifier, so that the last time of upgrading the built-in WiFi firmware is determined, and the upgrading mode of the current time of network upgrading is determined according to the result. Whether the last network upgrading is successful is determined through the WiFi status identifier, the success rate of network upgrading of the built-in WiFi firmware of the set top box at this time can be prevented from being influenced due to the last network upgrading failure in advance, and therefore the efficiency and the success rate of the built-in WiFi firmware upgrading of the set top box are effectively improved.
However, the result of obtaining the last upgrade of the set-top box internal WiFi firmware disclosed in the embodiment of the present invention is not limited to determining the last network upgrade success or failure of the internal WiFi firmware only by the WiFi status identifier of 0 or 1, and may also be determined by directly obtaining other data of the last network upgrade success or failure, for example, the number of times of the last upgrade of the internal WiFi firmware and the network status during the last upgrade, and the specific implementation process is not described herein again.
In addition, based on the detailed flowchart shown in fig. 2, the step S102 further provided in the embodiment of the present invention is shown in fig. 6, and the step S102 further includes the following steps.
In step S1021, when the previous network upgrade of the built-in WiFi firmware is successful, selecting the upgrade mode of this time as the network upgrade mode.
When the last network upgrading of the built-in WiFi firmware is successful, it is determined that the built-in WiFi firmware does not have any network problem in the last network upgrading process of the built-in WiFi firmware of the set top box, so that the network program and the network connection of the built-in WiFi firmware can be preliminarily determined to be normal, the built-in WiFi firmware can be upgraded in a network upgrading mode, and the upgrading mode is preliminarily selected to be the network upgrading mode.
In step S1022, when the previous network upgrade of the built-in WiFi firmware fails, the upgrade mode is selected as a serial port upgrade mode.
When the last network upgrading of the built-in WiFi firmware fails, the conditions that the built-in WiFi firmware is interrupted in network upgrading due to unexpected power failure, program failure and the like in the built-in WiFi firmware of the set top box in the last network upgrading process are determined, so that the conditions that the built-in WiFi firmware is interrupted in unexpected power failure, program failure and the like can be preliminarily determined, the condition that the built-in WiFi firmware is interrupted in upgrading in midway is avoided, the condition that the built-in WiFi firmware program is wrong or the condition that the built-in WiFi firmware program is not interrupted in upgrading process is avoided, the network.
By adopting the method provided by the embodiment of the invention, the upgrading mode is selected as the network upgrading mode or the serial port upgrading mode according to whether the built-in WiFi firmware is successfully upgraded last time, so that the problem that the built-in WiFi firmware cannot be upgraded due to accidental power failure, program damage or other possible problems of the built-in WiFi firmware can be avoided, and the efficiency and the effect of upgrading the built-in WiFi firmware can be effectively improved.
In addition, on the basis of fig. 6, when the built-in WiFi firmware is upgraded this time, a network upgrade mode is selected, so as to avoid possible power failure, program error and the like of the built-in WiFi firmware that may occur in the network upgrade process, the embodiment of the present invention also discloses another method for upgrading the built-in WiFi firmware of the set-top box. Specifically, see fig. 7 for a schematic flow chart of a method for upgrading a WiFi firmware built in a set-top box. As shown in fig. 7, the method may include the following steps.
In step S10211, the signal is sent to the WiFi firmware-in-built-in network communication test signal.
The network communication test signal is used for testing the WiFi communication state of the set top box, and whether the set top box can be connected with a WiFi network or not can be tested through the network communication test signal. And the processor in the set top box sends the network communication test signal to the built-in WiFi firmware so as to judge whether a feedback signal of the built-in WiFi firmware can be received or not, and judge the WiFi communication state of the built-in WiFi firmware of the set top box. In an embodiment of the present invention, a ping command may be sent by the processor to the WiFi firmware built in, where the ping command may be a network communication test signal.
In step S10212, it is determined whether the WiFi communication status of the set top box is an access status according to the network communication test signal.
In the embodiment of the invention, if a processor sends a ping command to built-in WiFi firmware, whether the WiFi communication state of the set-top box is a channel state is judged by judging whether the processor receives feedback information of the ping command; for example, after the processor sends a ping command to the built-in WiFi firmware, it can receive ping data, and then it is determined that the WiFi communication state of the set-top box is a pass state, that is, the network connection of the built-in WiFi firmware of the set-top box is good; when the processor sends a ping command to the built-in WiFi firmware and cannot receive ping data, the WiFi communication state of the set-top box is determined to be a disconnection state, namely the built-in WiFi firmware network of the set-top box cannot be connected.
When the WiFi communication state of the set-top box is the access state, in step S10213, network upgrade is performed on the built-in WiFi firmware according to the upgrade file and the network upgrade mode.
In the embodiment of the present invention, when the WiFi communication state of the set-top box is the access state, the built-in WiFi firmware of the set-top box is normally connected to the network, and the network upgrade can be performed on the built-in WiFi firmware by the upgrade file, that is, the built-in WiFi firmware is upgraded online by the upgrade file.
When the WiFi communication state of the set-top box is an open circuit state, in step S10214, serial port upgrade is performed on the built-in WiFi firmware according to the upgrade file and a serial port upgrade mode.
In the embodiment of the invention, when the WiFi communication state of the set-top box is in the open circuit state, the built-in WiFi firmware of the set-top box is abnormal in network connection or cannot be connected with the network due to the power failure of the built-in WiFi firmware and the like, so that the built-in WiFi firmware is upgraded off line through the serial port by the upgrade file.
By adopting the method provided by the embodiment of the invention, whether the built-in WiFi firmware is normally connected with the network or not can be judged through the network communication test signal during the upgrading, if the built-in WiFi firmware is normally connected with the network and the WiFi communication state of the set-top box is in the access state, the network upgrading of the built-in WiFi firmware is determined according to the upgrading file, and otherwise, the serial port upgrading of the built-in WiFi firmware is performed according to the upgrading file. Therefore, network tests before the built-in WiFi firmware is upgraded are effectively increased, the reliability of the built-in WiFi firmware network upgrading can be effectively improved, and the situation that the built-in WiFi firmware cannot be upgraded due to the fact that problems occur when the network is upgraded at the beginning is avoided.
Referring to fig. 8, another WiFi upgrade method built in a set-top box according to an embodiment of the present invention is provided. As shown in fig. 8, the method may include the following steps.
In step S10215, the WiFi communication status of the set-top box is monitored in real time.
In the embodiment of the invention, a processor of the set top box can send a network communication test signal to the built-in WiFi firmware in real time, for example, a ping command is sent all the time, so that the WiFi communication state of the set top box is judged according to the received ping data. Certainly, in the specific implementation process, the ping command is not limited to be sent in real time, and may also be sent to the built-in WiFi firmware at regular intervals according to the actual situation, so as to detect the WiFi communication state of the set top box. And will not be described in detail herein.
And when the WiFi communication state of the set-top box is a pass-through state, continuing to perform network upgrade on the built-in WiFi firmware in a network upgrade mode according to the upgrade file. Otherwise, step S10216 is performed.
When the WiFi communication state of the set-top box is an open circuit state, in step S10216, the network upgrade mode is switched to a serial port upgrade mode, and the built-in WiFi firmware is continuously upgraded according to the upgrade file and the serial port upgrade mode.
In the embodiment of the invention, if the WiFi communication state of the set-top box is monitored to be an open circuit state, namely the situation that the built-in WiFi firmware is powered off or a WiFi network is unstable in the process of carrying out network upgrading on the built-in WiFi firmware is monitored, in order to ensure the continuous upgrading of the built-in WiFi firmware, the network upgrading mode can be switched to a serial port upgrading mode, the serial port upgrading mode is immediately started, the built-in WiFi firmware is continuously upgraded through the serial port upgrading mode according to the upgrading file, and therefore the continuous upgrading of the built-in WiFi firmware is realized.
In addition, in the serial port upgrading mode, the upgrading file can continue to be upgraded after the previous network upgrading according to the actual situation, and the upgrading file can also carry out serial port upgrading on the built-in WiFi firmware, so that the reliability of upgrading the built-in WiFi firmware is improved.
By adopting the method provided by the embodiment of the disclosure, the situation that the built-in WiFi firmware cannot be upgraded due to the reasons of power failure of the built-in WiFi firmware, instable WiFi network, error of a built-in WiFi firmware program and the like in the network upgrading process can be avoided, so that the reliability of the built-in WiFi firmware of the set top box in the upgrading process is effectively improved, the bug of the built-in WiFi firmware is effectively repaired, and the performance of the whole set top box and the normal use of a user can be greatly improved.
In addition, in the process of network upgrading of the WiFi firmware built in the set-top box, in order to ensure whether the network upgrading of the WiFi firmware built in the set-top box is successful or not, the method for upgrading the WiFi firmware built in the set-top box provided by the embodiment of the invention is used for updating the WiFi state identifier.
Referring to fig. 9, a schematic flow chart of a method for updating a WiFi status identifier in a WiFi firmware network built in a set-top box according to an embodiment of the present invention is shown. As shown in fig. 9, the method may include the following steps.
In step S10217, the WiFi status identifier stored in the set-top box is updated to 0.
When the WiFi communication state of the set-top box is a pass-through state, network upgrading is carried out on the built-in WiFi firmware according to the upgrading file, the last network upgrading is indicated to be successful, and the WiFi state identifier is 1 at the moment, the WiFi state identifier needs to be updated from 1 to 0. The situation that the WiFi state identifier cannot be changed once the built-in WiFi firmware is not successfully upgraded in the network can be avoided.
When the WiFi status identifier is updated to 0, in step S10218, it is determined whether the built-in WiFi firmware is upgraded successfully according to the upgrade file and the network upgrade mode.
In the embodiment of the present disclosure, it may be determined whether the built-in WiFi firmware is successfully upgraded according to the upgrade file and the network upgrade mode by determining that the built-in WiFi firmware is in the memory for storing the upgrade program, for example: when the upgrading file completely replaces the previous upgrading program, the upgrading of the built-in WiFi firmware is successful, otherwise, the upgrading of the built-in WiFi firmware is failed, and whether the upgrading of the built-in WiFi firmware is successful or not can be judged by calculating the storage size of the upgrading file stored in a memory of the built-in WiFi firmware for storing the upgrading program and judging whether the storage size of the calculated upgrading file is matched with the storage size of the pre-downloaded upgrading file or not; when the two are equal, the built-in WiFi firmware is determined to be upgraded successfully.
When the built-in WiFi firmware is successfully upgraded according to the upgrade file and the network upgrade mode, in step S10219, the WiFi status identifier is updated to 1, and at the same time, the set-top box is restarted. Otherwise, ending. The WiFi status identifier is still 0 in step S10217.
In this embodiment of the present disclosure, if the network upgrade is successful on the built-in WiFi firmware according to the upgrade file, the WiFi status identifier updated to 0 in step S10217 needs to be updated to 1 again, so that when the built-in WiFi firmware is upgraded next time, it is convenient that the last network upgrade result of the set top box is obtained as success. Meanwhile, when the built-in WiFi firmware is upgraded successfully, the set top box is restarted to enter a new upgrading program.
By adopting the method provided by the embodiment of the disclosure, the WiFi status identifier is updated in real time according to whether the network upgrade of the built-in WiFi firmware is successful, so that when the built-in WiFi firmware is upgraded next time, the result of the last network upgrade can be judged according to the WiFi status identifier, and the built-in WiFi firmware is upgraded according to the upgrade file and the network upgrade mode or the serial port upgrade mode.
Referring to fig. 10, a schematic flow chart of another method for upgrading a WiFi firmware built in a set-top box according to an embodiment of the present invention is shown. As shown in fig. 10, the method may include the following steps.
In the step S101, in the step S,
in step S104, it is determined whether upgrading of the built-in WiFi firmware according to the upgrade file and the network upgrade manner or the serial port upgrade manner fails.
In the embodiment of the invention, whether the upgrading is successful can be judged according to the file size in the memory for storing the upgrading program by calculating the built-in WiFi firmware. For a specific way, reference may be made to the method for calculating the size of the upgrade file in the memory for storing the upgrade program in the built-in WiFi firmware in the foregoing embodiments, which is not described herein again.
When the built-in WiFi firmware fails to be upgraded according to the upgrade file and the network upgrade mode or the serial port upgrade mode, in step S105, the built-in WiFi firmware is upgraded again according to the downloaded upgrade file. Otherwise, restarting the set-top box.
In the embodiment of the present disclosure, when the built-in WiFi firmware fails to be upgraded according to the upgrade file, step S103 is executed again, and the built-in WiFi firmware is subjected to network upgrade or serial port upgrade according to the upgrade file. In the implementation process, the built-in WiFi firmware can also be upgraded with reference to the related embodiments.
In step S106, the number of times of failure to upgrade the built-in WiFi firmware according to the upgrade file and the network upgrade mode or the serial port upgrade mode is obtained.
In the embodiment of the present invention, when the internal WiFi firmware is unsuccessfully upgraded according to the upgrade file, and the internal WiFi firmware is re-upgraded, the number of times of the upgrade failure of the internal WiFi firmware according to the upgrade file may be determined by counting the number of times of the upgrade of the internal WiFi firmware according to the upgrade file, where the number of times of the upgrade failure of the internal WiFi firmware according to the upgrade file is the number of times of the upgrade of the internal WiFi firmware minus 1, for example, when the internal WiFi firmware is upgraded once according to the upgrade file, that is, the internal WiFi firmware is successfully upgraded for the first time, the number of times of the upgrade failure of the internal WiFi firmware according to the upgrade.
When the number of times of upgrading failures of the built-in WiFi firmware according to the upgrade file is obtained, in step S107, it is determined whether the number of times of upgrading failures reaches a preset number of times.
The preset times are the maximum upgrading times borne by the built-in WiFi firmware in the upgrading process, if the upgrading failure times are larger than the preset times, the possibility of successful continuous upgrading of the built-in WiFi firmware is reduced, and meanwhile, the normal use of the built-in WiFi firmware of the set top box can be influenced. Moreover, in the specific implementation process, the preset number of times is generally 3, that is, when the number of upgrade failures is 3, the upgrading of the built-in WiFi firmware is stopped, otherwise, the step S103 is continuously executed or refer to other implementation manners in the foregoing embodiment.
When the number of times of the upgrade failure reaches a preset number, in step S108, the set-top box is restarted and the upgrade is cancelled.
In the embodiment of the invention, if the number of upgrading failures reaches 3 times, the built-in WiFi firmware does not need to be upgraded, so that the downloaded upgrading file is deleted, the set-top box is restarted, and the existing upgrading program of the built-in WiFi firmware of the set-top box is applied for use.
By adopting the method provided by the embodiment of the invention, whether the upgrading is required to be continued or cancelled can be determined by judging the number of times of upgrading failure of the built-in WiFi firmware of the set top box, so that the upgrading can be stopped when the set top box cannot be upgraded, the damage to the built-in WiFi firmware caused by the continuous upgrading is avoided, the use of the whole set top box is further influenced, the built-in WiFi firmware of the set top box is effectively protected, and the use of a user is ensured.
The above is a detailed description of an embodiment of a method for upgrading a WiFi firmware built in a set top box, where the same parts between different embodiments may be referred to each other, and are not described herein again. The embodiment of the invention also provides an embodiment of a built-in WiFi firmware upgrading device for a set-top box, which can be seen in fig. 11 specifically.
Referring to fig. 11, which is a schematic structural diagram of a built-in WiFi firmware upgrading device of a set-top box according to an embodiment of the present invention, as shown in fig. 11, the device may include an obtaining module 11, a selecting module 12, and an upgrading module 13, where the obtaining module 11, the selecting module 12, and the upgrading module 13 are electrically connected in sequence. Wherein,
the obtaining module 11 may be configured to obtain a result of last upgrading of the built-in WiFi firmware when downloading an upgrade file of the built-in WiFi firmware;
the result of the last upgrading of the built-in WiFi firmware mainly comprises the result of the last network upgrading failure of the built-in WiFi firmware or the last network upgrading success of the built-in WiFi firmware.
The selecting module 12 may be configured to select, when the obtaining module 11 obtains a result of last upgrading of the built-in WiFi firmware, a current upgrading mode to be a network upgrading mode or a serial port upgrading mode according to the result of last upgrading of the built-in WiFi firmware;
the network upgrading mode is to perform online upgrading on the built-in WiFi firmware through the WiFi network mode, and the serial port upgrading mode is to perform offline upgrading on the built-in WiFi firmware through the serial port.
The upgrade module 12 may be configured to upgrade the built-in WiFi firmware according to an upgrade file and the network upgrade mode or the serial port upgrade mode after the selection module 12 selects the corresponding upgrade mode.
In the embodiment of the present invention, the executable instructions among the modules are instructions corresponding to the method in the embodiments, and the working modes among the modules may also refer to the execution steps in the embodiments of the method, which are not described in detail herein.
By adopting the device provided by the embodiment of the invention, the situation that the built-in WiFi firmware cannot be upgraded due to unexpected power failure of the built-in WiFi firmware, damage to an upgrading program or error state of the built-in WiFi firmware and the like during upgrading of the built-in WiFi firmware can be avoided, the possibility that the built-in WiFi firmware cannot be upgraded can be prevented in advance, whether the built-in WiFi firmware can be normally connected with a network during upgrading is judged according to the last upgrading result, and the possibility of two upgrading modes of network upgrading and serial port upgrading is realized, so that the vulnerability of the built-in WiFi firmware can be effectively repaired, and the overall performance of the set top.
The embodiment of the present invention further provides an embodiment of a set top box based on the above upgrading method, and the following embodiment description may be specifically referred to.
Fig. 12 is a block diagram illustrating a set-top box 800 according to an exemplary embodiment.
Referring to fig. 12, the set-top box 800 may include one or more of the following components: processing component 802, memory 804, power component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814, and communication component 816.
Processing component 802 generally controls the overall operation of set top box 800, such as operations associated with display, data communication, recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
Memory 804 is configured to store various types of data to support operation at set top box 800. Examples of such data include instructions for any application or method operating on set top box 800, pictures, video, and the like. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 806 provides power to the various components of the set-top box 800. The power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the set-top box 800.
The multimedia component 808 includes a screen that provides an output interface between the set-top box 800 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive an external audio signal when the set-top box 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 814 includes one or more sensors for providing various aspects of status assessment for the set-top box 800. For example, the sensor assembly 814 may detect the open/closed status of the set-top box 800, the relative positioning of components, such as the display lcd and keypad buttons of the set-top box 800, the sensor assembly 814 may also detect a change in the position of the set-top box 800 or a component of the set-top box 800, the presence or absence of user contact with the set-top box 800, the orientation or acceleration/deceleration of the set-top box 800, and a change in the temperature of the set-top box 800. The sensor component 814 may include a temperature sensor configured to detect a temperature of the set top box 800.
The communications component 816 is configured to facilitate communications between the set top box 800 and other devices in a wired or wireless manner. The set top box 800 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the set-top box 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the set-top box 800 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium having instructions therein which, when executed by a processor of a set-top box, enable the set-top box to perform a method of upgrading built-in WiFi firmware, the method comprising:
when an upgrading file of the built-in WiFi firmware is downloaded, obtaining the last upgrading result of the built-in WiFi firmware;
selecting the upgrading mode as a network upgrading mode or a serial port upgrading mode according to the last upgrading result of the built-in WiFi firmware;
and upgrading the built-in WiFi firmware according to the upgrading file and the network upgrading mode or the serial port upgrading mode.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (9)

1. A method for upgrading built-in WiFi firmware of a set top box is characterized by comprising the following steps:
when an upgrading file of the built-in WiFi firmware is downloaded, obtaining the last upgrading result of the built-in WiFi firmware;
selecting the upgrading mode as a network upgrading mode or a serial port upgrading mode according to the last upgrading result of the built-in WiFi firmware;
the selecting the upgrading mode as a network upgrading mode or a serial port upgrading mode according to the last upgrading result of the built-in WiFi firmware comprises the following steps:
when the last network upgrading of the built-in WiFi firmware is successful, selecting the upgrading mode as a network upgrading mode;
when the previous network upgrading of the built-in WiFi firmware fails, selecting the upgrading mode as a serial port upgrading mode;
and upgrading the built-in WiFi firmware according to the upgrading file and the network upgrading mode or the serial port upgrading mode.
2. The method for upgrading built-in WiFi firmware of claim 1, wherein the obtaining of the result of the last upgrading of the built-in WiFi firmware comprises:
acquiring a WiFi state identifier stored in the set top box;
when the WiFi status identifier is 1, determining that the last network upgrade of the WiFi firmware is successful;
and when the WiFi status identifier is 0, determining that the WiFi firmware fails to be upgraded in the network last time.
3. The upgrading method of the built-in WiFi firmware of claim 1, wherein when the last network upgrade of the built-in WiFi firmware is successful and the upgrading mode is selected as the network upgrade mode, the method further comprises:
sending a network communication test signal to the built-in WiFi firmware, wherein the network communication test signal is used for testing the WiFi communication state of the set top box;
judging whether the WiFi communication state of the set top box is a channel state or not according to the network communication test signal;
when the WiFi communication state of the set top box is a channel state, network upgrading is carried out on the built-in WiFi firmware according to the upgrading file and a network upgrading mode;
and when the WiFi communication state of the set-top box is an open circuit state, serial port upgrading is carried out on the built-in WiFi firmware according to the upgrading file and a serial port upgrading mode.
4. The method for upgrading the built-in WiFi firmware of claim 3, wherein when the built-in WiFi firmware is upgraded according to the upgrade file and a network upgrading mode, the method further comprises:
monitoring the WiFi communication state of the set top box;
and when the WiFi communication state of the set-top box is an open circuit state, switching the network upgrading mode into a serial port upgrading mode, and continuously upgrading the built-in WiFi firmware through the serial port upgrading mode according to the upgrading file.
5. The upgrading method of the built-in WiFi firmware of claim 3, wherein when the WiFi communication state of the set-top box is an on state, the method further comprises:
updating the WiFi state identifier stored in the set top box to be 0;
judging whether the built-in WiFi firmware is successfully upgraded according to the upgrade file and a network upgrade mode;
and when the built-in WiFi firmware is successfully upgraded according to the upgrade file and the network upgrade mode, updating the WiFi status identifier to 1, and restarting the set top box.
6. The set-top box built-in WiFi firmware upgrade method of claim 1, further comprising:
when the built-in WiFi firmware is failed to be upgraded according to the upgrade file and the network upgrade mode or the serial port upgrade mode, the built-in WiFi firmware is upgraded again according to the downloaded upgrade file;
acquiring the number of times of upgrading failure of the built-in WiFi firmware according to an upgrading file and the network upgrading mode or the serial port upgrading mode;
judging whether the upgrading failure times reach preset times or not;
and when the upgrading failure times reach preset times, restarting the set top box and canceling upgrading.
7. The set-top box built-in WiFi firmware upgrade method of claim 1, further comprising:
when an upgrade stream broadcasted by a broadcast television network is detected, judging whether an upgrade file corresponding to the upgrade stream is matched with built-in WiFi firmware of a set top box or not;
when the upgrading file corresponding to the upgrading stream is matched with the built-in WiFi firmware, downloading the upgrading file;
and when the upgrading file is downloaded, determining to download the upgrading file of the built-in WiFi firmware.
8. A built-in WiFi firmware upgrading device of STB, characterized by includes:
the acquisition module is used for acquiring the result of the last upgrading of the built-in WiFi firmware when the upgrading file of the built-in WiFi firmware is downloaded;
the selection module is used for selecting the upgrading mode to be a network upgrading mode or a serial port upgrading mode according to the result of the last upgrading of the built-in WiFi firmware acquired by the acquisition module;
the selecting the upgrading mode as a network upgrading mode or a serial port upgrading mode according to the result of the last upgrading of the built-in WiFi firmware acquired by the acquisition module comprises the following steps:
when the last network upgrading of the built-in WiFi firmware is successful, selecting the upgrading mode as a network upgrading mode;
when the previous network upgrading of the built-in WiFi firmware fails, selecting the upgrading mode as a serial port upgrading mode;
and the upgrading module is used for upgrading the built-in WiFi firmware according to the upgrading file and the network upgrading mode or the serial port upgrading mode.
9. A set-top box, comprising built-in WiFi firmware, further comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the method of any of claims 1-7 to upgrade the WiFi firmware.
CN201610555170.5A 2016-07-14 2016-07-14 WiFi firmware upgrade method, device and set-top box built in set-top box Active CN106131682B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610555170.5A CN106131682B (en) 2016-07-14 2016-07-14 WiFi firmware upgrade method, device and set-top box built in set-top box

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610555170.5A CN106131682B (en) 2016-07-14 2016-07-14 WiFi firmware upgrade method, device and set-top box built in set-top box

Publications (2)

Publication Number Publication Date
CN106131682A CN106131682A (en) 2016-11-16
CN106131682B true CN106131682B (en) 2018-12-25

Family

ID=57282639

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610555170.5A Active CN106131682B (en) 2016-07-14 2016-07-14 WiFi firmware upgrade method, device and set-top box built in set-top box

Country Status (1)

Country Link
CN (1) CN106131682B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106775852A (en) * 2016-12-05 2017-05-31 云鸟(上海)能源科技有限公司 A kind of method that embedded Linux Charge Management terminal is upgraded by wireless communication module
CN107168739A (en) * 2017-05-15 2017-09-15 万达百汇科技(深圳)有限公司 POS, POS wireless communication module firmware upgrade method and device
CN107181618A (en) * 2017-06-02 2017-09-19 深圳市维申斯科技有限公司 Firmware upgrade method and system
CN107592525B (en) * 2017-09-19 2019-12-13 深圳市兆驰数码科技股份有限公司 Set top box WIFI function detection and number burning method and device
CN111831298A (en) * 2019-06-06 2020-10-27 北京骑胜科技有限公司 Firmware upgrading method and device, electronic equipment and storage medium
CN112394966A (en) * 2019-08-19 2021-02-23 云丁网络技术(北京)有限公司 Equipment upgrading method and device, computer readable medium and equipment
CN110717185B (en) * 2019-10-18 2023-06-02 天津津航计算技术研究所 Security authentication method for remote upgrading
CN112764773B (en) * 2020-12-31 2024-06-21 北京谊安医疗系统股份有限公司 Embedded software upgrading method

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8782630B2 (en) * 2011-06-30 2014-07-15 International Business Machines Corporation Smart rebinding for live product install
CN102802083A (en) * 2012-08-24 2012-11-28 乐视网信息技术(北京)股份有限公司 Set top box updating method based on Android system and set top box
CN104750506B (en) * 2013-12-30 2018-04-17 海尔集团公司 A kind of intelligent appliance wifi module software automatic updating method
US9933762B2 (en) * 2014-07-09 2018-04-03 Honeywell International Inc. Multisite version and upgrade management system
CN105357572B (en) * 2015-12-14 2018-08-07 福建新大陆通信科技股份有限公司 Based on wifi automatic updating systems and method built in the set-top box of the integration of three networks

Also Published As

Publication number Publication date
CN106131682A (en) 2016-11-16

Similar Documents

Publication Publication Date Title
CN106131682B (en) WiFi firmware upgrade method, device and set-top box built in set-top box
EP4037343B1 (en) Apparatus and method for promoting apps to smart devices
EP2056195B1 (en) Implementation method for updating the terminals in batches
TWI470447B (en) Backup and restore of network configuration data using a remote controller device
CN103986969B (en) application management method, device and system
CN106792023B (en) Method and system for controlling smart television application by mobile terminal
US20090187901A1 (en) Communication System, Communication Device, and Management Server Device
WO2017161947A1 (en) Multi-system ota upgrade method and multi-system device
CN104301383A (en) Upgrading method, device and upgrading equipment
CN105094931A (en) Software upgrading method and device
CN101594613A (en) The method of terminal equipment and upgrading thereof, system
CN105307195B (en) A kind of method and device updating access point name parameter
CN105207851A (en) Fault detection method, device, system and terminal and intelligent device
WO2018086478A1 (en) Method and device for upgrading wifi module in set top box, set top box and system
US10728486B2 (en) Smart television playing method and device
US8504814B2 (en) Resiliency against field-updated security elements
WO2014173135A1 (en) Method, apparatus, server and system for adpating a client to a hardware environment
CN104317564A (en) Method and device for updating feature phone software
WO2022257927A1 (en) Key burning method and apparatus, electronic device board card, and storage medium
CN105228141A (en) A kind of methods, devices and systems set up network and connect
CN105357572A (en) Set top box built-in wifi automatic upgrade system and method based on integration of three networks
CN105446768A (en) System upgrading method and apparatus
CN113885914A (en) Application program processing method and device, electronic equipment and storage medium
CN109542660B (en) Fault processing method and device
CN105099765B (en) Data-updating method and device

Legal Events

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