Installing and Managing WIMEA-ICT Automatic Weather Station (AWS) Technical and User Manual. Version 1.0. Prepared by Mary Nsabagwa

Similar documents
Smart Sensor Gateway Installation Manual

Quick Installation Guide

A platform to build smart solutions for everyday ease

Manual of ET-LCD SW HAT

USER MANUAL: Raspberry Pi 2

Lab 0: Intro to running Jupyter Notebook on a Raspberry Pi

Run an X-Carve CNC Machine Wirelessly with a Raspberry Pi

EZmoto V4.1 Product description Rev. 2 30/07/2015

O ptima S aver P i. User Guide. January 2017 Version 1.0

CG Antenna GW 1000 APRS TOTAL SOLUTION v1.2.1 User Manual

A Low Cost Internet of Things Network for Contamination Detection in Drinking Water Systems Using Raspberry Pi

Installation guide. Step1. Install the OS for Raspberry Pi 3. Go to to download Raspbian to the PC.

imx6 TinyRex Development Kit QUICK GUIDE

Overview of the Raspberry Pi Models 3B & 2B

USR-LG220-L User Manual

KX GPRS M2M I-NET. User s Guide. Version: 1.0. Date: March 17, KORTEX PSI 3 Bd Albert Camus Tel:

CM5000 DATASHEET v0.1

Sierra Wireless AirLink LS300. Setup Steps

HOW-TO-GUIDE: demonstrating Fabric Attach using OpenVSwitch

All rights reserved by Waveshare Electronics Co., Ltd. Not allow to modify, distribute, or copy without permission.

Environmental Conditions

SysLINK 500 Family Quick Start Guide

Pmod ESP32 Reference Manual

3G Watcher MP 880W/881W. Online Help Rev 2.0

How do I setup a Raspberry Pi?

RS485 CO2 sensor etc. all of these functions for smart home are pre-programed

Automatic Environmental Monitoring System using Wireless Sensor Network

XLink Kai Raspberry Pi Beginners Tutorial

F Series Indoor Fixed IP Camera. Quick Start Guide

USER MANUAL: 4G. The PiIoT is a WAN communications board which provides a 2G / 3G / 4G

Smart Machine Smart Decision. R700_User Guide_V1.05 1

SETTING UP SSH FOR YOUR PARALLELLA: A TUTORIAL FOR STUDENTS

Pi-SPROG One. DCC Decoder Programmer and Command Station for Raspberry Pi. User Guide

1. USB to Serial cable driver installation instructions 2. Instructions for use with Raspberry Pi 3. Instructions for use with WRT54g and similar

Spreedbox Getting Started Guide

NetCom Plus 411 (NetCom 411, NetCom 411 PRO)

BLUETOOTH BASED OFFICE AUTOMATION AND SECURITY SYSTEM USING RASPBERRY PI AND ANDROID APPLICATION

Connect the GSM-DSA to a router where the network is configured to x with a mask

Overview. Introduction. Key Features

User Manual DIR-615. Wireless N 300 Home Router

User Manual DIR-615. Wireless Router with Built-in 4-port Switch

GMSplus Customer Connection Test Procedure

RaspiDigiHamClock. Raspberry Pi Amateur Radio Digital Clock. v WA4EFH R.Grokett

Quick Installation Guide DSL-2650U. 3G/ADSL/Ethernet Router with Wi-Fi and Built-in Switch

Technical Specification H7960 3G/4G Router

F3102 / F3107 / F3110 / F3115 / F3210 / F3215 PN: 86085K K

Quick Start Guide WB50NBT. Version 1.1

DATA LOGGER GEOLOGGER G8 PLUS

Product description Rev. 3 11/06/14

HSPA+ WiFi Router with Voice

User Manual. cmt-svr Startup Guide

SysLINK 1000/1500 Family Quick Start Guide

STT41AS1 v7.0 FUNCTIONAL DESCRIPTION

