outline of this presentation

51

Upload: keziah

Post on 26-Jan-2016

43 views

Category:

Documents


0 download

DESCRIPTION

Outline of this Presentation. 1, Introduction to our FYP. 2, Wireless Technology and Architectural Evaluation. 3, Hardware Evaluation. 4, Introduction to WinSock. 5, Introduction to DirectX. 6, Introduction to our Own Libraries. 7, Our Testing Program. 8, Future Plan. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Outline of this Presentation
Page 2: Outline of this Presentation

Outline of this Presentation

1, Introduction to our FYP

2, Wireless Technology and Architectural Evaluation

3, Hardware Evaluation

4, Introduction to WinSock

5, Introduction to DirectX

6, Introduction to our Own Libraries

7, Our Testing Program

8, Future Plan

Page 3: Outline of this Presentation

1, Introduction to our FYP

There are three main Objective for our FYP:

3, Create Wireless Quality Education Service and Content

2, Develop Software and System Infrastructure

1, Provide Wireless Technology and Architectural Evaluation

Page 4: Outline of this Presentation

2, Wireless Technology and Architectural Evaluation

2.1 What is a Wireless LAN?

2.2 Why use Wireless LAN?

A wireless local area network (LAN) is a flexible data communications system. Using radio frequency (RF) technology, wireless LANs transmit and receive data over the air.

- Mobility

- Installation Speed and Simplicity

- Installation Flexibility

- Reduced Cost-of-Ownership

- Scalability

Page 5: Outline of this Presentation

2, Wireless Technology and Architectural Evaluation (Cont’d)

2.3 Some Examples uses of Wireless LAN- Doctors and nurses in hospitals use PDA or HPC with wireless LAN capability deliver patient information instantly

- Warehouse workers use wireless LANs to exchange information with central databases, thereby increasing productivity.

- Training sites at corporations and students at universities use wireless connectivity to ease access to information, information exchanges, and learning

2.4 Security in Wireless LAN- Many people thin that Wireless LAN should be less secure than traditional wired LAN.

- It is not true !

- It is extremely difficult for unintended receivers (eavesdroppers) to listen in on wireless LAN traffic

- Complex encryption techniques make it impossible for all but the most sophisticated to gain unauthorized access to network traffic.

Page 6: Outline of this Presentation

2, Wireless Technology and Architectural Evaluation (Cont’d)

2.5 Some Wireless LAN Configurations

The use of directional antennasUse of an extension point

Multiple access points and roaming

A simple wireless peer-to-peer network

Page 7: Outline of this Presentation

3, Hardware Evaluation3.1 Proxim RangeLan2

Specifications

Radio Data Rate 1.6 Mbps per channel,800 Kbps fallback rate for extended range

Range ~400 feet (~122 m) in typical office environments~700 feet (~213 m) in open spaces

Support Roaming YesOS need Win95/98, Windows NT, Windows CE 2.0,

NetWare, DOS, Windows for WorkgroupsFrequency Band 2.4 GHz band

Page 8: Outline of this Presentation

3.1 Proxim RangeLan2 (Cont’d)

RangeLAN2 7401/02 PC Card RangeLAN2 Ethernet and Token Ring Access Points

3, Hardware Evaluation(Cont’d)

Page 9: Outline of this Presentation

3, Hardware Evaluation(Cont’d)3.2 Lucnet Technologies WaveLAN

Specifications

Radio Data Rate 11 Mbit/s,5.5 Mbit/s, 2 Mbit/s or 1 Mbit/s(depend on range of cover)

Range Open Office: 525 to 1750 feetSemi Open Office: 165 to 375 feetClosed Office: 80 to 165 feet(depend on communication bandwidth also)

Support Roaming YesOS need Novel Client 3.x & 4.x, Windows 95/98/2000,

Windows NT (NDIS Miniport driver),Apple, Windows/CE

Frequency Band 2.400-2.4835 GHz band

Page 10: Outline of this Presentation

