Exposing M2Mto the REST of us@matteocollina
Matteo CollinaPh.D. Student @University of Bologna@matteocollina matteocollina.com
http://500px.com/photo/20389019We are #coders
http://500px.com/photo/32597639We are no Jedi
http://500px.com/photo/20388963We #codeapps
Did you seeit cominghttp://www.flickr.com/photos/12738000@N00/360231193/
Stevedid.http://www.flickr.com/photos/noppyfoto/6216399465/
Thanks.http://www.flickr.com/photos/noppyfoto/6216399465/
They didn’t!...
We don’t#code forthis phoneanymore!
7:11 PMiPadHow do we #code an App?
7:11 PMiPadWe #code a response tosome kind of user action
Pop-up DialogOKThis message comefrom the server!CancelWeb ServerTapWe #code a remoteweb server
Web and Mobileapps are based onHTTPREST
REpresentationalState Tranfer = REST
http://500px.com/photo/20591939Things aredifferent
http://500px.com/photo/4766384In the future, this chainwill be connected tothe Internet
http://500px.com/photo/26425201We want to #codethe (real) world.
Arduino is an opensource microcontrollerthat you can use to hackthingshttp://www.flickr.com/photos/mattrichardson/5029708468/
The Internet isour pillar 
http://500px.com/photo/20050837we want to monitor theseating of this room?What if
http://500px.com/photo/20050837we measure people’semotions?Can
When you sit,we can receivean event
The world isevent based!
Our controlroom is in theCloud 
How can we make Things talk?http://www.flickr.com/photos/iboy_daniel/77412822/in/photostream/
Pidgeons are not acommunicationprotocolSee RFC1149 http://500px.com/photo/32895129
http://www.flickr.com/photos/clearlyambiguous/48185613/HTTP is slow and safe
We need afast, binaryprotocolhttp://www.flickr.com/photos/grrphoto/305649629
• Binary• Publish/Subscribe• Free• Standard (in a few months)
How to useon
Download PubSubClient,the library for
on Arduino: SetupString server = String("qest.me");PubSubClient client =PubSubClient(server,1883,callback);
if (!client.connected()) {client.connect("arduino");}client.loop();char s[10];itoa(get_temperature(), s, 10);client.publis...
if (!client.connected()) {client.connect("arduino");}client.loop();char s[10];itoa(get_temperature(), s, 10);client.publis...
Your app cannot serve twomasters.http://500px.com/photo/35382862
QESTA MQTT/REST bridgeqest.me
• MQTT broker• REST interface• can be deployed ontop of very pub/subsystems• built in node.jsQESTREST ServerRedisMQTT Serv...
• Ascoltatori: the pub/sub library for node backed byRedis, MongoDB,AMQP (RabbitMQ), ZeroMQ, MQTT(Mosquitto) or just plain...
Strings are themost commondata format.http://500px.com/photo/28990737
Not thesestrings.http://500px.com/photo/28990737
Strings are notthe better wayof sending dataWhat else
There are LOTsof choices• JSON• MessagePack• BSON• Bysant• ProtobufSize mattersif we pay forevery bytesent!
There are LOTsof choices
There are LOTsof choicesDevelopers think in Listsand Maps, not in nodesand children.XML will not play a majorrole in the I...
• What devices can a user monitor?• What devices can listen to the state ofother devices?• Who can access the devices stat...
We need tointerconnect UsersSocial profiles tothe Devices!
http://500px.com/photo/31083423We need a Bridge betweenthe REST and the“Things” world
http://500px.com/photo/31083423• Multiple communicationprotocols• Data representation• Security and provisioningWe need to...
(bridge in Italian)
http://eclipse.org/proposals/technology.ponte/
The initial contribution is QEST
will play well with the others
http://www.flickr.com/photos/oneaustin/1261907803DEMO!
http://500px.com/photo/26425201Ruby on Railshas drasticallychanged howweb apps arebuiltA 10-minutes blog videochanged ever...
http://500px.com/photo/26425201We aim to aRails-likeexperience forthe IoTOur goal is to deliver a10-minutes M2M app video
Credits• Font Awesome for theIcons.• Flickr and 500px for LOTSof CC images :).• Keynotopia for the iPadmockups
Matteo Collina (matteo.collina2@unibo.it)Thank You!@matteocollinahttp://www.flickr.com/photos/axel-d/479627824/
http://500px.com/photo/31083423Bridging two worldshttp://eclipse.org/proposals/technology.ponte/
Exposing M2M to the REST of us
Upcoming SlideShare
Loading in...5
×

Exposing M2M to the REST of us

12,388

Published on

In the ”Internet of Things” (IoT) vision the physical world blends with virtual one, while machine-to-machine interaction improve our daily life. Clearly, how these virtual objects are exposed to us is critical, so that their user interface must be designed to support the easiness of usage that is driven by the users’ needs, which is different from what machines requires. These two requirements must be solved, and an integrated solution should emerge, if we want to bring the IoT to the 50 billions network that is predicted to became in the next years.

Published in: Technology
1 Comment
23 Likes
Statistics
Notes
  • LOL RFC 1149... the april fools joke which just keeps giving
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
No Downloads
Views
Total Views
12,388
On Slideshare
0
From Embeds
0
Number of Embeds
32
Actions
Shares
0
Downloads
131
Comments
1
Likes
23
Embeds 0
No embeds

No notes for slide

