CN103024029B - Router software upgrading method and system - Google Patents
Router software upgrading method and system Download PDFInfo
- Publication number
- CN103024029B CN103024029B CN201210529139.6A CN201210529139A CN103024029B CN 103024029 B CN103024029 B CN 103024029B CN 201210529139 A CN201210529139 A CN 201210529139A CN 103024029 B CN103024029 B CN 103024029B
- Authority
- CN
- China
- Prior art keywords
- router
- file
- module
- upgrade file
- upgrade
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 26
- 230000004044 response Effects 0.000 claims abstract description 17
- 230000005540 biological transmission Effects 0.000 claims description 3
- 238000010586 diagram Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000007547 defect Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a router software upgrading method and system. The method comprises that a terminal receives names of cloaked pages input by a user through an address of a web browser; a router looks up character strings corresponding to text contents representing the cloaked pages, then the character string are sealed into hyper text transfer protocol (HTTP) response message which is returned to the web browser, the text contents representing the cloaked pages is stored in procedure codes of the router in a character string mode in advance, and a congruent relationship between the character strings and the names of the cloaked pages is built; the terminal displays the cloaked pages opened by the web browser; the terminal receives a route of upgrading files input by the user on the cloaked pages, and the upgrading files corresponding to the route are sent to the router; and the route receives the upgrading files which is written in FLASH. By means of the technical scheme, waiting for complete starting of a router system is not needed, stoppage influences of a router file system is avoided, and developing and debugging time is greatly shortened.
Description
Technical field
The present invention relates to software upgrading field, particularly relate to a kind of method and system of router software upgrade.
Background technology
The software upgrading of router inputs path, upgrade file place usually on the routine upgrading page, then upgrade file corresponding for this path is sent to router, write the FLASH of router again, last restarter, just can be completed the upgrading of router software.But, the conventional upgrading page, its content of text is all generally deposit in the file system of router with document form, therefore, if want the software of routers to upgrade, must wait for that route system starts and can the file system of access router completely, then just can open the conventional upgrading page, will expend many time during this, the situation of frequently upgrading for router software is particularly serious; And when the file system of router breaks down and causes opening the conventional upgrading page, the upgrading using the method to carry out router software will be lost efficacy.
Summary of the invention
The technical problem to be solved in the present invention is, expend time in long for prior art above-mentioned and be subject to the defect of the impact of router file system fault, a kind of method and system of router software upgrade is provided, expends time in short, and not by the impact of router file system fault.
The technical solution adopted for the present invention to solve the technical problems is: a kind of method constructing router software upgrade, comprising:
A. terminal receives the title of the hidden page that user is inputted by web browser address hurdle;
B. the title of hidden page that sends according to web browser of router, search the character string corresponding to the content of text representing this hidden page, then described string wrapper is become http response message, and described http response message is back to web browser; Wherein, router stores with the form of character string the content of text representing hidden page in advance in program code, and sets up the corresponding relation having the title of described character string and hidden page;
C. the hidden page opened of terminal demonstration web browser;
D. terminal receives the path of the upgrade file that user inputs in hidden page, and the upgrade file corresponding to this path is sent to router;
E. router receives described upgrade file, and by described upgrade file write FLASH.
In the method for router software upgrade of the present invention, described step D comprises:
D1. terminal receives the path of the upgrade file that user inputs in hidden page;
D2. the title of terminal to inputted upgrade file is verified, if correctly, then performs step D3; If incorrect, then perform step D4;
D3. the upgrade file corresponding to this path is sent to router by terminal;
D4. terminal notifying mistake.
In the method for router software upgrade of the present invention, described step e comprises:
E1. router receives described upgrade file;
E2. router carries out data check to received upgrade file, if correctly, then performs step e 3; If not, then step e 4 is performed;
E3. router is by described upgrade file write FLASH;
E4. terminal notifying mistake.
In the method for router software upgrade of the present invention, in described step C, shown hidden page comprises the uploading control path input frame of upgrade file.
In the method for router software upgrade of the present invention, in described step D, described upgrade file is sent to router by RJ-45 netting twine by terminal.
The present invention also constructs a kind of system of router software upgrade, comprises the router be connected and the terminal storing upgrade file, and described router comprises: memory module, message package module, file receive module and writing module; Described terminal comprises the first receiver module, display module, the second receiver module and file send module, wherein,
Described memory module, stores with the form of character string the content of text representing hidden page in advance in program code, and sets up the corresponding relation having the title of described character string and hidden page;
Described first receiver module, for receiving the title of the hidden page that user is inputted by web browser address hurdle;
Described message package module, for the title of hidden page sent according to web browser, search the character string corresponding to the content of text representing this hidden page, then described string wrapper is become http response message, and described http response message is back to web browser;
Described display module, for the hidden page that display web page browser is opened;
Described second receiver module, for receiving the path of the upgrade file of user's input in hidden page;
Described file send module, for being sent to described file receive module by the upgrade file corresponding to this path;
Described file receive module, for receiving described upgrade file;
Said write module, for the FLASH by described upgrade file write router.
In the system of router software upgrade of the present invention, described terminal also comprises:
Upgrade file title authentication module, for verifying the title of inputted upgrade file.
In the system of router software upgrade of the present invention, described router also comprises:
Data check module, for after receiving upgrade file, carries out data check to received upgrade file.
In the system of router software upgrade of the present invention, in described display module, shown hidden page comprises the uploading control path input frame of upgrade file.
In the system of router software upgrade of the present invention, described file send module and described file receive module are by RJ-45 network cable transmission upgrade file.
Implement technical scheme of the present invention, due to the hidden page in upgrade file path can be inputted, its content of text is stored in program code with the form of character string, and not as General Page, its content of text is stored in router file system in the form of a file, so, when the software of routers is upgraded, without the need to waiting for that route system starts and can access router file system completely, only the string wrapper corresponding to the content of text representing hidden page need be become http response message and is sent to web browser, then web browser just can open described hidden page.Then, can in the path of this hidden page uploading control input frame input upgrade file, upgrade file corresponding for this path can be sent to router by terminal.Finally, router is by received upgrade file write FLASH, and then restarter can complete software upgrading.Therefore, compared to existing technology, the method for this router software upgrade without the need to waiting for that route system starts completely, and not by the fault effects of router file system, substantially reduces the time of exploitation debugging, especially for the situation that router is frequently upgraded.
Accompanying drawing explanation
Below in conjunction with drawings and Examples, the invention will be further described, in accompanying drawing:
Fig. 1 is the flow chart of the embodiment of the method one of router software upgrade of the present invention;
Fig. 2 is the flow chart of step D preferred embodiment in the method for router software upgrade of the present invention;
Fig. 3 is the flow chart of step e preferred embodiment in the method for router software upgrade of the present invention;
Fig. 4 is the logic diagram of the system embodiment one of router software upgrade of the present invention.
Embodiment
Fig. 1 is the flow chart of the embodiment of the method one of router software upgrade of the present invention, when routers software is upgraded, first starts router, but does not need waiting system to start completely, then carries out following steps:
A. terminal receives the title of user by the hidden page of web browser (Web Browser) address field input;
B. the title of hidden page that sends according to web browser of router, search the character string corresponding to the content of text representing this hidden page, then described string wrapper is become http response message, and described http response message is back to web browser; Wherein, router stores with the form of character string the content of text representing hidden page in advance in program code, and sets up the corresponding relation having the title of described character string and hidden page.It should be noted that at this, HTTP message interactive action in this step completes in the small-sized web page server (HTTP Server) carried at router, and described web page server can manually boot under U-Boot command mode, also automatically can start with system.As everyone knows, the function of web page server is exactly receive the HTTP request that sends of web browser and respond.In this step, the HTTP request that web page server receives is the content of text of hidden page, the response of web page server is for becoming http response message by the string wrapper corresponding to the content of text representing hidden page, and return to web browser, now, web browser just can open described hidden page;
C. the hidden page opened of terminal demonstration web browser, preferably, hidden page comprises the uploading control path input frame of upgrade file;
D. terminal receives the path of the upgrade file that user inputs in hidden page, and the upgrade file corresponding to this path is sent to router, and preferably, user can by hidden page uploading control path input frame input path, upgrade file place;
E. router receives described upgrade file, and by described upgrade file write FLASH, then, restarter can complete software upgrading.
Implement technical scheme of the present invention, due to the hidden page in upgrade file path can be inputted, its content of text is stored in program code with the form of character string, and not as General Page, its content of text is stored in router file system in the form of a file, so, when the software of routers is upgraded, without the need to waiting for that route system starts and can access router file system completely, only the string wrapper corresponding to the content of text representing hidden page need be become http response message and is sent to web browser, then web browser just can open described hidden page.Then, can in the path of this hidden page uploading control input frame input upgrade file, upgrade file corresponding for this path can be sent to router by terminal.Finally, router is by received upgrade file write FLASH, and then restarter can complete software upgrading.Therefore, compared to existing technology, the method for this router software upgrade without the need to waiting for that route system starts completely, and not by the fault effects of router file system, substantially reduces the time of exploitation debugging, especially for the situation that router is frequently upgraded.
Fig. 2 is the flow chart of step D preferred embodiment in the method for router software upgrade of the present invention, and in this embodiment, step D can specifically comprise:
D1. terminal receives the path of the upgrade file that user inputs in hidden page;
D2. the title of terminal to inputted upgrade file is verified, it should be noted that those skilled in the art will be understood that the last part field in path, upgrade file place is the title of upgrade file, if correctly, then performs step D3; If incorrect, then perform step D4;
D3. the upgrade file corresponding to this path is sent to router by terminal, and preferably, described upgrade file is sent to router by RJ-45 netting twine by terminal;
D4. terminal notifying mistake, then, can re-execute step D1.
Fig. 3 is the flow chart of step e preferred embodiment in the method for router software upgrade of the present invention, and in this embodiment, step e can specifically comprise:
E1. router receives described upgrade file, with step D3 accordingly, router by RJ-45 netting twine receive upgrade file, the time of router upgrade can be shortened so further;
E2. router carries out data check to received upgrade file, if correctly, then performs step e 3; If not, then step e 4 is performed;
E3. router is by described upgrade file write FLASH;
E4. terminal notifying mistake, then, can re-execute step D1.
Fig. 4 is the logic diagram of the system embodiment one of router software upgrade of the present invention, and the system of this router software upgrade comprises the router one 0 and terminal 20 that are connected, and terminal 20 stores upgrade file.Wherein, router one 0 comprises memory module 11, message package module 12, file receive module 13 and writing module 14; Terminal 20 comprises the first receiver module 21, display module 22, second receiver module 23 and file send module 24.Wherein, memory module 11 stores with the form of character string the content of text representing hidden page in advance in program code, and sets up the corresponding relation having the title of described character string and hidden page; The title of hidden page of the first receiver module 21 for receiving user and being inputted by web browser address hurdle; The title of hidden page of message package module 12 for sending according to web browser, search the character string corresponding to the content of text representing this hidden page, then described string wrapper is become http response message, and http response message is back to web browser; The hidden page that display module 22 is opened for display web page browser, preferably, shown hidden page comprises the uploading control path input frame of upgrade file; Second receiver module 23 for receiving the path of the upgrade file of user's input in hidden page, and preferably, user can input the path of upgrade file in the uploading control path input frame of upgrade file; File send module 24 is for being sent to file receive module 13 by the upgrade file corresponding to this path, and preferably, file send module 24 and file receive module 13 are by RJ-45 network cable transmission upgrade file; File receive module 13 is for receiving upgrade file; Writing module 14 is for writing the FLASH of router by upgrade file.In addition, it should be noted that, the web page server (HTTP Server) that the function of the memory module 11 in router, message package module 12, file receive module 13 can be carried by router realizes.
In a preferred embodiment of the system of router software upgrade of the present invention, terminal also comprises upgrade file title authentication module, router also can comprise data check module, and wherein, upgrade file title authentication module is used for verifying the title of inputted upgrade file; Data check module is used for after receiving upgrade file, carries out data check to received upgrade file.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within right of the present invention.
Claims (10)
1. a method for router software upgrade, is characterized in that, comprising:
A. terminal receives the title of the hidden page that user is inputted by web browser address hurdle;
B. the title of hidden page that sends according to web browser of router, search the character string corresponding to the content of text representing this hidden page, then described string wrapper is become http response message, and described http response message is back to web browser; Wherein, router stores with the form of character string the content of text representing hidden page in advance in program code, and sets up the corresponding relation having the title of described character string and hidden page;
C. the hidden page opened of terminal demonstration web browser;
D. terminal receives the path of the upgrade file that user inputs in hidden page, and the upgrade file corresponding to this path is sent to router;
E. router receives described upgrade file, and by described upgrade file write FLASH.
2. the method for router software upgrade according to claim 1, is characterized in that, described step D comprises:
D1. terminal receives the path of the upgrade file that user inputs in hidden page;
D2. the title of terminal to inputted upgrade file is verified, if correctly, then performs step D3; If incorrect, then perform step D4;
D3. the upgrade file corresponding to this path is sent to router by terminal;
D4. terminal notifying mistake.
3. the method for router software upgrade according to claim 1, is characterized in that, described step e comprises:
E1. router receives described upgrade file;
E2. router carries out data check to received upgrade file, if correctly, then performs step e 3; If not, then step e 4 is performed;
E3. router is by described upgrade file write FLASH;
E4. terminal notifying mistake.
4. the method for router software upgrade according to claim 1, is characterized in that, in described step C, shown hidden page comprises the uploading control path input frame of upgrade file.
5. the method for router software upgrade according to claim 1, is characterized in that, in described step D, described upgrade file is sent to router by RJ-45 netting twine by terminal.
6. a system for router software upgrade, comprise the router be connected and the terminal storing upgrade file, it is characterized in that, described router comprises: memory module, message package module, file receive module and writing module; Described terminal comprises the first receiver module, display module, the second receiver module and file send module, wherein,
Described memory module, stores with the form of character string the content of text representing hidden page in advance in program code, and sets up the corresponding relation having the title of described character string and hidden page;
Described first receiver module, for receiving the title of the hidden page that user is inputted by web browser address hurdle;
Described message package module, for the title of hidden page sent according to web browser, search the character string corresponding to the content of text representing this hidden page, then described string wrapper is become http response message, and described http response message is back to web browser;
Described display module, for the hidden page that display web page browser is opened;
Described second receiver module, for receiving the path of the upgrade file of user's input in hidden page;
Described file send module, for being sent to described file receive module by the upgrade file corresponding to this path;
Described file receive module, for receiving described upgrade file;
Said write module, for the FLASH by described upgrade file write router.
7. the system of router software upgrade according to claim 6, is characterized in that, described terminal also comprises:
Upgrade file title authentication module, for verifying the title of inputted upgrade file.
8. the system of router software upgrade according to claim 6, is characterized in that, described router also comprises:
Data check module, for after receiving upgrade file, carries out data check to received upgrade file.
9. the system of router software upgrade according to claim 6, is characterized in that, in described display module, shown hidden page comprises the uploading control path input frame of upgrade file.
10. the system of router software upgrade according to claim 6, is characterized in that, described file send module and described file receive module are by RJ-45 network cable transmission upgrade file.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210529139.6A CN103024029B (en) | 2012-12-10 | 2012-12-10 | Router software upgrading method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210529139.6A CN103024029B (en) | 2012-12-10 | 2012-12-10 | Router software upgrading method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103024029A CN103024029A (en) | 2013-04-03 |
CN103024029B true CN103024029B (en) | 2015-04-08 |
Family
ID=47972153
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210529139.6A Expired - Fee Related CN103024029B (en) | 2012-12-10 | 2012-12-10 | Router software upgrading method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103024029B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105228173A (en) * | 2014-07-02 | 2016-01-06 | 上海新联纬讯科技发展有限公司 | Possesses the wireless router method of operation of loading progress interactive function |
CN106603269A (en) * | 2016-11-01 | 2017-04-26 | 上海斐讯数据通信技术有限公司 | Router software version backspacing or upgrading method and system of test page |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102184109A (en) * | 2011-04-12 | 2011-09-14 | 杭州华三通信技术有限公司 | Boot software automatic updating control method and device |
-
2012
- 2012-12-10 CN CN201210529139.6A patent/CN103024029B/en not_active Expired - Fee Related
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102184109A (en) * | 2011-04-12 | 2011-09-14 | 杭州华三通信技术有限公司 | Boot software automatic updating control method and device |
Also Published As
Publication number | Publication date |
---|---|
CN103024029A (en) | 2013-04-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9436557B2 (en) | Method and computation node for processing application data | |
CN102065118A (en) | Method for updating network equipment and device for implementing method | |
CN102946436B (en) | A kind of download system | |
US20150339175A1 (en) | Method and device for starting external application program in browser | |
CN107179909A (en) | Method for upgrading software, device and computer-readable recording medium | |
CN106951253A (en) | A kind of embedded firmware on line upgrading method | |
CN103765423A (en) | Gathering transaction data associated with locally stored data files | |
CN110175042A (en) | A kind of firmware upgrade method, device and its relevant device | |
US10303463B2 (en) | Terminal management framework and terminal management method | |
CN110187909B (en) | Single-chip microcomputer firmware upgrading method based on android system | |
CN110851163B (en) | Software updating method compatible with multi-equipment platform based on CAN communication | |
US20170068585A1 (en) | Method and Apparatus for Recovering System Software of Intelligent Terminal | |
CN103176775A (en) | Method and device for achieving localization of web-based application | |
CN106202217A (en) | Webpage link access method and device and mobile terminal | |
CN109582331A (en) | Upgrade method, the device and system of vehicle-carrying communication module | |
CN108182149A (en) | Built-in browser adjustment method, debugging terminal and computer readable storage medium | |
CN103024029B (en) | Router software upgrading method and system | |
CN104699500B (en) | The method that bootstrap upgrades automatically is realized in smart machine | |
CN117687664A (en) | Online upgrade configuration method and device for DSP | |
CN101621792A (en) | Method for upgrading telesoftware of wireless fixed phone terminal | |
CN114500423A (en) | Message processing method, device, equipment and storage medium | |
CN110267062B (en) | Optimization method and device for assembled video frame and readable storage medium | |
CN109426511A (en) | Soft core update method and system | |
CN107203397A (en) | The operation method and device of Mobile solution | |
CN102196411A (en) | Mobile communication terminal and communication software upgrading method |
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 | ||
PP01 | Preservation of patent right |
Effective date of registration: 20180313 Granted publication date: 20150408 |
|
PP01 | Preservation of patent right | ||
PD01 | Discharge of preservation of patent |
Date of cancellation: 20210313 Granted publication date: 20150408 |
|
PD01 | Discharge of preservation of patent | ||
PP01 | Preservation of patent right |
Effective date of registration: 20210313 Granted publication date: 20150408 |
|
PP01 | Preservation of patent right | ||
PD01 | Discharge of preservation of patent |
Date of cancellation: 20240313 Granted publication date: 20150408 |
|
PD01 | Discharge of preservation of patent | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20150408 |
|
CF01 | Termination of patent right due to non-payment of annual fee |