3, Hardware Evaluation(Cont’d)3.2 Lucnet Technologies WaveLAN (Cont’d)

WaveLAN IEEE PC Card WavePOINT-II Access Point

Page 11: Outline of this Presentation

3, Hardware Evaluation(Cont’d)3.3 Apple iBook Airport

Specifications(As Apple haven’t release detail specifications about this product, we can’t get toomuch information about it)

Radio Data Rate Up to 11 Mbit/sRange Open Office: 150 feetSupport Roaming unknownOS need Mac OS 8

IEE 802.11 DSSS compliantFrequency Band unknown

Page 12: Outline of this Presentation

3, Hardware Evaluation(Cont’d)3.3 Apple iBook Airport (Cont’d)

Apple iBook and the Airport station

Page 13: Outline of this Presentation

3, Hardware Evaluation(Cont’d)3.4 BlueTooth

- It is not a Wireless device.

- It is a standard for future Wireless communication.

- It answers the need for short-range wireless connectivity within three areas:

a, Data and Voice access points

b, Cable replacement

c, Ad hoc networking

- It is interface between the communication devices.

Page 14: Outline of this Presentation

4, Introduction to WinSock

- WinSock is the network application-programming interface (API) for Microsoft Windows Operating System.

- It shields the programmers from the details of low-level network protocol.

PhysicalNetwork

WinSockApplication

WinSockAPI

HardwareAPI

- It includes the most Berkeley sockets API.

- It use client/server approach to communicate.

- Two fundamental types of client/server application pair exist in WinSock also: connection-oriented and connectionless application.

Page 15: Outline of this Presentation

4, Introduction to WinSock (Cont’d)

Why we use WinSock ?

- Multi-protocol support

- Asynchronous I/O and event objects

- Quality of Service

Page 16: Outline of this Presentation

5, Introduction to DirectX

What is Direct X?

- Direct X is an API for microsoft windows.

- Provide a standard way of accessing many different hardware devices

- Consists of five main sections:

- DirectDraw (2 dimensional graphics capabilities, surfaces, double buffering, etc) - Direct3D (A relatively extensively functional 3D graphics programming API.) - DirectSound (Sound; 3D sound) - DirectPlay (Simplifies network game development) - DirectInput

Page 17: Outline of this Presentation

Direct XDirect X

5, Introduction to DirectX (Cont’d)

HELHELHALHAL

Hardware

Request

Request

Request

Structure of Direct X:

Page 18: Outline of this Presentation

5, Introduction to DirectX (Cont’d)

Advantages:

1. It provides the lowest possible level access to hardware.

2. Developers no need to concern about the implementation details of that hardware.

3. After installing the newer version of direct x and the computer will support the new hardware automatically.

Why use Direct X in our project?

1. We want to write a fancy and interactive application.

2. The generic APIs provided by visual C for sound and graphics are too weak.

Page 19: Outline of this Presentation

6, Introduction to our Own Libraries

What we have done?

A. Direct Draw librariesEncapsulate the implementation details of the Direct Draw.

B. Direct Sound librariesEncapsulate the implementation details of the Direct Sound.

C. Our Own ClassManipulate the graphical data.

Page 20: Outline of this Presentation

6, Introduction to our Own Libraries(Cont’d)

A. Direct Draw libraries we created

DDStartup();

CreateDesktopWindow( Window_handler, Direct_X_object );

DDFullConfigure( Direct_X_Object );

DDWinConfigure( Direct_X_Object );

Functions for initialization:

DDLoadPalette( Bmp_file, Palette_object );

DDLoadBitmap( Bmp_file, Surface_object);

DDSetColorKey( Surface_object, Key_color );

Functions for handling bmp file:

DDMakeOffscreenSurface();

DDCreateFlipper( Flipper_Object);

DDCreateFakeFlipper( Flipper_Object );

DDFlipping();

DDFillSurface( coordinates, color );

