CN105119749A - Local batch upgrading method and system for home gateway - Google Patents

Local batch upgrading method and system for home gateway Download PDF

Info

Publication number
CN105119749A
CN105119749A CN201510563077.4A CN201510563077A CN105119749A CN 105119749 A CN105119749 A CN 105119749A CN 201510563077 A CN201510563077 A CN 201510563077A CN 105119749 A CN105119749 A CN 105119749A
Authority
CN
China
Prior art keywords
mirror image
burst
mirror
image data
data
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.)
Granted
Application number
CN201510563077.4A
Other languages
Chinese (zh)
Other versions
CN105119749B (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.)
Fiberhome Telecommunication Technologies Co Ltd
Original Assignee
Fiberhome Telecommunication Technologies 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 Fiberhome Telecommunication Technologies Co Ltd filed Critical Fiberhome Telecommunication Technologies Co Ltd
Priority to CN201510563077.4A priority Critical patent/CN105119749B/en
Publication of CN105119749A publication Critical patent/CN105119749A/en
Application granted granted Critical
Publication of CN105119749B publication Critical patent/CN105119749B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/20Support for services
    • H04L49/201Multicast operation; Broadcast operation

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a local batch upgrading method and system for a home gateway. The method comprises the following steps that: a mirror transmitting terminal module fragments complete mirror data according to a fixed-length byte, and encapsulates mirror information and each fragment of mirror data before which a fragment index and a fragment length field are added; the mirror transmitting terminal module transmits the encapsulated mirror information and fragment mirror data to each mirror receiving terminal module in a broadcast way; each mirror receiving terminal module resolves the encapsulated mirror information, and allocates corresponding memory space to the mirror data according to resolution content; and each mirror receiving terminal module de-encapsulates and re-organizes the encapsulated fragment mirror data, and performs verification and mirror writing operation on the re-organized complete mirror data. Through adoption of the local batch upgrading method and system, batch upgrading of the home gateway from an Ethernet port on the LAN (Local Area Network) side of the home gateway is realized; networking and operation are convenient and easy; a network communication interaction flow is simple; the upgrading period is short; and high reliability is achieved.

Description

