What Is IoT, and How Modulus and Pacific Can Help Eduardo Pelegri-Llopart Vice President, Technology Progress Software
Agenda What Is IoT What Is Node Why Node.js and IoT Two Examples What Else? Samples, More Samples 2
What Is IoT
Computing Tomorrow Today 4
IoT et al. Types & Uses Beacons, (indoor) Location Based Services Payments Home / Office Automation Smart Buildings Industry Automation Wearables Connected Cars Smart Cities. Very fast moving space Brought to you by the economy of scale of mobile devices 5
Protocols
IoT = Connected, Thus, Protocols Many Protocols, in all layers Physical: Z-Wave, Zigbee, Bluetooth LE, Wi-Fi, RFID, Thread (new), Ethernet, Radios Radio frequency, range, power consumption IP support, Hub/Mesh topology Examples: ibeacon (BLE) and Philips Hue (Zigbee) Session / Communication: HTTP, CoAP (doc transfer) XMPP, MQTT, AMQP (pub/sub) What protocol to choose will vary on goals and application (QoS, Industry/Consumer) 7
Two Examples: ibeacons and Philips Hue Apple ibeacon notification protocol on BLE Signal 2/s 10/s, 3-6months/2years battery Power (proximity) and UID (identity) Point-to-Point, no pairing, 50 meters Indoor microlocation, retail, etc Philips Hue Ethernet/IP (Bridge) + Zigbee/Mesh (Bulb) AC power REST interface (to bridge) Home automation 8
Smart Glasses
Display: Glass vs. BT-200 Monocular Small FOV Google Glass Binocular Large FOV 10
Business Use Cases and Key Verticals Smart Glasses Business Use Cases Rich Communications phone, messaging, video conferencing, video sharing Continuous data streaming messages, tasks, alerts Augmented reality Training, recording, next-step guideance, compliance Key Verticals Enable Deskless Workers 10% of workforce Military Healthcare Manufacturing Logistics Energy/Utilities 11
Home Automation
Home & Building Automation / Industrial Management Home Philips Hue, Nest Building Energy Management Enlighted Inc Commercial Appliance Management ESEV Charging Infrastructure 13
Business Use Cases House, Office Automation, Smart Buildings Business Use Cases House Remote control and monitoring, Automation, Energy monitoring and savings Smart Buildings Better efficiency, Compliance with new laws (California Title 24) Industry 4.0, Smart Manufacturing Recall Apple s track record of moving from consumer to enterprise 14
Wearables
Health / Wearables Fast moving field Fitnets bands Smart watches Smart clothing Smart glasses 16
Wearables Telematics
Connected Cars Remote Access to Cars (Tesla, FIAT) and Chargers OTA (Over-the-Air) Fixes pushed to Tesla Cars Vehicle tracking, fleets, taxis. 18
Beacons
Beacons 20
Business Use Cases Beacons Business Use Cases Retail Targeted Advertising, Special Offers, Loyalty Apps, Indoor Micro-location and Navigation Warehousing Location, Inventory Electronic Payments Some Ongoing Trials: 21
Smart Cities
Smart Cities Garbage Trucks Lights Utilities Traffic Lights Government 2.0 23
So How Can I Build These Apps?
Enter Modulus 25
What Is Node.js
Node.js = V8 + libuv (+ xtras) + Community (NPM) A JavaScript Runtime to run outside of the browser Builds on the Javascript V8 engine and libuv library for async IO Highly Efficient Highly Portable Event-Driven Built-in package manager (NPM) 27
Why Are JavaScript & Node Growing So Fast? Why JavaScript? Virtually all developers know it Widest developer footprint of any language Easy to learn, productive Even business users learn it fast Used for everything Browser, Server-side, Mobile, Wearables, IoT Used at all levels of the stack Frontend, middleware and backend DB Maximizes developer collaboration All developers can contribute everywhere Why Node? Event-based model, highly scalable Great for data-intensive, real-time apps Web API Focused Very good fit for API-first architectures Extremely efficient Requires few computational resources Incredible Community and Ecosystem Over 97,000 packages Fast and easy setup Passes the 5 minute test 28
Why Is Node a Great Match for IoT Why JavaScript? Virtually all developers know it Widest developer footprint of any language Easy to learn, productive Even business users learn it fast Used for everything Browser, Server-side, Mobile, Wearables, IoT Used at all levels of the stack Frontend, middleware and backend DB Maximizes developer collaboration All developers can contribute everywhere Why Node? Event-based model, highly scalable Great for data-intensive, real-time apps Web API Focused Very good fit for API-first architectures Extremely efficient Requires few computational resources Incredible Community and Ecosystem Over 97,000 packages Fast and easy setup Passes the 5 minute test 29
Roll Call Sample
Roll Call Sample Use ibeacons to detect presence in some space Record this in our servers Act on this by manipulating some smart lights For extra credit smart lights are behind firewall 31
Roll Call and Node.js ios POST request Node Mongoose MongoDB BLE/iBeacon Web Express Bulb Bulb Bulb Hue Bridge Local Node Server Firewall Modulus Node Server ios App 32
Snow Plow Sample
Tracking and Managing Snow Plows With Rollbase Snow Plows (et al) have GPS unit Based on Jungle Lasers App Goal s Efficiently Managing GPS Stream Data Exposing data to Rollbase 34
End-to-End: Snow Plow / Geo Data Example Location-viewer Municipality Data Rollbase App Dashboards OEM Data (emergencies) Modulus Hospital Patients (e.g. dialysis) GPS Data Node and MongoDB JSDO Remote Objects Current Data Historical Data Rollbase Mobile AngularJS SPA App 35
jsdo-node JDSO Remoting into Node.js Layer Rollbase App Any JSDO Client Node.js Layer Node JSDO server objects 36
Snow Plow DEMO
What Else?
What Else Can We Do with Node? AngularJS SPA Node.js Layer POST / JSON Corticon 5.4 REST Interface REST JSDO Angular Node OpenEdge AngularJS SPA Rollbase Mobile Socket.io or REST Node.js Layer Invoke REST Rollbase 39
Open Source Samples on Node.js and IoT at Github.com/Progress ios-beacon-scanner roll-call (4 apps) angular-demo corticon-angular-app corticon-angular-insurance angular-express-rollbase-seed angular-rollbase-blog jsdo-node locations-viewer Thanks to David Inglis, Keegan Mendonca and Reeti Banthia, and Jungle Lasers http://dcinglis.wordpress.com & http://mendoncakeegan.wordpress.com 40
Visit the Resource Portal Get session details & presentation downloads Complete a survey Access the latest Progress product literature www.progress.com/exchange2014