DDTextOut ( Surface_object );

Functions for double buffering:

Page 21: Outline of this Presentation

6, Introduction to our Own Libraries(Cont’d)

DDLoadPalette( Bmp_file, Palette_object );

What is Palette?

Picture:

Content of the picture file:

Page 22: Outline of this Presentation

6, Introduction to our Own Libraries(Cont’d)

DDSetColorKey( Surface_object, Key_color );

Foreground surface:

Color Key:

Background surface:

Without color key: Using color key:

What is Colorkey?

Page 23: Outline of this Presentation

6, Introduction to our Own Libraries(Cont’d)

B. Direct Sound libraries we created

The features of our audio library:

1. Support Wav file with different sample rate.2. Different sounds can be overlap at the same time.

Mixer problem in Direct Sound:

The same sound buffer cannot be overlapped itself!

Page 24: Outline of this Presentation

6, Introduction to our Own Libraries(Cont’d)

1. Create duplicate buffers for the same sound file

2. Create a constant number of buffers, load the sound file into the buffer only when it needs to play.

3. When play a sound buffer, check whether it is being played. If yes, stop the sound and play again from the beginning.

3 possible solutions for the Mixer problem:

We have used method 3 for the solving the problem.

Page 25: Outline of this Presentation

6, Introduction to our Own Libraries(Cont’d)

C. Our Own Class

For handling the information of picture.

A. Class “Sprite”

For handling the information of Frame.

B. Class “Frame”

For handling the information of Region.

C. Class “Region”

We have written 3 class for manipulating the graphical data:

Page 26: Outline of this Presentation

6, Introduction to our Own Libraries(Cont’d)

Class “Sprite”:

We have defined a file type called spt file. Class “sprite”is use to handle the data of a spt file.

Sometimes, we will create some objects such as a robot,a man or a dog in our application.

Spt file can store the information of those objects.

Spt file can link up the information of the object and the pictures of the object together.

Page 27: Outline of this Presentation

6, Introduction to our Own Libraries(Cont’d)

Class “Sprite”:

For example,

Sprite_name: “Walking Man”

No_of_frame: 8

Size_of_Picture: 150 x 100

Picture_filetype: bmp

Picture_filename: walk0, walk1, walk2, walk3, walk4, walk5, walk6, walk7

Walking_speed: 30

Content of the spt file:

Page 28: Outline of this Presentation

6, Introduction to our Own Libraries(Cont’d)

Class “Frame”:

In the previous example, the spt file only store the general information of the pictures.

It is not enough!

Sometimes, there are interactions between frames.We need to find a systematic approach for storing the interactions.

“Frame” is a class for storing the information and interaction foreach frame.

Page 29: Outline of this Presentation

6, Introduction to our Own Libraries(Cont’d)

Class “Region”:

Region is an attribute of Frame. It stores the coordinates of

a rectangle in the action picture. For example,

- Simplify the collision detections between pictures

- Regions can represent buttons, different parts of a body or other interactive objects on the picture.

The 2 main purposes:

Page 30: Outline of this Presentation

6, Introduction to our Own Libraries(Cont’d)

Example of using our classes:

Specification for the refrigerator:The user can open and close the refrigerator by clicking on the handle of the doors. There is a cake inside the refrigerator. The user can eat the cake when click on it. But if the cake can only be eaten once.

Page 31: Outline of this Presentation

6, Introduction to our Own Libraries(Cont’d)

Example of using our own class:

Define the region for each frame:

Page 32: Outline of this Presentation

6, Introduction to our Own Libraries(Cont’d)

Example of using our own class:

DFA for the refrigerator: Content of the spt file:

Frame0:

Frame1:

Frame2:

Frame3:

Region 0,1R0: 1 “open refrigerator”R1: 1 “open refrigerator”

Region 0

R0: 3 “eat the cake”

Region 1

R1: 0 “close refrigerator”

Region 0Region 0,1

Region 1

