SlideShare uma empresa Scribd logo
1 de 30
JAVASCRIPT POWERING THE DREAM OF
THE CONNECTED HOME
Rodrigo Fernandez
HTML5 Developer Conference
May 2014
ABOUT ME
• From Brazil
• BSEE
• Currently with @WalmartLabs, Carlsbad, CA
– Business Tools and Services
• Previously with PacketVideo (NTT Docomo)
– DRM
– UPnP/DLNA
– BEAM
AFFORDABLE COMPONENTS
• Sensors
– Temperature
– Humidity
– Gases
– Light
– Presence
– Movement
– Cameras
• Actuators
– Switches
– Relays
– Servos
• Network
– Wired / Wireless
• CPU / Memory
SMART APPLIANCES
• TVs
• Sound Speakers
• HVAC
• Locks/Gates/Doors
• Refrigerators
• Microwaves
• Ovens
• Vacuum cleaners
GREAT UNIVERSAL REMOTES
SOME USE CASES
• Browse for media from a mobile device and
play it on any TV
• Play music and open blinds at 7 AM
• Close the garage door if cell phone location is
more than 300 feet away from home
• Turn off the HVAC if two or more windows are
open longer than 5 minutes
• Control lighting and surveillance remotely
CLOUD INTEGRATION & AUTOMATION
PROPRIETARY SOLUTIONS
• Amazon Fire
• Apple AirPlay
• Belkin WeMo
• Google Chromecast
• Nest
• Phillips Hue
• Sonus
• Roku
• Z-Wave
UPNP
• It is a set of protocols that permits networked
devices to seamlessly discover each other's
and interoperate
• Started by Microsoft in late 1900s
• UPnP Forum formed in Oct. 1999
• Established as ISO/IEC standard in Dec. 2008
• Popular on printers, network routers, STBs,
game consoles, smart TVs, etc
UPNP DEVICE CATEGORIES
• Audio/Video
– Media Server
– Media Renderer
• Device Management
– Manageable Device
• Home Automation
– Solar Protection Blind
– Digital Security Camera
– HVAC
– Lighting Controls
• Networking
– Internet Gateway
– WLAN Access Point
• Printer
– Printer Enhanced
– Printer Basic
• Remote Access
– RA Client
– RA Server
– RA Discovery Agent
• Remoting
– Remote UI Client
– Remote UI Server
• Scanner
– Scanner
• Sensor Management
– Sensor Management
• Telephony
– Telephony
UPNP LAYERS
ADDRESSING
DISCOVERY
DESCRIPTION
CONTROL PRESENTATIONEVENTING
DLNA
• Series of guidelines for sharing digital media
on top of UPnP
• Established by Sony in Jun. 2003
• More restrictive than UPnP
– Containers (file formats)
– CODECs
• 3 Billion certified devices on the market
DIAL (DISCOVERY AND LAUNCH)
• Protocol that targets 2nd screen experiences
• Published by Netflix and YouTube in Dec. 2012
• Relies on UPnP and HTTP
– DIAL Service Discovery
– DIAL REST Service (XML/JSON)
• Supported by:
– Amazon Fire TV
– Google Chromecast
– Roku
– TiVo
SOUNDS A LOT OF WORK…
ATWOOD'S LAW
Any application that can be written in
JavaScript, will eventually be written in
JavaScript.
WHY NOT?
W3C NETWORK SERVICE DISCOVERY (NSD)
• Device APIs Working Group
– http://www.w3.org/TR/discovery-api/
– First draft: Oct 2012
– Current draft: Feb 2014
• Experimental builds
– Opera: http://bit.ly/1ih2MHL
– WebKit by Canon Labs: http://bit.ly/1ih2UqA
• Intent to implement
– Firefox: http://bit.ly/1ih32Xj
– Blink: http://bit.ly/1ih3eWA
– WebKit: WTF!?
• Concerns about security
LATEST DRAFT
EXAMPLE
DEMO
Opera Labs
WITH NSD
BROWSER
NSD
SSDP
TCP UDP
BRIDGING THE GAP
BROWSER
VIRTUAL NSD
WEBSOCKETS
HUB
WEBSOCKETS
SSDP
TCP UDP
PINGUELA
RASPBERRY PI MODEL B
ALTERNATIVE: TESSEL
BEWARE OF CORS
• Setting a custom header in a XHR request
triggers preflight
• Preflight consists in an OPTIONS request sent
by the browser before sending the actual
request in order to determine if it is safe to
continue
• Guess how many devices handle OPTIONS?
• Use a proxy to prevent issues
DEMO
Hub powered by Node.js
BEYOND NSD
• W3C
– Device APIs WG: http://bit.ly/1ih3sgf
– Web and TV IG: http://bit.ly/1ih3x3B
– 2° Screen Presentation CG: http://bit.ly/1ih3BAe
– Web of Things (WoT): http://bit.ly/1ih3Efo
• UPnP+
– Protocol bridging
• UPnP Cloud
– Devices connect to a cloud server using XMPP
• webinos
– Built with OSS and leverages web technologies
– Focus on TV, automotive, health and home automation
GO AND HACK YOUR HOME!
THANK YOU!
rodrigo@fnnd.es
http://bit.ly/js-connected-home