The method and system of the local batch upgrade of a kind of home gateway
Technical field
The present invention relates to network communication technology field, be specifically related to the method and system of the local batch upgrade of a kind of home gateway.
Background technology
Flourish along with optical communication industry, operator is also increasing to the demand of home gateway.In existing home gateway product large-scale production, occasional finds that the software of the equipment produced exists major defect, what affect equipment puts dress and the application in existing network, but the equipment of this version is produced in a large number, several thousand at least, tens thousand of at most, be generally present in warehouse or workshop, wait for delivery or put dress.Now, just must carry out batch upgrade to existing family gateway equipment software, within the shortest time, solve the defect that current version exists.
Based on the network environment in workshop or warehouse, batch upgrade cannot be carried out from the WAN of gateway (wide area network) side, and present stage does not have a kind of method of local batch upgrade, can only be upgraded one by one to family gateway equipment by the mode of graphical administration interface or telnet (remote terminal protocol), batch upgrade cannot be carried out, family gateway equipment upgrading efficiency low, and cause human cost and time waste serious.
Summary of the invention
Technical problem to be solved by this invention is the problem of from the network interface of equipment LAN side, family gateway equipment being carried out to batch upgrade.
In order to solve the problems of the technologies described above, the method that the technical solution adopted in the present invention is to provide the local batch upgrade of a kind of home gateway comprises the following steps:
The first step, mirror image transmitting terminal submodule carry out burst according to a regular length byte to complete mirror image data, and to Mirror Info and before data, add burst index, every sheet burst mirror image data of burst cut to lengthen information encapsulates respectively;
The Mirror Info of encapsulation and each burst mirror image data are sent to the mirror image receiving terminal module of each home gateway by second step, mirror image transmitting terminal submodule by broadcast mode;
The Mirror Info of mirror image receiving terminal module to encapsulation of the 3rd step, each home gateway is resolved, and according to resolving the complete mirror image data distribution correspondence memory space that content is restructuring;
The burst mirror image data of mirror image receiving terminal module to encapsulation of the 4th step, each home gateway carries out decapsulation, restructuring, and carries out the write operation of School Affairs mirror image to the complete mirror image data of restructuring.
In the above-mentioned methods,
Mirror Info comprises: upgrading mark, mirror image burst number and mirror image total byte length;
Mirror image burst number is that when utilizing mirror image total byte length and mirror image transmitting terminal submodule to carry out burst to complete mirror image data, a regular length byte of employing calculates and obtains.
In the above-mentioned methods,
When encapsulating burst mirror image data, sequentially burst mirror image data is linearly encapsulated;
When sending the burst mirror image data of encapsulation, after the burst mirror image data sending an encapsulation, carry out suitable time delay, then send the burst mirror image data of next encapsulation, so circulation is until the burst mirror image data of all encapsulation is sent.
In the above-mentioned methods,
3rd step specifically comprises the following steps:
The Mirror Info of mirror image receiving terminal module to the encapsulation received of step S301, home gateway is resolved, and parses upgrading mark, mirror image burst number and mirror image total byte length;
The upgrading mark that step S302, basis parse judges whether it is image upgrade operation, if image upgrade operation, performs step S303, otherwise, execution step S304;
The memory headroom of the mirror image total byte length allocation equal length that step S303, basis parse, performs step S305;
Step S304, directly prompting upgrade unsuccessfully;
Step S305, termination routine.
In the above-mentioned methods,
4th step specifically comprises the following steps:
The burst mirror image data of mirror image receiving terminal module to encapsulation of step S401, home gateway carries out decapsulation, obtains burst mirror image data, burst index and point leaf length;
Step S402, check and the burst index of all burst mirror image datas judged whether packet loss, if find that there is packet loss, then perform step S403; Otherwise, perform step S404;
Step S403, marking equipment are upgraded unsuccessfully, and return mistake, perform step S408;
Step S404, basis point leaf length and burst index carry out data recombination operation to the burst mirror image data of resolving;
Step S405, judge whether last burst mirror image data carries out data recombination, if so, then perform step S406; Otherwise, perform step S404;
Step S406, to data recombination obtain complete mirror image data verify, judge that whether check results legal, if illegal, then execution step S403; Otherwise, perform step S407;
Step S407, the complete mirror image data execution mirror image write Flash operation that data recombination is obtained.
Step S408, EP (end of program).
In the above-mentioned methods,
The mirror image receiving terminal module of mirror image transmitting terminal submodule and each home gateway, in broadcast communication process, needs to arrange the address of both sides and port, is specially:
The address, opposite end that mirror image transmitting terminal submodule sends data by broadcast mode is directed broadcast address, and port is the fixed port of specifying;
Accordingly, the fixed port of specifying when the mirror image receiving terminal module of home gateway must use mirror image transmitting terminal submodule to send data by broadcast mode.
Present invention also offers the system of the local batch upgrade of a kind of home gateway, comprise mirror image transmitting terminal submodule, network access device and multiple mirror image receiving terminal module being located at not consanguinity intra-gateway; Wherein, described mirror image transmitting terminal submodule is connected by described network access device with described mirror image receiving terminal module;
Described mirror image transmitting terminal submodule carries out burst according to a regular length byte to complete mirror image data, and to Mirror Info and before data, add burst index, each burst mirror image data of burst cut to lengthen information encapsulates respectively, then the Mirror Info of encapsulation and each burst mirror image data sent to the described mirror image receiving terminal module of each home gateway by broadcast mode;
First each described mirror image receiving terminal module resolves the Mirror Info of the encapsulation received, and is that complete mirror image data distributes correspondence memory space according to parsing content; Again decapsulation and data recombination are carried out to each burst mirror image data of encapsulation, and the write operation of School Affairs mirror image is carried out to the complete mirror image data of restructuring.
In the system of the local batch upgrade of above-mentioned a kind of home gateway,
Described network access device is the hub or switch of supported data link layer protocol;
Described network access device is connected with described mirror image receiving terminal module by the LAN side ports of each home gateway.
In the system of the local batch upgrade of above-mentioned a kind of home gateway, described mirror image transmitting terminal submodule comprises:
Transmission program initialization unit, with the network communication protocol being mirror image transmitting terminal submodule described in initialization;
Send dynamic memory distribution unit, after to network communication protocol initialization, the memory headroom of dynamic assignment and the equal size of complete mirror image data, and the complete mirror image data read is saved in the memory headroom of distribution;
Mirror Info encapsulation unit, encapsulates the Mirror Info of the complete mirror image data be kept in described transmission dynamic memory distribution unit, and sends;
Mirror image data burst and encapsulation unit, according to a regular length byte, burst is carried out to the complete mirror image data be kept in described transmission dynamic memory distribution unit, before every sheet burst mirror image data, add corresponding burst index, burst cut to lengthen information, and carry out encapsulation respectively and send;
Data transmission unit, by the Mirror Info of the encapsulation that described Mirror Info encapsulation unit sends; And the burst mirror image data of all encapsulation of described mirror image data burst and encapsulation unit transmission sends to described mirror image receiving terminal module with broadcast mode.
In the system of the local batch upgrade of above-mentioned a kind of home gateway, described mirror image receiving terminal module comprises:
Reception program initialization unit, for the network communication protocol of mirror image receiving terminal module described in initialization, and monitors the broadcast data packet that described mirror image transmitting terminal submodule sends;
Data receipt unit, when described reception program initialization unit listens to the broadcast data packet of the Mirror Info of encapsulation and burst mirror image data, receives and sends described broadcast data packet;
Mirror Info resolution unit, resolves the Mirror Info broadcast data packet of the encapsulation that described data receipt unit receives;
Receiving dynamic memory distribution unit, according to the Mirror Info that described Mirror Info resolution unit parses, is the memory headroom of the equal size of complete mirror image data dynamic assignment of restructuring;
The decapsulation of burst mirror image data and recomposition unit, decapsulation is immediately carried out to the burst mirror image data of the encapsulation that described data receipt unit receives, data recombination is carried out to burst mirror image data according to resolving the burst index, the burst cut to lengthen information that obtain, and is saved in the memory headroom of described reception dynamic memory distribution unit dynamic assignment;
Mirror image verification and upgrade unit, verify the image length of the complete mirror image data of recombinating in memory headroom and legitimacy, and after verification succeeds, perform the operation of mirroring software write Flash.
The present invention connects the LAN side ports of home gateway by network access device, makes mirror image transmitting terminal submodule and mirror image receiving terminal model calling, realizes the batch upgrade to family gateway equipment, and have the following advantages from the network interface of equipment LAN side:
(1) networking, updating operation are simple and convenient;
(2) utilize the characteristic of broadcast data, carry out batch upgrade to some equipment, upgrade cycle is short simultaneously, economizes on resources;
(3) compared with multicast batch upgrade, do not need equipment to add multicast group, simplify network service interaction flow;
(4) before updating operation, mirror image data is verified, avoid writing illegal mirror image data; Detect in real time in mirror image data transmitting procedure, once find packet loss, marking equipment is upgraded unsuccessfully immediately, strengthens upgrading reliability from many aspects.
Accompanying drawing explanation
Fig. 1 is the structural representation of the system of the local batch upgrade of a kind of home gateway provided by the invention;
Fig. 2 is the structured flowchart of mirror image transmitting terminal submodule in the present invention;
Fig. 3 is the structured flowchart of mirror image receiving terminal module in the present invention;
Fig. 4 is the flow chart of the method for the local batch upgrade of a kind of home gateway provided by the invention.
Embodiment
Below in conjunction with Figure of description and specific embodiment, the present invention is described in detail.
As shown in Figure 1, the system of the local batch upgrade of a kind of home gateway provided by the invention, comprises mirror image transmitting terminal submodule 10, network access device 20 and multiple mirror image receiving terminal module 30 being located at not consanguinity intra-gateway; Wherein, mirror image transmitting terminal submodule 10 is connected by network access device 20 with mirror image receiving terminal module 30, network access device 20 is connected with each home gateway with mirror image transmitting terminal submodule 10 respectively by Ethernet mode, and mirror image transmitting terminal submodule 10 is communicated with each mirror image receiving terminal module 30 operating in different home gateway respectively.
Mirror image transmitting terminal submodule 10 carries out burst according to a regular length byte to complete mirror image data, and to the Mirror Info of complete mirror image data and before data, add burst index, each burst mirror image data of burst cut to lengthen information encapsulates respectively, then the Mirror Info of encapsulation and each burst mirror image data sent to the mirror image receiving terminal module of each home gateway by broadcast mode;
Each mirror image receiving terminal module 30 receives Mirror Info and each burst mirror image data of the encapsulation that mirror image transmitting terminal submodule 10 sends, and first resolves the Mirror Info of encapsulation, is that mirror image data distributes correspondence memory space according to parsing content; Each burst mirror image data of decapsulation again, restructuring encapsulation, and the write operation of School Affairs mirror image is carried out to the complete mirror image data after having recombinated.
In the present invention, network access device 20 is HUB (hub) or SWITCH (switch) of supported data link layer protocol; Network access device 20 is connected with the mirror image receiving terminal module 30 of home gateway internal operation by the LAN side ports of each home gateway.
In the present invention, as shown in Figure 2, mirror image transmitting terminal submodule 10 comprises:
Transmission program initialization unit 11, for the network communication protocol of initialization mirror image transmitting terminal submodule 10;
Send dynamic memory distribution unit 12, after to network communication protocol initialization, according to complete mirror image data size to be upgraded, the memory headroom of the equal size of dynamic assignment, and the complete mirror image data read is saved in the memory headroom of distribution;
Mirror Info encapsulation unit 13, encapsulates the Mirror Info being kept at the complete mirror image data sent in dynamic memory distribution unit 12, and sends;
Wherein, Mirror Info comprises upgrading mark, mirror image burst number and mirror image total byte length;
Mirror image data burst and encapsulation unit 14, burst is carried out according to a regular length byte by being kept at the complete mirror image data sent in dynamic memory distribution unit 12, and encapsulate add corresponding burst index field and burst length field (burst index, burst cut to lengthen information) respectively before every sheet burst mirror image data after, then the burst mirror image data of all encapsulation is sent;
Data transmission unit 25, receive the burst mirror image data of the Mirror Info of the encapsulation that Mirror Info encapsulation unit 13 sends and all encapsulation of mirror image data burst and encapsulation unit 14 transmission, and respectively the Mirror Info of encapsulation and all burst mirror image datas are sent to mirror image receiving terminal module 30 with broadcast mode;
In the present invention, data transmission unit 25 to mirror image receiving terminal module 30 with udp protocol (UserDatagramProtocol, User Datagram Protoco (UDP)) send broadcast data, when sending broadcast data, the directed broadcast address of opposite end (mirror image receiving terminal module 30) need be specified (as 192.168.1.255, also other broadcast address can be selected according to the actual requirements), and the port numbers that mirror image transmitting terminal submodule 10 is arranged with the mirror image receiving terminal module both sides running on home gateway inside.
In the present invention, as shown in Figure 3, mirror image receiving terminal module 30 comprises:
Reception program initialization unit 31, for the network communication protocol of initialization mirror image receiving terminal module 30, and the port numbers of mirror image transmitting terminal submodule 10 and mirror image receiving terminal module 30 both sides agreement is monitored (namely monitoring the broadcast data packet that mirror image transmitting terminal submodule 10 sends);
Data receipt unit 32, when reception program initialization unit 31 listens to Mirror Info and each burst mirror image data broadcast data packet of encapsulation, receives and sends the Mirror Info of encapsulation and the broadcast data packet of all burst mirror image datas;
Mirror Info resolution unit 33, resolves the Mirror Info broadcast data packet of the encapsulation that data receipt unit 32 receives;
Receiving dynamic memory distribution unit 34, according to the Mirror Info data that Mirror Info resolution unit 33 parses, is the memory headroom of the equal size of complete mirror image data dynamic assignment of restructuring;
The decapsulation of burst mirror image data and recomposition unit 35, decapsulation is immediately carried out to the burst mirror image data of the encapsulation that data receipt unit 32 receives, obtain burst index field, burst length field and burst mirror image data, and according to burst index field, burst length field, data recombination is carried out to burst mirror image data, and be saved in the memory headroom of described reception dynamic memory distribution unit 34 dynamic assignment, after all burst mirror image datas receive, end data reorganization operation, obtains the complete mirror image data of recombinating;
In the present invention, the decapsulation of burst mirror image data and recomposition unit 35, for due to unstable networks issuable encapsulation burst mirror image data packet loss, will stop the reorganization operation of burst mirror image data immediately, and marking equipment are upgraded unsuccessfully.
Mirror image verification and upgrade unit 36, verify the image length of the complete mirror image data of recombinating in memory headroom and legitimacy, and after verification succeeds, perform the operation of mirroring software write Flash.
As shown in Figure 4, the method for the local batch upgrade of a kind of home gateway provided by the invention, comprises the following steps:
The first step, mirror image transmitting terminal submodule carry out burst (as 1000 according to a regular length byte to complete mirror image data, other length can be selected according to demand herein), and to Mirror Info and before data, add burst index, every sheet burst mirror image data of burst cut to lengthen information encapsulates respectively;
In the present invention, Mirror Info comprises upgrading mark, mirror image burst number and mirror image total byte length; Mirror image burst number is that when utilizing mirror image total byte length and mirror image transmitting terminal submodule to carry out burst to mirror image total byte length (complete mirror image data), a regular length byte of employing calculates and obtains.
In the present invention, burst index and a point leaf length are when mirror image transmitting terminal submodule carries out burst according to a regular length byte to complete mirror image data, record acquisition simultaneously; When encapsulating, first carry out encapsulation to Mirror Info to send, sequentially burst mirror image data is linearly encapsulated again, and after the burst mirror image data sending an encapsulation, carry out suitable time delay, send the burst mirror image data of next encapsulation again, so circulation is until the burst mirror image data of all encapsulation is sent.
The Mirror Info of encapsulation and each burst mirror image data are sent to the mirror image receiving terminal module of home gateway by second step, mirror image transmitting terminal submodule by broadcast mode.
The mirror image receiving terminal module of the 3rd step, each home gateway is resolved the Mirror Info received, and according to resolving the complete mirror image data distribution correspondence memory space that content is restructuring;
3rd step specifically comprises the following steps:
The Mirror Info of mirror image receiving terminal module to the encapsulation received of step S301, home gateway is resolved, and parses upgrading mark, mirror image burst number and mirror image total byte length;
The upgrading mark that step S302, basis parse judges whether it is image upgrade operation, if image upgrade operation, performs step S303, otherwise, execution step S304;
The memory headroom of the mirror image total byte length allocation equal length that step S303, basis parse, performs step S305;
Step S304, directly prompting upgrade unsuccessfully;
Step S305, termination routine.
The mirror image receiving terminal module of the 4th step, home gateway carries out decapsulation, restructuring to the burst mirror image data after the encapsulation received, and carries out the write operation of School Affairs mirror image to the mirror image data after having recombinated;
4th step specifically comprises the following steps:
The burst mirror image data of mirror image receiving terminal module to encapsulation of step S401, home gateway carries out decapsulation, obtains burst mirror image data, burst index and point leaf length;
Step S402, check and the burst index of every sheet burst mirror image data judged whether packet loss, if find that there is packet loss, then perform step S403; Otherwise, perform step S404;
Step S403, marking equipment are upgraded unsuccessfully, and return mistake, no longer carry out follow-up updating operation, perform step S408;
Step S404, basis point leaf length and burst index carry out data recombination operation to the corresponding burst mirror image data of resolving;
Step S405, judge whether last burst mirror image data carries out data recombination, if so, then perform step S406; Otherwise, perform step S404;
Step S406, to data recombination obtain complete mirror image data verify, judge that whether check results legal, if illegal, then execution step S403; Otherwise, perform step S407;
Step S407, the complete mirror image data execution mirror image write Flash operation that data recombination is obtained.
Step S408, EP (end of program).
In the present invention, the mirror image receiving terminal module of mirror image transmitting terminal submodule and each home gateway, in broadcast communication process, needs to arrange the address of both sides and port, is specially:
The address, opposite end that mirror image transmitting terminal submodule sends data by broadcast mode is directed broadcast address (as 192.168.1.255, also can select other broadcast address according to the actual requirements herein), and port is the fixed port of specifying; Accordingly, the fixed port of specifying when the mirror image receiving terminal module of home gateway must use mirror image transmitting terminal submodule to send data by broadcast mode.
Obviously, those skilled in the art can carry out various change and modification to the present invention and not depart from the spirit and scope of the present invention.Like this, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.

