Alessio Tirabasso
Pervasive System 2016/2017
Linkedin: https://www.linkedin.com/in/alessio-tirabasso-44a023140/
Github: https://github.com/alessiotirabasso
What is ThingStudio?
• ThingStudio is a powerful, stylish IoT application IDE
• Useful to create real time user interfaces for the Internet of Things
IoT: the inter-networking of connected devices
Main features
HTML for user’s interface
You control your data transport
Very fast communication
Real life happens in real
time
Typical IoT cloud service
• Security and privacy issue
• Latency because of the round trip
• Data transport is often proprietary
ThingStudio solution:The Uncloud
• A new way of offering software services for the IoT, where your data is yours and
stays that way, but it still provides great software that leverages that data
• You can control your data streams, what goes in and what comes out
• Use local intelligence on data to act immediately and achieve substantial reductions
in cost for services delivery.
ThingStudio’s cloud structure
• 100% private & secure
• Local-network latency
• Only user interafaces stored
How it works?
• MQTT standard to connect with ThingStudio broker
• Feed (with relative topic) as reference point
• HTML template to make UI
Why MQTT connection and how it works
• MQTT is an ISO standard publish-subscribe-based "lightweight" messaging protocol
ideal for IoT
• It is designed to support wireless networks with
varying levels of latency due to occasional
bandwidth constraints or unreliable connections
• The publish-subscribe messaging pattern requires a message broker. The broker is
responsible for distributing messages to interested clients based on the topic of a
message.
My example
HTML template
JAVA module
monitoring CPU and
RAM
MQTT
It use paho library to connect
to MQTT broker and sigar
API to compute CPU & RAM
Publish
JAVA code (publisher side)
JAVA code (publisher side)
Connection establishment and feed
creation on ThingStudio (subcriber side)
HTML Template (Subscriber)
Running the app
DEMO video
o
Useful links
■ ThingStudio: http://www.thingstud.io
■ ThingStudio Blog: http://blog.thingstud.io (last update november 2015)
■ ThingStudio forum: http://forum.thingstud.io
■ My UI onThingStudio: http://www.thingstud.io/app/wYsQz2waiej3XJDpe
■ My java code on github: https://github.com/alessiotirabasso/ThingStudio
17

ThingStudio_persys17

  • 1.
    Alessio Tirabasso Pervasive System2016/2017 Linkedin: https://www.linkedin.com/in/alessio-tirabasso-44a023140/ Github: https://github.com/alessiotirabasso
  • 2.
    What is ThingStudio? •ThingStudio is a powerful, stylish IoT application IDE • Useful to create real time user interfaces for the Internet of Things IoT: the inter-networking of connected devices
  • 3.
    Main features HTML foruser’s interface You control your data transport Very fast communication Real life happens in real time
  • 4.
    Typical IoT cloudservice • Security and privacy issue • Latency because of the round trip • Data transport is often proprietary
  • 5.
    ThingStudio solution:The Uncloud •A new way of offering software services for the IoT, where your data is yours and stays that way, but it still provides great software that leverages that data • You can control your data streams, what goes in and what comes out • Use local intelligence on data to act immediately and achieve substantial reductions in cost for services delivery.
  • 6.
    ThingStudio’s cloud structure •100% private & secure • Local-network latency • Only user interafaces stored
  • 7.
    How it works? •MQTT standard to connect with ThingStudio broker • Feed (with relative topic) as reference point • HTML template to make UI
  • 8.
    Why MQTT connectionand how it works • MQTT is an ISO standard publish-subscribe-based "lightweight" messaging protocol ideal for IoT • It is designed to support wireless networks with varying levels of latency due to occasional bandwidth constraints or unreliable connections • The publish-subscribe messaging pattern requires a message broker. The broker is responsible for distributing messages to interested clients based on the topic of a message.
  • 9.
    My example HTML template JAVAmodule monitoring CPU and RAM MQTT It use paho library to connect to MQTT broker and sigar API to compute CPU & RAM Publish
  • 10.
  • 11.
  • 12.
    Connection establishment andfeed creation on ThingStudio (subcriber side)
  • 13.
  • 14.
  • 15.
  • 16.
    Useful links ■ ThingStudio:http://www.thingstud.io ■ ThingStudio Blog: http://blog.thingstud.io (last update november 2015) ■ ThingStudio forum: http://forum.thingstud.io ■ My UI onThingStudio: http://www.thingstud.io/app/wYsQz2waiej3XJDpe ■ My java code on github: https://github.com/alessiotirabasso/ThingStudio
  • 17.