<<  KISS: Keep It Simple and Sequential range rover 2012  >>
SOA in the Home - with RFID, iPhone and Simple Service Orchestration
SOA in the Home - with RFID, iPhone and Simple Service Orchestration
Why ?
Why ?
I have a BIG House - started in1896
I have a BIG House - started in1896
2008
2008
Automation Architecture
Automation Architecture
Architectural Tenents
Architectural Tenents
Wiring
Wiring
Wiring  Cat6 Coppers last stand
Wiring Cat6 Coppers last stand
Wiring
Wiring
Physical View
Physical View
Infrastructure Hardware
Infrastructure Hardware
Managed Infrastructure
Managed Infrastructure
Infrastructure  Computing
Infrastructure Computing
Wireless
Wireless
Infrastructure - Hardware
Infrastructure - Hardware
Infrastructure  Hardware
Infrastructure Hardware
RFID
RFID
RFID Hardware  Radio, Antenna, Tags
RFID Hardware Radio, Antenna, Tags
RFID  how it works
RFID how it works
RFID Issues
RFID Issues
RFID Interface Coding (Applescript)
RFID Interface Coding (Applescript)
MySQL & Scripting Other Applications
MySQL & Scripting Other Applications
Scripting Other Applications Remotely
Scripting Other Applications Remotely
Human Interfaces
Human Interfaces
Web Interfaces
Web Interfaces
Interfaces
Interfaces
Services
Services
Enterprise Services
Enterprise Services
Internal Services
Internal Services
Event Based Computing  Mouse Down
Event Based Computing Mouse Down
External Services
External Services
WMQ-Broker Usage  Deprecated
WMQ-Broker Usage Deprecated
Security
Security
Security
Security
Security UPnP
Security UPnP
Software & Shelfware
Software & Shelfware
Shelfware
Shelfware
Motion detection CPU Utilization
Motion detection CPU Utilization
Software
Software
Lessons Learned
Lessons Learned
URLs to get you started
URLs to get you started
Demo
Demo

: SOA in the Home - with RFID, iPhone and Simple Service Orchestration. : Creative Services. : SOA in the Home - with RFID, iPhone and Simple Service Orchestration.ppt. zip-: 4264 .

SOA in the Home - with RFID, iPhone and Simple Service Orchestration

SOA in the Home - with RFID, iPhone and Simple Service Orchestration.ppt
1 SOA in the Home - with RFID, iPhone and Simple Service Orchestration

SOA in the Home - with RFID, iPhone and Simple Service Orchestration

Peter Rhys Jenkins IBM Software Group Peter.rhys.jenkins@us.ibm.com 1st March 2009 Session 1434

2 Why ?

Why ?

2

3 I have a BIG House - started in1896

I have a BIG House - started in1896

3

4 2008

2008

4

5 Automation Architecture

Automation Architecture

5

6 Architectural Tenents

Architectural Tenents

Able to withstand catastrophic failure e.g. Fail safe doors. Able to withstand multiple service failures. Zero learning curve for Human Interfaces. Reasonable price. State of the Art and Beyond. Documented for repeatability. Rapid Recovery from catastrophic failure (ISO Images).

6

7 Wiring

Wiring

7

8 Wiring  Cat6 Coppers last stand

Wiring Cat6 Coppers last stand

8

9 Wiring

Wiring

Cat 6 for 10 Gigiabit Ethernet Backbone (Currently 100Mb) Cat 5e for Phone, IR Distribution. Shielded RG6 coax for Video. HDMI cables for Theatre. RF Relays between Dimmers. Mesh Network Dimmers. No Daisy Chaining No Cat 7 New Connector not RJ45

9

10 Physical View

Physical View

10

11 Infrastructure Hardware

Infrastructure Hardware

11

12 Managed Infrastructure

Managed Infrastructure

HAI Omnipro II Controller 8 PIR (Passive Infrared + Microwave) to HAI 68 Windows round inset Magnet - to HAI 7 Doors round inset Magnet - to HAI @500 Lights, 130 Insteon Dimmers - to Mac 3 Cameras Logitech, Apple, Sony - USB, Firewire, Cat 5e 8 Mikes via Shure Mixer - Toslink Minijack to Mac 1 RFID Texas Instruments - RS-232-C to Mac 1 Phidget RFID Reader - USB to Mac iRTrans Infrared Controller. - to Mac TVs, Music, Piano, Projector Screen - to Mac

12

13 Infrastructure  Computing

Infrastructure Computing