Claims (10)

1. a method for the local batch upgrade of home gateway, is characterized in that, comprise the following steps:
The first step, mirror image transmitting terminal submodule carry out burst according to a regular length byte to complete mirror image data, and to Mirror Info and before data, add burst index, every sheet burst mirror image data of burst cut to lengthen information encapsulates respectively;
The Mirror Info of encapsulation and each burst mirror image data are sent to the mirror image receiving terminal module of each home gateway by second step, mirror image transmitting terminal submodule by broadcast mode;
The Mirror Info of mirror image receiving terminal module to encapsulation of the 3rd step, each home gateway is resolved, and according to resolving the complete mirror image data distribution correspondence memory space that content is restructuring;
The burst mirror image data of mirror image receiving terminal module to encapsulation of the 4th step, each home gateway carries out decapsulation, restructuring, and carries out the write operation of School Affairs mirror image to the complete mirror image data of restructuring.
2. the method for claim 1, is characterized in that,
Mirror Info comprises: upgrading mark, mirror image burst number and mirror image total byte length;
Mirror image burst number is that when utilizing mirror image total byte length and mirror image transmitting terminal submodule to carry out burst to complete mirror image data, a regular length byte of employing calculates and obtains.
3. the method for claim 1, is characterized in that,
When encapsulating burst mirror image data, sequentially burst mirror image data is linearly encapsulated;
When sending the burst mirror image data of encapsulation, after the burst mirror image data sending an encapsulation, carry out suitable time delay, then send the burst mirror image data of next encapsulation, so circulation is until the burst mirror image data of all encapsulation is sent.
4. method as claimed in claim 2, is characterized in that,
3rd step specifically comprises the following steps:
The Mirror Info of mirror image receiving terminal module to the encapsulation received of step S301, home gateway is resolved, and parses upgrading mark, mirror image burst number and mirror image total byte length;
The upgrading mark that step S302, basis parse judges whether it is image upgrade operation, if image upgrade operation, performs step S303, otherwise, execution step S304;
The memory headroom of the mirror image total byte length allocation equal length that step S303, basis parse, performs step S305;
Step S304, directly prompting upgrade unsuccessfully;
Step S305, termination routine.
5. the method for claim 1, is characterized in that,
4th step specifically comprises the following steps:
The burst mirror image data of mirror image receiving terminal module to encapsulation of step S401, home gateway carries out decapsulation, obtains burst mirror image data, burst index and point leaf length;
Step S402, check and the burst index of all burst mirror image datas judged whether packet loss, if find that there is packet loss, then perform step S403; Otherwise, perform step S404;
Step S403, marking equipment are upgraded unsuccessfully, and return mistake, perform step S408;
Step S404, basis point leaf length and burst index carry out data recombination operation to the burst mirror image data of resolving;
Step S405, judge whether last burst mirror image data carries out data recombination, if so, then perform step S406; Otherwise, perform step S404;
Step S406, to data recombination obtain complete mirror image data verify, judge that whether check results legal, if illegal, then execution step S403; Otherwise, perform step S407;
Step S407, the complete mirror image data execution mirror image write Flash operation that data recombination is obtained.
Step S408, EP (end of program).
6. method as claimed in claim 5, is characterized in that,
The mirror image receiving terminal module of mirror image transmitting terminal submodule and each home gateway, in broadcast communication process, needs to arrange the address of both sides and port, is specially:
The address, opposite end that mirror image transmitting terminal submodule sends data by broadcast mode is directed broadcast address, and port is the fixed port of specifying;
Accordingly, the fixed port of specifying when the mirror image receiving terminal module of home gateway must use mirror image transmitting terminal submodule to send data by broadcast mode.
7. a system for the local batch upgrade of home gateway, is characterized in that, comprise mirror image transmitting terminal submodule, network access device and multiple mirror image receiving terminal module being located at not consanguinity intra-gateway; Wherein, described mirror image transmitting terminal submodule is connected by described network access device with described mirror image receiving terminal module;
Described mirror image transmitting terminal submodule carries out burst according to a regular length byte to complete mirror image data, and to Mirror Info and before data, add burst index, each burst mirror image data of burst cut to lengthen information encapsulates respectively, then the Mirror Info of encapsulation and each burst mirror image data sent to the described mirror image receiving terminal module of each home gateway by broadcast mode;
First each described mirror image receiving terminal module resolves the Mirror Info of the encapsulation received, and is that complete mirror image data distributes correspondence memory space according to parsing content; Again decapsulation and data recombination are carried out to each burst mirror image data of encapsulation, and the write operation of School Affairs mirror image is carried out to the complete mirror image data of restructuring.
8. the system of the local batch upgrade of a kind of home gateway as claimed in claim 7, is characterized in that,
Described network access device is the hub or switch of supported data link layer protocol;
Described network access device is connected with described mirror image receiving terminal module by the LAN side ports of each home gateway.
9. the system of the local batch upgrade of a kind of home gateway as claimed in claim 7, it is characterized in that, described mirror image transmitting terminal submodule comprises:
Transmission program initialization unit, with the network communication protocol being mirror image transmitting terminal submodule described in initialization;
Send dynamic memory distribution unit, after to network communication protocol initialization, the memory headroom of dynamic assignment and the equal size of complete mirror image data, and the complete mirror image data read is saved in the memory headroom of distribution;
Mirror Info encapsulation unit, encapsulates the Mirror Info of the complete mirror image data be kept in described transmission dynamic memory distribution unit, and sends;
Mirror image data burst and encapsulation unit, according to a regular length byte, burst is carried out to the complete mirror image data be kept in described transmission dynamic memory distribution unit, before every sheet burst mirror image data, add corresponding burst index, burst cut to lengthen information, and carry out encapsulation respectively and send;
Data transmission unit, by the Mirror Info of the encapsulation that described Mirror Info encapsulation unit sends; And the burst mirror image data of all encapsulation of described mirror image data burst and encapsulation unit transmission sends to described mirror image receiving terminal module with broadcast mode.
10. the system of the local batch upgrade of a kind of home gateway as claimed in claim 7, it is characterized in that, described mirror image receiving terminal module comprises:
Reception program initialization unit, for the network communication protocol of mirror image receiving terminal module described in initialization, and monitors the broadcast data packet that described mirror image transmitting terminal submodule sends;
Data receipt unit, when described reception program initialization unit listens to the broadcast data packet of the Mirror Info of encapsulation and burst mirror image data, receives and sends described broadcast data packet;
Mirror Info resolution unit, resolves the Mirror Info broadcast data packet of the encapsulation that described data receipt unit receives;
Receiving dynamic memory distribution unit, according to the Mirror Info that described Mirror Info resolution unit parses, is the memory headroom of the equal size of complete mirror image data dynamic assignment of restructuring;
The decapsulation of burst mirror image data and recomposition unit, decapsulation is immediately carried out to the burst mirror image data of the encapsulation that described data receipt unit receives, data recombination is carried out to burst mirror image data according to resolving the burst index, the burst cut to lengthen information that obtain, and is saved in the memory headroom of described reception dynamic memory distribution unit dynamic assignment;
Mirror image verification and upgrade unit, verify the image length of the complete mirror image data of recombinating in memory headroom and legitimacy, and after verification succeeds, perform the operation of mirroring software write Flash.
CN201510563077.4A 2015-09-07 2015-09-07 A kind of method and system of home gateway local batch upgrade Active CN105119749B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510563077.4A CN105119749B (en) 2015-09-07 2015-09-07 A kind of method and system of home gateway local batch upgrade

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510563077.4A CN105119749B (en) 2015-09-07 2015-09-07 A kind of method and system of home gateway local batch upgrade

