Introduction to our FYP Wireless Campus
Download
Report
Transcript Introduction to our FYP Wireless Campus
Wireless Campus
LYU9902
By Starsky Wong, Marti Wong
1999, All rights reserved
11th Oct, 99
Content of this presentation
•Introduction to our FYP - Wireless Campus
•Introduction to Wireless Devices
•Evaluation of some Wireless Devices
•Introduction to WinSock
•Programming with WinSock
•Some other feature of WinSock
•Introduction to DirectX
•Structure of DirectX
•Our Progress
•Our Future Work
Introduction to our FYP
Wireless Campus
•Provide Wireless Technology and Architectural Evaluation
•Develop Software and System Infrastructure
•Create Wireless Quality Education Service and Content
Introduction to Wireless Devices
•Mostly use Radio Frequency (RF)
•Why Wireless ?
- Mobility, Installation Speed and Simplicity, Installation Flexibility, Scalability … etc.
•Wireless LAN Configurations
Evaluation of some
Wireless Devices
1, Proxim RangeLAN2 Wireless LAN
Proxim uses license-free 2.4 GHz Frequency Hopping Spread Spectrum (FHSS) technology
for robustness and scalability.
Specifications
Radio Data Rate
Channels
Range
: 1.6 Mbps
: Supports 15 independent virtual channels
: 150 meters indoor, 300+ meters outdoors
Platform
: Windows 95/98/NT, WinCE
Ethernet and Token Ring Access Points
RangeLAN2 7401/02 PC Card
Evaluation of some
Wireless Devices (cont’d)
2, Apple iBook Airport
Specifications
Radio Data Rate
Range
: 11 Mbps
: 150 meters indoor
Platform
: MacOS 8.6
iBook, Airport station
and
Airport card
Evaluation of some
Wireless Devices (cont’d)
3, WaveLAN
Use Frequency Band from 2400MHz to 2483.5 MHz
Specifications
Radio Data Rate
Range
Platform
: 2 - 6 Mbps (4 Speed Options, can be chosen by user)
: 120 - 540 meters indoor (Depends on speed)
: Windows 95/98/NT, WinCE, Apple, IEEE 802.11 (e.g. Linux)
WavePOINT-II Access Point
WaveLAN IEEE Turbo PC Card
Introduction to WinSock
1, What is WinSock ?
•WinSock is a network API for Microsoft Windows
•Provide generic network services
•Protocol support :
WinSock 1 : Support TCP/IP only
WinSock 2 : Support TCP/IP, IPX/SPX, DecNet, OSI .. more
•Programming paradigm
Event driven programming paradigm
WinSock
Application
WinSock
API
Hardware
API
Physical
Network
Programming with WinSock
Connection-Oriented
Client
Initialize
WinSock
WSAStartup()
Create a
Socket
socket()
Find the server
gethostbyname()
gethostbyaddr()
Connect to
Server
connect()
Send/Receive
send()
recv()
Close Socket
shutdown()
closesocket()
Release
WinSock
WSACleanup()
Connection
established
Server
Initialize
WinSock
WSAStartup()
Create a
Socket
socket()
Name the
Socket
bind()
Accept Client
listen()
accept()
Send/Receive
send()
recv()
Close Socket
shutdown()
closesocket()
Release
WinSock
WSACleanup()
Step 1
Step 2
Step 3
Step 4
Step 5
Step 6
Step 7
Programming with WinSock (cont’d)
Connectionless
Client
Initialize
WinSock
WSAStartup()
Create a
Socket
socket()
Find the server
gethostbyname()
gethostbyaddr()
Send/Receive
sendto()
recvfrom()
Close Socket
shutdown()
closesocket()
Release
WinSock
WSACleanup()
Initialize
WinSock
WSAStartup()
Create a
Socket
socket()
Name the
Socket
bind()
Send/Receive
recvfrom()
sendto
Close Socket
shutdown()
closesocket()
Release
WinSock
WSACleanup()
Step 1
Step 2
Step 3
Step 4
Step 5
Step 6
Server
Some other feature of WinSock
•Event driven programming paradigm
•Mode of Communication
1,Blocking Mode
2,Non-Blocking Mode (Asynchronous Mode)
3,Multithreading Mode
Introduction to Direct X
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
- Direct3D
- DirectSound
- DirectPlay
- DirectInput
(2 dimensional graphics capabilities, surfaces, double buffering, etc)
(A relatively extensively functional 3D graphics programming API.)
(Sound; 3D sound)
(Simplifies network game development)
(Handle input device)
Structure of DirectX
Structure of Direct X
Advantages:
• provide the lowest possible level
access to hardware
DIRECT X
•Abstraction of hardware.
•Support new hardware automatically
HAL
Hardware
HEL
Why Use Direct X in our project?
• We want to write some fancy educational applications.
• The build-in libraries are too slow.
• Cannot find better substitute.
Our Progress
• Evaluation of wireless devices
• Study WinSock
• Study Direct X
• Build our graphical engine
• Build our audio library
• Write some sample programs
Snapshots of our sample programs
The Graphical Engine
• We have built our own class to encapsulate the details of direct draw.
• Cut frames automatically
• Define area segments to each frame
• Define attributes to each frame
The Audio Library
• We have built our own class to encapsulate the details of direct sound.
• Support WAV file with different sample rate.
• Different sounds can be overlap at the same time.
• Support 2 modes of playing: normal mode & looping mode
Our Sample Program (1)
WinTalk
Our Sample Program (2)
Apple Chess
Our Sample Program (3)
Plane
Our Sample Program (4)
Ball
Our Future Work
• Experience the programming of asynchronous mode.
• Try to write a multi client application.
• Design and develop an interactive educational application.