CN109640181B - Method for upgrading home gateway through set top box - Google Patents

Method for upgrading home gateway through set top box Download PDF

Info

Publication number
CN109640181B
CN109640181B CN201811534465.XA CN201811534465A CN109640181B CN 109640181 B CN109640181 B CN 109640181B CN 201811534465 A CN201811534465 A CN 201811534465A CN 109640181 B CN109640181 B CN 109640181B
Authority
CN
China
Prior art keywords
home gateway
top box
upgrading
set top
request
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
CN201811534465.XA
Other languages
Chinese (zh)
Other versions
CN109640181A (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.)
Sichuan Tianyi Comheart Telecom Co Ltd
Original Assignee
Sichuan Tianyi Comheart Telecom 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 Sichuan Tianyi Comheart Telecom Co Ltd filed Critical Sichuan Tianyi Comheart Telecom Co Ltd
Priority to CN201811534465.XA priority Critical patent/CN109640181B/en
Publication of CN109640181A publication Critical patent/CN109640181A/en
Application granted granted Critical
Publication of CN109640181B publication Critical patent/CN109640181B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/239Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests
    • H04N21/2393Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests involving handling client requests
    • 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/47End-user applications
    • H04N21/478Supplemental services, e.g. displaying phone caller identification, shopping application
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/64Addressing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/64Addressing
    • H04N21/6408Unicasting

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a method for selecting and upgrading a home gateway on a set top box interface by a user, wherein the user clicks an upgrade button on the IPTV set top box interface, a set top box downloads an upgrade package from an operator server, the set top box and the home gateway communicate through a 802.3ah protocol-defined two-layer protocol, the set top box initiates an upgrade request to the home gateway, and the home gateway executes an upgrade process after receiving the upgrade request initiated by the set top box. The prompt is given during upgrading, the user can not be considered as a fault, the user experience is greatly improved through visual operation, the operation of the assembly and maintenance personnel is facilitated, and the management and the maintenance of the equipment by an operator are greatly facilitated.

Description

