Presentation is loading. Please wait.

Presentation is loading. Please wait.

1 Wireless Internet & m-Business Objectives :  To provide an overview of wireless technologies and applications  To examine various wireless standards,platforms.

Similar presentations


Presentation on theme: "1 Wireless Internet & m-Business Objectives :  To provide an overview of wireless technologies and applications  To examine various wireless standards,platforms."— Presentation transcript:

1 1 Wireless Internet & m-Business Objectives :  To provide an overview of wireless technologies and applications  To examine various wireless standards,platforms and programming languages  To introduce Wireless Markup Language (WML)  To explore the use of WML elements in creating Wireless Application Protocol (WAP) applications  To understand the relationship between WML and WMLScript  To review aspects of writing simple WMLScript programs

2 2 1.1M-Business  M-Business or mobile business, e-business enabled by wireless communications  Able to reach users effectively and allow them instant access to business-critical information and communication capabilities at any time, from almost anywhere  Give benefits to businesses, employers,employees and consumers.

3 3 WAP and WML  1997- WAP (Wireless Application Protocol) was developed by dominant-cell phone manufacturers Nokia, Ericsson, Motorola and others to facilitate the introduction and standardization of Wireless Internet Access.  WAP- a set of communications protocols that are designed to enable wireless devices to access the Internet.

4 4 WAP and WML (cont..)  WAP applications can be used on Palm OSS, Windows CE, Mac OS and Java 2 Micro Edition (J2ME) devices.  WAP communications involves many components.  Focus on 3 – WAP-enabled mobile device, WAP gateway and Web Server.

5 5 WAP and WML (cont..) WAP-enabled mobile device WAP gateway Web Server Int ern et Request informati- on from Internet WML - HTTP connect has connection Process request : Search through existing databases and information resources, i.e web pages Send requested information WML HTTP

6 6 WAP and WML (cont..)  WML (Wireless Markup Language) –markup language used to create Web content delivered to wireless handheld devices.  WML tags –markup commands that specify how a web page should be formatted for viewing on a wireless device.  WAP supports WML to deliver the content.

7 7 WAP and WML (cont..)  A WML document is called a deck; each contains one or more pages, called cards.  One of WML’s most important capabilities is its ability to create hyperlinks between WML documents on the web. Both text and images can be used as links to other decks.

8 8 WAP and WML (cont..) Example of linking to external card

9 9 WAP and WML (cont..)  WAP also have may opponents.  Disadvantages cited by WAP opponents: Protocol possible security breaches, limited bandwidth, unreliability  Limited bandwidth – WAP-enabled devices unable to handle transmission of multimedia, but can also become overloaded during peak hours  Above limitations cause B2B and B2C application developers to anticipate the release of faster 3G technologies and new WAP specification.

10 10 Phone Simulator and Setup Instructions  There are two most popular WAP browsers used for the development and testing of WAP applications. Nokia ® Openwave  Setup instructions can be obtained from Cyber Tech web page.

11 11 Creating WML documents 1. WML documents will be saved in.wml file extension. 2. Install the WAP browsers - Nokia ® / Openwave 3. Example : Openwave 4. To simulate WAP applications by using the Openwave browser, WAP documents must be requested from a Web server., such as Apache or IIS. 5. Install a Web server – example : IIS

12 12 Creating WML documents (cont..) 6. After IIS has been installed, copy the WML files to \Inetpub\wwwroot folder. 7. Configure IIS to respond to requests for WAP documents 8. To request a document, it is necessary to launch the Openwave Simulator. This is achieved by typing localhost/file name.wml,in the Openwave Simulator’s address field.

13 13 Simple WML Documents 1) 2) <!DOCTYPE wml PUBLIC “-//WAPFORUM??DTD WML 1.2//EN” 3) “http://www.wapforum.org/DTD/wml112.dtd”> 4) 5) 6) 7) 8) Welcome to wireless programming! 9) 10) 11) This text will be displayed in the browser window.

14 14 Program Output

15 15 Creating WML documents (cont..)  The root element for every WML document is wml.  Line 6 contains the opening card element.  Card element has two important attributes. id – uniquely identifies the card title – displays a title at the top of most browser windows

16 16 Creating WML documents (cont..)  All text in a WML document is placed between tags that are nested within tags. Common Programming Error  WML element and attribute names are case sensitive, must be written in lower case  Writing a WML tag in uppercase – syntax error  Every WML document requires a minimum of one card element  Failure to include – syntax error

17 17 WMLScript Programming  WMLScript – enhance the functionality of WML documents  Relationship between WML and WMLScript = XHTML and JavaScript  Difference of above relationship – WMLScript is placed in a separate document and cannot be embedded inside a WML document.  WMLScript documents will be saved in.wmls file extension.

18 18 WMLScript Programming (cont..) 1) // welcomeDoc.wmls 2) extern function welcome() 3) { 4) // creating a browser variable and assigning it a // value 5) WMLBrowser.setVar( "welcome", 6) "Welcome to WMLScript programming!" ); 7) // refresh the display window 8) WMLBrowser.refresh(); 9) } Method setVar creates a browser variable welcome with the value of the string “Welcome to WMLScript programming”. Method refresh refreshes the browser and all variable values.

19 19 WMLScript Programming (cont..)  Openwave’s browser contains a WMLScript interpreter for the execution of WMLScript commands.  Line 2-9 define function welcome.  Keyword extern denotes that the function is externally accessible to other WML and WMLScript documents.  WMLScript provides objects for performing common mathematical calculations, string manipulations, browser manipulations and other functions.

20 20 WMLScript Programming (cont..)  WMLScript provides the WMLBrowser object for interacting with the browser.  Line 5-6 call the WMLBrowser object’s setVar method to create a browser variable named welcome and to assign it a string.  Line 8 calls the WMLBrowser object’s refresh method to update (refresh) the values of all browser variables.

21 21 WMLScript Programming (cont..) 1) 2) 3) 4) 5) 6) 7) 8) 9) $welcome 10) 11) Dereferencing browser variable welcome displays its value.

22 22 Program Output

23 23 WMLScript Programming (cont..)  Above WML document invokes function welcome in welcomeDoc.wmls  The result of function welcome is displayed by the WML document.  Line 5 contain the onevent element that invokes WMLScript function welcome.  The onevent element is an event element that executes a task element, such as the go element (line 7),which is wrapped in its tags.

24 24 WMLScript Programming (cont..)  Above attribute type is set to “onenterforward”.  This executes the task element go when the card is loaded.  Function welcome in welcomeDoc.wmls is invoked in Line 7 by assigning to attribute href the WMLScript document name followed by a # sign and the function name.

25 25 WMLScript Programming (cont..) Common Programming Error  Failure to enclose link addresses in quotes –syntax error  When referencing a function from an href attribute’s value, failure to precede a function name with a pound sign (#) – runtime error.

26 26 WMLScript Programming (cont..) Common Programming Error  When referencing a function from an href attribute’s value, failure to follow the function name with a set of parentheses – logic error.

27 27 Wireless Protocols, Platforms and Programming Languages  Programming languages, platforms and protocols are pivotal development and implementation tools for wirell communications.  Often, several programming languages, platforms and protocols are used simultaneously in a single wirelless technology development.

28 28 WAP 2.0  Released in 2001  Specifies XHTML Basic to replace WML as the markup language used by wirelless devices to render web content  Give benefits to wirelless device manufacturers, web content developers and users

29 29  Wirelless device manufacturers – allowing them to develop compatible mobile devices and applications  Web content developers – able to create Web pages for such platforms as diverse as mobile phones, PDAs,pagers,webTV and desktop computers  Users – able to access to a wider selection of cotent that is easier to navigate WAP 2.0 (cont..)

30 30  WAP 2.0 will likely include WML extensions that allow programmers to embed WML within the XHTML Basic markup  Features such as soft keys that are not supported by XHTML Basic will be implemented using WML  Expected to include specifications for color,animation and multimedia features as MP3 audio and MPEG video streaming WAP 2.0 (cont..)

31 31 Handheld Devices Markup Languages ( HDML )  HDML was one of the markup languages used to deliver content handheld devices  Originally developed in 1996 by a company called Unwired Planet ( known as Openwave )  Similar to HTML, which is used to design and format web pages

32 32  However, HTML is not effective for use on devices with limited screen sizes and viewing capabilities  Although HDML was implemented in millions of devices when it was first introduced, it has been replaced with other emerging standards that support 2.5G and 3G technologies  HDML eventually evolved into WML Handheld Devices Markup Languages ( HDML ) (cont..)

33 33  Japan and parts of Europe – consumer wirelless devices function using WAP and no longer support HDML  However, some CDMA-based phones in US and Canada still support WML and HDML  The conversion of HDML to WML code is not difficult, and Openwave is currently working to replace HDML with WML Handheld Devices Markup Languages ( HDML ) (cont..)

34 34 Compact HTML (cHTML ) and i-mode  NTT DoCoMo and its popular i-mode service employ Compact HTML (cHTML ) to format web pages  cHTML a subset of HTML that is designed for mobile devices, uses a limited set of HTML tags and attributes  With the exception of i-mode phones and devices, cHTML is not widely used

35 35  Java is one of the most popular programming languages in the software development industry  Sun Microsystems created Java to facilitate the development of Intenet and Web-based applications that run consistently on any operating systems without requireing alteration  Sun coined the term,”write once,run anywhere” to describe this feature Java and Java 2 Micro Edition (J2ME)

36 36  Over the past few years, Java has matured into the Java 2 paltform, which provides an even higher level of consistency among different systems  Java 2 has evolved intp three platforms: - Java 2 Standard Edition ( J2SE TM ) enables developers to create standalone programs and client-side applications - Java 2 Enterprise Edition ( J2EE TM ) enables developers to create powerful enterprise systems for the management of entire businesses Java and Java 2 Micro Edition (J2ME) (cont..)

37 37 - Java 2 Micro Edition ( J2ME TM ) enables developers to create applications targeted to consumer devices  J2ME is the newest option for Java programming  This platform enables developers to write applications for such consumer devices as set-top boxes, web terminals and embedded systems  Much popular – ability to write applications for wireless devices Java and Java 2 Micro Edition (J2ME) (cont..)

38 38  J2ME also offers programmers tools to create user interfaces, connect to networks and save various programs information Java and Java 2 Micro Edition (J2ME) (cont..)

39 39  The market for wirelless devices, especially cell phones,is exploding. Great demand exists for cell phones to support more functions ; however,there are problems adapting applications on the devices varying runtime environments  Possible solution – manufactures should improve the hardware of mobile devices,enabling devices to support a larger number of applications Binary Run-Time Environment for Wireless (BREW)

40 40  However, the costs are extremely high  To solve this problem, Qualcomm has come out with BREW in May 2001  BREW – a layer of code that works with Qualcomm chips and other cell phone operating systems that allow cell phones to run application progrmas written using BREW development kits  Applications developed with the BREW standard development kit are platform-independent, allowing them to run devices with varying runtime environments Binary Run-Time Environment for Wireless (BREW) (cont..)

41 41  Also reduce costs and shorten development timetables of manufactures  In addition, enables software developers to create applications, including navigation assistance, instant messaging, e-mail, e-wallets, games and personal information management, taht are be accessible thriugh a variety of wireless devices Binary Run-Time Environment for Wireless (BREW) (cont..)

42 42 Bluetooth Wireless Technology  Bluetooth is a computing and telecommunications industry specification that describes how mobile phones, computers, and personal digital assistants (PDAs) can easily interconnect with each other and with home and business phones and computers using a short-range wireless connection.

43 43 Bluetooth Wireless Technology (cont..)  Using this technology, users of cellular phones, pagers, and personal digital assistants such as the PalmPilot will be able to buy a three-in-one phone that can double as a portable phone at home or in the office, get quickly synchronized with information in a desktop or notebook computer, initiate the sending or receiving of a fax and, in general, have all mobile and fixed computer devices be totally coordinated. Source : searchNetworking.com

44 44 Reference  Internet & WWW : How To Program,Deitel & Deitel Nieto – page 735 - 777


Download ppt "1 Wireless Internet & m-Business Objectives :  To provide an overview of wireless technologies and applications  To examine various wireless standards,platforms."

Similar presentations


Ads by Google