Exposing M2M to the REST of us

  1. 1. Exposing M2Mto the REST of us@matteocollina
  2. 2. Matteo CollinaPh.D. Student @University of Bologna@matteocollina matteocollina.com
  3. 3. http://500px.com/photo/20389019We are #coders
  4. 4. http://500px.com/photo/32597639We are no Jedi
  5. 5. http://500px.com/photo/20388963We #codeapps
  6. 6. Did you seeit cominghttp://www.flickr.com/photos/12738000@N00/360231193/
  7. 7. Stevedid.http://www.flickr.com/photos/noppyfoto/6216399465/
  8. 8. Thanks.http://www.flickr.com/photos/noppyfoto/6216399465/
  9. 9. They didn’t!...
  10. 10. We don’t#code forthis phoneanymore!
  11. 11. 7:11 PMiPadHow do we #code an App?
  12. 12. 7:11 PMiPadWe #code a response tosome kind of user action
  13. 13. Pop-up DialogOKThis message comefrom the server!CancelWeb ServerTapWe #code a remoteweb server
  14. 14. Web and Mobileapps are based onHTTPREST
  15. 15. REpresentationalState Tranfer = REST
  16. 16. http://500px.com/photo/20591939Things aredifferent
  17. 17. http://500px.com/photo/4766384In the future, this chainwill be connected tothe Internet
  18. 18. http://500px.com/photo/26425201We want to #codethe (real) world.
  19. 19. Arduino is an opensource microcontrollerthat you can use to hackthingshttp://www.flickr.com/photos/mattrichardson/5029708468/
  20. 20. The Internet isour pillar 
  21. 21. http://500px.com/photo/20050837we want to monitor theseating of this room?What if
  22. 22. http://500px.com/photo/20050837we measure people’semotions?Can
  23. 23. When you sit,we can receivean event
  24. 24. The world isevent based!
  25. 25. Our controlroom is in theCloud 
  26. 26. How can we make Things talk?http://www.flickr.com/photos/iboy_daniel/77412822/in/photostream/
  27. 27. Pidgeons are not acommunicationprotocolSee RFC1149 http://500px.com/photo/32895129
  28. 28. http://www.flickr.com/photos/clearlyambiguous/48185613/HTTP is slow and safe
  29. 29. We need afast, binaryprotocolhttp://www.flickr.com/photos/grrphoto/305649629
  30. 30. • Binary• Publish/Subscribe• Free• Standard (in a few months)
  31. 31. How to useon
  32. 32. Download PubSubClient,the library for
  33. 33. on Arduino: SetupString server = String("qest.me");PubSubClient client =PubSubClient(server,1883,callback);
  34. 34. if (!client.connected()) {client.connect("arduino");}client.loop();char s[10];itoa(get_temperature(), s, 10);client.publish("temp", s);on Arduino: publishing
  35. 35. if (!client.connected()) {client.connect("arduino");}client.loop();char s[10];itoa(get_temperature(), s, 10);client.publish("temp", s);This is called a topic,and it is where we publishdata on MQTT.on Arduino: publishing
  36. 36. Your app cannot serve twomasters.http://500px.com/photo/35382862
  37. 37. QESTA MQTT/REST bridgeqest.me
  38. 38. • MQTT broker• REST interface• can be deployed ontop of very pub/subsystems• built in node.jsQESTREST ServerRedisMQTT ServerQESTData LayerHTTP Clients MQTT Clients
  39. 39. • Ascoltatori: the pub/sub library for node backed byRedis, MongoDB,AMQP (RabbitMQ), ZeroMQ, MQTT(Mosquitto) or just plain node: https://github.com/mcollina/ascoltatori• Mosca, the multi-transport MQTT broker for node.js.It supports AMQP, Redis, ZeroMQ or just MQTT:https://github.com/mcollina/mosca• MQTT.js, the MQTT library for node: https://github.com/adamvr/MQTT.jsQEST’s pillars
  40. 40. Strings are themost commondata format.http://500px.com/photo/28990737
  41. 41. Not thesestrings.http://500px.com/photo/28990737
  42. 42. Strings are notthe better wayof sending dataWhat else
  43. 43. There are LOTsof choices• JSON• MessagePack• BSON• Bysant• ProtobufSize mattersif we pay forevery bytesent!
  44. 44. There are LOTsof choices
  45. 45. There are LOTsof choicesDevelopers think in Listsand Maps, not in nodesand children.XML will not play a majorrole in the Internet ofThings
  46. 46. • What devices can a user monitor?• What devices can listen to the state ofother devices?• Who can access the devices state?• Is the communication secure?Security Issues
  47. 47. We need tointerconnect UsersSocial profiles tothe Devices!
  48. 48. http://500px.com/photo/31083423We need a Bridge betweenthe REST and the“Things” world
  49. 49. http://500px.com/photo/31083423• Multiple communicationprotocols• Data representation• Security and provisioningWe need to address:From an end-userperspective
  50. 50. (bridge in Italian)
  51. 51. http://eclipse.org/proposals/technology.ponte/
  52. 52. The initial contribution is QEST
  53. 53. will play well with the others
  54. 54. http://www.flickr.com/photos/oneaustin/1261907803DEMO!
  55. 55. http://500px.com/photo/26425201Ruby on Railshas drasticallychanged howweb apps arebuiltA 10-minutes blog videochanged everything
  56. 56. http://500px.com/photo/26425201We aim to aRails-likeexperience forthe IoTOur goal is to deliver a10-minutes M2M app video
  57. 57. Credits• Font Awesome for theIcons.• Flickr and 500px for LOTSof CC images :).• Keynotopia for the iPadmockups
  58. 58. Matteo Collina (matteo.collina2@unibo.it)Thank You!@matteocollinahttp://www.flickr.com/photos/axel-d/479627824/
  59. 59. http://500px.com/photo/31083423Bridging two worldshttp://eclipse.org/proposals/technology.ponte/
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×