Method for upgrading home gateway through set top box
Technical Field
The invention relates to a software upgrading technology in network communication, in particular to a method for upgrading a home gateway through a set top box.
Background
In the broadband operator network, the IPTV set-top box is accessed to the home gateway LAN port, and the user watches IPTV programs through the IPTV set-top box. Generally, a user can select to upgrade the set-top box on the set-top box interface, and upgrading of the home gateway requires an operator related technician to upgrade the home gateway in other ways, so that the user cannot see the upgrading state on the set-top box interface when upgrading the home gateway.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provides a method for upgrading a home gateway through a set top box.
The purpose of the invention is realized by the following technical scheme: a method for upgrading a home gateway through a set-top box comprises the following steps:
s1: a user clicks an upgrade button on an IPTV set-top box interface, and the set-top box downloads an upgrade package from an operator server;
s2: the set-top box communicates with the home gateway through a 802.3ah protocol custom two-layer protocol, and the set-top box initiates an upgrade request to the home gateway;
s3: and the home gateway executes an upgrading process after receiving an upgrading request initiated by the set top box.
The set-top box downloads the upgrade package from the operator server, wherein the upgrade package is judged to be a composite upgrade package, if the upgrade package is the composite upgrade package, the set-top box downloads the upgrade package to a temporary path and then decompresses the upgrade package to a corresponding directory for use; if the upgrade package only contains the upgrade package upgraded by the home gateway, the set top box can be directly downloaded to the specified directory to execute operations such as downloading and decompressing.
The set top box and the home gateway in the step S2 communicate with each other through the 802.3ah protocol custom two-layer protocol, which includes the following sub-steps:
s21: the set-top box is connected to the lan side of the home gateway, and the set-top box initiates a 9211 broadcast packet containing the mac address of the set-top box;
s22: if the home gateway receives the 9211 broadcast packet, learning a mac address of the set top box, replying the 9211 unicast packet containing the mac address of the set top box to the set top box, and enabling the set top box to learn the mac address of the home gateway after receiving the unicast packet replied by the home gateway;
if the home gateway does not receive the 9211 broadcast packet, the home gateway initiates the 9212 broadcast packet, detects the mac address of the home set-top box, waits for the set-top box to reply the 9212 unicast packet by the same mechanism, and learns the mac address of the other side;
s23: the set-top box calls an interface function to initiate an upgrading request: initiating a 9211 unicast request to the home gateway, wherein the request data is a custom interface function in a json format;
s24: the home gateway receives the upgrading request and replies a home gateway address and a lan address distributed to the set top box by the home gateway;
s25: and the set top box initiates a post upgrading request to the address of the home gateway by using the address of the lan side distributed by the home gateway, and the head of the request contains a custom check field.
The home gateway upgrading process comprises the following steps: the home gateway judges whether the upgrading request is sent by the set top box or not, if so, the home gateway responds to the post request, and the release data packet does not need to be subjected to http authentication of the home gateway;
the home gateway calls a system upgrading API interface function, executes an upgrading process and prompts that the system is upgrading on a home gateway page;
the method for the home gateway to judge whether the upgrade request is sent by the set top box is as follows: verifying whether the header of the upgrade request contains a specified field FROM;
verifying whether the upgrading request IP is an IP address distributed to the set top box by the home gateway or not;
if the two conditions are met, the home gateway responds to the post request, and the release data packet does not need to be subjected to http authentication of the home gateway.
The home gateway calls a system upgrading API interface function, executes an upgrading process and prompts that the system is upgrading on a home gateway page.
If the upgrade is successful, restarting the system;
and if the upgrading fails, returning to a failure state.
The invention has the beneficial effects that: the invention provides a method for selecting and upgrading a home gateway on a set top box interface by a user, prompts are provided during upgrading, the user can not be considered as a fault, the user experience is greatly improved through visual operation, the operation of an assembly and maintenance worker is facilitated, and the management and the maintenance of equipment by an operator are greatly facilitated.
Drawings
Fig. 1 is a networking diagram of the present technical solution.
Fig. 2 is a flowchart of downloading an upgrade package module by an IPTV set-top box.
Fig. 3 is a timing diagram of the set-top box and the home gateway communication module.
Detailed Description
The technical solutions of the present invention are further described in detail below with reference to the accompanying drawings, but the scope of the present invention is not limited thereto
As described below.
FIG. 1 is a networking diagram of the technical scheme, an IPTV set-top box is accessed to a home gateway LAN port, the home gateway communicates with the IPTV set-top box through the LAN port, and a user realizes operation through an IPTV set-top box interface.
When a user clicks an upgrade button on an IPTV set-top box interface, the set-top box downloads an upgrade package from an operator server, if the upgrade package is a composite upgrade package, the upgrade package of the set-top box upgrade and the upgrade package of the home gateway upgrade are contained, and due to the limited space of the common directory of the set-top box, the set-top box is required to be downloaded to a temporary path and then decompressed to a corresponding directory for use. If the upgrade package only contains the upgrade package upgraded by the home gateway, the set top box can be directly downloaded to the specified directory to execute operations such as downloading and decompressing.
The flow of downloading the upgrade package module by the IPTV set-top box is shown in fig. 2.
The set top box and the home gateway communicate through a 802.3ah protocol custom two-layer protocol. The custom protocol header contains a protocol identification field and a mac address. The set top box initiates a request, the self-defined protocol type is 9211, the home gateway initiates a request, and the self-defined protocol type is 9212.
Firstly, the set-top box and the home gateway learn each other's mac address:
the set-top box is connected to the lan side of the home gateway, and the set-top box initiates a 9211 broadcast packet containing the mac address of the set-top box.
If the home gateway receives the 9211 broadcast packet, the mac address of the set-top box is learned. The home gateway replies 9211 unicast packets containing its mac address to the set top box. And the set top box receives the unicast packet replied by the home gateway and learns the mac address of the home gateway.
If the home gateway does not receive the 9211 broadcast packet, the home gateway initiates the 9212 broadcast packet, detects the mac address of the home set-top box, waits for the set-top box to reply the 9212 unicast packet by the same mechanism, and learns the mac address of the other side.
Secondly, the set-top box calls an interface function to initiate an upgrading request.
The set top box initiates a 9211 unicast request to the home gateway, and the request data is a custom interface function in json format. And the home gateway receives the upgrading request and replies the home gateway address and the lan address distributed to the set top box by the home gateway.
And finally, the set top box initiates a post upgrading request to the address of the home gateway by using the address of the lan side distributed by the home gateway, and the head of the request contains a custom check field.
The set-top box and home gateway communication module timing sequence is shown in figure 3.
The home gateway receives the post request and verifies whether the request is an upgrading request sent by the set top box in the following two ways.
1) The header contains a specified field FROM;
2) requesting IP to be an IP address distributed to the set top box by the home gateway;
if the two conditions are met, the home gateway responds to the post request, and the release data packet does not need to be subjected to http authentication of the home gateway.
The home gateway calls a system upgrading API interface function, executes an upgrading process and prompts that the system is upgrading on a home gateway page.
If the upgrade is successful, the system is restarted, and if the upgrade is failed, a failure state is returned.

