SOA in the Home - with RFID, iPhone and Simple Service Orchestration Peter Rhys Jenkins IBM Software...
-
Upload
ava-oneill -
Category
Documents
-
view
213 -
download
0
Transcript of SOA in the Home - with RFID, iPhone and Simple Service Orchestration Peter Rhys Jenkins IBM Software...
![Page 1: 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.](https://reader035.fdocuments.in/reader035/viewer/2022062618/55143b1d550346414e8b466e/html5/thumbnails/1.jpg)
SOA in the Home - with RFID, iPhone and Simple Service Orchestration Peter Rhys JenkinsIBM Software [email protected]
1st March 2009Session 1434
![Page 2: 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.](https://reader035.fdocuments.in/reader035/viewer/2022062618/55143b1d550346414e8b466e/html5/thumbnails/2.jpg)
2
Why ?
![Page 3: 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.](https://reader035.fdocuments.in/reader035/viewer/2022062618/55143b1d550346414e8b466e/html5/thumbnails/3.jpg)
3
I have a BIG House - started in1896
![Page 4: 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.](https://reader035.fdocuments.in/reader035/viewer/2022062618/55143b1d550346414e8b466e/html5/thumbnails/4.jpg)
4
2008
![Page 5: 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.](https://reader035.fdocuments.in/reader035/viewer/2022062618/55143b1d550346414e8b466e/html5/thumbnails/5.jpg)
5
Automation Architecture
![Page 6: 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.](https://reader035.fdocuments.in/reader035/viewer/2022062618/55143b1d550346414e8b466e/html5/thumbnails/6.jpg)
6
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).
![Page 7: 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.](https://reader035.fdocuments.in/reader035/viewer/2022062618/55143b1d550346414e8b466e/html5/thumbnails/7.jpg)
7
Wiring
![Page 8: 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.](https://reader035.fdocuments.in/reader035/viewer/2022062618/55143b1d550346414e8b466e/html5/thumbnails/8.jpg)
8
Wiring – Cat6 “Copper’s last stand”
![Page 9: 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.](https://reader035.fdocuments.in/reader035/viewer/2022062618/55143b1d550346414e8b466e/html5/thumbnails/9.jpg)
9
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
![Page 10: 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.](https://reader035.fdocuments.in/reader035/viewer/2022062618/55143b1d550346414e8b466e/html5/thumbnails/10.jpg)
10
Physical View
![Page 11: 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.](https://reader035.fdocuments.in/reader035/viewer/2022062618/55143b1d550346414e8b466e/html5/thumbnails/11.jpg)
11
Infrastructure Hardware
![Page 12: 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.](https://reader035.fdocuments.in/reader035/viewer/2022062618/55143b1d550346414e8b466e/html5/thumbnails/12.jpg)
12
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 Mike’s – 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• TV’s, Music, Piano, Projector Screen - to Mac
![Page 13: 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.](https://reader035.fdocuments.in/reader035/viewer/2022062618/55143b1d550346414e8b466e/html5/thumbnails/13.jpg)
13
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).
![Page 14: 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.](https://reader035.fdocuments.in/reader035/viewer/2022062618/55143b1d550346414e8b466e/html5/thumbnails/14.jpg)
14
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.
![Page 15: 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.](https://reader035.fdocuments.in/reader035/viewer/2022062618/55143b1d550346414e8b466e/html5/thumbnails/15.jpg)
15
Infrastructure - Hardware
![Page 16: 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.](https://reader035.fdocuments.in/reader035/viewer/2022062618/55143b1d550346414e8b466e/html5/thumbnails/16.jpg)
16
Infrastructure – Hardware.
![Page 17: 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.](https://reader035.fdocuments.in/reader035/viewer/2022062618/55143b1d550346414e8b466e/html5/thumbnails/17.jpg)
17
RFID
![Page 18: 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.](https://reader035.fdocuments.in/reader035/viewer/2022062618/55143b1d550346414e8b466e/html5/thumbnails/18.jpg)
18
RFID Hardware – Radio, Antenna, Tags
![Page 19: 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.](https://reader035.fdocuments.in/reader035/viewer/2022062618/55143b1d550346414e8b466e/html5/thumbnails/19.jpg)
19
RFID – how it works
![Page 20: 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.](https://reader035.fdocuments.in/reader035/viewer/2022062618/55143b1d550346414e8b466e/html5/thumbnails/20.jpg)
20
RFID “Issues”
![Page 21: 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.](https://reader035.fdocuments.in/reader035/viewer/2022062618/55143b1d550346414e8b466e/html5/thumbnails/21.jpg)
21
RFID Interface Coding (Applescript)
![Page 22: 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.](https://reader035.fdocuments.in/reader035/viewer/2022062618/55143b1d550346414e8b466e/html5/thumbnails/22.jpg)
22
MySQL & Scripting Other Applications
![Page 23: 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.](https://reader035.fdocuments.in/reader035/viewer/2022062618/55143b1d550346414e8b466e/html5/thumbnails/23.jpg)
23
Scripting Other Applications Remotely.
![Page 24: 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.](https://reader035.fdocuments.in/reader035/viewer/2022062618/55143b1d550346414e8b466e/html5/thumbnails/24.jpg)
24
Human Interfaces
![Page 25: 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.](https://reader035.fdocuments.in/reader035/viewer/2022062618/55143b1d550346414e8b466e/html5/thumbnails/25.jpg)
25
Web Interfaces
![Page 26: 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.](https://reader035.fdocuments.in/reader035/viewer/2022062618/55143b1d550346414e8b466e/html5/thumbnails/26.jpg)
26
Interfaces
• iPhone (Safari, Mobile)• Any Browser• Any Phone Handset• Voice Recognition
• Hard Wired Mic’s
• Voice Response• V1 Female• V2 Male & Female
• PIR Event (with Weight )• RFID Events• Camera Motion events
![Page 27: 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.](https://reader035.fdocuments.in/reader035/viewer/2022062618/55143b1d550346414e8b466e/html5/thumbnails/27.jpg)
27
Services
![Page 28: 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.](https://reader035.fdocuments.in/reader035/viewer/2022062618/55143b1d550346414e8b466e/html5/thumbnails/28.jpg)
28
Enterprise Service Bus – (Indigo Broker - AppleScript & Apple Remote Events for Messaging)
Monitoring Security
Enterprise Services.
JSON – XML-RPCSOAP
![Page 29: 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.](https://reader035.fdocuments.in/reader035/viewer/2022062618/55143b1d550346414e8b466e/html5/thumbnails/29.jpg)
29
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
![Page 30: 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.](https://reader035.fdocuments.in/reader035/viewer/2022062618/55143b1d550346414e8b466e/html5/thumbnails/30.jpg)
30
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.
Insteon EZIO.
e.g. Speaker Wire
![Page 31: 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.](https://reader035.fdocuments.in/reader035/viewer/2022062618/55143b1d550346414e8b466e/html5/thumbnails/31.jpg)
31
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.
![Page 32: 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.](https://reader035.fdocuments.in/reader035/viewer/2022062618/55143b1d550346414e8b466e/html5/thumbnails/32.jpg)
32
WMQ-Broker Usage – Deprecated.
• Interface between Mac’s and PC’s. – 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 it’s raining for Sprinkler via Timer Node.• Broker makes web service call to Charter.net (what’s on TV).
![Page 33: 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.](https://reader035.fdocuments.in/reader035/viewer/2022062618/55143b1d550346414e8b466e/html5/thumbnails/33.jpg)
33
Security
![Page 34: 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.](https://reader035.fdocuments.in/reader035/viewer/2022062618/55143b1d550346414e8b466e/html5/thumbnails/34.jpg)
34
Security
• Assume the worst.• No DHCP.• No broadcast SSID.• Hard coded router tables.• WPA.• IBM Generated Passwords.
![Page 35: 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.](https://reader035.fdocuments.in/reader035/viewer/2022062618/55143b1d550346414e8b466e/html5/thumbnails/35.jpg)
35
Security UPnP
![Page 36: 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.](https://reader035.fdocuments.in/reader035/viewer/2022062618/55143b1d550346414e8b466e/html5/thumbnails/36.jpg)
36
Software & Shelfware
![Page 37: 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.](https://reader035.fdocuments.in/reader035/viewer/2022062618/55143b1d550346414e8b466e/html5/thumbnails/37.jpg)
37
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.
![Page 38: 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.](https://reader035.fdocuments.in/reader035/viewer/2022062618/55143b1d550346414e8b466e/html5/thumbnails/38.jpg)
38
Motion detection CPU Utilization.
![Page 39: 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.](https://reader035.fdocuments.in/reader035/viewer/2022062618/55143b1d550346414e8b466e/html5/thumbnails/39.jpg)
39
Software
• Indigo (ESB)• Applescript• Apple Remote Events• Dreamweaver (Web, PhP)• Photoshop• Chicken of the VNC• MAMP, WAMP• Transmit (FTP)• iRed• Time Machine (Backup)
![Page 40: 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.](https://reader035.fdocuments.in/reader035/viewer/2022062618/55143b1d550346414e8b466e/html5/thumbnails/40.jpg)
40
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 ? – it’s back.
![Page 41: 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.](https://reader035.fdocuments.in/reader035/viewer/2022062618/55143b1d550346414e8b466e/html5/thumbnails/41.jpg)
41
URL’s 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 – [email protected]
![Page 42: 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.](https://reader035.fdocuments.in/reader035/viewer/2022062618/55143b1d550346414e8b466e/html5/thumbnails/42.jpg)
42
Demo
• Add a “Share” Service…