Posts

Showing posts with the label WSN

Install Eclipse Kura on Orange Pi Zero (9$; 512MB of RAM)

Image
Orange Pi is a series of cheap single-board computers. It can run   It can run Android 4.4, Ubuntu, Debian, Rasberry Pi Image. In this post, I tried to install Eclipse Kura on a Orange Pi Zero which has    the AllWinner H2 SoC, and has 512MB DDR3 SDRAM. This board will be the next generation for our system (Agrinode project). The fist step, we install Kura on the board and test is to verify that it can work correctly as the Raspberry Pi. This post is also available at AgriNode project page:  https://agrinode.github.io/docs/orangepi/ Install Debian on Orange Pi Please follow the link:  https://docs.armbian.com/User-Guide_Getting-Started/ Install default java JRE/JDK on Debian (JDK 7) Web Browser Plugin To install the default Web Browser Plugin on your system, run: apt-get install icedtea- plugin JRE To install the default JRE (Java Runtime Environment) on your system, run: apt-get install default -jre JDK To insta...

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...

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 :)   

Overview and Architecture of Wireless Sensor Network System (WSN)

We are going to build a system that consists of two main components which are a gateway and sensor nodes. The sensor nodes collect environmental parameters, then send data to the gateway via WiFi connection.  For gateway:  Gateway will be responsible for establishing WiFi connection, receiving data from sensor nodes and publishing data to the cloud.  We are going to use Raspberry Pi 2 as the hardware. It is one of the chip computers based module running Raspian OS. Raspberry Pi is compatible with Kura which is a Java/OSGI-based framework for IoT gateways. We use MQTT protocol for collecting sensor data and publish to the cloud. We install Mosquitto into the Raspberry Pi to create an MQTT broker for WSN. We use Bitreactive to develop a software (define MQTT broker and topics; publish and subscribe; package data,... ) that will be integrated into Kura. For Sensor nodes : E ach sensor node will be designed to connect to sensors, such as temperatu...