Mais conteúdo relacionado

Semelhante a JavaScript powering the dream of the connected home

IITSEC-20131205-No Video
IITSEC-20131205-No VideoIITSEC-20131205-No Video
IITSEC-20131205-No Video
Harry Chawla
 
Cumulus networks - Overcoming traditional network limitations with open source
Cumulus networks - Overcoming traditional network limitations with open sourceCumulus networks - Overcoming traditional network limitations with open source
Cumulus networks - Overcoming traditional network limitations with open source
Nat Morris
 
Androidppt 120228101141-phpapp02
Androidppt 120228101141-phpapp02Androidppt 120228101141-phpapp02
Androidppt 120228101141-phpapp02
Stockmarket Broking
 

Semelhante a JavaScript powering the dream of the connected home (20)

Arkuda STB middleware presentation 2016
Arkuda STB middleware presentation 2016Arkuda STB middleware presentation 2016
Arkuda STB middleware presentation 2016
 
Personnalisation d'Android par Archos 26-10-2011 au PAUG
Personnalisation d'Android par Archos 26-10-2011 au PAUGPersonnalisation d'Android par Archos 26-10-2011 au PAUG
Personnalisation d'Android par Archos 26-10-2011 au PAUG
 
Your Digital Multi Tool
Your Digital Multi ToolYour Digital Multi Tool
Your Digital Multi Tool
 
Arkuda.CarPlay Solutions.presentation.2016
Arkuda.CarPlay Solutions.presentation.2016Arkuda.CarPlay Solutions.presentation.2016
Arkuda.CarPlay Solutions.presentation.2016
 
ContainerDays 2015
ContainerDays 2015ContainerDays 2015
ContainerDays 2015
 
Second screen iot_day_stockholm_2014
Second screen iot_day_stockholm_2014Second screen iot_day_stockholm_2014
Second screen iot_day_stockholm_2014
 
Fhem as IOT rasberry pi platform
Fhem as IOT rasberry pi platformFhem as IOT rasberry pi platform
Fhem as IOT rasberry pi platform
 
Cloud experience & bottle necks
Cloud experience & bottle necksCloud experience & bottle necks
Cloud experience & bottle necks
 
IITSEC-20131205-No Video
IITSEC-20131205-No VideoIITSEC-20131205-No Video
IITSEC-20131205-No Video
 
Cumulus networks - Overcoming traditional network limitations with open source
Cumulus networks - Overcoming traditional network limitations with open sourceCumulus networks - Overcoming traditional network limitations with open source
Cumulus networks - Overcoming traditional network limitations with open source
 
Three years of OFELIA - taking stock
Three years of OFELIA - taking stockThree years of OFELIA - taking stock
Three years of OFELIA - taking stock
 
Arkuda.Concert.presentation.2016
Arkuda.Concert.presentation.2016Arkuda.Concert.presentation.2016
Arkuda.Concert.presentation.2016
 
Androidppt 120228101141-phpapp02
Androidppt 120228101141-phpapp02Androidppt 120228101141-phpapp02
Androidppt 120228101141-phpapp02
 
Docker Platform and Ecosystem Nov 2015
Docker Platform and Ecosystem Nov 2015Docker Platform and Ecosystem Nov 2015
Docker Platform and Ecosystem Nov 2015
 
Coffee & Pi - Intro to Home Automation
Coffee & Pi - Intro to Home AutomationCoffee & Pi - Intro to Home Automation
Coffee & Pi - Intro to Home Automation
 
End to End IoT projects with Zephyr.pdf
End to End IoT projects with Zephyr.pdfEnd to End IoT projects with Zephyr.pdf
End to End IoT projects with Zephyr.pdf
 
