Software upgrading method for set-top box and set-top box

The embodiment of the invention discloses a software upgrading method for a set-top box and the set-top box. The method comprises the following steps of: detecting and acquiring upgrading triggering information; judging whether a manufacturer code, a hardware version, a software type and a software version in the upgrading triggering information are consistent with own corresponding information of the set-top box or not; if the manufacturer code, the hardware version, the software type and the software version in the upgrading triggering information are judged to be consistent with own corresponding information of the set-top box, downloading upgrading data corresponding to the software version; and updating own software of the set-top box according to the upgrading data. The embodiment of the invention ensures the upgrading reliability and stability in a plurality of ways, can save the cost and unify conventional front-end and terminal application to free the software upgrading of the set-top box from the limitations of various chip schemes, realize cross-platform upgrading and enable any set-top box manufacturer and any front-end radio and television operator to use the software upgrading method, and improves the software upgrading flexibility and freedom degree of the set-top box.