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 utilizedLow-cost devices (Arduino, Raspberry) and Open-sources IoT platforms (Eclipse Kura, Reactive Blocks).
MQTT stands for MessageQueuing 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 .
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 - Publisher/Subscriber connect to MQTT broker via WiFi which is established by the PC. The Subscriber is an Arduino bo…
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: Each sensor node will be designed to connect to sensors, such as temperature, pH, DO,... It also equips with WiFi module…