OWF12/Open Standards for Cloud - Cs owf
OWF12/Open Standards for Cloud - Cs owfOWF12/Open Standards for Cloud - Cs owf
OWF12/Open Standards for Cloud - Cs owf
 
Open source presentation to Cork County Council
Open source presentation to Cork County CouncilOpen source presentation to Cork County Council
Open source presentation to Cork County Council
 
Docker SF Meetup January 2016
Docker SF Meetup January 2016Docker SF Meetup January 2016
Docker SF Meetup January 2016
 
Building the Ultimate Device Matrix
Building the Ultimate Device MatrixBuilding the Ultimate Device Matrix
Building the Ultimate Device Matrix
 

Último

Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Dr.Costas Sachpazis
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
dollysharma2066
 

Último (20)

The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
Vivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design SpainVivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design Spain
 
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICSUNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineering
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
NFPA 5000 2024 standard .
NFPA 5000 2024 standard                                  .NFPA 5000 2024 standard                                  .
NFPA 5000 2024 standard .
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 

JavaScript powering the dream of the connected home

  • 1. JAVASCRIPT POWERING THE DREAM OF THE CONNECTED HOME Rodrigo Fernandez HTML5 Developer Conference May 2014
  • 2. ABOUT ME • From Brazil • BSEE • Currently with @WalmartLabs, Carlsbad, CA – Business Tools and Services • Previously with PacketVideo (NTT Docomo) – DRM – UPnP/DLNA – BEAM
  • 3. AFFORDABLE COMPONENTS • Sensors – Temperature – Humidity – Gases – Light – Presence – Movement – Cameras • Actuators – Switches – Relays – Servos • Network – Wired / Wireless • CPU / Memory
  • 4. SMART APPLIANCES • TVs • Sound Speakers • HVAC • Locks/Gates/Doors • Refrigerators • Microwaves • Ovens • Vacuum cleaners
  • 6. SOME USE CASES • Browse for media from a mobile device and play it on any TV • Play music and open blinds at 7 AM • Close the garage door if cell phone location is more than 300 feet away from home • Turn off the HVAC if two or more windows are open longer than 5 minutes • Control lighting and surveillance remotely
  • 7. CLOUD INTEGRATION & AUTOMATION
  • 8. PROPRIETARY SOLUTIONS • Amazon Fire • Apple AirPlay • Belkin WeMo • Google Chromecast • Nest • Phillips Hue • Sonus • Roku • Z-Wave
  • 9. UPNP • It is a set of protocols that permits networked devices to seamlessly discover each other's and interoperate • Started by Microsoft in late 1900s • UPnP Forum formed in Oct. 1999 • Established as ISO/IEC standard in Dec. 2008 • Popular on printers, network routers, STBs, game consoles, smart TVs, etc
  • 10. UPNP DEVICE CATEGORIES • Audio/Video – Media Server – Media Renderer • Device Management – Manageable Device • Home Automation – Solar Protection Blind – Digital Security Camera – HVAC – Lighting Controls • Networking – Internet Gateway – WLAN Access Point • Printer – Printer Enhanced – Printer Basic • Remote Access – RA Client – RA Server – RA Discovery Agent • Remoting – Remote UI Client – Remote UI Server • Scanner – Scanner • Sensor Management – Sensor Management • Telephony – Telephony
  • 12. DLNA • Series of guidelines for sharing digital media on top of UPnP • Established by Sony in Jun. 2003 • More restrictive than UPnP – Containers (file formats) – CODECs • 3 Billion certified devices on the market
  • 13. DIAL (DISCOVERY AND LAUNCH) • Protocol that targets 2nd screen experiences • Published by Netflix and YouTube in Dec. 2012 • Relies on UPnP and HTTP – DIAL Service Discovery – DIAL REST Service (XML/JSON) • Supported by: – Amazon Fire TV – Google Chromecast – Roku – TiVo
  • 14. SOUNDS A LOT OF WORK…
  • 15. ATWOOD'S LAW Any application that can be written in JavaScript, will eventually be written in JavaScript.
  • 17. W3C NETWORK SERVICE DISCOVERY (NSD) • Device APIs Working Group – http://www.w3.org/TR/discovery-api/ – First draft: Oct 2012 – Current draft: Feb 2014 • Experimental builds – Opera: http://bit.ly/1ih2MHL – WebKit by Canon Labs: http://bit.ly/1ih2UqA • Intent to implement – Firefox: http://bit.ly/1ih32Xj – Blink: http://bit.ly/1ih3eWA – WebKit: WTF!? • Concerns about security
  • 22. BRIDGING THE GAP BROWSER VIRTUAL NSD WEBSOCKETS HUB WEBSOCKETS SSDP TCP UDP
  • 26. BEWARE OF CORS • Setting a custom header in a XHR request triggers preflight • Preflight consists in an OPTIONS request sent by the browser before sending the actual request in order to determine if it is safe to continue • Guess how many devices handle OPTIONS? • Use a proxy to prevent issues
  • 28. BEYOND NSD • W3C – Device APIs WG: http://bit.ly/1ih3sgf – Web and TV IG: http://bit.ly/1ih3x3B – 2° Screen Presentation CG: http://bit.ly/1ih3BAe – Web of Things (WoT): http://bit.ly/1ih3Efo • UPnP+ – Protocol bridging • UPnP Cloud – Devices connect to a cloud server using XMPP • webinos – Built with OSS and leverages web technologies – Focus on TV, automotive, health and home automation
  • 29. GO AND HACK YOUR HOME!

