+ All Categories
Home > Documents > 8051 m p 2

8051 m p 2

Date post: 08-Apr-2015
Category:
Upload: dileep-gupta
View: 43 times
Download: 4 times
Share this document with a friend
50
eHome Prototype Design Shyh-Kang Jeng Department of Electrical Engineeri ng/Graduate Institute of Communica tion Engineering National Taiwan University
Transcript
Page 1: 8051 m p 2

eHome Prototype Design

Shyh-Kang JengDepartment of Electrical Engineering/Graduate Institute of Communication EngineeringNational Taiwan University

Page 2: 8051 m p 2

References A. Dutta-Roy, “Networks for Homes,”

IEEE Spectrum, December 1999, pp. 26—33

鄭士康等,“ eHome: 電子家庭雛型之設計與實作—子計畫四:資訊家電網路之微伺服器及智慧型代理人軟體之設計與實作(1/3)” ,國科會專題研究計劃期中報告,

民國九十年五月

Page 3: 8051 m p 2

Concept of Home Automation

ControlCenter

Gateway

TVStereoSystem Telephones

LightingControls

SurveillanceCameras

Air Conditioners

Laptop

PDA

DesktopMicrowave

Oven

Page 4: 8051 m p 2

Phone Lines Technologies Ready in place in a residence Excellent for voice signals Attenuation and impedance

characteristics are not well controlled for high-speed data

Page 5: 8051 m p 2

Home Phonelines Networking Alliance HomePNA Formed in June 1988 by 11 companies, i

ncluding 3Com, AMD, AT&T Wireless Systems, Compaq, HP, Intel, IBM, Lucent Technologies

To draft a set of industrywide standards More than 100 members at present

Page 6: 8051 m p 2

HomePNA Network Specification, Release 1.0 Proposed by Tut Systems, Inc. at Pleasa

nt Hill, California Employs Frequency-Division Multiplexin

g Ordinary telephone service (DC—3400Hz) ADSL to access Internet ( 25KHz – 1.1MHz) Networking of Entertainment and Compute

r Data ( 5.5 – 9.5 MHz, 1Mb/s)

Page 7: 8051 m p 2

HomePNA Network Specification, Release 2.0

Proposed by Epigram Inc., Sunnyvale, California

Employs Frequency-Diversity Quadrature Amplitude Modulation

Supports data rates up to 10 Mb/s Better for MPEG-2 video (2—4 Mb/s), DV

D video (3—8 Mb/s), HDTV (19 Mb/s) Maintains full backward compatibility

Page 8: 8051 m p 2

Power Lines Technologies There are more power outlets than

telephone jacks in home Technical problems for data rate

higher than a few bits per second Noise Interference Attenuation Impedance variation Reflection caused by impedance variation

Page 9: 8051 m p 2

X10 Technology X10 System by Radio Shack since

1978 Consists of a control box and several

modules Control box can be used to control

appliances plugged into any of the remote modules

Page 10: 8051 m p 2

X10 Ltd.www.x10.com

Page 11: 8051 m p 2

CEBus Consumer Electronics Bus

Networking Standard under EIA600, where EIA stands for Electronic Industries Alliance

An open standard specifying the technologies and parameters for communications using power lines

Page 12: 8051 m p 2

CAL Common Application Language for CEB

us Enables devices to communicate amon

g themselves Enables devices to perform certain task

s using common rules of syntax and vocabulary

Page 13: 8051 m p 2

CEBus Industry Councilwww.cebus.org

Page 14: 8051 m p 2

Wireless Technologies Provides a convenient and inexpensive

networking solution in a home or small office-home office

Shared Wireless Access Protocol (Swap) Specified by HomeRF Working Group Uses frequency hopping spread-spectrum t

echnology in the 2.4GHz band to yield a data rate of 1 Mb/s

Low cost

Page 15: 8051 m p 2

Wireless TechnologiesDesignation Application Characteristics Frequenc

yBand,GHz

Modulation MaximumData Rate, Mb/s

SpecifyingOrganization

Bluetooth Short-range cable replacement

Low-cost, short-range, supports only voice, data

2.4 Frequency Hopping

1 Bluetooth Consortium

802.11 FH Wireless data networking

Encryption available

2.4 Frequency Hopping

2 IEEE

802.11 DS 2.4 Direct Sequence

2

High-speed 802.11

High-speed wireless Local-area networks

Broadband 5 Discrete multitone/orthogonal FDM

6-54

2.4 Direct Sequence

11

Source: HomeRF and Home Wireless Networks Inc.

Page 16: 8051 m p 2

Operating System for Home Automation Interpret the data and interface with th

e application program LonWorks (EIA 709)

Specified by Echelon Corp. at 1990 Can be used with the phone lines, powerlin

es, and wireless

Page 17: 8051 m p 2

Echelon Corp.www.lonworks.com

Page 18: 8051 m p 2

eHome Concept Controls home appliances through a W

ML browser on a remote cellular phone or PDA

National Science Council team project: “eHome: Design and Implementation of the prototype of electronic Home,” lead by Professor C. C. Hsu, Department of CSIE, NTU

Page 19: 8051 m p 2

WML Browser Screens

Page 20: 8051 m p 2

Wireless Markup Language (WML) Cards and Card Decks Example of a WML Card <?xml version=\"1.0\"?> <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "htt

p://www.wapforum.org/DTD/wml_1.1.xml"> <wml>

<card id="eHome" title="eHome"><p> Press Options</p>

</card></wml>

Page 21: 8051 m p 2

Wireless Application Protocol (WAP)

