SlideShare a Scribd company logo
1 of 37
1 
Develop IoT project with AirVantage M2M Cloud 
Crystal Lam – AirVantage Product Marketing Manager
2 
Agenda 
• Introduction 
• Eclo Inc. & their greenhouses 
• Example: Greenhouse project 
• Q&A
3 
In the Air Design Challenge
4 
Sierra Wireless Device-to-Cloud Solution 
Leading-edge 
intelligent devices 
+ Secure cloud 
= 
Value creation 
services platform 
& competitive barriers
Configuration 
Software upgrade 
Alert 
Statistics 
5 
Eclo Inc. & their greenhouses 
Corporate 
software 
sensor 
Embedded 
system 
Support team 
greenhouse 
actuator 
Customers 
MQTT 
REST API 
Alert 
Monitoring 
Troubleshoot 
Asset monitoring
6 
Example: Greenhouse project 
MQTT 
BeagleBone Black 
Mobile/ Web App 
Sensors 
Actuators REST 
API
7 
Bill of Material 
• BeagleBone Black (and the USB cable) 
• Ethernet cable 
• Sensors and actuators (e.g. servomotor) 
• AirVantage M2M Cloud account 
Don’t have one? 
Get an AirVantage Enterprise Platform trial account: 
https://signup.airvantage.net/public/avep/ 
(Free for 6 months, up to 10 systems)
8 
Key steps
9 
Step 1: 
Develop embedded code on BBB 
Cloud9 IDE 
Ethernet 
cable 
USB cable 
sensors
Get the sample code : https://github.com/crystallam/beagleboneblack-mqtt-greenhouse 
Customize the code and flash it to your BBB with the Cloud9 IDE 
10 
Embedded code 
Purposes: 
• Setup connection with 
AirVantage 
• Read the sensor inputs 
• Send the data to AirVantage 
• Listen to the command from 
AirVantage 
Test it on Cloud9 
Keep sending data to AirVantage!
11 
Step 2: 
Register your BBB on AirVantage 
Go to Inventory tab/ Systems: register your BBB by creating a new system
12 
Create a system 
System = “Gateway” (hardware) + “Subscription” (optional) + “Applications” (software) 
Note your BBB serial number 
and the MQTT password for the 
embedded code
13 
Application model 
Application model 
- Describe the 
Find an example in the tutorial “Using MQTT with AirVantage” : 
https://doc.airvantage.net/display/USERGUIDE/Using+MQTT+with+AirVantage 
capability of the 
embedded 
application 
- Help AirVantage UI to 
understand what are 
the data and 
commands sent by 
the systems
14 
Publish it on AirVantage 
Go to Develop tab/ My Apps and release your app to the repository
15 
Release & publish your application
16 
Step 3: 
Test it on AirVantage 
Go to Monitor tab/ Systems, and click on your BBB to find this System detail page
17 
Timeline – troubleshoot 
Troubleshoot with all the data sent from your device to AirVantage
18 
Data History – analyze data 
Plot aggregated data on chart, identify trends
19 
Step 4: 
Use API 
First thing to do : create an API Client as the identifier of your application
20 
Implement authentication 
AirVantage uses OAuth 2.0 
• Pick the most suitable OAuth flow to get the 
access token 
– Resource owner for really trusted application 
– Authorization code for server-side application 
– Implicit for client-side application 
Specs: http://tools.ietf.org/html/rfc6749
21 
AirVantage API 
This is the typical format of our REST API 
> GET https://{server}/api/v1/users/current?access_token={token} 
Base URI : https://na.airvantage.net/api/v1 
HTTP Verbs 
GET: Used for retrieving resources. 
POST: Used for creating resources, or performing custom actions. 
PUT: Used for updating resources or collections. 
DELETE: Used for deleting resources. 
Resource Path : find them all in the API Documentation 
Get an access token with OAuth 2.0 
21 
HTTP Verb Base URI Resource Path
22 
For the greenhouse project 
I want to use the AirVantage API to 
• get data sent from the greenhouses, 
• automate communications, 
• analyze the data
23 
Raw data 
« I want to see the stream of values sent from my 
device. » 
API to list all historical values for a given data of a system 
e.g. greenhouse.temperature: 
> GET https://{server}/api/v1/systems/data/raw? 
targetIds={system_uid} 
&dataIds={data_id} 
&access_token={token}
24 
Send commands & track operation 
« I want my device to execute a command. » 
API to send a command to given system. e.g. powerFan 
> POST https://{server}/api/v1/operations/systems/command?access_token={token} 
{ 
"systems" : { 
"uids" : [“{system_uid}"] 
}, 
"commandId" : “{command_id}" 
}
25 
Send commands & track operation 
« I want to validate the command has been received 
and executed. » 
API to get the details of an operation 
> GET https://{server}/api/v1/operations/{operation_uid}?access_token={token}
26 
Send commands & track operation 
« I want to validate the command has been received 
and executed. » 
API to get the details of an operation 
> GET https://{server}/api/v1/operations/{operation_uid}?access_token={token} 
• Track the "state" property to know if the operation is done 
• Track the "state" property of the different "counters" to know if it 
worked or not
27 
Alerts & Webhooks 
« I want to be notified when the temperature is above a 
threshold. » 
Configure an alert rule 
Setup the "Call URL" to enable webhook notifications
28 
Alerts & Webhooks
29 
Alerts & Webhooks 
AirVantage will send a request on the callback URL as soon 
as a new alert is generated 
> POST http://www.yoursite.com/your_callback 
{ 
"name":"event.alert.rule.triggered", 
"date":1385718100163, 
"content": { 
"alert.uid":"f04a77e306de463e919ec39c387fa016", 
"rule.uid":"7316ee643b17473381b61b8ac0afa824", 
"target.uid":"da687e2c39d54bc391633fa9c8d4c0da" 
} 
}
30 
Aggregated data (System level) 
« I want to analyze the data sent by my device.» 
API to get aggregated values of data and multiple systems 
> GET https://{server}/api/v1/systems/data/aggregated? 
targetIds={system_uid1},{system_uid2}… 
&dataIds={data_id1},{data_id2}… 
&fn={aggregation_function} 
&access_token={token} 
Available functions: 
mean, max, min, standard deviation, sum of squares, count, count of occurrences 
e.g. get the average temperature of the greenhouses in Toulouse, Nice, Paris
31 
Aggregated data (Fleet level) 
« I want to analyze the data sent by all my devices.» 
API to get aggregated values for data of all the systems 
> GET https://{server}/api/v1/systems/data/fleet? 
targetIds={company_uid1} 
&dataIds={data_id1},{data_id2}… 
&fn={system_aggregation_function} 
&fleetFn={fleet_aggregation_function} 
&access_token={token} 
e.g. get the maximum values of the average temperature of all my greenhouses
32 
Want to test the API now? 
Try tools like Postman – www.getpostman.com
33 
What’s next? 
Use the AirVantage API to get data with your favorite language 
Check out sample web app “eclo watch”: https://github.com/AirVantage/sampleapp-eclo-watch 
Data visualization 
Dashboard
34 
The key steps again 
Sensors 
Actuators MQTT REST 
API 
Application 
Step 1. Develop the 
embedded code on 
BBB 
Step 2. Register BBB 
on AirVantage to 
receive data/ send 
command 
Step 3. Test it on 
AirVantage 
Step 4. 
Create API client 
Authenticate OAuth 2 
Use APIs
35 
Explore the resources 
• Get your free trial account: https://signup.airvantage.net/public/avep/ 
• To get started with AirVantage, check our the User Guide and Developer Guide: 
https://doc.airvantage.net/ 
• Find the full list of the API in Develop/ API Documentation 
• Check out http://airvantage.github.io/ for API libraries, projects and sample codes 
• Tutorials mentioned: 
– Connect your BBB to AirVantage using MQTT: 
https://doc.airvantage.net/display/USERGUIDE/Using+MQTT+with+AirVantage 
– Embedded code for BBB to send/receive sensor data to AirVantage: 
https://github.com/crystallam/beagleboneblack-mqtt-greenhouse 
– Web app example (“eclo watch): https://github.com/AirVantage/sampleapp-eclo-watch 
• Need help? 
– Forum: https://forum.sierrawireless.com/ 
– Feedback button on the web user interface @crystallam31 
@airvantage
36 
Thank you 
Thank You 
Questions?
37 
House by Wayne Tyler Sall from The Noun Project 
Thermostat by Luboš Volkov from The Noun Project 
Fan by Arthur Shlain from The Noun Project 
People by Berkay Sargın from The Noun Project 
Cell Phone by Yorlmar Campos from The Noun Project 
Router by im icons from The Noun Project 
Circuit Board by Mike Wirth from The Noun Project 
Credits

More Related Content

What's hot

Sumo Logic Cert Jam - Metrics Mastery
Sumo Logic Cert Jam - Metrics MasterySumo Logic Cert Jam - Metrics Mastery
Sumo Logic Cert Jam - Metrics MasterySumo Logic
 
Security Certification: Security Analytics using Sumo Logic - Oct 2018
Security Certification: Security Analytics using Sumo Logic - Oct 2018Security Certification: Security Analytics using Sumo Logic - Oct 2018
Security Certification: Security Analytics using Sumo Logic - Oct 2018Sumo Logic
 
Sumo Logic Cert Jam - Administration
Sumo Logic Cert Jam - AdministrationSumo Logic Cert Jam - Administration
Sumo Logic Cert Jam - AdministrationSumo Logic
 
Sumo Logic Cert Jam - Security Analytics
Sumo Logic Cert Jam - Security AnalyticsSumo Logic Cert Jam - Security Analytics
Sumo Logic Cert Jam - Security AnalyticsSumo Logic
 
Using Sumo Logic - Apr 2018
Using Sumo Logic - Apr 2018Using Sumo Logic - Apr 2018
Using Sumo Logic - Apr 2018Sumo Logic
 
Sumo Logic Cert Jam - Metrics Mastery
Sumo Logic Cert Jam - Metrics MasterySumo Logic Cert Jam - Metrics Mastery
Sumo Logic Cert Jam - Metrics MasterySumo Logic
 
How To Webinar - Sumo Logic API
How To Webinar - Sumo Logic APIHow To Webinar - Sumo Logic API
How To Webinar - Sumo Logic APISumo Logic
 
Sumo Logic Cert Jam - Security & Compliance
Sumo Logic Cert Jam - Security & ComplianceSumo Logic Cert Jam - Security & Compliance
Sumo Logic Cert Jam - Security & ComplianceSumo Logic
 
Sumo Logic QuickStart
Sumo Logic QuickStartSumo Logic QuickStart
Sumo Logic QuickStartSumo Logic
 
Sumo Logic Cert Jam - Advanced Metrics with Kubernetes
Sumo Logic Cert Jam - Advanced Metrics with KubernetesSumo Logic Cert Jam - Advanced Metrics with Kubernetes
Sumo Logic Cert Jam - Advanced Metrics with KubernetesSumo Logic
 
Sumo Logic "How To" Webinar: Apps
Sumo Logic "How To" Webinar: AppsSumo Logic "How To" Webinar: Apps
Sumo Logic "How To" Webinar: AppsSumo Logic
 
Sumo Logic Quick Start - Feb 2016
Sumo Logic Quick Start - Feb 2016Sumo Logic Quick Start - Feb 2016
Sumo Logic Quick Start - Feb 2016Sumo Logic
 
Sumo Logic QuickStart - May 2016
Sumo Logic QuickStart - May 2016Sumo Logic QuickStart - May 2016
Sumo Logic QuickStart - May 2016Sumo Logic
 
Logging tracing and metrics in .NET Core and Azure - dotnetdays 2020
Logging tracing and metrics in .NET Core and Azure - dotnetdays 2020Logging tracing and metrics in .NET Core and Azure - dotnetdays 2020
Logging tracing and metrics in .NET Core and Azure - dotnetdays 2020Alex Thissen
 
Application Programming Interface
Application Programming InterfaceApplication Programming Interface
Application Programming InterfaceSeculert
 

What's hot (15)

Sumo Logic Cert Jam - Metrics Mastery
Sumo Logic Cert Jam - Metrics MasterySumo Logic Cert Jam - Metrics Mastery
Sumo Logic Cert Jam - Metrics Mastery
 
Security Certification: Security Analytics using Sumo Logic - Oct 2018
Security Certification: Security Analytics using Sumo Logic - Oct 2018Security Certification: Security Analytics using Sumo Logic - Oct 2018
Security Certification: Security Analytics using Sumo Logic - Oct 2018
 
Sumo Logic Cert Jam - Administration
Sumo Logic Cert Jam - AdministrationSumo Logic Cert Jam - Administration
Sumo Logic Cert Jam - Administration
 
Sumo Logic Cert Jam - Security Analytics
Sumo Logic Cert Jam - Security AnalyticsSumo Logic Cert Jam - Security Analytics
Sumo Logic Cert Jam - Security Analytics
 
Using Sumo Logic - Apr 2018
Using Sumo Logic - Apr 2018Using Sumo Logic - Apr 2018
Using Sumo Logic - Apr 2018
 
Sumo Logic Cert Jam - Metrics Mastery
Sumo Logic Cert Jam - Metrics MasterySumo Logic Cert Jam - Metrics Mastery
Sumo Logic Cert Jam - Metrics Mastery
 
How To Webinar - Sumo Logic API
How To Webinar - Sumo Logic APIHow To Webinar - Sumo Logic API
How To Webinar - Sumo Logic API
 
Sumo Logic Cert Jam - Security & Compliance
Sumo Logic Cert Jam - Security & ComplianceSumo Logic Cert Jam - Security & Compliance
Sumo Logic Cert Jam - Security & Compliance
 
Sumo Logic QuickStart
Sumo Logic QuickStartSumo Logic QuickStart
Sumo Logic QuickStart
 
Sumo Logic Cert Jam - Advanced Metrics with Kubernetes
Sumo Logic Cert Jam - Advanced Metrics with KubernetesSumo Logic Cert Jam - Advanced Metrics with Kubernetes
Sumo Logic Cert Jam - Advanced Metrics with Kubernetes
 
Sumo Logic "How To" Webinar: Apps
Sumo Logic "How To" Webinar: AppsSumo Logic "How To" Webinar: Apps
Sumo Logic "How To" Webinar: Apps
 
Sumo Logic Quick Start - Feb 2016
Sumo Logic Quick Start - Feb 2016Sumo Logic Quick Start - Feb 2016
Sumo Logic Quick Start - Feb 2016
 
Sumo Logic QuickStart - May 2016
Sumo Logic QuickStart - May 2016Sumo Logic QuickStart - May 2016
Sumo Logic QuickStart - May 2016
 
Logging tracing and metrics in .NET Core and Azure - dotnetdays 2020
Logging tracing and metrics in .NET Core and Azure - dotnetdays 2020Logging tracing and metrics in .NET Core and Azure - dotnetdays 2020
Logging tracing and metrics in .NET Core and Azure - dotnetdays 2020
 
Application Programming Interface
Application Programming InterfaceApplication Programming Interface
Application Programming Interface
 

Viewers also liked

Sierra Wireless Developer Day 2013 - 11 - AirVantage M2M Cloud
Sierra Wireless Developer Day 2013 - 11 - AirVantage M2M CloudSierra Wireless Developer Day 2013 - 11 - AirVantage M2M Cloud
Sierra Wireless Developer Day 2013 - 11 - AirVantage M2M CloudThibault Cantegrel
 
Developer Day 2014 - 9 - didier lahay - airvantage m2m cloud
Developer Day 2014 - 9 - didier lahay - airvantage m2m cloudDeveloper Day 2014 - 9 - didier lahay - airvantage m2m cloud
Developer Day 2014 - 9 - didier lahay - airvantage m2m cloudThibault Cantegrel
 
Investor slide deck Harman Acquires Symphony Teleca & Rend Bend
Investor slide deck Harman Acquires Symphony Teleca & Rend BendInvestor slide deck Harman Acquires Symphony Teleca & Rend Bend
Investor slide deck Harman Acquires Symphony Teleca & Rend BendLudovic Privat
 
Embedded green house automation system
Embedded green house automation systemEmbedded green house automation system
Embedded green house automation systemgajula vijaya lakshmi
 
Green house weather control system
Green house weather control systemGreen house weather control system
Green house weather control systemShiven Vashisht
 
Arduino based intelligent greenhouse Project
Arduino based intelligent greenhouse ProjectArduino based intelligent greenhouse Project
Arduino based intelligent greenhouse ProjectAmit Saini
 

Viewers also liked (8)

Sierra Wireless Developer Day 2013 - 11 - AirVantage M2M Cloud
Sierra Wireless Developer Day 2013 - 11 - AirVantage M2M CloudSierra Wireless Developer Day 2013 - 11 - AirVantage M2M Cloud
Sierra Wireless Developer Day 2013 - 11 - AirVantage M2M Cloud
 
Developer Day 2014 - 9 - didier lahay - airvantage m2m cloud
Developer Day 2014 - 9 - didier lahay - airvantage m2m cloudDeveloper Day 2014 - 9 - didier lahay - airvantage m2m cloud
Developer Day 2014 - 9 - didier lahay - airvantage m2m cloud
 
OMA for Automotive Presentation
OMA for Automotive PresentationOMA for Automotive Presentation
OMA for Automotive Presentation
 
Investor slide deck Harman Acquires Symphony Teleca & Rend Bend
Investor slide deck Harman Acquires Symphony Teleca & Rend BendInvestor slide deck Harman Acquires Symphony Teleca & Rend Bend
Investor slide deck Harman Acquires Symphony Teleca & Rend Bend
 
Green Internet of things for Smart World
Green Internet of things for Smart WorldGreen Internet of things for Smart World
Green Internet of things for Smart World
 
Embedded green house automation system
Embedded green house automation systemEmbedded green house automation system
Embedded green house automation system
 
Green house weather control system
Green house weather control systemGreen house weather control system
Green house weather control system
 
Arduino based intelligent greenhouse Project
Arduino based intelligent greenhouse ProjectArduino based intelligent greenhouse Project
Arduino based intelligent greenhouse Project
 

Similar to Develop IoT project with AirVantage M2M Cloud

Automatizacion de Procesos en Modelos Tabulares
Automatizacion de Procesos en Modelos TabularesAutomatizacion de Procesos en Modelos Tabulares
Automatizacion de Procesos en Modelos TabularesGaston Cruz
 
03 integrate webapisignalr
03 integrate webapisignalr03 integrate webapisignalr
03 integrate webapisignalrErhwen Kuo
 
The Powerful and Comprehensive API for Mobile App Development and Testing
The Powerful and Comprehensive API for Mobile App Development and TestingThe Powerful and Comprehensive API for Mobile App Development and Testing
The Powerful and Comprehensive API for Mobile App Development and TestingBitbar
 
Training thethings.iO
Training thethings.iOTraining thethings.iO
Training thethings.iOMarc Pous
 
Come sta la nostra applicazione? Un viaggio alla scoperta degli Health Check ...
Come sta la nostra applicazione? Un viaggio alla scoperta degli Health Check ...Come sta la nostra applicazione? Un viaggio alla scoperta degli Health Check ...
Come sta la nostra applicazione? Un viaggio alla scoperta degli Health Check ...Andrea Dottor
 
New ThousandEyes Product Features and Release Highlights: March 2024
New ThousandEyes Product Features and Release Highlights: March 2024New ThousandEyes Product Features and Release Highlights: March 2024
New ThousandEyes Product Features and Release Highlights: March 2024ThousandEyes
 
Build resource server & client for OCF Cloud (2018.8.30)
Build resource server & client for OCF Cloud (2018.8.30)Build resource server & client for OCF Cloud (2018.8.30)
Build resource server & client for OCF Cloud (2018.8.30)남균 김
 
Documentation
DocumentationDocumentation
DocumentationKalyan A
 
ALT-F1.BE : The Accelerator (Google Cloud Platform)
ALT-F1.BE : The Accelerator (Google Cloud Platform)ALT-F1.BE : The Accelerator (Google Cloud Platform)
ALT-F1.BE : The Accelerator (Google Cloud Platform)Abdelkrim Boujraf
 
MuleSoft Meetup Roma - Processi di Automazione su CloudHub
MuleSoft Meetup Roma - Processi di Automazione su CloudHubMuleSoft Meetup Roma - Processi di Automazione su CloudHub
MuleSoft Meetup Roma - Processi di Automazione su CloudHubAlfonso Martino
 
A Journey to Building an Autonomous Streaming Data Platform—Scaling to Trilli...
A Journey to Building an Autonomous Streaming Data Platform—Scaling to Trilli...A Journey to Building an Autonomous Streaming Data Platform—Scaling to Trilli...
A Journey to Building an Autonomous Streaming Data Platform—Scaling to Trilli...Databricks
 
IBM Bluemix OpenWhisk: Serverless Conference 2016, London, UK: The Future of ...
IBM Bluemix OpenWhisk: Serverless Conference 2016, London, UK: The Future of ...IBM Bluemix OpenWhisk: Serverless Conference 2016, London, UK: The Future of ...
IBM Bluemix OpenWhisk: Serverless Conference 2016, London, UK: The Future of ...OpenWhisk
 
Self-Service IoT Data Analytics with StreamPipes
Self-Service IoT Data Analytics with StreamPipesSelf-Service IoT Data Analytics with StreamPipes
Self-Service IoT Data Analytics with StreamPipesApache StreamPipes
 
Uni w pachube 111108
Uni w pachube 111108Uni w pachube 111108
Uni w pachube 111108Paul Tanner
 
Windows Logging Cheat Sheet ver Jan 2016 - MalwareArchaeology
Windows Logging Cheat Sheet ver Jan 2016 - MalwareArchaeologyWindows Logging Cheat Sheet ver Jan 2016 - MalwareArchaeology
Windows Logging Cheat Sheet ver Jan 2016 - MalwareArchaeologyMichael Gough
 
Event-Based API Patterns and Practices
Event-Based API Patterns and PracticesEvent-Based API Patterns and Practices
Event-Based API Patterns and PracticesLaunchAny
 
Consuming GRIN GLOBAL Webservices
Consuming GRIN GLOBAL WebservicesConsuming GRIN GLOBAL Webservices
Consuming GRIN GLOBAL WebservicesEdwin Rojas
 

Similar to Develop IoT project with AirVantage M2M Cloud (20)

Automatizacion de Procesos en Modelos Tabulares
Automatizacion de Procesos en Modelos TabularesAutomatizacion de Procesos en Modelos Tabulares
Automatizacion de Procesos en Modelos Tabulares
 
03 integrate webapisignalr
03 integrate webapisignalr03 integrate webapisignalr
03 integrate webapisignalr
 
The Powerful and Comprehensive API for Mobile App Development and Testing
The Powerful and Comprehensive API for Mobile App Development and TestingThe Powerful and Comprehensive API for Mobile App Development and Testing
The Powerful and Comprehensive API for Mobile App Development and Testing
 
Training thethings.iO
Training thethings.iOTraining thethings.iO
Training thethings.iO
 
Come sta la nostra applicazione? Un viaggio alla scoperta degli Health Check ...
Come sta la nostra applicazione? Un viaggio alla scoperta degli Health Check ...Come sta la nostra applicazione? Un viaggio alla scoperta degli Health Check ...
Come sta la nostra applicazione? Un viaggio alla scoperta degli Health Check ...
 
New ThousandEyes Product Features and Release Highlights: March 2024
New ThousandEyes Product Features and Release Highlights: March 2024New ThousandEyes Product Features and Release Highlights: March 2024
New ThousandEyes Product Features and Release Highlights: March 2024
 
Build resource server & client for OCF Cloud (2018.8.30)
Build resource server & client for OCF Cloud (2018.8.30)Build resource server & client for OCF Cloud (2018.8.30)
Build resource server & client for OCF Cloud (2018.8.30)
 
Documentation
DocumentationDocumentation
Documentation
 
ALT-F1.BE : The Accelerator (Google Cloud Platform)
ALT-F1.BE : The Accelerator (Google Cloud Platform)ALT-F1.BE : The Accelerator (Google Cloud Platform)
ALT-F1.BE : The Accelerator (Google Cloud Platform)
 
GraphQL Basics
GraphQL BasicsGraphQL Basics
GraphQL Basics
 
Scale By The Bay | 2020 | Gimel
Scale By The Bay | 2020 | GimelScale By The Bay | 2020 | Gimel
Scale By The Bay | 2020 | Gimel
 
MuleSoft Meetup Roma - Processi di Automazione su CloudHub
MuleSoft Meetup Roma - Processi di Automazione su CloudHubMuleSoft Meetup Roma - Processi di Automazione su CloudHub
MuleSoft Meetup Roma - Processi di Automazione su CloudHub
 
A Journey to Building an Autonomous Streaming Data Platform—Scaling to Trilli...
A Journey to Building an Autonomous Streaming Data Platform—Scaling to Trilli...A Journey to Building an Autonomous Streaming Data Platform—Scaling to Trilli...
A Journey to Building an Autonomous Streaming Data Platform—Scaling to Trilli...
 
IBM Bluemix OpenWhisk: Serverless Conference 2016, London, UK: The Future of ...
IBM Bluemix OpenWhisk: Serverless Conference 2016, London, UK: The Future of ...IBM Bluemix OpenWhisk: Serverless Conference 2016, London, UK: The Future of ...
IBM Bluemix OpenWhisk: Serverless Conference 2016, London, UK: The Future of ...
 
Keymetrics pm2
Keymetrics pm2Keymetrics pm2
Keymetrics pm2
 
Self-Service IoT Data Analytics with StreamPipes
Self-Service IoT Data Analytics with StreamPipesSelf-Service IoT Data Analytics with StreamPipes
Self-Service IoT Data Analytics with StreamPipes
 
Uni w pachube 111108
Uni w pachube 111108Uni w pachube 111108
Uni w pachube 111108
 
Windows Logging Cheat Sheet ver Jan 2016 - MalwareArchaeology
Windows Logging Cheat Sheet ver Jan 2016 - MalwareArchaeologyWindows Logging Cheat Sheet ver Jan 2016 - MalwareArchaeology
Windows Logging Cheat Sheet ver Jan 2016 - MalwareArchaeology
 
Event-Based API Patterns and Practices
Event-Based API Patterns and PracticesEvent-Based API Patterns and Practices
Event-Based API Patterns and Practices
 
Consuming GRIN GLOBAL Webservices
Consuming GRIN GLOBAL WebservicesConsuming GRIN GLOBAL Webservices
Consuming GRIN GLOBAL Webservices
 

Recently uploaded

Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAndikSusilo4
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 

Recently uploaded (20)

Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & Application
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 

Develop IoT project with AirVantage M2M Cloud

  • 1. 1 Develop IoT project with AirVantage M2M Cloud Crystal Lam – AirVantage Product Marketing Manager
  • 2. 2 Agenda • Introduction • Eclo Inc. & their greenhouses • Example: Greenhouse project • Q&A
  • 3. 3 In the Air Design Challenge
  • 4. 4 Sierra Wireless Device-to-Cloud Solution Leading-edge intelligent devices + Secure cloud = Value creation services platform & competitive barriers
  • 5. Configuration Software upgrade Alert Statistics 5 Eclo Inc. & their greenhouses Corporate software sensor Embedded system Support team greenhouse actuator Customers MQTT REST API Alert Monitoring Troubleshoot Asset monitoring
  • 6. 6 Example: Greenhouse project MQTT BeagleBone Black Mobile/ Web App Sensors Actuators REST API
  • 7. 7 Bill of Material • BeagleBone Black (and the USB cable) • Ethernet cable • Sensors and actuators (e.g. servomotor) • AirVantage M2M Cloud account Don’t have one? Get an AirVantage Enterprise Platform trial account: https://signup.airvantage.net/public/avep/ (Free for 6 months, up to 10 systems)
  • 9. 9 Step 1: Develop embedded code on BBB Cloud9 IDE Ethernet cable USB cable sensors
  • 10. Get the sample code : https://github.com/crystallam/beagleboneblack-mqtt-greenhouse Customize the code and flash it to your BBB with the Cloud9 IDE 10 Embedded code Purposes: • Setup connection with AirVantage • Read the sensor inputs • Send the data to AirVantage • Listen to the command from AirVantage Test it on Cloud9 Keep sending data to AirVantage!
  • 11. 11 Step 2: Register your BBB on AirVantage Go to Inventory tab/ Systems: register your BBB by creating a new system
  • 12. 12 Create a system System = “Gateway” (hardware) + “Subscription” (optional) + “Applications” (software) Note your BBB serial number and the MQTT password for the embedded code
  • 13. 13 Application model Application model - Describe the Find an example in the tutorial “Using MQTT with AirVantage” : https://doc.airvantage.net/display/USERGUIDE/Using+MQTT+with+AirVantage capability of the embedded application - Help AirVantage UI to understand what are the data and commands sent by the systems
  • 14. 14 Publish it on AirVantage Go to Develop tab/ My Apps and release your app to the repository
  • 15. 15 Release & publish your application
  • 16. 16 Step 3: Test it on AirVantage Go to Monitor tab/ Systems, and click on your BBB to find this System detail page
  • 17. 17 Timeline – troubleshoot Troubleshoot with all the data sent from your device to AirVantage
  • 18. 18 Data History – analyze data Plot aggregated data on chart, identify trends
  • 19. 19 Step 4: Use API First thing to do : create an API Client as the identifier of your application
  • 20. 20 Implement authentication AirVantage uses OAuth 2.0 • Pick the most suitable OAuth flow to get the access token – Resource owner for really trusted application – Authorization code for server-side application – Implicit for client-side application Specs: http://tools.ietf.org/html/rfc6749
  • 21. 21 AirVantage API This is the typical format of our REST API > GET https://{server}/api/v1/users/current?access_token={token} Base URI : https://na.airvantage.net/api/v1 HTTP Verbs GET: Used for retrieving resources. POST: Used for creating resources, or performing custom actions. PUT: Used for updating resources or collections. DELETE: Used for deleting resources. Resource Path : find them all in the API Documentation Get an access token with OAuth 2.0 21 HTTP Verb Base URI Resource Path
  • 22. 22 For the greenhouse project I want to use the AirVantage API to • get data sent from the greenhouses, • automate communications, • analyze the data
  • 23. 23 Raw data « I want to see the stream of values sent from my device. » API to list all historical values for a given data of a system e.g. greenhouse.temperature: > GET https://{server}/api/v1/systems/data/raw? targetIds={system_uid} &dataIds={data_id} &access_token={token}
  • 24. 24 Send commands & track operation « I want my device to execute a command. » API to send a command to given system. e.g. powerFan > POST https://{server}/api/v1/operations/systems/command?access_token={token} { "systems" : { "uids" : [“{system_uid}"] }, "commandId" : “{command_id}" }
  • 25. 25 Send commands & track operation « I want to validate the command has been received and executed. » API to get the details of an operation > GET https://{server}/api/v1/operations/{operation_uid}?access_token={token}
  • 26. 26 Send commands & track operation « I want to validate the command has been received and executed. » API to get the details of an operation > GET https://{server}/api/v1/operations/{operation_uid}?access_token={token} • Track the "state" property to know if the operation is done • Track the "state" property of the different "counters" to know if it worked or not
  • 27. 27 Alerts & Webhooks « I want to be notified when the temperature is above a threshold. » Configure an alert rule Setup the "Call URL" to enable webhook notifications
  • 28. 28 Alerts & Webhooks
  • 29. 29 Alerts & Webhooks AirVantage will send a request on the callback URL as soon as a new alert is generated > POST http://www.yoursite.com/your_callback { "name":"event.alert.rule.triggered", "date":1385718100163, "content": { "alert.uid":"f04a77e306de463e919ec39c387fa016", "rule.uid":"7316ee643b17473381b61b8ac0afa824", "target.uid":"da687e2c39d54bc391633fa9c8d4c0da" } }
  • 30. 30 Aggregated data (System level) « I want to analyze the data sent by my device.» API to get aggregated values of data and multiple systems > GET https://{server}/api/v1/systems/data/aggregated? targetIds={system_uid1},{system_uid2}… &dataIds={data_id1},{data_id2}… &fn={aggregation_function} &access_token={token} Available functions: mean, max, min, standard deviation, sum of squares, count, count of occurrences e.g. get the average temperature of the greenhouses in Toulouse, Nice, Paris
  • 31. 31 Aggregated data (Fleet level) « I want to analyze the data sent by all my devices.» API to get aggregated values for data of all the systems > GET https://{server}/api/v1/systems/data/fleet? targetIds={company_uid1} &dataIds={data_id1},{data_id2}… &fn={system_aggregation_function} &fleetFn={fleet_aggregation_function} &access_token={token} e.g. get the maximum values of the average temperature of all my greenhouses
  • 32. 32 Want to test the API now? Try tools like Postman – www.getpostman.com
  • 33. 33 What’s next? Use the AirVantage API to get data with your favorite language Check out sample web app “eclo watch”: https://github.com/AirVantage/sampleapp-eclo-watch Data visualization Dashboard
  • 34. 34 The key steps again Sensors Actuators MQTT REST API Application Step 1. Develop the embedded code on BBB Step 2. Register BBB on AirVantage to receive data/ send command Step 3. Test it on AirVantage Step 4. Create API client Authenticate OAuth 2 Use APIs
  • 35. 35 Explore the resources • Get your free trial account: https://signup.airvantage.net/public/avep/ • To get started with AirVantage, check our the User Guide and Developer Guide: https://doc.airvantage.net/ • Find the full list of the API in Develop/ API Documentation • Check out http://airvantage.github.io/ for API libraries, projects and sample codes • Tutorials mentioned: – Connect your BBB to AirVantage using MQTT: https://doc.airvantage.net/display/USERGUIDE/Using+MQTT+with+AirVantage – Embedded code for BBB to send/receive sensor data to AirVantage: https://github.com/crystallam/beagleboneblack-mqtt-greenhouse – Web app example (“eclo watch): https://github.com/AirVantage/sampleapp-eclo-watch • Need help? – Forum: https://forum.sierrawireless.com/ – Feedback button on the web user interface @crystallam31 @airvantage
  • 36. 36 Thank you Thank You Questions?
  • 37. 37 House by Wayne Tyler Sall from The Noun Project Thermostat by Luboš Volkov from The Noun Project Fan by Arthur Shlain from The Noun Project People by Berkay Sargın from The Noun Project Cell Phone by Yorlmar Campos from The Noun Project Router by im icons from The Noun Project Circuit Board by Mike Wirth from The Noun Project Credits

Editor's Notes

  1. Share experience
  2. SWIR is one of the sponsors Purpose of this webinar
  3. Who is Sierra Wireless Leader in the wireless module market AV M2M Cloud = AVMS + AVEP
  4. Story of Eclo Inc Who is Eclo Inc? Problem 1: provide a new service to their customers Solution 1: use AV to connect the greenhouse data to the customer app Then they discover how easy it is to connect asset info, that they decide to develop other projects to connect the greenhouses’ data to their company’s backend and app for their support team => to improve their operations
  5. (Connect your BBB to a PC and find this info from http://192.168.7.2/Support/BoneScript/getPlatform/)