Notas do Editor

  1. Home automation is the residential extension of building automation. It is automation of the home, housework or household activity. Home automation may include centralized control of lighting, HVAC (heating, ventilation and air conditioning), appliances, security locks of gates and doors and other systems, to provide improved convenience, comfort, energy efficiency and security. Home automation for the elderly and disabled can provide increased quality of life for persons who might otherwise require caregivers or institutional care. The popularity of home automation has been increasing greatly in recent years due to much higher affordability and simplicity through smartphone and tablet connectivity. The concept of the "Internet of Things" has tied in closely with the popularization of home automation.
  2. Home automation is the residential extension of building automation. It is automation of the home, housework or household activity. Home automation may include centralized control of lighting, HVAC (heating, ventilation and air conditioning), appliances, security locks of gates and doors and other systems, to provide improved convenience, comfort, energy efficiency and security. Home automation for the elderly and disabled can provide increased quality of life for persons who might otherwise require caregivers or institutional care. The popularity of home automation has been increasing greatly in recent years due to much higher affordability and simplicity through smartphone and tablet connectivity. The concept of the "Internet of Things" has tied in closely with the popularization of home automation.
  3. Home automation is the residential extension of building automation. It is automation of the home, housework or household activity. Home automation may include centralized control of lighting, HVAC (heating, ventilation and air conditioning), appliances, security locks of gates and doors and other systems, to provide improved convenience, comfort, energy efficiency and security. Home automation for the elderly and disabled can provide increased quality of life for persons who might otherwise require caregivers or institutional care. The popularity of home automation has been increasing greatly in recent years due to much higher affordability and simplicity through smartphone and tablet connectivity. The concept of the "Internet of Things" has tied in closely with the popularization of home automation.
  4. The UPnP architecture allows device-to-device networking of consumer electronics, mobile devices, personal computers, and networked home appliances. It is a distributed, open architecture protocol based on established standards such as the Internet Protocol Suite (TCP/IP), HTTP, XML, and SOAP. UPnP control points (CPs) are devices which use UPnP protocols to control UPnP controlled devices (CDs).[1] The UPnP architecture supports zero configuration networking. A UPnP compatible device from any vendor can dynamically join a network, obtain an IP address, announce its name, advertise or convey its capabilities upon request, and learn about the presence and capabilities of other devices. Dynamic Host Configuration Protocol (DHCP) and Domain Name System (DNS) servers are optional and are only used if they are available on the network. Devices can disconnect from the network automatically without leaving state information.
  5. Digital Living Network Alliance
  6. addressing advertise architecture control description device DIAL discovery DLNA DNS eventing GENA HTML HTTP HTTPMU HTTPU IP multicast presentation protocol SDK services SOAP SSDP TCP UDP unicast UPnP URL XML Zeroconf
  7. /Users/roliv14/Music/iTunes/iTunes Media/Music/Compilations/The Very Best of Soft Cell/02 Tainted Love (7_ Single).m4a /Users/roliv14/Movies/big_buck_bunny_480p_stereo.avi
  8. ARM11@700MHz GPU 512 MB RAM 2 USBs 1 Ethernet HDMI/RCA GPIO
  9. ARM Cortex-M3 @ 180 MHz 32MB RAM 32MB Flash WiFi GPIO Micro USB or battery power
  10. /Users/roliv14/Music/iTunes/iTunes Media/Music/Compilations/The Very Best of Soft Cell/02 Tainted Love (7_ Single).m4a /Users/roliv14/Movies/big_buck_bunny_480p_stereo.avi