Ocelot (Applied Digital) low voltage switching (speaker & Mic switching Mac Mini - Primary Home Controller. Macbook - Development. iMac - Human Interfaces - Kitchen iMac - Human Interfaces - Office ThinkPad - Camera feeds to Mac. ThinkPad - Mouse Catcher & Camera feeds to Mac. PC - Athlon 64 bit. Windows, 8G, 2T grunt work. (Deprecated) HAI Interfaces. MQ Interfaces. Music Server, Video Server. P390 - CICS WebService interfaces (Deprecated May 2008).

13

14 Wireless

Wireless

2 x Apple Airport 802.11 n 1 x Airport Express 2 x Linksys 802.11 g 1 x Cantenna. Future. WiMax ZigBee Trick give all the access points the same name and use the same channel number.

14

15 Infrastructure - Hardware

Infrastructure - Hardware

15

16 Infrastructure  Hardware

Infrastructure Hardware

16

17 RFID

RFID

17

18 RFID Hardware  Radio, Antenna, Tags

RFID Hardware Radio, Antenna, Tags

18

19 RFID  how it works

RFID how it works

19

20 RFID Issues

RFID Issues

20

21 RFID Interface Coding (Applescript)

RFID Interface Coding (Applescript)

21

22 MySQL & Scripting Other Applications

MySQL & Scripting Other Applications

22

23 Scripting Other Applications Remotely

Scripting Other Applications Remotely

23

24 Human Interfaces

Human Interfaces

24

25 Web Interfaces

Web Interfaces

25

26 Interfaces

Interfaces

iPhone (Safari, Mobile) Any Browser Any Phone Handset Voice Recognition Hard Wired Mics Voice Response V1 Female V2 Male & Female PIR Event (with Weight ?) RFID Events Camera Motion events

26

27 Services

Services

27

28 Enterprise Services

Enterprise Services

Enterprise Service Bus (Indigo Broker - AppleScript & Apple Remote Events for Messaging)

Monitoring

Security

JSON XML-RPC SOAP

28

29 Internal Services

Internal Services

Door Camera Motion Service Door RFID Event Service Door Opened Service Door Closed Service Speak Weather Service Somebody Pressed the Doorbell Service Switch TV to view Camera Play Music Service(s).

Pub Services (Open etc) Goodnight Service Goodmorning Service Birthday Service Water the Lawn Service Open the Windows Service Close the Windows Service Play a Movie Service Mouse Down Service

29

30 Event Based Computing  Mouse Down

Event Based Computing Mouse Down

Metal Pad under Cheese Soldered to 1 Wire. 2nd Wire Soldered to Spring Holder. Circuit Closes == Mouse Down Event. Video Taken by Evocam (last Video) sent to YouTube Text Message to look at YouTube sent to iPhone.

e.g. Speaker Wire

Insteon EZIO.

30

31 External Services

External Services

NOAA Weather (Free). Also Weather.com Change Sunset based on light level (sunny, cloudy etc). Control sprinklers predict rainfall. Set variables for spoken responses. Google GMAPs. Locate Family (iPhone Application Objective C) Airline Flight Scheduling. Heat and Light services at odd hours. eBay Snipe Screen scaping to feed sniping service.

31

32 WMQ-Broker Usage  Deprecated

WMQ-Broker Usage Deprecated

Interface between Macs and PCs. REST from PhP AJAX Sometimes, good enough really is good enough Interface to External Web Services. Interfaces requiring data transformation. PhP interface to Broker from Mac using REST Client for: Broker Web Service call to NOAA (Weather) parse response. Broker decides if its raining for Sprinkler via Timer Node. Broker makes web service call to Charter.net (whats on TV).

32

33 Security

Security

33

34 Security

Security

Assume the worst. No DHCP. No broadcast SSID. Hard coded router tables. WPA. IBM Generated Passwords.

34

35 Security UPnP

Security UPnP

35

36 Software & Shelfware

Software & Shelfware

36

37 Shelfware

Shelfware

Evocam Mac 84% CPU Utilization. HAL 2000 - PC Too Complex. XCode - Mac (except for iPhone) - PhP easier. WMQ Client for Mac - Only C Bindings - REST WMQ Server for Mac - Kernel Changes - REST RS-232-C Open Source PC - Too Complex. TI RFID Sample Code PC - Useless.

37

38 Motion detection CPU Utilization

Motion detection CPU Utilization

38

39 Software

Software

Indigo (ESB) Applescript Apple Remote Events Dreamweaver (Web, PhP) Photoshop Chicken of the VNC MAMP, WAMP Transmit (FTP) iRed Time Machine (Backup)

39

40 Lessons Learned

Lessons Learned

Most of the work you need for an SOA/ESB is building the INFRASTRUCTURE to support it. Adding Services is trivial once the Infrastructure is there. Swapping out services is trivial e.g. Texas Instruments RFID to Phidget RFID Reader about an hour. You need a development hardware environment and prod trying to do it via VNC is like trying to swim through an ocean of Peanut Butter. PhP, MySQL, Apache, OpenSource is easy to write & use. Remember when programming was fun ? its back.

40

41 URLs to get you started

URLs to get you started

www.smarthome.com Source for Everything. www.perceptiveautomation.com Indigo Software. www.trossenrobotics.com RFID Reader. www.evological.com Camera Software. http://www.james.lipsit.com/home.htm Site that got me started. www.gulfhill.com My House. Send me an email peter@gulfhill.com

41

42 Demo

Demo

Add a Share Service

42

SOA in the Home - with RFID, iPhone and Simple Service Orchestration
http://900igr.net/prezentacija/anglijskij-jazyk/soa-in-the-home-with-rfid-iphone-and-simple-service-orchestration-145121.html
c

29
900igr.net > > > SOA in the Home - with RFID, iPhone and Simple Service Orchestration