Upload
keziah
View
44
Download
0
Embed Size (px)
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
Citation preview
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
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
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
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.
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
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
3.1 Proxim RangeLan2 (Cont’d)
RangeLAN2 7401/02 PC Card RangeLAN2 Ethernet and Token Ring Access Points
3, Hardware Evaluation(Cont’d)
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
3, Hardware Evaluation(Cont’d)3.2 Lucnet Technologies WaveLAN (Cont’d)
WaveLAN IEEE PC Card WavePOINT-II Access Point
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
3, Hardware Evaluation(Cont’d)3.3 Apple iBook Airport (Cont’d)
Apple iBook and the Airport station
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.
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.
4, Introduction to WinSock (Cont’d)
Why we use WinSock ?
- Multi-protocol support
- Asynchronous I/O and event objects
- Quality of Service
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
Direct XDirect X
5, Introduction to DirectX (Cont’d)
HELHELHALHAL
Hardware
Request
Request
Request
Structure of Direct X:
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.
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.
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:
6, Introduction to our Own Libraries(Cont’d)
DDLoadPalette( Bmp_file, Palette_object );
What is Palette?
Picture:
Content of the picture file:
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?
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!
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.
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:
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.
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:
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.
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:
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.
6, Introduction to our Own Libraries(Cont’d)
Example of using our own class:
Define the region for each frame:
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”
7, Our Testing Program
Program 1 (WinTalk)
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.
7, Our Testing Program
Program 2 (Reversi)
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
7, Our Testing Program
Program 3 (Plane)
7, Our Testing Program
Program 3 (Plane)
Frame pictures:
Frame Engine:
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.
7, Our Testing Program
Program 4 (Ball)
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.
7, Our Testing Program
Program 5 (ChatRoom)
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.
Our Generic Server
Server databaseClient
ClientClient Client
Registered Registered Registered
Registration
Accept/ErrorUpdated
Registration of Client
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
8, Fun with Learning English
8, Fun with Learning English
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
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
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:
The End