DevConf 2015 (http://devconf.cz/)

Spanning 3 days, DevConf.cz brought together around 1000 developers, quality engineers, administrators, and users from the Fedora, JBoss, and Red Hat communities. With almost 100 talks and workshops spread over 6 different tracks, DevConf.cz was one of the largest events celebrating free software in the region.

 

Together with my colleagues we prepared a booth for this great event, demonstrating JBoss/Java IoT capabilities. Our main goal was to show visitors that JBoss Middleware can be used to create an IoT solution very easily.

 

Demo Use Case Description

 

devconf.png

1. Device Controller (CubieBoard)

  • User presses a doorbell. Notification containing his picture is sent to IoT Gateway.
  • Upon receiving user access approval from External IT System the doors are unlocked.

2. IoT Gateway (Raspberry Pi)

  • Receives a notification from Device Controller and sends approval request to External IT System.
  • Waits for user approval and forwards it to Device Controller.

3. External IT System (JBoss BPM Suite)

  • Once an approval request is made, a new business process is started and waits for user decision whether to open the door.
  • If request is approved then a notification of it is sent back to the IoT Gateway.

 

 

 

 

 

 

 

 

Devices

 

CubieBoard 2 (http://cubieboard.org/model/cb2/)

 

20150207_110729.jpg

  • Exposed a standalone web application and a JMS API to control low-level IO operations to open the door lock using Apache Camel:
<route customId="true" id="iot-door-lock-route">
     <from uri="mqtt://iot-demo-lock?subscribeTopicName=IotDemoDoorLock"/>
     <to uri="gpio://pb10?value=HIGH"/>
     <to uri="gpio://pb10?value=LOW"/>
</route>











  • Used Apache Camel to integrates GPIOs, WebCam and JMS routes:
<route customId="true" id="iot-door-bell-route">
  <from uri="gpio://ph7?value=HIGH" />
  <to uri="bean:webCamBean?method=getPicture" />
  <multicast>
    <to uri="mqtt://iot-demo-bell?host=tcp://localhost:1883&amp;publishTopicName=IotDemoDoorBell"/>
    <to uri="mqtt://iot-demo-bell-sbunciak?host=tcp://rapsberrypi:1883&amp;publishTopicName=doorQueue"/>
  </multicast>
</route>











 

 

Raspberry Pi B+ (http://www.raspberrypi.org/introducing-raspberry-pi-model-b-plus/)

 

20150207_110720.jpg

  • Orchestrated requests from/to BPM Suite via REST.
<route customId="true" id="bpm-route">
  <from uri="mqtt://bpm?subscribeTopicName=doorQueue" />
  <to uri="bean:bpmBean" />
</route>











  • Exposed 2 REST API Endpoints via Camel REST DSL:
    • Temperature Sensor – returning current temperature in the room.
    • Door Opener – forwarding request approval to Device Controller via MQTT.
<rest path="/rest">
  <post uri="/doorLock" consumes="application/json">
    <to uri="mqtt://iot-demo-door-lock?host=tcp://{{remoteBroker}}:1883&amp;publishTopicName=IotDemoDoorLock" />
  </post>
  <get uri="/temperature">
    <to uri="bean:tempBean?method=getTemperature" />
  </get>
</rest>











 

Photos

20150207_110713.jpg20150207_123514.jpg20150207_110923.jpg20150207_110943.jpg

 

Links

 

Java GPIO Library: http://www.silverspoon.io

Apache Camel: http://camel.apache.org

Apache ActiveMQ: http://activemq.apache.org

Source Codes: sbunciak/devconf15 · GitHub

 

Contact

In case of any question, do not hesitate and feel free to contact us:

sbunciak

pmacik

ppecka