Date post: | 08-Apr-2015 |
Category: |
Documents |
Upload: | dileep-gupta |
View: | 43 times |
Download: | 4 times |
eHome Prototype Design
Shyh-Kang JengDepartment of Electrical Engineering/Graduate Institute of Communication EngineeringNational Taiwan University
References A. Dutta-Roy, “Networks for Homes,”
IEEE Spectrum, December 1999, pp. 26—33
鄭士康等,“ eHome: 電子家庭雛型之設計與實作—子計畫四:資訊家電網路之微伺服器及智慧型代理人軟體之設計與實作(1/3)” ,國科會專題研究計劃期中報告,
民國九十年五月
Concept of Home Automation
ControlCenter
Gateway
TVStereoSystem Telephones
LightingControls
SurveillanceCameras
Air Conditioners
Laptop
PDA
DesktopMicrowave
Oven
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
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
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)
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
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
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
X10 Ltd.www.x10.com
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
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
CEBus Industry Councilwww.cebus.org
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
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.
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
Echelon Corp.www.lonworks.com
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
WML Browser Screens
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>
Wireless Application Protocol (WAP)
Handset,PDA,…
WAPGateway
WebServer
WAP HTTP
eHome Architecture
eHome Prototype
eHomeCenter RF RF 8051 Light
RF 8051 AirConditioner
RF 8051 TV
Stereo
DVD
IR RemoteControl
RS232
Wapscape Browserhttp://ailp4.csie.ntu.edu.tw/WAP/
RS232 Module
Light Control Module
eHomeServer Design Implemented by Java
SimpleLamp
ServletRequest ServletResponse
Server
Servlet
SpaceUnit
Appliance
Door AirConditioner Audio Video
Configuration Data File2Entrance 3Lamp1 0 4Lamp2 1 3Safety 2 8LivingRoom 3Lamp3 1 6Airc1 3 5TVCon 4 9
eHomeServer Algorithm1. read configuration data2. construct a servlet3. connect a socket4. while ( true ) {
listen to port 9200 initiate a server using servlet}
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
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
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
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
URL and Client Request Example of URLhttp://140.112.21.6/?password=wml Client RequestGET /?password=wml HTTP/1.0
ServletRequest Consists of HTTP requests GET and POS
T Requests are with parameters
spaceUnit appliance status
ServletResponse Consists an HTTP header, status code, a
nd data to be sent to the client Content-Type: text/vnd.wap.wml
WML Card Decks Main Card Deck
SpaceUnit Card Deck
Appliance Card Deck
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
SpaceUnit Maintains a list of appliances Sends corresponding SpaceUnit card d
eck when requested by the servlet
Appliance An abstract class to be inherited by indi
vidual appliances Flexible to extend (polymorphism) Defines abstract methods
getStatus setStatus sendCardDeck sendStatusCardDeck
Status Card Decks
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,
RS232 Package Test Program
eHome Demonstration Control of appliances via a handset
Simple light Advanced light Air conditioner Remote control
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
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
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
Future Plan Connection to telephones Using short message Intelligent Agents Bluetooth WLAN
Conclusions Home automation
Phone lines Power lines Wireless
eHome Controls appliances via remote WAP device
s More to do
Thanks for Attention! Shyh-Kang Jeng Email: [email protected] Web page: http://cc.ee.ntu.edu.tw/~skjeng/