Claims (5)

1. A method for upgrading a home gateway through a set-top box is characterized by comprising the following steps:
s1: the set top box downloads the upgrade package from the operator server;
s2: the set top box and the home gateway communicate through an 802.3ah self-defined two-layer protocol, and the set top box initiates an upgrading request to the home gateway;
the set-top box and the home gateway in the step S2 communicate via 802.3ah customized two-layer protocol, which includes the following sub-steps:
s21: the set top box is connected to the lan side of the home gateway, and the set top box initiates a 9211 broadcast packet containing a mac address of the set top box;
s22: if the home gateway receives the 9211 broadcast packet, learning the mac address of the set top box, and replying the 9211 unicast packet containing the mac address of the set top box to the set top box, wherein the set top box receives the unicast packet replied by the home gateway and learns the mac address of the home gateway;
if the home gateway does not receive the 9211 broadcast packet, the home gateway initiates the 9212 broadcast packet, detects the mac address of the home set-top box, waits for the set-top box to reply the 9212 unicast packet by the same mechanism, and learns the mac address of the other side;
s23: the set-top box calls an interface function to initiate an upgrade request: initiating a 9211 unicast request to the home gateway, wherein the request data is a custom interface function in a json format;
s24: the home gateway receives the upgrading request and replies the address of the home gateway and the lan address distributed to the set top box by the home gateway;
s25: the set top box initiates a post upgrading request to the home gateway address by using the lan side address distributed by the home gateway, and the request head comprises a custom check field;
s3: and the home gateway executes an upgrading process after receiving the upgrading request initiated by the set top box.
2. The method for upgrading a home gateway through a set-top box according to claim 1, wherein the set-top box downloads an upgrade package from a carrier server, comprising the sub-steps of:
the set top box judges whether the upgrade package is a composite upgrade package;
if the upgrade package is a composite upgrade package, the set top box downloads the upgrade package to a temporary path and then decompresses the upgrade package to a corresponding directory for use;
and if the upgrade package only contains the upgrade package upgraded by the home gateway, the set top box can be directly downloaded to a specified directory to execute downloading and decompressing operations.
3. The method for upgrading a home gateway through a set-top box according to claim 1, wherein the upgrading process comprises the following sub-steps:
the home gateway judges whether the upgrading request is sent by the set top box or not, if so, the home gateway responds to the upgrading request, and the release data packet does not need to be authenticated by http of the home gateway;
and the home gateway calls a system upgrading API interface function, executes an upgrading process and prompts that the system is upgrading on a home gateway page.
4. The method for upgrading a home gateway through a set-top box according to claim 3, wherein the home gateway determines whether the upgrade request is sent by the set-top box, comprising the following steps:
verifying whether the upgrade request header contains a specified field FROM;
verifying whether the upgrading request IP is an IP address which is distributed to the set top box by the home gateway;
if the two conditions are met, the home gateway responds to the post request, and the release data packet does not need to be subjected to http authentication of the home gateway.
5. The method for upgrading a home gateway through a set-top box according to claim 1, wherein the upgrading process further comprises the sub-steps of:
the home gateway judges whether the upgrade is successful;
if the upgrading is successful, restarting the home gateway;
and if the upgrading fails, the home gateway returns to a failure state.
CN201811534465.XA 2018-12-14 2018-12-14 Method for upgrading home gateway through set top box Active CN109640181B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811534465.XA CN109640181B (en) 2018-12-14 2018-12-14 Method for upgrading home gateway through set top box

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811534465.XA CN109640181B (en) 2018-12-14 2018-12-14 Method for upgrading home gateway through set top box