Handset,PDA,…

WAPGateway

WebServer

WAP HTTP

Page 22: 8051 m p 2

eHome Architecture

Page 23: 8051 m p 2

eHome Prototype

eHomeCenter RF RF 8051 Light

RF 8051 AirConditioner

RF 8051 TV

Stereo

DVD

IR RemoteControl

RS232

Page 24: 8051 m p 2

Wapscape Browserhttp://ailp4.csie.ntu.edu.tw/WAP/

Page 25: 8051 m p 2

RS232 Module

Page 26: 8051 m p 2

Light Control Module

Page 27: 8051 m p 2

eHomeServer Design Implemented by Java

SimpleLamp

ServletRequest ServletResponse

Server

Servlet

SpaceUnit

Appliance

Door AirConditioner Audio Video

Page 28: 8051 m p 2

Configuration Data File2Entrance 3Lamp1 0 4Lamp2 1 3Safety 2 8LivingRoom 3Lamp3 1 6Airc1 3 5TVCon 4 9

Page 29: 8051 m p 2

eHomeServer Algorithm1. read configuration data2. construct a servlet3. connect a socket4. while ( true ) {

listen to port 9200 initiate a server using servlet}

Page 30: 8051 m p 2

Client/Server and Sockets A server is anything that has some

resource that can be shared A client is an entity that wants to gain

access to a particular server Clients and servers communicate with

sockets

client server

Page 31: 8051 m p 2

Connection Ports A port is a numbered socket on a

particular machine A server can serve many different clients

at once, as well as serving many different types of information, through many ports

A server process is said to listen to a port until a client connects to it

A server is allowed to accept multiple clients connected to the same port number, although each session is unique

Page 32: 8051 m p 2

Hypertext Transfer Protocol (HTTP) Defines the precise manner in which Web

clients communicate with Web servers HTTP/1.0 is the most popular version

today Stages of a simple web transition

client serverSends request

RespondsClose connection

Opens connection

Page 33: 8051 m p 2

HTTP 1.0 Status code category

2xx (successful) 4xx (client error) 5xx (server error)

A “GET” request GET index.htm HTTP/1.0

HTTP Response header HTTP/1.0 200 OK Date: Fri, 23 Mar 2001 15:20:00 GMT Content-Length: 359 Content-Type: text/html

Page 34: 8051 m p 2

URL and Client Request Example of URLhttp://140.112.21.6/?password=wml Client RequestGET /?password=wml HTTP/1.0

Page 35: 8051 m p 2

ServletRequest Consists of HTTP requests GET and POS

T Requests are with parameters

spaceUnit appliance status

Page 36: 8051 m p 2

ServletResponse Consists an HTTP header, status code, a

nd data to be sent to the client Content-Type: text/vnd.wap.wml

Page 37: 8051 m p 2

WML Card Decks Main Card Deck

SpaceUnit Card Deck

Appliance Card Deck

Page 38: 8051 m p 2

Servlet Maintains a list of space units Sets appliances in each space unit acco

rding to the configuration data Reads and handles ServletRequest Sends suitable card decks to ServletRes

ponse according to the parameters in the request

Page 39: 8051 m p 2

SpaceUnit Maintains a list of appliances Sends corresponding SpaceUnit card d

eck when requested by the servlet

Page 40: 8051 m p 2

Appliance An abstract class to be inherited by indi

vidual appliances Flexible to extend (polymorphism) Defines abstract methods

getStatus setStatus sendCardDeck sendStatusCardDeck

Page 41: 8051 m p 2

Status Card Decks

Page 42: 8051 m p 2

RS232 Package Implemented by W. L. Liauo using Visual C++

6.0 Called by eHomeServer via Java Native Interf

ace (JNI) Defines methods like:

Transmit OpenRS232 CloseRS232 SWONOFF SWONOFFStatus,

Page 43: 8051 m p 2

RS232 Package Test Program

Page 44: 8051 m p 2

eHome Demonstration Control of appliances via a handset

Simple light Advanced light Air conditioner Remote control

Page 45: 8051 m p 2

Personalized SIM Toolkit Applet Solution

Personalized SIM Toolkit Applet Solution

Ping-Yi Liu, Jie-Yuan Wu, Chia-Wei Liu{b6506003, b6506020, b6506007}@csie.ntu.edu.tw

Department of Computer Science and Information EngineeringNational Taiwan UniversityTaipei, 106, TAIWAN

Page 46: 8051 m p 2

Key Idea goal

to construct, download & execute personalized STK applet

to ally with more partners, for GSM operator example – remote home control system problem – end user without background to write applet solution – table-driven + applet generator

template

GSMoperator

+ =

data

user

data

STKapplet

IA product

data

user

template

IAPartner

+ =STK

applet

Page 47: 8051 m p 2

System Architecture

Internet

HomeNetwork

Appli-ance 1

Appli-ance 2

SMSCenter

OTAServer

*.cap

X25

GSMOperator

PartnerServer

*.cap

IA Partner

SMS Channel

MobilePhone

SIMToolkit

Set-Top-Box

PCHome

Page 48: 8051 m p 2

Future Plan Connection to telephones Using short message Intelligent Agents Bluetooth WLAN

Page 49: 8051 m p 2

Conclusions Home automation

Phone lines Power lines Wireless

eHome Controls appliances via remote WAP device

s More to do

Page 50: 8051 m p 2

Thanks for Attention! Shyh-Kang Jeng Email: [email protected] Web page: http://cc.ee.ntu.edu.tw/~skjeng/


Recommended