Posts

Final report for Open IoT Challenge 3.0

Image
AgriNode project: Building A Wireless Sensor Network for Agricultural Application AgriNode project goal is to build an Internet of Things – IoT solutions for various agricultural applications. We successfully developed the AgriNode system which is a Wireless Sensor Network – WSN consisting a gateway and sensor nodes. In the project, We utilized   Low-cost devices (Arduino, Raspberry) and Open-sources IoT platforms (Eclipse Kura, Reactive Blocks). Webpage: https://agrinode.github.io Report (PDF version): http://bit.ly/2lQc8Er Live data: https://agrinode.mybluemix.net/ui/#/0    ACKNOWLEDGEMENT I would like to acknowledge the support of Mr. Benjamin Cabé and Miss Roxanne Joncas from Eclipse Foundation . I also sincerely thank Mr. Tim Jagenberg and Miss Anne Nevin from Bitreactive for the help of building AgriNode project software.

Hardware choices for AgriNode System- Wireless Sensor Network System

Image
The goal of AgriNode project is to build a Wireless Sensor Network - WSN for agricultural applications such as greenhouse management, monitoring water quality for a fish farm. The system can help farmers to monitor their own farm and support them in decision-making based on sensed data. The Fig. 1 shows the AgriNode system architecture. In this post, we demonstrate the hardware choices for the Agrinode system. To design AgriNode hardware system, we utilized low-cost electric devices that farmer can cover. Agrinode hardware system consists of two main parts: a gateway and sensor nodes.  The gateway (Fig. 2) is a Raspberry Pi 2 with Raspbian Os which is fully compatible with Eclipse Kura - the heat of AgriNode system. A Wifi dongle is added with Raspberry Pi for establishing a WiFi connection which sensor nodes can connect to.  Fig. 2 - AgriNode Gateway Each sensor node contains a microcontroller, power module and connected sensors. The microco...

Tutorial: Build a Configurable Eclipse Kura Application via Reactive Blocks

Image
Summary.  This tutorial demonstrates how to build a Kura application into a bundle by using Reactive Blocks . About Reactive Blocks. Bitreactive provides the visual development environment that allows java users build their own IoT applications by simply connecting building blocks. Each Reactive Block is designed for a specific purpose such as connecting to Cloud platform (IBM Watson IoT, Xively,...), providing MQTT protocol, LoRaWAN interface,... Reactive Blocks is a Plugin for Eclipse , which provides a development environment for a developer build a complex application by drag and drop reactive blocks from the Reactive Blocks libraries. For me, I have a very basic knowledge of Java but I can build a complex java application with Reactive Blocks. Each block has a description in the form of input and output pins and contract. In addition, Reactive Blocks provides the analyze and animation tools which are helpful for testing the applications. References: Block b...

Update "AgriNode bundle" for Eclipse Kura (using Bitreactive)

Image
After Vietnamese New Year holiday or Tet holiday, I am back to the challenge. In this post, I update the "AgriNode bundle" which runs on Eclipse Kura platform. The figure demonstrates how the bundle works. It sends a command to all nodes for requiring data. After receiving the command, each node takes sensors reading then sends the sense data back to the gateway. The gateway then logs the data and forward them to the cloud via MQTT protocol. A web application is built on the cloud - IBM Bluemix for visualizing data. A user can define the sampling time (time for taking sensor data). Sensor node:  In this work, there is only one sensor node that is used for testing. It is ESP8266 Huzzah board and connects to DHT22 sensor (a low-cost temperature and humidity sensor) Gateway:  Eclipse Kura based gateway application with integrated "AgriNode bundle" that is developed using Bitreactive  platform. Cloud App: A  Node-Red applicati...

Develop an "AgriNode bundle " for Eclipse Kura (using Bitreactive)

Image
In my previous post:   MOSQUITTO  (MQTT BROKER) DEMO . (MQTT broker is installed into a Gateway with host IP: 172.16.1.1:1883). In this demo, I build a bundle which is installed in Kura .  For my project, the bundle purpose is to send an MQTT message from the Gateway to sensor nodes every specific time which can be set by a user via Kura UI. This means that the gateway will send a command for requiring data from sensor nodes. Therefore, sensor nodes need to subscribe the topic that the gateway publishes to. The figure below illustrates this demo: In the figure, the "Gateway" is a Raspberry Pi 2. The "sensor node" will be Arduino ESP8266 but in this demo, I use an Android phone for monitoring message from the gateway. If you are interested in this demo please follow these steps: Requirements:  - Raspberry Pi 2 with Kura and Mosquitto installed. - Eclipse Java Neon with Bitreactive  installed. Step 1: Build a...

MQTT demo

Image
Mosquitto  (MQTT broker) Demo MQTT  stands for  Message   Queuing Telemetry Transport which  is an ISO standard (ISO/IEC PRF 20922)   publish-subscribe -based "lightweight" messaging protocol for use on top of the  TCP/IP protocol . It is designed for connections to remote locations where a "small code footprint" is required or the network bandwidth is limited. 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.  Andy Stanford-Clark  and Arlen Nipper of  Cirrus Link Solutions  authored the first version of the protocol in 1999 [1].  In this demo, I work on Mosquitto platform (An Open source MQTT v3.1/v3.1.1 Broker) The picture shows the basic MQTT protocol. MQTT broker - Mosquitto is installed into a PC (Windows, Linux, Raspbian,...). The clients...

Fully System Architecture for Agrinode Project

Image
The picture shows an IoT solution that we are developing for  OpenIoTChallenge 3.0 We hope that we will finish before Feb. 27 :)