Publications (2)

Publication Number Publication Date
CN105119749A true CN105119749A (en) 2015-12-02
CN105119749B CN105119749B (en) 2018-12-28

Family

ID=54667647

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510563077.4A Active CN105119749B (en) 2015-09-07 2015-09-07 A kind of method and system of home gateway local batch upgrade

Country Status (1)

Country Link
CN (1) CN105119749B (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106301959A (en) * 2016-10-10 2017-01-04 烽火通信科技股份有限公司 Gateway batch upgrading method based on WINDOWS and LINUX platform and system
CN106375406A (en) * 2016-08-31 2017-02-01 浙江创佳数字技术有限公司 Terminal system upgrading method
CN106851626A (en) * 2017-01-09 2017-06-13 武汉噢易云计算股份有限公司 Android system batch upgrade realizes device and method under LAN environment
CN107426258A (en) * 2016-05-23 2017-12-01 华为技术有限公司 A kind of upload of image file and method for down loading and device
CN107465709A (en) * 2016-06-03 2017-12-12 阿里巴巴集团控股有限公司 Distributed mirror image structure multitask method and device, system
CN107656751A (en) * 2017-10-27 2018-02-02 深圳市银河风云网络系统股份有限公司 User program upgrade method and device
CN107809481A (en) * 2017-10-27 2018-03-16 深圳市银河风云网络系统股份有限公司 Radio upgrade method and device
CN109120518A (en) * 2018-09-07 2019-01-01 张立江 A kind of home gateway system and its data forwarding method
CN109614200A (en) * 2018-11-30 2019-04-12 四川巧夺天工信息安全智能设备有限公司 A method of extracting the hds mirror image data of Parallels Desktop virtual machine
CN109683932A (en) * 2018-12-19 2019-04-26 深圳创维数字技术有限公司 Terminal staging method, device and computer readable storage medium
CN110474791A (en) * 2018-05-11 2019-11-19 上海智峥科技有限公司 Multi-core network device firmware upgrade method and its device
CN110471687A (en) * 2019-08-21 2019-11-19 江苏佳讯纳通能源技术有限公司 A kind of quick firmware upgrade method suitable for RS485 bus

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101222363A (en) * 2008-01-29 2008-07-16 中兴通讯股份有限公司 IP access gate batch upgrading system and method
CN101686145A (en) * 2008-09-26 2010-03-31 深圳华为通信技术有限公司 Equipment capable of upgrading, upgrading method and system
CN102546818A (en) * 2012-02-13 2012-07-04 成都欣点科技有限公司 Method and system for upgrading embedded equipment in batches
CN102546784A (en) * 2011-12-29 2012-07-04 深圳市迈进科技有限公司 Method based on controller area network (CAN) bus and used for conducting batch upgrading for device firmware
CN103138991A (en) * 2013-03-14 2013-06-05 烽火通信科技股份有限公司 Method for upgrading home gateway software in classified mode based on operation administration and maintenance (OAM) protocol
CN103281295A (en) * 2013-04-22 2013-09-04 深圳市共进电子股份有限公司 System and method for realizing parallel upgrade of multiple terminals in same IP (Internet Protocol) local area network

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101222363A (en) * 2008-01-29 2008-07-16 中兴通讯股份有限公司 IP access gate batch upgrading system and method
CN101686145A (en) * 2008-09-26 2010-03-31 深圳华为通信技术有限公司 Equipment capable of upgrading, upgrading method and system
CN102546784A (en) * 2011-12-29 2012-07-04 深圳市迈进科技有限公司 Method based on controller area network (CAN) bus and used for conducting batch upgrading for device firmware
CN102546818A (en) * 2012-02-13 2012-07-04 成都欣点科技有限公司 Method and system for upgrading embedded equipment in batches
CN103138991A (en) * 2013-03-14 2013-06-05 烽火通信科技股份有限公司 Method for upgrading home gateway software in classified mode based on operation administration and maintenance (OAM) protocol
CN103281295A (en) * 2013-04-22 2013-09-04 深圳市共进电子股份有限公司 System and method for realizing parallel upgrade of multiple terminals in same IP (Internet Protocol) local area network

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107426258A (en) * 2016-05-23 2017-12-01 华为技术有限公司 A kind of upload of image file and method for down loading and device
CN107465709A (en) * 2016-06-03 2017-12-12 阿里巴巴集团控股有限公司 Distributed mirror image structure multitask method and device, system
CN107465709B (en) * 2016-06-03 2020-09-01 阿里巴巴集团控股有限公司 Distributed mirror image construction task method, device and system
CN106375406A (en) * 2016-08-31 2017-02-01 浙江创佳数字技术有限公司 Terminal system upgrading method
CN106301959A (en) * 2016-10-10 2017-01-04 烽火通信科技股份有限公司 Gateway batch upgrading method based on WINDOWS and LINUX platform and system
CN106851626B (en) * 2017-01-09 2019-06-07 武汉噢易云计算股份有限公司 The realization device and method of Android system batch upgrade under LAN environment
CN106851626A (en) * 2017-01-09 2017-06-13 武汉噢易云计算股份有限公司 Android system batch upgrade realizes device and method under LAN environment
CN107809481A (en) * 2017-10-27 2018-03-16 深圳市银河风云网络系统股份有限公司 Radio upgrade method and device
CN107656751A (en) * 2017-10-27 2018-02-02 深圳市银河风云网络系统股份有限公司 User program upgrade method and device
CN110474791A (en) * 2018-05-11 2019-11-19 上海智峥科技有限公司 Multi-core network device firmware upgrade method and its device
CN109120518A (en) * 2018-09-07 2019-01-01 张立江 A kind of home gateway system and its data forwarding method
CN109614200A (en) * 2018-11-30 2019-04-12 四川巧夺天工信息安全智能设备有限公司 A method of extracting the hds mirror image data of Parallels Desktop virtual machine
CN109683932A (en) * 2018-12-19 2019-04-26 深圳创维数字技术有限公司 Terminal staging method, device and computer readable storage medium
CN110471687A (en) * 2019-08-21 2019-11-19 江苏佳讯纳通能源技术有限公司 A kind of quick firmware upgrade method suitable for RS485 bus

Also Published As

Publication number Publication date
CN105119749B (en) 2018-12-28

Similar Documents

Publication Publication Date Title
CN105119749A (en) Local batch upgrading method and system for home gateway
CN109391500B (en) Configuration management method, device and equipment
CN102710811B (en) Realize method and the switch of dhcp address safety distribution
CN104581647A (en) Network access method and device of intelligent equipment
EP2571224B1 (en) Method for processing messages on m2m platform and m2m platform system
CN101217338A (en) Detection message transmitting method, network element device
CN103237071B (en) A kind of method of wireless EoC terminal centralized management
US9503309B2 (en) Ethernet communication system and method based on MMC/SD interface
CN107483279A (en) A kind of method for the local batch operation network equipment detectd based on Ethernet
CN104683994A (en) Wireless network configuration method and wireless network devices
CN102739819B (en) Method, devices and system for establishing transmission channel
CN103442250A (en) System and method for debugging television
CN105164973B (en) Optical fiber is to distribution point device and its communication means
CN115474257A (en) Method and device for accessing Mesh network
CN104581886A (en) Method and system for data transmission and wireless connection of terminal and wireless device
CN105391780A (en) Data collection method and system, and data receiving method and system
CN113242152B (en) Method for upgrading data terminals in batches based on optical network
US11349686B2 (en) Network arrangement and addressing of network components for a charging park
CN103281295A (en) System and method for realizing parallel upgrade of multiple terminals in same IP (Internet Protocol) local area network
CN105389281A (en) CAN bus data transmitting and receiving method and firmware upgrading method
CN112737995A (en) Method, device and equipment for processing Ethernet frame and storage medium
CN110768749B (en) Data transmission method and device and power peak shaving system
CN104168172A (en) Inter-board data interaction device and method based on SWITCH chip
CN102907046B (en) For the treatment of the method for message
CN108900317B (en) Method for batch upgrading of multiple network devices in Ethernet broadcast mode

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