Publications (2)

Publication Number Publication Date
CN109640181A CN109640181A (en) 2019-04-16
CN109640181B true CN109640181B (en) 2020-10-09

Family

ID=66074265

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811534465.XA Active CN109640181B (en) 2018-12-14 2018-12-14 Method for upgrading home gateway through set top box

Country Status (1)

Country Link
CN (1) CN109640181B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110855470A (en) * 2019-09-30 2020-02-28 视联动力信息技术股份有限公司 Upgrading method and device
CN112667272A (en) * 2020-12-31 2021-04-16 威胜集团有限公司 Ammeter upgrading method and system, intelligent ammeter and storage medium
CN112650520B (en) * 2020-12-31 2023-08-01 威胜集团有限公司 Ammeter upgrading method and system, intelligent ammeter and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100456805C (en) * 2006-01-27 2009-01-28 中国科学院声学研究所 A network upgrade method of the TFTP-based IPTV STB software
FR2928802A1 (en) * 2008-03-17 2009-09-18 France Telecom SHARING MULTI-MEDIA CONTENT FROM AUDIO-VIDEO COMMUNICATION
CN107395394A (en) * 2017-06-19 2017-11-24 上海斐讯数据通信技术有限公司 A kind of method and system by updating mobile terminal router

Also Published As

Publication number Publication date
CN109640181A (en) 2019-04-16

Similar Documents

Publication Publication Date Title
CN109640181B (en) Method for upgrading home gateway through set top box
CN110446201B (en) Communication module, communication method and system for realizing eSIM remote configuration
CN103220182B (en) The system and method for intelligent terminal managing family gateway
CN105072012A (en) Quick network access method of intelligent device
CN105306264A (en) Network configuration and remote registration binding method and system for intelligent household appliance
CN101212294A (en) Method and system for implementing network access authentication
CN105897652A (en) Standard protocol based heterogeneous terminal dynamic access method
CN106572200A (en) IP address configuration method and IP address configuration device for baseboard management controller BMC
EP2866385B1 (en) PPPoE ERROR CODE CONVERSION METHOD AND SYSTEM
CN103152331A (en) Method and system for logging in/registering through mobile terminal and cloud server
CN103237071B (en) A kind of method of wireless EoC terminal centralized management
WO2018086478A1 (en) Method and device for upgrading wifi module in set top box, set top box and system
EP2642724A1 (en) File downloading method and system for terminal
WO2016197544A1 (en) Method and apparatus for processing network connection
EP2693691B1 (en) Method and apparatus for initializing gateway in device management system
CN108810611A (en) The control system and method for Multimedia Fusion terminal start-up course
CN103780436A (en) Network device and connection and maintenance method related to network device
CN107769979B (en) Method for synchronous configuration between routers
EP2866404B1 (en) Mobile terminal with built-in pppoe dialing function and dialing method thereof
WO2022073304A1 (en) Ap network configuration processing method and apparatus
CN101808311B (en) System, device and method for upgrading wireless terminal software
WO2013189398A2 (en) Application data push method, device, and system
CN113396600B (en) Information verification method, device, equipment and storage medium
US9813763B2 (en) Application for in-field discovery, diagnosis and repair of a set-top device
CN111726607A (en) Method and system for testing hardware of convergence gateway

Legal Events

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