Detector magnetic DM-21xC, Sensor for measurement of vehicle presence (DM-

Sierra Radio Systems. WiFly Configuration. Quick Reference. Version 1.0

Industrial Tri-band 3G Modem GTM-201-3GWA Series. User Manual

BiPAC 6404VP/VGP. VoIP/(802.11g) Broadband Firewall Router. Quick Start Guide

ETM350C & ETM450C User Manual

Viola M2M Gateway Enterprise Edition

Linux PPPd for LTE CAT M1 Verizon Skywire on Raspberry Pi 3

Using the Lantronix SGX 5150 Serial Device Server

High Voltage Module Raspberry Pi Documentation Page 1

Installation and Configuration Quick Guide R3000. Industrial Dual SIM Cellular VPN Router 2 Eth + 1 RS RS USB Host.

USR-TCP Hard version: V2.0 File version: V

ZigBee USB Dongle ZSB series Data Sheet

NetComm NTC-5000 CallDirect Series HSPA Cellular Routers Quick Start Guide

Using the EN-2000 s Management System

Overview of Cisco 5520 Wireless Controller

Setup Wireless LAN (WLAN) on the Raspberry Pi

Quick Start Guide. GV-Video Server. 1 Introduction. Packing List

State of the art hyper-optimized video management platform designed for ease, speed and efficiency. Blackjack BOLT-LX

Intel Galileo gen 2 Board

Welcome to Airconsole TS Thanks for purchasing Airconsole TS The worlds smallest most flexible serial console server.

Chapter1. Interface Introduction

Instructions Industrial 4G Router R700 - firmware version B Quick and easy setup of the Industrial 4G Router type R700

Ubiquitous Connectivity Platform for Intelligent Public Transportation Systems

1 Port USB PS/2 Server Remote Control IP KVM Switch with Virtual Media. StarTech ID: SV1108IPEXT

High-Precision AD/DA Board User Manual

EZ864 UMTS Terminal Telit Cellular GSM Engine

NetCom Plus 111 (NetCom 111)

Raspberry Pi Setup Tutorial

WX3IN1+ (v1.27) APRS DIGIPEATER APRS I-GATE APRS-IS -> RF MESSAGES FORWARDING WEATHER STATION SERVER

WebDAQ 316. Internet Enabled Thermocouple Logger. Remote Configuration and Monitoring. Virtually Unlimited Storage. Integrated HW and SW

TopGlobal MB8000 VPN Solution

AC Wi-Fi Range Extender RE580D. Highlights

Technical Specification H8922S 3G/4G Router

4K/UHD Five-Input Universal Switcher with Wireless Presentation Link

Installation A B. Install each bracket using screws provided shown in Figure 1. Fix the KVM into the rack

I, J, K. Ethernet.begin() method, 274. Future Technology Devices International (FTDI), 24

Billion SG6200NXL Series

WBD-222. Hardware Manual. Revision September Copyright 2010 WILIGEAR

1 P a g e. Local Application software by MidNite Solar

Dupline. Data Logger. Types G , G Product Description. Ordering Key G Type Selection. Input/Output Specifications

RN-174. WiSnap M2 Super Module. Features. Description. Applications. ~ page 1 ~ rn-174-ds v1.1 6/1/2011

CLEAR MODEM (SERIES G) USER GUIDE

Quick Installation Guide DSL-2650U/NRU. 3G/ADSL/Ethernet Router with Wi-Fi and Built-in Switch

4G LTE-E click (Europe)

Raspberry Pi 3 Starter Kit Hookup Guide

PACKAGE CONTENT TECHNICAL SPECIFICATION. Ethernet: One 10/100 Fast Ethernet RJ-45. Power Jack Power Status. LAN (Internet connection)

Integration of Wireless Sensor Networks into Industrial Control Systems

Transcription:

Installing and Managing WIMEA-ICT Automatic Weather Station (AWS) Technical and User Manual Version 1.0 Prepared by Mary Nsabagwa i

Table of Contents 1. Introduction... 1 2. Wireless sensor Node... 1 2.1 Features of RSS2 Mote... 1 2.2 Configuring the RSS2 Mote... 3 3.2 Connecting Node to Raspberry Pi... 5 3.3 Connecting Gateway to Internet... 6 3.3.1 Configuring Raspberry Pi to Connect to Internet Using a USB Modem... 6 4. Data... 7 4.1 Acquiring data from AWS... 7 4.2 Data Analysis... 8 4.3 Data Extraction... 9 References... 9 ii

1. Introduction This is a technical manual for WIMEA-ICT Automatic Weather Station (AWS). The AWS is based on Wireless Sensor Networks (WSN). The AWS prototype consists of 4 wireless sensor nodes and a Raspberry Pi acting as a gateway. The sink node has a wired connection to the raspberry Pi. The sensors are connected to the nodes as follows: i. The 10m node has wind direction and speed and solar insolation sensors. The node is installed 10m from the ground. ii. The 2m node has air temperature and humidity sensor (SHT25 sensor). The SHT25 sensor is installed 2m from the ground along the AWS 10m stand. iii. The ground node has the soil temperature, soil moisture sensor and rain gauge. The soil sensors are in the soil while the rain gauge is either on the ground or close to the ground. iv. The sink node has an atmospheric pressure sensor and is attached to and powered by the Raspberry Pi forming a gateway. The gateway is powered through its USB port using a 5V AC-DC adapter. 2. Wireless sensor Node 2.1 Features of RSS2 Mote WIMEA-ICT AWS uses a radio sensor node/mote, also called RSS2 mote from radio sensors [1]. Figures 1 and 2 show the back and front views of the node Figure 1 Front side of RSS2 Mote 1

Sensors may be attached to interfaces including INT5, ADC1 etc. The reset button is used to reset the mote. This is normally done during writing the bootloader. When configuring the mote, an FTDI cable in may be connected to the mote through a USB-TTL 6-pin connector. Figure 3 and 4 show ftd1 cable. Figure 2 Back side of RSS2 Mote The mote uses IEEE 802.15.4 wireless protocol to communicate i.e. receive and send packets. When Installing the AWS, the antenna coverage label must face the sink node for a good signal. Figure 3 FTDI cable showing the two ends 2

Figure 4 Head of FTDI Cable, which connects to the Mote 2.2 Configuring the RSS2 Mote In order to configure the mote, connect the mote to a computer running an ssh client like putty using an ftdi cable. In case of linux, other serial communication clients like minicom may be used. First check the serial port used by the mote under device manager as in Figure 5. Figure 5 Device manager showing COM17 Port in windows after connecting the mote via ftdi cable After identifying the COM port, use a client of your choice. For example, putty as per Figure 6. Under Connection Type, select Serial. Ensure that the speed is 38400. Select Open and interact with the serial Interface. 3

Figure 6 Putty, a serial client opting to use com port 17. After pressing the Open button, you will be able to interact with the mote via keyboard commands. Figure 7 shows a sample of commands provided during the mote configuration. Follow the commands to perform configuration. h-help ri- How often the reporting is done, in seconds eg ri 60 report every 1 minute re display report mask, eg re #0 txt,e64,t (sets the report number 0 to report node name, mac address and temperature ) ss- Display system summary Figure 7 Connecting the Mote to Raspberry Pi GPIO pins using jumper wires 3. Gateway Configuration The gateway is a combination of a node, also known as a sink because of its function and Raspberry pi. The gateway enables the AWS to connect to the Internet. Connecting the AWS to Internet enables users to remotely access it. The sink collects data from all other nodes and stores it on the raspberry pi. Using any uplink option/ Internet connection method, the data may be accessed from anywhere at any time. 3.1 Installing and setting up the raspberry Pi The raspberry Pi is equipped with many interfaces including USB ports (4), HDMI port, power slot and SD card slot among others. It however does not have a monitor. The HDMI interface provides a connection of the raspberry pi to a computer using HDMI to VGA cable. A keyboard and mouse may also be connected to the raspberry pi via the USB interfaces. There are various operating systems, which may be installed on the raspberry pi. The operating systems should reside on an SD card, which is placed in the SD card slot. First, the operating system must be set up on the SD card, An example of an OS is Rasbian Wheezy. 4

Install Win32DiskImager on your computer. The software will help to write the operating system to the SD card. Follow instructions on[2]. After writing the OS, insert the SD card into the raspberry pi and power it. More instructions on setting up the raspberry pi may be found at [3]. 3.2 Connecting Node to Raspberry Pi The following Figures show how the RSS2 mote is connected to the raspberry pi using female jumper wires. Figure 8 Part of the RSS2 Mote showing how which pins are connected to the raspberry Pi 5

Figure 9 Part of the Raspberry Pi showing the GPIO pins to which the node pins are connected using jumper wires An alternative option of connecting the node to the raspberry pi is by using an ftdi cable. I.e. connect the USB of the cable to the USB port of the raspberry pi 3.3 Connecting Gateway to Internet There are various ways of connecting the raspberry pi to Internet. These include 1. Using cable via ther Ethernet interface 2. Wifi, by attaching a wifi dongle to the raspberry pi 3. Using a USB modem 4. Etc Options 1 requires no configuration, while option 2 requires limited configurations. Option 3 requires massive configurations and details are given in this document. 3.3.1 Configuring Raspberry Pi to Connect to Internet Using a USB Modem Below is a list of required software for the raspberry Pi Table 1 Required Raspberry Pi software Software ppp Sakis3g UMTSkeeper Function Manages connection between the Raspberry Pi and 3g Provider Connects to 3G Internet via a configured Sim card To reconnect the 3G dongle using sakis3g script if connection drops 6

Although the Raspberry pi has an Ethernet port for Internet connection, in the absence of cable, alternatives including using wifi and USB modems may be used To configure the raspberry pi to access Internet using usb modem, perform the following tasks:- i. Edit /etc/network/interfaces to have the following Auto usb0 Allow-hotplug usb0 Iface usb0 inet dhcp ii. In case of a smart mobile phone, set USB tethering and check connection by pinging any site.(optional step but may help to access Internet before configuring the modem) iii. Follow instructions on [4] to set up sakis 3g on the raspberry pi iv. Install ppp v. Install umtskeeper sudo wget http://zool33.uni-graz.at/petz/umtkeeper/src/umtskeeper.tar.gz 4. Data 4.1 Acquiring data from AWS Given an active Internet connection, the AWS data may be accessed via SSH or a web page, which runs on the gateway, a raspberry Pi. For a gateway with a public IP address, SSH access may be performed through direct SSH using IP address or domain name, username and password of the raspberry Pi. Different SSH clients may be used including putty, which has versions for both windows and Linux. Linux users may issue the SSH commands via the terminal. A gateway using a dynamic or private address may not be directly accessed remotely. It can however be accessed through reverse tunneling, which enables the gateway traffic to go through a public IP server. While at the public IP server, the pi may be accessed. follow instructions on [5] to configure reverse tunneling on the gateway. Also, ensure that the raspberry pi s SSH public key is added to the public servers authorized keys to enable raspberry pi to login into server without asking for a password. Refer to [6] to configure password-less SSH access from raspberry pi to server. 7

Figure 10 Using putty, an ssh client to access the public IP server 4.2 Data Analysis Data is recorded in a text file, containing key/value pairs, organized in rows. Each row represents a transmission of a mixture of weather parameters, voltage and network information and starts with a date and time in the first two columns. Figure 2 shows a sample text file for a WIMEA-ICT AWS 2016-12-06 09:28:08 TZ=UTC UT=1481016488 GW_LAT=32.57100 GW_LON=0.32920 &: TXT=makg2-2m E64=fcc23d00000182b5 PS=1 V_MCU=2.92 V_IN=3.68 T_SHT2X=29.61 RH_SHT2X=36.15 [ADDR=31.193 SEQ=103 TTL=15 RSSI=24 LQI=255 DRP=0.00] 2016-12-06 09:28:08 TZ=UTC UT=1481016488 GW_LAT=32.57100 GW_LON=0.32920 &: TXT=makg2-2m E64=fcc23d00000182b5 PS=1 V_MCU=2.92 V_IN=3.68 T_SHT2X=29.61 RH_SHT2X=36.15 [ADDR=31.193 SEQ=103 TTL=14 RSSI=1 LQI=255 DRP=0.00] 2016-12-06 09:28:08 TZ=UTC UT=1481016488 GW_LAT=32.57100 GW_LON=0.32920 &: TXT=makg2-gnd PS=1 P0=0x0 P0_LST60=0 UP=0x16108 V_A1=0.04 V_A2=2.95 [ADDR=133.199 SEQ=204 TTL=15 RSSI=26 LQI=255 DRP=0.00] 2016-12-06 09:28:08 TZ=UTC UT=1481016488 GW_LAT=32.57100 GW_LON=0.32920 &: TXT=makg2-gnd PS=1 P0=0x0 P0_LST60=0 UP=0x16108 V_A1=0.04 V_A2=2.95 [ADDR=133.199 SEQ=204 TTL=14 RSSI=2 LQI=255 DRP=0.00] 2016-12-06 09:28:08 TZ=UTC UT=1481016488 GW_LAT=32.57100 GW_LON=0.32920 &: TXT=makg2-gnd PS=1 T=33.25 T1=27.06 V_MCU=3.00 V_IN=3.85 [ADDR=133.199 SEQ=205 TTL=15 RSSI=26 LQI=255 DRP=0.00] Figure 11 Sample WIMEA-ICT AWS text file Besides date and time, there are other columns such as those in Table 1 Table 2 WIMEA-ICT AWS Database file key representations Node Abbreviation Parameter To All Nodes TZ Timezone GW_LAT Gateway Latitude GW_LON Gateway Longitude TXT Text assigned to node for identification purposes E64 Mac Address of Node 10m V_MCU Microcontroller Voltage P0_T V_A1 Wind Speed V_A2 Wind direction T Temperature sensor reading 2m T_SHT2X Temperature reading from SHT 25 RH_SHT2X Humidity reading from SHT25 8

V_MCU Microcontroller Voltage GND PS Power save indicator T Air temperature reading T1 Soil temperature V_MCU MCU input voltage V_IN Input voltage V_A1 Soil moisture Sink 4.3 Data Extraction Before data analysis, extracting and formatting it is necessary especially for benchmarking or research purposes. In order to format, organize or filter out required data, seltag a software, which is compiled with sensd [7] is used. Sensd can be downloaded from For example, in order to format 2m data to display columns containing date, temperature and relative humidity, issue the following seltag command, extracted from data_file and writing sorted data to 2m.dat more data_file.dat grep 2m grep ^20 seltag -sel T_SHT2X=%s RH_SHT2X=%s grep -v Miss >> 2m.dat The formatted data may help in plotting data References [1] Radio sensors. [Online]. Available: radio-sensors.com. [2] How to Make a Raspberry Pi disk image to SD card with win32diskimager. [Online]. Available: http://raspi.tv/2012/how-to-make-a-raspberry-pi-disk-image-to-sd-card-with-win32diskimager. [3] Ultimate Raspberry Pi Configuration Guide. [Online]. Available: http://www.instructables.com/id/ultimate-raspberry-pi-configuration-guide/?allsteps. [4] Raspberry Pi as a 3g (Huawei E303) wireless (Edimax EW-7811Un) router. [5] Raspberry Pi: Phoning Home Using a Reverse Remote Ssh Tunnel. [Online]. Available: https://www.tunnelsup.com/raspberry-pi-phoning-home-using-a-reverse-remote-ssh-tunnel/. [6] Passwordless SSH access. [7] WSN sensor daemon and supporting utilities. 9

10