CN100514976C - Method for realizing WAP browser network layer based on mobile terminal - Google Patents
Method for realizing WAP browser network layer based on mobile terminal Download PDFInfo
- Publication number
- CN100514976C CN100514976C CNB2006100502747A CN200610050274A CN100514976C CN 100514976 C CN100514976 C CN 100514976C CN B2006100502747 A CNB2006100502747 A CN B2006100502747A CN 200610050274 A CN200610050274 A CN 200610050274A CN 100514976 C CN100514976 C CN 100514976C
- Authority
- CN
- China
- Prior art keywords
- wap
- protocol stack
- network layer
- wap browser
- network
- 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
Images
Abstract
The present invention relates to WAP web browser technology field, for providing mobile terminal based WAP web browser network layer implementation method. It contains WAP 1.2 and WAP 2.0 protocol stack splitting, protocol stack designing packaging, after upwards providing one unified interface, WAP web browser network interface generating one processing progress for said connection. The present invention can support WAP 1.2 and WAP 2.0, and variety web browser protocols, these supports being extendable. Protocol stack in said invention is formed through packaging, said packaging adopting standard uniform interface, original disperse accomplished functional or function becoming function library having uniform interface and fitting repeat use.
Description
Technical field
The present invention relates to WAP browser technology field, especially relate to a kind of implementation method based on the mobile terminal WAP browser network layer.
Background technology
WAP (wireless application protocol WAP (wireless application protocol)) is the open global standards of carrying out communication between digital mobile phone, internet or other PDA (Personal Digital Assistant) (PDA), computer application.It is made up of series of protocols, is used for the standardization Wireless Telecom Equipment, these standard definitions wireless devices such as mobile phone how how to be sent on these equipment and to be performed in communication in wireless networks and content and business.Use these standards, mobile phone can connect with the cordless communication network facility of supporting WAP, and to its request content and business, then content and the business that inquires is presented on the mobile phone screen.WAP closely connects the local area network (LAN) of mobile network and Internet and company, and all mobile value-added service independently of a kind of and network type, operator and terminal equipment are provided.This cover standard not only relates to the mobile phone manufacturer, also relates to Virtual network operator, service provider and content supplier.
In April, 1998, WAP Forum was released its first Standard Edition WAP1.0.WAP1.1 and WAP1.2 version have subsequently released one after another again.The service that early stage WAP can provide is very limited, quality is not high yet.Trace it to its cause, on the one hand be because the mobile device display screen is narrow, memory size is limited, cpu performance is not enough, available bandwidth is too little, propagation delay time is big, connect the unreliable limitation of bringing, on the other hand WAP itself incompatible to various platforms, employ new technology and exploitation and the popularization that reason has also limited its application service such as lack.
In August calendar year 2001, WAP Forum has been announced the WAP2.0 version.WAP2.0 has done very big improvement on the basis of WAP1.x, the structure of wap protocol has been done major transformation, has adopted some up-to-date standard and agreements, with the variation that adapts to wireless environment and the market demand of expection.A lot of new professional and application have also been defined simultaneously.For example, it has increased new mobile network's carrying, supports the wireless version of the agreements such as HTTP/TLS/TCP of extensive use on the internet, supports new Internet technology such as dynamic HTML language and CSS.
WAP2.0 expansion has strengthened the function of original version, comprises based on (PUSH) mechanism of the content of server and " pushing away " thereof.The mobile subscriber adopted PULL (program request) mode to obtain their needed wireless data content in the past.Yet, information fast for those information updating speed produces for the comparatively stable wireless data content of frequency height and user's request, and adopting the PULL mode again still be all too loaded down with trivial details and waste resource the content supplier for the user.Adopt now WAP PUSH technology can realize fast the obtaining of the timely transmission of related content and user (single click to WAP content) easily.
WAP PUSH technology can be integrated into a complete WAP to the data of multiple media formats and use, thereby has produced new massage patterns such as MMS.For the mobile subscriber, they can order they interested content also can receive those valuable message of directly getting off (for example sales promotion or information of discount) by content supplier's " propelling movement ", thereby further form the mobile data consumption habit.Simultaneously for content supplier or company they can be those important or user's interest information very first time just be pushed to the user, from having avoided causing the generation of invalid information to the full extent owing to overlong time.WAP2.0 has also adopted WTLS (Wireless Transport Layer Security) wireless transport layer security technology and WIM (Wireless Identity Moduie) wireless identity identification module technology, make it support multiple safety measures such as control of multiple authentication mode (anonymous access, client authentication and server end authentication), secured session and digital signature, relatively WAP1.x can provide more perfect and effective security mechanism end to end.
WAP2.0 has also increased user agent's customization, WTA (wireless phone applications) etc. in addition.WAP2.0 has increased a lot of useful functions newly simultaneously, for example External Functionality Interface, permanent storage interface, data sync, support MMS.Along with the continuous increase of mobile operator mobile data network bandwidth and forming of user's mobile data consumption habit, these new business and new application have also possessed the primary condition of releasing.Can estimate that WAP2.0 will promote the development of mobile Internet greatly.
In embedded system, based on the browser of portable terminal, must support wap protocol, simultaneously,, provide the network protocol service of customization at the specific hardware environment of portable terminal.
In present existing document and the open source information, the network layer of mobile terminal WAP browser is based on single agreement, or WAP1.2, or WAP2.0, does not well consider the compatibling problem for two agreements.
Summary of the invention
The objective of the invention is to overcome deficiency of the prior art, a kind of implementation method based on the mobile terminal WAP browser network layer is provided.
In order to solve the problems of the technologies described above, the present invention is achieved by the following technical solutions:
Based on the implementation method of mobile terminal WAP browser network layer, may further comprise the steps among the present invention:
(1) stack splitting
Structure dual stack framework in network layer splits WAP1.2 protocol stack and WAP2.0 protocol stack, and two kinds of agreements is contained in the new protocol stack simultaneously, to realize the support to WAP1.2 and two kinds of protocol stacks of WAP2.0 by separately hierarchical structure;
(2) protocol stack designing packaging
New protocol stack is encapsulated, a unified interface upwards is provided: use agreement stack level of abstraction encapsulates, and two protocol stacks of abstract WAP1.2 and WAP2.0 shield its difference, make that new protocol stack is transparent fully for the WAP browser, thereby make not participative management of WAP browser upper strata;
(3) network interface is handled
Portable terminal with on network is connected after, WAP browser network interface generates a treatment progress for connecting, and is responsible for handling this connection.
As a kind of improvement of the present invention, in (3), concrete processing realizes as follows in described step (1):
1) but connect the time spent when network, the WAP browser network layer generates a treatment progress for this connects, this process is responsible for handling connection status, is received the connection data;
2) when correct download request is arranged, treatment progress is created a thread and is realized, downloads for this and generates an example.
Compared with prior art, the invention has the beneficial effects as follows:
The useful effect that the present invention has is:
(1) compatibility.The present invention can support WAP1.2 and WAP2.0, supports multiple browser protocol, and these supports are extendible.
(2) reusability.Protocol stack among the present invention has passed through encapsulation and has formed, and the standard unified interface has been adopted in this encapsulation, because the result of encapsulation, function or function that original dispersion realizes become the function library with unified interface now, is fit to use repeatedly.
Description of drawings
Fig. 1 is a invention process method schematic diagram;
Fig. 2 is the structural representation of WAP1.2 protocol stack;
Fig. 3 is the structural representation of WAP2.0 protocol stack.
Embodiment
The present invention is further illustrated below in conjunction with drawings and Examples:
(1) to the analysis and the fractionation of protocol stack
WAP (wireless application protocol) WAP, wireless application protocol, be at digital mobile phone, internet or other PDA (Personal Digital Assistant) PDA, the open global standards of carrying out communication between Personal Digital Assi stant, the computer application, form by series of protocols, be used for the standardization Wireless Telecom Equipment, these standard definitions wireless devices such as mobile phone how how to be sent on these equipment and to be performed in communication in wireless networks and content and business;
WAP browser based on portable terminal is supported the WAP2.0 agreement, and WAP2.0 protocol-compliant WAP1.x agreement.The protocol stack that the WAP1.x agreement adopts is WSP stack (a WSP protocol stack), be divided into following which floor: session protocol layer (WSP), transaction protocol layer (WTP), safe floor (WTLS), transmission protocol layer (WDP), bearing bed (CDMA, GPRS, GSM etc.).
WAP1.x adopts content encoding and decoding technique, receives with the data that send and is binary coding, and it can not directly browse the server content on the present Internet, must be converted to distinctive binary system WML coding for it by special gateway.Therefore, though WAP1.x is special little at the bandwidth of mobile device, problems such as processing speed is lower design is to a cover agreement, but because the universal standard agreement TCP/IP in it and the existing network is incompatible, introduced this " additionally " equipment of gateway, and identifiable language is incompatible and the form of expression is too simple, make it be born these years in well do not developed.
Along with network, the particularly development of terminal, mobile network and the fixed network difference on transmission performance reduces, WAP2.0 on agreement realizes more near the mature protocol (TCP of fixed network, HTTP), but the compatibility for guaranteeing to support the mobile phone of WAP1.2 for existing, WAP1.2 protocol stack structure such as Fig. 2, also must provide Zhi Te, so WAP2.0 adopts the dual stack framework: comprise WAP1.2 protocol stack and WAP2.0 protocol stack to the WAP1.2 protocol stack.To the carrying that can provide IP to connect, the WAP2.0 protocol stack has replaced the WSP/WTP/WDP among the WAP1.2 with WP-TCP, to the carrying that can not provide IP to connect, still adopts WSP/WTP/WDP association instrument stack.
The WAP2.0 technology is a bridge technology that returns to the HTTP/TCP/IP of existing network form from WAP1.x, the WAP1.x that had both had been friends in the past has existing TCP/IP again, better support WAP2.0, have only compatible these two kinds of host-host protocols, WAP2.0 protocol stack structure such as Fig. 3.
In the present embodiment, structure dual stack framework in network layer, WAP1.2 protocol stack and WAP2.0 protocol stack are split by separately hierarchical structure, and two kinds of agreements are contained in the new protocol stack simultaneously, to realize support WAP1.2 and two kinds of protocol stacks of WAP2.0;
2) protocol stack designing packaging
In WAP2.0, browser object be these two kinds of WHTTP and WSP, these two kinds of agreements belong to different protocol stacks, adopt different cryptoprinciples.To this by two protocol stacks after splitting are encapsulated, a unified interface upwards is provided, use agreement stack level of abstraction encapsulates, two protocol stacks of abstract WAP1.2 and WAP2.0, shield its difference, make that protocol stack is fully transparent for browser, thereby make not participative management of WAP browser upper strata, it is as follows specifically to work:
A, be prototype, take out unified interface: GET (), POST () with the http protocol.
B, encapsulation safe interface.
3) network interface is handled
The download of browsing with page essence of the page should be asynchronous, just should allow the user can also apply for that new page elements downloads simultaneously browsing the page downloaded, like this, network portion just is designed to a process module, downloading part then realizes with thread, when correct download request is arranged, generate an example, and, it also is multifarious downloading, there is the page to download, there is picture to download, also has script, the download of outer chain CSS etc. just needs us that each download thread is done preferential judgement when a plurality of download requests are arranged, selects optimum download thread.
According to the WAP2.0 agreement, the HTTP client of WAP PUSH terminal must be supported the following method [RFC2616] of HTTP1.1 definition: GET, POST.
If support TLS, then the HTTP client of WAP terminal must be supported following HTTP method [RFC2616]: CONNECT.
As follows for a concrete realization example:
I, function prototype: int get (char * url, xhtmldata * buffer, int size, inttype)
Function declaration: return value is the int type, when more than or equal to 9 the time, successfully obtains data, otherwise failure.
Char * url // request network address
Char * buffer // the obtain address that content is put
Int size // content size
The data of Int type // obtain
II, function prototype: int post (char * url, xhtmldata * buffer, int size)
Function declaration: return value is the int type, when more than or equal to 9 the time, successfully sends data, otherwise failure.
Char * ur1 // request network address
The address that Char * buffer // the transmission content is put
Int size // content size
III、xhtmldata
Illustrate: network layer reading of data return data type
Definition: structure xhtmldata{
Enum datatype returndatarype; // return data Class1, mistake, 2 data (data, image, css, js)
Char dataname; The concrete title of // data
Char datalenth; // data length
Char * xhtmlstring; // data address=xhtml
}
VI, datatype classification
Enum datatype{e401, e404, rfile, rcss, rjs, rjpg, rbmp, rgif} //the e beginning is error, the r beginning is right
At last, it is also to be noted that what more than enumerate only is specific embodiments of the invention.Obviously, the invention is not restricted to above examples of implementation, many distortion can also be arranged.All distortion that those of ordinary skill in the art can directly derive or associate from content disclosed by the invention all should be thought protection scope of the present invention.
Claims (2)
1, a kind of implementation method based on the mobile terminal WAP browser network layer may further comprise the steps:
(1) stack splitting
Structure dual stack framework in network layer splits WAP1.2 protocol stack and WAP2.0 protocol stack, and two kinds of agreements is contained in the new protocol stack simultaneously, to realize the support to WAP1.2 and two kinds of protocol stacks of WAP2.0 by separately hierarchical structure;
(2) protocol stack designing packaging
New protocol stack is encapsulated, the interface of a unified WAP browser network layer upwards is provided: use agreement stack level of abstraction encapsulates, two protocol stacks of abstract WAP1.2 and WAP2.0, shield its difference, make that new protocol stack is transparent fully for the WAP browser, thereby make not participative management of WAP browser upper strata;
(3) network interface is handled
Portable terminal with on network is connected after, the WAP browser network layer generates a treatment progress for connecting, and is responsible for handling this connection.
2, a kind of implementation method based on the mobile terminal WAP browser network layer according to claim 1 is characterized in that:
In described step (3), concrete processing realizes as follows:
1) but connect the time spent when network, the WAP browser network layer generates a treatment progress for this connects, this process is responsible for handling connection status, is received the connection data;
2) when correct download request is arranged, treatment progress is created a thread and is realized, downloads for this and generates an example.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2006100502747A CN100514976C (en) | 2006-04-10 | 2006-04-10 | Method for realizing WAP browser network layer based on mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2006100502747A CN100514976C (en) | 2006-04-10 | 2006-04-10 | Method for realizing WAP browser network layer based on mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1829234A CN1829234A (en) | 2006-09-06 |
CN100514976C true CN100514976C (en) | 2009-07-15 |
Family
ID=36947355
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2006100502747A Expired - Fee Related CN100514976C (en) | 2006-04-10 | 2006-04-10 | Method for realizing WAP browser network layer based on mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100514976C (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110073644B (en) * | 2016-12-15 | 2021-08-31 | 华为技术有限公司 | Information processing method and device |
CN111711940B (en) * | 2020-04-29 | 2023-10-31 | 杭州涂鸦信息技术有限公司 | Intelligent device data interaction method, intelligent device and storage device |
-
2006
- 2006-04-10 CN CNB2006100502747A patent/CN100514976C/en not_active Expired - Fee Related
Non-Patent Citations (2)
Title |
---|
面向通信设备的网络协议构件化. 蔡衍文,陈天洲,吴朝晖.计算机应用研究,第12期. 2004 |
面向通信设备的网络协议构件化. 蔡衍文,陈天洲,吴朝晖.计算机应用研究,第12期. 2004 * |
Also Published As
Publication number | Publication date |
---|---|
CN1829234A (en) | 2006-09-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5241440B2 (en) | System and method for creating and communicating with component-based wireless applications | |
US6937588B2 (en) | System and method for providing wireless application protocol service through internet | |
WO2009147844A1 (en) | Web page distribution system | |
US20080052381A1 (en) | Method and system for selecting a transcoder to convert between content types | |
CN101635887A (en) | Method for reading website information through mobile phone short message | |
CN101217734B (en) | BREW page layout access method and terminal with BREW_URL addresses | |
KR100876958B1 (en) | A Middleware for Data Communication Between Various Terminals and Application Server and An Operating Method thereof | |
CN100514976C (en) | Method for realizing WAP browser network layer based on mobile terminal | |
CN101964742B (en) | Method, system and device for using network open ability | |
WO2006035116A1 (en) | Content presentation adaptation | |
CN101997883A (en) | Network structure of mobile website for mobile terminal access | |
CN101997882A (en) | Network service of mobile website for mobile terminal to visit | |
CN101996184A (en) | Method for establishing mobile website for access of mobile terminal | |
CN101790135A (en) | Interactive mobile paper | |
CN1828602A (en) | Display output realization method based on mobile terminal WAP browser | |
KR20050108677A (en) | Method for creating and managing flash automatically and recording medium | |
Metso1A et al. | Mobile Multimedia Services–Content Adaptation | |
CN101193343B (en) | A method and system for providing mobile communication terminal with personalized network access information | |
CA2556777C (en) | Method and system for selecting a transcoder to convert between content types | |
Cannataro et al. | A component-based architecture for the development and deployment of WAP-compliant transactional services | |
KR100737686B1 (en) | System for protecting an information from a data communication based on a vm application and a method the same | |
TWI225737B (en) | WAP access service system | |
CN201084879Y (en) | A mobile communication terminal with network engine | |
Xu | Research and Design of WAP-Based Mobile E-Commerce System | |
Jankowska | Architectural frameworks for automated content adaptation to mobile devices based on open-source technologies |
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 | ||
C17 | Cessation of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20090715 Termination date: 20120410 |