CN100502309C - Embedded Web network management system and its interaction method - Google Patents

Embedded Web network management system and its interaction method Download PDF

Info

Publication number
CN100502309C
CN100502309C CNB2006100218191A CN200610021819A CN100502309C CN 100502309 C CN100502309 C CN 100502309C CN B2006100218191 A CNB2006100218191 A CN B2006100218191A CN 200610021819 A CN200610021819 A CN 200610021819A CN 100502309 C CN100502309 C CN 100502309C
Authority
CN
China
Prior art keywords
web
script
webpage
shell
equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CNB2006100218191A
Other languages
Chinese (zh)
Other versions
CN1929399A (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.)
Maipu Communication Technology Co Ltd
Original Assignee
MAIPU(SICHUAN) COMMUNICATION TECHNOLOGY 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 MAIPU(SICHUAN) COMMUNICATION TECHNOLOGY CO LTD filed Critical MAIPU(SICHUAN) COMMUNICATION TECHNOLOGY CO LTD
Priority to CNB2006100218191A priority Critical patent/CN100502309C/en
Publication of CN1929399A publication Critical patent/CN1929399A/en
Application granted granted Critical
Publication of CN100502309C publication Critical patent/CN100502309C/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

This invention relates to network management system and to one relative technique, which solves current imbedded device Web network management expiration circle and large area problem and provides one imbedded Web management system and its interacting method. This invention imbedded Web system comprises one set of Web net page and leg. This invention has advantages as device terminal work for single and common use.

Description

Embedded Web network management system and exchange method thereof
Technical field
The present invention relates to network management system, particularly in embedded device, realize the technology of webmaster.
Background technology
In the Web of embedded device webmaster field, the basic goal of Web webmaster be realize the keeper by with Web webpage alternant way, reach purpose to Equipment Control and Stateful Inspection.The basic composition of the Web network management system of embedded device comprises one group of web webpage, is used for showing network management information and accepting keeper's operation by Web browser; A Web server of realizing in equipment is used to provide webmaster devices needed information; A communication protocol is used to transmit interaction data.Its reciprocal process comprises following steps usually: net administrator's mutual by with the Web webpage, its information is sent to Web server by communication protocol, Web server obtains facility information and handles after the request, its result transfers back to Web browser by communication protocol again, represents the result and give the net administrator in the Web webpage.
The main implementation of Web network management system of embedded device has two kinds at present, and a kind of is that Web server is made of a plurality of CGI (CGI), and the Web webpage is standard html web page and script, and communication protocol is HTTP.The characteristics of this scheme are, the cgi script code of Web server, and directly the invocation facility program code is carried out the webmaster order from the net administrator, and its result returns to Web browser by the Web webpage of dynamic generation.The shortcoming of this scheme is, need develop debugging in embedded device, and cgi script code and embedded system coupling ratio are tightr, need the business of interrupt run during upgrading webmaster program, and the exploitation debugging difficulty is bigger, and the construction cycle is longer.
Another kind of existing implementation is, the Web service end provides a CGI that can transmit equipment Shell order and result, the Web webpage is with Applet (Java small routine, the Java assembly of carrying out among a kind of web of being embedded into) or ActiveX (the movable component technology of Microsoft company, also be a kind ofly can be embedded into the program assembly of carrying out among the web) be main, communication protocol also is HTTP.The characteristics of this technology are the CGI of Web server, by the webmaster order of equipment Shell execution from the net administrator, Applet in the Web webpage (perhaps ActiveX) is mutual by Web service end CGI and equipment Shell, finishes network management function and returns to Web browser.The shortcoming of this technology is, need take bigger memory space and deposit Applet or ActiveX, and this influences bigger for embedded device.It may also require Web browser that Java Virtual Machine need be installed simultaneously.
Summary of the invention
Technical problem to be solved by this invention, long at the existing embedded device Web webmaster construction cycle exactly, take the shortcoming that memory space is big, can't reduce flexibly and upgrade, provide a kind of and take that memory space is little, the construction cycle short, can reduce flexibly the embedded Web network management system of upgrading.
The present invention solve the technical problem, and the technical scheme of employing is that embedded Web network management system comprises Web browser, the Shell interface of Web server and equipment; It is characterized in that, also comprise one group of Web webpage and script;
Described Web server comprises a CGI that can transmit equipment Shell order and execution result;
Described Web webpage adopts the standard html tag to constitute, and described script is used for described CGI mutual;
Described Web browser is used to support the demonstration and the execution of standard HTML and script;
Described Web webpage and script can be equipment Shell process of commands script with net administrator's operational transition, and equipment are carried out the Shell command result resolve, and the content revealing after will resolving is in the Web webpage.
Further be that described Web browser can be downloaded Web webpage and script from Web server.
Further be that described script is embedded in the Web webpage to be carried out.
Further be that described Web webpage and script are stored in the equipment with compress mode again.
Further be that described Web webpage and script can be that unit upgrades separately with the file again.
Embedded Web webmaster exchange method may further comprise the steps:
The a.Web browser is downloaded Web webpage and script from Web server, makes an explanation then and carries out, and browses for the net administrator;
B. the net administrator browses this Web webpage by Web browser, carries out the webmaster operation;
After the script of c.Web browser Web webpage obtains net administrator's webmaster operation, the webmaster operation is converted to corresponding equipment Shell order, calls the appointment CGI of http communication component passes in the Web server in the Web browser;
The d.Web server receives after the request, call cgi script, the Shell order of request is passed to the Shell process of equipment by the Shell interface, the Shell process after carrying out this order is returned execution result, cgi script receives after the execution result, is delivered to the Web client by Web server;
The e.Web browser receives execution result, after resolving by script, execution result is presented in the Web webpage of browser and checks for the net administrator.
The invention has the beneficial effects as follows, the work of webmaster exploitation has moved on in the Web webpage fully, it is single and general that the work of equipment end becomes, Web webpage and script can directly be debugged on PC, accelerated development progress, because Web webpage and script are text, it is very little that the high compression ratio of text makes that the webmaster program takies device memory, makes the Web webmaster to reduce flexibly and to upgrade based on the functional organization of Web webpage.
Description of drawings
Fig. 1 is a Web network management system structure schematic diagram of the present invention.
Embodiment
Below in conjunction with drawings and the embodiments, describe technical scheme of the present invention in detail.
As shown in Figure 1, the present invention comprises following assembly: the Shell interface of the Web server in the embedded device, equipment, be used to transmit CGI, Web browser, one group of Web webpage and script that is used for webmaster of Shell order and result.
Wherein, Web server is realized in equipment, and the HTTP service function of standard is provided, and can read with compress mode and be kept at Web webpage and script on the Web server, and provides relevant interface that the Web webpage is upgraded separately.
Shell interface in the embedded device (being called for short Shell again) is the configuration interface of the mode word that provides out in the equipment, use when generally offering administrator configurations equipment and checking equipment state, usually the mode of operation to Shell has two kinds, the configuration mouth that the first provides by equipment (generally being referred to as Console port) is connected on the PC, and the keeper is connected to by the terminal program on the PC among the Shell of equipment and directly is configured operation; It two is to adopt Telnet or SSH mode to sign in among the equipment Shell by network remote, and equipment is operated.Operation to Shell among the present invention is another mode, the keeper is no longer undertaken alternately by top dual mode and Shell, but transmit by the Web server module in the equipment, utilize script in the Web browser to finish mutual to equipment Shell, this interactive mode is because belong to graphic user interface, intuitive and convenient more.
Carry out the CGI of Shell order, can call for Web server, the expansion that belongs to Web server, it is Web server and the mutual interface of equipment Shell, it receives the Shell order that Web server imports into, then order is delivered to the Shell process in the equipment, carry out the Shell order by the Shell process, this process just be the same by the equipment disposition mouth to equipment disposition, after the Shell fill order, can return some character informations of execution result, this CGI is with complete the catching and return to Web browser by HTTP of these character informations.
Web browser is used to provide demonstration and execution to Web webpage and script, and Web browser need be supported the relevant criterion of HTML and script, supports that script communicates by XMLHTTP assembly and Web server.
The Web webpage and the script that are used for webmaster are made of the html tag and the script of standard.Script is except the reciprocal process that will support net administrator and Web webpage among the present invention, also need to finish user's operation is translated as the corresponding Shell order of equipment, be delivered to the relevant CGI of Web server then by the XMLHTTP communications component of Web browser, after receiving the execution result that relevant CGI returns, script need be resolved the execution result that returns, by the Web webpage is revised dynamically, the form of final operating result with the Web webpage represented to the net administrator then.
Shell generally be equipment directly with the mutual interface of keeper, the text mode that employing can direct reading is represented order and execution result, this text mode helps reading, but is unfavorable for the program parsing.Because this text formatting is fixed, therefore in script, can be used as a kind of format string to it and handle, the common methods of this processing is exactly " regular expression ", and this mode is supported by the script in the Web browser at present.
In order to reach the purpose that reduces the construction cycle, the most of parts that relate among the present invention adopt existing parts to reduce the development amount, Web browser adopts standard browser (IE, FireFox, Netscape etc.), Web server adopts the standard http server, transparent transmission Shell order and a result's between Web browser end and equipment Shell (being the interactive interface of the equipment textual form that provides out) CGI is provided thereon, the data interaction agreement adopts the already provided Shell text of equipment interface, and communication protocol adopts the http protocol of standard.
Because most embedded devices are all supported the Shell interface, the present invention utilizes equipment to have the Shell interface now just, utilize the Web browser of standard, only need be on standard Web the CGI of a transparent transmission Shell of exploitation of property once, with the webmaster command translation is the Shell order, and the Shell command execution results turns back in the Web webpage and handles, this processing and represent place one's entire reliance upon standard html tag and be embedded into execution script in the Web webpage of process.Therefore adopting the groundwork emphasis of this structure webmaster exploitation is exactly the exploitation of standard Web webpage and script.For the exploitation of these standards Web webpage and script, fully can not need in equipment, develop debugging, improved development rate greatly.
On the other hand, because Web webpage and script all are the contents of text mode, and the compression ratio of text is very high, therefore takies memory space and can control to very for a short time, can significantly reduce the shared memory space of webmaster content.Because a Web webpage is generally finished a management function, is the integral body after the compiling unlike the existing Web webmaster, these Web webpages all are independent individualities, so these Web webpages also can be reduced the requirement that adapts to different embedded devices arbitrarily.
Web webpage and device program are mutually independently, therefore can standalone upgrade, do not need the equipment that stops to move in the time of the upgrading webmaster.
Below the implementation procedure of system typical case webmaster reciprocal process is described further.
The net administrator is by the Web browser maiden visit equipment Web server time, and Web server comes out according to will be correlated with html web page and associated script decompress(ion) of access path, returns to Web browser.
The Web page that shows in net administrator and the Web browser carries out interactive operation, and Web browser becomes corresponding equipment Shell order to net administrator's configuration operation " translation " by carrying out script then.
Script calls the XMLHTTP communications component that Web browser provides, and the Shell order is passed through the http communication protocol transmission to the Web server on the equipment.
Web server receives after the request, call the CGI that carries out general Shell order, CGI passes to the Shell order of request the Shell process of equipment, the Shell process returns to CGI with execution result after carrying out this order, cgi script receives after the execution result, is delivered to Web browser by Web server.
Web browser is given script with the result notification that Shell carries out, and script adopts regular expression to resolve the Shell execution result, by the Web webpage is revised dynamically, the form of final operating result with the Web webpage is represented to the net administrator then.

Claims (6)

1. embedded Web network management system comprises Web browser, the Shell interface of Web server and equipment; It is characterized in that, also comprise one group of Web webpage and script;
Described Web server comprises a CGI that can transmit equipment Shell order and execution result;
Described Web webpage adopts the standard html tag to constitute, and described script is used for described CGI mutual;
Described Web browser is used to support the demonstration and the execution of standard HTML and script;
Described Web webpage and script can be equipment Shell process of commands script with net administrator's operational transition, and equipment are carried out the Shell command result resolve, and the content revealing after will resolving is in the Web webpage.
2. embedded Web network management system according to claim 1 is characterized in that, described Web browser can be downloaded Web webpage and script from Web server.
3. embedded Web network management system according to claim 1 and 2 is characterized in that, described script is embedded in the Web webpage to be carried out.
4. embedded Web network management system according to claim 1 and 2 is characterized in that, described Web webpage and script are stored in the equipment with compress mode.
5. embedded Web network management system according to claim 1 and 2 is characterized in that, described Web webpage and script can be that unit upgrades separately with the file.
6. embedded Web webmaster exchange method may further comprise the steps:
The a.Web browser is downloaded Web webpage and script from Web server, makes an explanation then and carries out, and browses for the net administrator;
B. the net administrator browses this Web webpage by Web browser, carries out the webmaster operation;
After the script of c.Web browser Web webpage obtains net administrator's webmaster operation, the webmaster operation is converted to corresponding equipment Shell order, calls the appointment CGI of http communication component passes in the Web server in the Web browser;
The d.Web server receives after the request, call cgi script, the Shell order of request is passed to the Shell process of equipment by the Shell interface, the Shell process after carrying out this order is returned execution result, cgi script receives after the execution result, is delivered to the Web client by Web server;
The e.Web browser receives execution result, after resolving by script, execution result is presented in the Web webpage of browser and checks for the net administrator.
CNB2006100218191A 2006-09-12 2006-09-12 Embedded Web network management system and its interaction method Active CN100502309C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2006100218191A CN100502309C (en) 2006-09-12 2006-09-12 Embedded Web network management system and its interaction method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2006100218191A CN100502309C (en) 2006-09-12 2006-09-12 Embedded Web network management system and its interaction method

Publications (2)

Publication Number Publication Date
CN1929399A CN1929399A (en) 2007-03-14
CN100502309C true CN100502309C (en) 2009-06-17

Family

ID=37859196

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2006100218191A Active CN100502309C (en) 2006-09-12 2006-09-12 Embedded Web network management system and its interaction method

Country Status (1)

Country Link
CN (1) CN100502309C (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102541863A (en) * 2010-12-14 2012-07-04 联芯科技有限公司 Webpage compression method applied to mobile terminal

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100466556C (en) * 2007-03-30 2009-03-04 华为技术有限公司 Network device management method and system
CN101145953B (en) * 2007-06-13 2014-08-13 中兴通讯股份有限公司 Method and system for dynamic debugging of network device management software
CN101667182B (en) * 2008-09-05 2012-07-25 华为技术有限公司 Method, system and device for performing secondary operation on web pages
CN103095783B (en) * 2011-11-08 2015-10-14 阿里巴巴集团控股有限公司 A kind of method and device debugging Web application
CN103347038A (en) * 2013-05-30 2013-10-09 上海斐讯数据通信技术有限公司 Method of WEB server for processing http messages
CN105099746A (en) * 2014-05-21 2015-11-25 中兴通讯股份有限公司 SHELL execution method and SHELL execution device
CN106534130A (en) * 2016-11-21 2017-03-22 深圳创维数字技术有限公司 Method and system for debugging set-top box based on embedded web

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020161903A1 (en) * 2001-04-30 2002-10-31 Besaw Lawrence M. System for secure access to information provided by a web application
CN1407451A (en) * 2001-08-29 2003-04-02 深圳市中兴通讯股份有限公司上海第二研究所 Command backtracking method for embedded gateway command line interface
CN1428713A (en) * 2001-12-24 2003-07-09 友讯科技股份有限公司 Method for making management of network equipment by using web page function
CN1498022A (en) * 2002-10-21 2004-05-19 ���ǵ�����ʽ���� Equipment and method for managing information data of mobile phone
US20060004775A1 (en) * 1999-01-21 2006-01-05 International Business Machines Corporation Method and system for sharing the browser
CN1794725A (en) * 2005-12-29 2006-06-28 华中师范大学 Embedded type mobile web server
EP1696343A1 (en) * 2005-02-28 2006-08-30 Fujitsu Limited Web-based management system and method with centralized management console

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060004775A1 (en) * 1999-01-21 2006-01-05 International Business Machines Corporation Method and system for sharing the browser
US20020161903A1 (en) * 2001-04-30 2002-10-31 Besaw Lawrence M. System for secure access to information provided by a web application
CN1407451A (en) * 2001-08-29 2003-04-02 深圳市中兴通讯股份有限公司上海第二研究所 Command backtracking method for embedded gateway command line interface
CN1428713A (en) * 2001-12-24 2003-07-09 友讯科技股份有限公司 Method for making management of network equipment by using web page function
CN1498022A (en) * 2002-10-21 2004-05-19 ���ǵ�����ʽ���� Equipment and method for managing information data of mobile phone
EP1696343A1 (en) * 2005-02-28 2006-08-30 Fujitsu Limited Web-based management system and method with centralized management console
CN1794725A (en) * 2005-12-29 2006-06-28 华中师范大学 Embedded type mobile web server

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102541863A (en) * 2010-12-14 2012-07-04 联芯科技有限公司 Webpage compression method applied to mobile terminal
CN102541863B (en) * 2010-12-14 2015-08-05 联芯科技有限公司 A kind of Webpage compression method being applied to mobile terminal

Also Published As

Publication number Publication date
CN1929399A (en) 2007-03-14

Similar Documents

Publication Publication Date Title
CN100502309C (en) Embedded Web network management system and its interaction method
CN101911075B (en) Browser-based proxy server for customization and distribution of existing applications
US6868454B1 (en) Distributed-object development system and computer-readable recording medium recorded with program for making computer execute distributed-object development
CN101697139B (en) Method, device and registry for remote procedure call
US7885978B2 (en) Systems and methods to facilitate utilization of database modeling
EP1107131A2 (en) Virtual machine web browser
CN101192216B (en) Static state page control and WEB server interaction accomplishing method and the WEB server
US8370859B2 (en) Creating web services from an existing web site
CN110032392B (en) Service management method and device, storage medium and electronic equipment
US20020162093A1 (en) Internationalization compiler and process for localizing server applications
CN100426750C (en) Method for generating two set of network administration systems
WO2008002274A1 (en) Method and system for client-side user interface enhancement to enable application integration and portalisation
CN103092581A (en) Method and device for setting up Web front-end local development environment
CN101263471A (en) Initial server-side content rendering for client-script web pages
EP1723561A1 (en) Method, data processing device, computer program product and arrangement for processing electronic data
CN1979476A (en) Method and system for rendering asynchronous portal page
CN103838558B (en) Website build a station system and method, access website method and webpage adaptation system
CN109542427A (en) A kind of system customization method, apparatus and electronic equipment and storage medium
CN102323880A (en) Mobile phone application interface development method and terminal based on browser parsing mode
US6865732B1 (en) Providing an embedded application specific web server
KR20010052263A (en) On-board system comprising network interface means, and method for activating applications located in said on-board system
US20100229081A1 (en) Method for Providing a Navigation Element in an Application
CN103530338A (en) Frame for carrying out page rendering on calculation equipment and page generation method
CN110502212A (en) It is a kind of towards the multilingual online Development Support method of high concurrent
CN103533038A (en) Remote control system based on HTML(hypertext markup language)5 and remote control method of remote control system

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
ASS Succession or assignment of patent right

Owner name: MAIPU COMMUNICATION TECHNOLOGIES CO., LTD.

Free format text: FORMER OWNER: MAIPU(SICHUAN) COMMUNICATION TECHNOLOGY CO.,LTD.

Effective date: 20120425

C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20120425

Address after: 610041 Sichuan city of Chengdu province high tech Zone nine Hing Road No. 16 building, Maipu

Patentee after: Maipu Communication Technologies Co., Ltd.

Address before: 610041 Sichuan city of Chengdu province high tech Zone nine Hing Road No. 16 building, Maipu

Patentee before: Maipu(Sichuan) Communication Technology Co.,Ltd.