R0: 3 “cannot eat!”R1: 3 “close refrigerator”

R0: 3 “open refrigerator”R1: 2 “open refrigerator”

Page 33: Outline of this Presentation

7, Our Testing Program

Program 1 (WinTalk)

Page 34: Outline of this Presentation

7, Our Testing Program

Program 1 (WinTalk)

1. Try to use Visual C ++ and Microsoft Foundation Class (MFC).

Aim for writing this program:

2. Try to use Winsock.

3. .Try to use Asynchronous mode of communication with event-driven programming paradigm

Outcome:

Finally, we have achieved all the goals.

Page 35: Outline of this Presentation

7, Our Testing Program

Program 2 (Reversi)

Page 36: Outline of this Presentation

7, Our Testing Program

Program 2 (Reversi)

1.Try to get more experience with Visual C ++ and MFC

Aim for writing this program:

2. Try to use MFC to display bitmap (bmp) files

Outcome:

Finally, we have achieved all the goals.However, we find that the performance for using MFC to display bitmap is extremely poor

Page 37: Outline of this Presentation

7, Our Testing Program

Program 3 (Plane)

Page 38: Outline of this Presentation

7, Our Testing Program

Program 3 (Plane)

Frame pictures:

Frame Engine:

Page 39: Outline of this Presentation

7, Our Testing Program

Program 3 (Plane)

1. Try to use our Graphical and Audio Libraries.

Aim for writing this program:

2. Try to use Winsock, Direct Draw and Direct Sound together in the same program.

3. Try to implement the synchronous connection (1 to 1).

Outcome:

Finally, we have achieved all the goals.We have faced some problems when combining Winsock and Direct Xlibraries together.

Page 40: Outline of this Presentation

7, Our Testing Program

Program 4 (Ball)

Page 41: Outline of this Presentation

7, Our Testing Program

Program 4 (Ball)

1. Try to combine Winsock and Direct X libraries together

Aim for writing this program:

2. Try to implement the synchronous connection (1 to 1).

3. Evaluate the differences between the wire and wireless network

Outcome:

Finally, we have achieved all the goals.

Page 42: Outline of this Presentation

7, Our Testing Program

Program 5 (ChatRoom)

Page 43: Outline of this Presentation

7, Our Testing Program

Program 5 (ChatRoom)

1. Try to use write a multi-client program

Aim for writing this program:

2. Try to write a generic server

3. Try to design a protocol for a application

Outcome:

Finally, we have achieved all the goals.

Page 44: Outline of this Presentation

Our Generic Server

Server databaseClient

ClientClient Client

Registered Registered Registered

Registration

Accept/ErrorUpdated

Registration of Client

Page 45: Outline of this Presentation

Our Generic Server

Server databaseClientSend From Server

Get all Client info.

Sending data from Client

Send To Server

ClientClient Client

Send From Server Send From Server

Page 46: Outline of this Presentation

8, Fun with Learning English

Page 47: Outline of this Presentation

8, Fun with Learning English

Page 48: Outline of this Presentation

8, Fun with Learning English

Aims of writing Fun with Learning English:

I. Integrate all of the components and libraries we developed

A. Direct DrawB. Direct Sound

C. WinSock

D. Use of spt files

E. Frame EngineF. Chat room

G. Generic server

Page 49: Outline of this Presentation

8, Fun with Learning English

Aims of writing Fun with Learning English:

II. Design a education software for wireless environment

A. Fancy and User friendly interfaceB. Suitable for a wireless environment

C. Use of Multi-media

D. Allow teacher to design some Interactive Teaching material

E. Provide a good Interaction between teacher and studentsF. Maximize the potential use of our software

Page 50: Outline of this Presentation

9, Future Plan

2, Try to implement our FWLE to work with a database server.

1, Try to integrate Video Streaming Function into FWLE.

3, Try to extent our project to other thin client devices such as PDA and HPC.

Here is some of our future plan:

Page 51: Outline of this Presentation

The End