CN102437869B - Power Line Carrier Communication Module concurrent software upgrade method - Google Patents
Power Line Carrier Communication Module concurrent software upgrade method Download PDFInfo
- Publication number
- CN102437869B CN102437869B CN201110412300.7A CN201110412300A CN102437869B CN 102437869 B CN102437869 B CN 102437869B CN 201110412300 A CN201110412300 A CN 201110412300A CN 102437869 B CN102437869 B CN 102437869B
- Authority
- CN
- China
- Prior art keywords
- carrier module
- upgrade
- carrier
- upgrading
- module
- 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
Links
Abstract
The invention provides a kind of Power Line Carrier Communication Module concurrent software upgrade method, comprise step 1: open upgrade server, the upgrade command organized in advance is sent to upgrade server; Step 2: judge whether upgrade server receives upgrade command, if so, extracts the carrier module information needing upgrading from upgrade command, and creates corresponding download file thread for each carrier module, forwards step 3 to; If not, then 6 are gone to step; Step 3: publish papers in each of the lower in part thread, transmission upgrade file to carrier module, and judges upgrade file whether end of transmission, if: then forward step 4 to, if not, then repeat step 3; Step 4: parameter modification is carried out to all carrier modules, and restarts carrier module; Step 5: prompting upgrades successfully information, upgrading terminates; Step 6: send prompting upgrading failure information, upgrading terminates.Adopt in this way, auto-update is carried out to multiple power line communication carrier module simultaneously, make upgrading efficiency high.
Description
Technical field
The present invention relates to a kind of software upgrading algorithm, especially relate to a kind of Power Line Carrier Communication Module concurrent software upgrade method.
Background technology
At present, with regard to prior art, need to sign in module input upgrade command by means of a upgrade server software and the manual use login software repeated during multiple power line communication carrier module to have come if upgraded, a carrier module of once can only upgrading, complex operation; Secondly, multiple module of upgrading want the time spent relatively long, also need the information such as the IP of manual change power line communication carrier module, MAC Address and mode of operation after having upgraded.
Summary of the invention
The technical problem that the present invention solves is to provide a kind of Power Line Carrier Communication Module concurrent software upgrade method, and it is loaded down with trivial details that it can solve existing power line communication carrier module ROMPaq, the problem that spended time is long.
For solving the problems of the technologies described above, the technical solution used in the present invention is: provide a kind of Power Line Carrier Communication Module concurrent software upgrade method, comprise the following steps:
Step 1: open upgrade server, is sent to upgrade server by the upgrade command organized in advance;
Step 2: judge whether upgrade server receives upgrade command, if so, extracts the carrier module information needing upgrading from upgrade command, and creates corresponding download file thread for each carrier module, forwards step 3 to; If not, then 6 are gone to step;
Step 3: publish papers in each of the lower in part thread, transmission upgrade file to carrier module, and judges upgrade file whether end of transmission, if so, then forwards step 4 to, if not, then repeats step 3;
Step 4: parameter modification is carried out to the carrier module of all upgradings, and restarts carrier module;
Step 5: prompting upgrades successfully information, upgrading terminates;
Step 6: send prompting upgrading failure information, upgrading terminates.
Wherein, the carrier module information in described step 2 comprises carrier module quantity, carrier module type parameter, carrier module address parameter, carrier module mode parameter.
Wherein, described step 2 or step 3 carry out concurrent processing to each download file thread simultaneously.
Wherein, the quantity of multiple carrier modules of described step 2 mostly is 32 most.
Wherein, in described step 4, parameter modification is the amendment to IP, MAC Address, mode of operation.
Further, described step 4 specifically comprises:
Step 401: set up and be connected with the Telnet of the carrier module of each upgrading;
Step 402: the order of the amendment IP organized in advance, MAC Address, mode of operation is saved in a memory block;
Step 403: take out the order will revising IP address and send to carrier module in memory block, if the correct response receiving carrier module forwards step 404 to, if what receive is negative response, forwards step 407 to;
Step 404: the order of taking out amendment MAC Address in memory block sends to carrier module, if the correct response receiving carrier module forwards step 405 to, if what receive is negative response, forwards step 407 to;
Step 405: the order of taking out modification pattern in memory block sends to carrier module, if what receive is correct response, forwards step 406 to, if what receive is negative response, forwards step 407 to;
Step 406: prompting amendment IP, MAC Address, mode of operation success, restarts carrier module;
Step 407: prompting amendment IP, MAC Address, mode of operation failure.
Adopt technique scheme, the technique effect that the present invention obtains is: owing to have employed the mode of multithreading, upgrade command is sent to upgrade server, after upgrade server receives, set up many download thread, multiple module can be upgraded simultaneously, adopt in this way, what do not need repetition manually logs in power line communication carrier module, input upgrade command, make the speed of upgrading fast, simultaneously, after upgrade file end of transmission, automatic amendment IP, MAC Address and mode of operation, it also avoid the loaded down with trivial details flow process of manual modification IP address etc. like this, make upgrading efficiency high.
Accompanying drawing explanation
Fig. 1 is the flow chart of Power Line Carrier Communication Module concurrent software upgrade method provided by the invention;
Fig. 2 is the flow chart of an embodiment of Power Line Carrier Communication Module concurrent software upgrade method provided by the invention;
Fig. 3 is the particular flow sheet of the step 4 of Power Line Carrier Communication Module concurrent software upgrade method provided by the invention.
Embodiment
By describing technology contents of the present invention, structural feature in detail, realized object and effect, accompanying drawing is coordinated to be explained in detail below in conjunction with execution mode.
Refer to Fig. 1, the invention provides a kind of Power Line Carrier Communication Module concurrent software upgrade method, comprise the following steps:
Step 1: open upgrade server, is sent to upgrade server by the upgrade command organized in advance;
Step 2: judge whether upgrade server receives upgrade command, if so, extracts the carrier module information needing upgrading from upgrade command, and creates corresponding download file thread for each carrier module; If not, then 6 are gone to step;
Step 3: publish papers in each of the lower in part thread, transmission upgrade file to carrier module, and judges upgrade file whether end of transmission, if: then forward step 4 to, if not, then repeat step 3;
Step 4: parameter modification is carried out to the carrier module of all upgradings, and restarts carrier module;
Step 5: prompting upgrades successfully information, upgrading terminates;
Step 6: send prompting upgrading failure information, upgrading terminates.
Wherein, the carrier module information in described step 2 comprises carrier module quantity, carrier module type parameter, carrier module address parameter, carrier module mode parameter.
Wherein, described step 2 or step 3 carry out concurrent processing to each download file thread simultaneously.
Wherein, the quantity of multiple carrier modules of described step 2 mostly is 32 most.
Wherein, in described step 4, parameter modification is the amendment to IP, MAC Address, mode of operation.
Refer to Fig. 3, described step 4 specifically comprises:
Step 401: set up and be connected with the Telnet of the carrier module of each upgrading;
Step 402: the order of the amendment IP organized in advance, MAC Address, mode of operation is saved in a memory block;
Step 403: take out the order will revising IP address and send to carrier module in memory block, if the correct response receiving carrier module forwards step 404 to, if what receive is negative response, forwards step 407 to;
Step 404: the order of taking out amendment MAC Address in memory block sends to carrier module, if the correct response receiving carrier module forwards step 405 to, if what receive is negative response, forwards step 407 to;
Step 405: the order of taking out modification pattern in memory block sends to carrier module, if what receive is correct response, forwards step 406 to, if what receive is negative response, forwards step 407 to;
Step 406: prompting amendment IP, MAC Address, mode of operation success, restarts carrier module;
Step 407: prompting amendment IP, MAC Address, mode of operation failure.
Due in the prior art, after upgrade file end of transmission, need to perform reboot operation and revise IP again, MAC Address, mode of operation, or before reboot operation, Software tool (such as SecureCRT5.0) by other goes the Telnet set up to carrier module to connect, manually on the control inerface of this Software tool again IP will be revised, MAC Address, the order of mode of operation is input on control desk interface modifies, that is, in prior art, the transmission of upgrade file and IP, MAC Address, the amendment of mode of operation is an incoherent process, be two independently to operate.And the method that the present invention adopts, due to after upgrading terminates, just Telnet connection is carried out to each carrier module, the IP of each module, MAC Address, mode of operation is revised one by one, to be confirmed successfully modified after, just restart carrier module.The operation that this makes it possible to make upgrading and revise parameter is a coherent process, thus improves the efficiency of operation.
Refer to Fig. 2, Fig. 2 is the particular flow sheet of Power Line Carrier Communication Module concurrent software upgrade method provided by the invention, is described below according to Fig. 2 to specific works flow process of the present invention:
First, after upgrading starts, be loaded into the file of upgrading, before upgrading, open upgrade server automatically, the problem of upgrade command is sent in order to solve manual repeat logon power line communication carrier module, upgrade command can be organized in advance according to the upgrade file selected, create the thread that multiple (maximum support 32) logs in power line communication carrier module afterwards simultaneously, after logining successfully, the upgrade command of tissue is sent to upgrade server, after upgrade server receives, for this multiple power line communication carrier module sets up a lower carrier thread, namely upgrade server receives the upgrade command of several carrier module, just set up several lower carrier thread, to reach the object that multiple module is upgraded simultaneously, after upgrade file transfers, upgrade server can beam back the complete instruction of document backup, the IP automatically revising carrier module now can be removed with notice, MAC Address, mode of operation, after having revised, autoboot carrier module, because transfer the IP that and then upgrade file is exactly amendment carrier module, MAC Address, mode of operation, this process cannot be stopped, this also eliminates the troublesome operation that user goes to arrange voluntarily, this is also a feature of this algorithm, technology before, after upgrade file end of transmission, other login software is used to go manual entry to revise (namely user goes to arrange), process is very loaded down with trivial details, new upgrade algorithm is concurrent carrying out, so the time that multiple power line communication carrier module of upgrading will spend is less.
The foregoing is only embodiments of the invention; not thereby the scope of the claims of the present invention is limited; every utilize specification of the present invention and accompanying drawing content to do equivalent structure or equivalent flow process conversion; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.
Claims (4)
1. a Power Line Carrier Communication Module concurrent software upgrade method, is characterized in that, comprises the following steps:
Step 1: open upgrade server, is sent to upgrade server by the upgrade command organized in advance;
Step 2: judge whether upgrade server receives upgrade command, if so, extracts the carrier module information needing upgrading from upgrade command, and creates corresponding download file thread for each carrier module, forwards step 3 to, if not, then goes to step 6;
Step 3: publish papers in each of the lower in part thread, transmission upgrade file to carrier module, and judges upgrade file whether end of transmission, if: then forward step 4 to, if not, then repeat step 3;
Step 4: parameter modification is carried out to the carrier module of all upgradings, and restarts carrier module;
Step 5: prompting upgrades successfully information, upgrading terminates;
Step 6: send prompting upgrading failure information, upgrading terminates;
In described step 4, parameter modification is the amendment to IP, MAC Address, mode of operation;
Described step 4 specifically comprises:
Step 401: set up and be connected with the Telnet of the carrier module of each upgrading;
Step 402: the order of the amendment IP organized in advance, MAC Address, mode of operation is saved in a memory block;
Step 403: take out the order will revising IP address and send to carrier module in memory block, if the correct response receiving carrier module forwards step 404 to, if what receive is negative response, forwards step 407 to;
Step 404: the order of taking out amendment MAC Address in memory block sends to carrier module, if the correct response receiving carrier module forwards step 405 to, if what receive is negative response, forwards step 407 to;
Step 405: the order of taking out modification pattern in memory block sends to carrier module, if what receive is correct response, forwards step 406 to, if what receive is negative response, forwards step 407 to;
Step 406: prompting amendment IP, MAC Address, mode of operation success, restarts carrier module;
Step 407: prompting amendment IP, MAC Address, mode of operation failure.
2. Power Line Carrier Communication Module concurrent software upgrade method according to claim 1, is characterized in that: the carrier module information in described step 2 comprises carrier module quantity, carrier module type parameter, carrier module address parameter, carrier module mode parameter.
3. Power Line Carrier Communication Module concurrent software upgrade method according to claim 1, is characterized in that: described step 2 or step 3 carry out concurrent processing to each download file thread simultaneously.
4. Power Line Carrier Communication Module concurrent software upgrade method according to claim 1, is characterized in that: the quantity of multiple carrier modules of described step 2 mostly is 32 most.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110412300.7A CN102437869B (en) | 2011-12-12 | 2011-12-12 | Power Line Carrier Communication Module concurrent software upgrade method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110412300.7A CN102437869B (en) | 2011-12-12 | 2011-12-12 | Power Line Carrier Communication Module concurrent software upgrade method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102437869A CN102437869A (en) | 2012-05-02 |
CN102437869B true CN102437869B (en) | 2016-04-13 |
Family
ID=45985760
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110412300.7A Active CN102437869B (en) | 2011-12-12 | 2011-12-12 | Power Line Carrier Communication Module concurrent software upgrade method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102437869B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103092662A (en) * | 2013-02-04 | 2013-05-08 | 烽火通信科技股份有限公司 | Software module upgrading method for terminal device based on embedded operating system |
CN105827461A (en) * | 2016-05-13 | 2016-08-03 | 长沙威胜信息技术有限公司 | Method for upgrading power line carrier communication module |
CN108011655A (en) * | 2018-01-08 | 2018-05-08 | 上海德澜电气集团有限公司 | A kind of IAP methods based on power line carrier communication |
CN109992283B (en) * | 2019-03-26 | 2023-03-14 | 合肥移瑞通信技术有限公司 | Method and system for synchronously downloading and upgrading test firmware in batch |
CN113301182B (en) * | 2021-05-26 | 2022-06-17 | 绵阳市维博电子有限责任公司 | Networking communication system based on PLC bus |
CN113595764B (en) * | 2021-06-30 | 2024-01-30 | 宁波三星医疗电气股份有限公司 | Method for detecting carrier module replacement abnormality on terminal |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101042651A (en) * | 2006-03-22 | 2007-09-26 | 华为技术有限公司 | Software updating method and system thereof |
CN101068423A (en) * | 2007-06-13 | 2007-11-07 | 华为技术有限公司 | Staging software method, communication system, server for mobile station and mobile station |
CN101178670A (en) * | 2007-12-10 | 2008-05-14 | 中兴通讯股份有限公司 | Apparatus upgrade method |
CN101178656A (en) * | 2007-11-14 | 2008-05-14 | 中兴通讯股份有限公司 | Board software paralleling download method |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8209677B2 (en) * | 2007-05-21 | 2012-06-26 | Sony Corporation | Broadcast download system via broadband power line communication |
-
2011
- 2011-12-12 CN CN201110412300.7A patent/CN102437869B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101042651A (en) * | 2006-03-22 | 2007-09-26 | 华为技术有限公司 | Software updating method and system thereof |
CN101068423A (en) * | 2007-06-13 | 2007-11-07 | 华为技术有限公司 | Staging software method, communication system, server for mobile station and mobile station |
CN101178656A (en) * | 2007-11-14 | 2008-05-14 | 中兴通讯股份有限公司 | Board software paralleling download method |
CN101178670A (en) * | 2007-12-10 | 2008-05-14 | 中兴通讯股份有限公司 | Apparatus upgrade method |
Also Published As
Publication number | Publication date |
---|---|
CN102437869A (en) | 2012-05-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102437869B (en) | Power Line Carrier Communication Module concurrent software upgrade method | |
CN104579719B (en) | A kind of upgrade method and system, host computer and optical module of firmware | |
CN102164363B (en) | Base station version updating realization method and base station | |
CN102495744B (en) | Control software upgrading method of electronic control devices of electric automobile based on controller area network (CAN) bus | |
CN102752137B (en) | The apparatus and method of virtual machine network parameter are initiatively set | |
CN102609281B (en) | Distributed software patch update method and system | |
CN105553741A (en) | Automatic deployment method for application system based on cloud computing | |
CN105373407A (en) | DSP and FPGA online upgrading method for embedded system | |
CN103164244A (en) | Firmware system long-distance updating methods based on unified extensible firmware interface | |
CN106843933A (en) | A kind of leak restorative procedure of application program, mobile terminal and patch server | |
CN101950253A (en) | Method for upgrading optical module firmware in optical network unit by utilizing WEB webpage interface | |
CN105224348A (en) | A kind of installation method of MySQL database and device | |
CN107632829A (en) | A kind of App automation continuous integration systems and method based under iOS system | |
CN106569863B (en) | Resource and code modularization-based android app resource updating and repairing method | |
CN104270688A (en) | System and method for upgrading ONUs (optical network units) on EPON (Ethernet passive optical network) in batch | |
CN102622229A (en) | Fusion method, fusion system and fusion device of development frameworks of different types | |
CN103336701B (en) | Intelligent guiding upgrade method | |
CN102866927A (en) | Method and device for collocating basic input/output system, and method for managing basic input/output system | |
CN104407885A (en) | Method for simultaneously loading programs for FPGA (field programmable gate array) in multiple pattern generators | |
CN102902526A (en) | Automatic setting method for realizing BMC (Baseboard Management Controller) and IP (Internet Protocol) information through time delay | |
CN112860251A (en) | Method and system for constructing website front end | |
CN102148702B (en) | Method for managing network by utilizing network configuration protocol | |
CN105278962A (en) | Applications, hot deployment method of database and device | |
CN101834885A (en) | Method and device for downloading software | |
US9207928B2 (en) | Computer-readable medium, apparatus, and methods of automatic capability installation |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |