Mobile Protocols - 2 of 3

Download Report

Transcript Mobile Protocols - 2 of 3

ECET 581/CPET/ECET 499

Mobile Computing Technologies & Apps Wireless Protocols

2 of 3 Lecture 15

Paul I-Hai Lin, Professor

Electrical and Computer Engineering Technology Indiana University-Purdue University Fort Wayne

March 12, 2007 1

Wireless Protocols

 Wireless Protocols • WAP 2.0 (Wireless Application Protocol) Technical Specification (8.8 MB), http://www.wapforum.org/what/technical.htm

• WML (Wireless Markup Language) Specification, http://www.openmobilealliance.org/release_program/br owsing_archive.html

• • • WMLScript Specification (136 pages), http://www.openmobilealliance.org/release_program/br owsing_archive.html

Bluetooth OBEX (Object Exchange) 2 • Mobile Internet Protocols

WMLScript

 WMLScript Specification, http://www.openmobilealliance.org/release_progr am/browsing_archive.html

 Script language used in WML pages (client-side)  Based on JavaScript  Not object oriented  Validate user input  Generate dialog boxes  View error messages  Access facilities of the user agent March 12, 2007 3

WMLScript – Basic Syntax

(cont.)

 Each statement must ended with a semicolon (;)  Comments (similar to C++ and Java) • // --- single line • /* */ --- Multiple lines  Literal characters • • A pair of double quotes A pair of single quotes  Variable declaration • var x, y; March 12, 2007 4

WMLScript – Basic Syntax

(cont.)

 Data Types • Boolean, Integer, Floating-point, String, Invalid  Operators  Flow Control Statements  Functions March 12, 2007 5

WMLScript – Libraries

 • • • • Standard Libraries • • Lang – core WML script: data manipulation, rand, absolute value calculations Float – sqrt(), round(), pow(), etc String – length(), charAt(), find(), replace(), trim(), etc URL – getPath(), getRefer(), getHost(), etc WMLBrowser – go(), prev(), next(), getCurrentCard(), refresh() Dialogs – prompt(), confirm(), alert(), etc  Validating User Input Via WMLScript • The Example, from Wireless Developer Network, http://www.wirelessdevnet.com/channels/wap/training/ 6

      

WAP and WML Related

DTD (Document Type Definition) associated with WAP 2.0

XHTML MP 1.0

WML 2.0 DTD WAP Push DTD WAP Client Provisioning DTD WTA DTD XLST (WML 2.0 transformation) March 12, 2007 7

  

Bluetooth Technology

The Bluetooth Project In 1994, the L.M Ericsson company formed a SIG (Special Interest Group) to develop a protocol for connecting mobile phone to other devices (PDAs) without cable The project was named after Harald Blaatand (Bluetooth) II (940-981), a Viking king who unified Denmark and Norway, also without cable March 12, 2007 8

        

Bluetooth Applications

Cordless Phone Intercom Headset Generic Mobile Access Service Discovery Generic Object Exchange LAN Access Personal Area Networking Wireless data access and synchronization: File transfer, PDA synchronization March 12, 2007 9

  

Bluetooth Protocol

In July 1999, the Bluetooth SIG issued a 1500-page specification https://www.bluetooth.org/ IEEE 802.15 Working Group for Wireless Personal Area Networks (WPANs) Standard adopted the Bluetooth specification, http://www.ieee802.org/15/ March 12, 2007 10

  

Bluetooth Architecture

In July 1999, the Bluetooth SIG issued a 1500-page specification https://www.bluetooth.org/ IEEE 802.15 Working Group for Wireless Personal Area Networks (WPANs) Standard adopted the Bluetooth specification, http://www.ieee802.org/15/ March 12, 2007 11

 

Piconet

• The basic unit of a Bluetooth system • A master node and up to 7 slave nodes • 10 m distance • Centralized TDM (Time Division Multiplexing) system

Scatternet

• Multiple Piconets in the same room • Bridge slave for internconnection • Up to 255 parked node in the net March 12, 2007

Bluetooth Architecture

12

Bluetooth Tutorial - Specifications

Specification Protocol Stack • Radio layer – 2.4GHz ISM band • Baseband – Bluetooth Link Controller • Link Manager Protocol (LMP) • Host Controller Interface (HCI) • Logical Link Control and Adaptation Protocol (L2CAP) • RFCOMM – device simulation • Service Discovery Protocol (SDP) March 12, 2007 13

Bluetooth Protocol Stack

(IEEE 802.15 Version) Courtesy – Computer Networks, Andrew Tanenbaum, Page 314, Figure 4-37, Prentice Hall, 2003

March 12, 2007 14

 

Bluetooth Protocol Architecture

(cont.)

Application Layer – Application profiles Middleware Layer • Control, Audio • Other LLC • RFComm • Telephony • Service Discovery March 12, 2007 15

Bluetooth Protocol Architecture

(cont.)

Data Link Layer • Control, Audio • Logical Link Control Adaptation Protocol • Link Manager  Physical Layer • Physical Radio • Baseband March 12, 2007 16

Bluetooth Frame Structure

Courtesy – Computer Networks, Andrew Tanenbaum, Page 316, Figure 4-38, Prentice Hall, 2003

March 12, 2007 17

 

Bluetooth Frame Structure

(cont.)

Access Code (72-bit)– identify master Header (54 bit) • Addr (3-bit) – identify 1 of the 7 devices • Type (4-bit) –Frame type: ACL (Asynch. Connection Oriented), SCO (synch. Connection oriented), Poll or null • F (1-bit) – flow bit, stop sending • A (1-bit) - Acknowledge • S (1-bit) – Sequence (stop-and-wait protocol) • Checksum (8-bit)  Data (0-2744 bits) March 12, 2007 18

Bluetooth Tutorial - Specifications

References • Bluetooth Developer: https://www.bluetooth.org/ • Bluetooth Protocol Stack, http://msdn2.microsoft.com/en us/library/ms890946.aspx

• Palo Wireless Bluetooth Resource Center http://www.palowireless.com/infotooth/tutorial.asp#Spe cification%20Table%20Of%20Contents : • Protocols in Bluetooth Architecture, http://www.cs.utk.edu/~dasgupta/bluetooth/blueprotoc ols.htm

• March 12, 2007 19

Bluetooth Connection Protocol

 Stand-by  Page/Inquiry  Active  Hold  Sniff  Park March 12, 2007 20

Object Exchange Protocol

 OBEX (Object Exchange) • • • Enables a wide-range of devices to exchange Push or Pull data objects Similar to HTTP  Supporting Protocols • • Bluetooth Infrared Data Association (IrDA) protocol  References • • http://www.openmobilealliance.org/tech/affiliates/sync ml/syncmlindex.html

http://msdn2.microsoft.com/en us/library/ms922579.aspx

21

Other Protocols and Standards

 • • • Other Protocols and Standards • • Synchronization and Replication Protocols Distributed Services   Sun’s Jini Microsoft’s Universal Plug and Play Message and Transaction-based Protocols Security Device Management  References • http://www.sun.com/software/jini/ • http://www.jini.org/wiki/Main_Page • Jini Network technology – Specifications, http://www.sun.com/software/jini/specs/ 22

Other Protocols and Standards

 References • http://www.sun.com/software/jini/ • • • http://www.jini.org/wiki/Main_Page Jini Network technology – Specifications, http://www.sun.com/software/jini/specs/ Description of Universal Plug and Play Features in Windows XP, http://support.microsoft.com/kb/323713 March 12, 2007 23