Wireless Sensor Networks

Similar documents
Wireless Sensor Networks

Wireless Sensor Networks

Wireless Sensor Networks. Introduction to the Laboratory

Wireless Sensor Networks

Wireless Sensor Networks

Wireless Sensor Networks

Wireless Sensor Networks

Wireless Sensor Networks

UDCP Unified Decomposition of Cross layer Protocol. Chen Hsiang Feng 7/15/2008

CS 3516: Advanced Computer Networks

Date of Publication by HGI: May,

Challenge: high throughput despite loss. Roofnet has >30% loss probability. 4 Computer Networks Course (15-744), CMU, 2012.

The Addressing of Data Link Layer

Overriding the Default DHCP Relay Configuration Settings

MAC LAYER. Murat Demirbas SUNY Buffalo

Medium Access Control (MAC) Protocols for Ad hoc Wireless Networks -IV

ESP-NOW User Guide Version 1.0 Copyright 2016

Genetic-Algorithm-Based Construction of Load-Balanced CDSs in Wireless Sensor Networks

Topic 02: IEEE

Address Management in IP Networks

Homework 4 assignment for ECE374 Posted: 04/06/15 Due: 04/13/15

Chapter 5 Link Layer. Computer Networking: A Top Down Approach. 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012

Principles behind data link layer services:

More wireless: Sensor networks and TCP on mobile hosts

MID II Tuesday, 1 st April 2008

ECE : Fundamentals of Wireless Networking - Spring 2007

Announcements: Assignment 4 due now Lab 4 due next Tuesday Assignment 5 posted, due next Thursday

Introduction. Computer Networks Term B10

CMPE 150 Winter 2009

1 What s in the shipping package? The package includes the following items:

CS118 Discussion 1A, Week 9. Zengwen Yuan Dodd Hall 78, Friday 10:00 11:50 a.m.

A Low Latency Data Transmission Scheme for Smart Grid Condition Monitoring Applications 28/05/2012

CSEN 503 Introduction to Communication Networks. Mervat AbuElkheir Hana Medhat Ayman Dayf. **Slides are attributed to J. F. Kurose

CS 268: Computer Networking. Taking Advantage of Broadcast

Link Layer and LANs. CMPS 4750/6750: Computer Networks

RFC: connectionless Data Link Metalanguage Burkhard Daniel

A Performance Comparison of Multi-Hop Wireless Ad Hoc Network Routing Protocols. Broch et al Presented by Brian Card

Data Link Layer. Our goals: understand principles behind data link layer services: instantiation and implementation of various link layer technologies

Ethernet. Network Fundamentals Chapter Cisco Systems, Inc. All rights reserved. Cisco Public 1

Principles behind data link layer services

* IMPORTANT* Welcome to QVCC s Non Credit Online/Flexible Registration

EL Wireless and Mobile Networking Spring 2002 Mid-Term Exam Solution - March 6, 2002

Lab 8: Introduction to Pen Testing (HPING)

Network simulation with. Davide Quaglia

Lab Using Wireshark to Examine Ethernet Frames

Lecture 8. Basic Internetworking (IP) Outline. Basic Internetworking (IP) Basic Internetworking (IP) Service Model

EE-311 Data Communication & Networks

CS4514 Computer Networks

Lecture 8. Reminder: Homework 3, Programming Project 2 due on Thursday. Questions? Tuesday, September 20 CS 475 Networks - Lecture 8 1

Muhammad Farooq-i-Azam CHASE-2006 Lahore

Sensor Network Protocols

Lab Using Wireshark to Examine Ethernet Frames

Lecture 6. Data Link Layer (cont d) Data Link Layer 1-1

Computer Network Fundamentals Spring Week 3 MAC Layer Andreas Terzis

ETSF10 Internet Protocols Network Layer Protocols

Duke University CompSci 356 Midterm Spring 2016

Chapter 3. The Data Link Layer

Davide Quaglia Assistant CS depart University of Verona, Italy

Practical Lazy Scheduling in Wireless Sensor Networks. Ramana Rao Kompella and Alex C. Snoeren

IPTV Distribution Technologies in. Broadband Home Networks

IN THE FIRST MILE CONSORTIUM. Clause 65 Test Suite v1.1 Technical Document. Last Updated: March 23, :43pm

Xbee module configuration from a µcontroller

ISO/IEC , CSD, IEEE a. Embedded Systems Lab. Dept. of CSE, PNU

Final Exam Computer Networks Fall 2015 Prof. Cheng-Fu Chou

COURSE SYLLABUS BMIS 662 TELECOMMUNICATIONS AND NETWORK SECURITY

Towards Robust and Flexible Low-Power Wireless Networking

NATIONAL CONTROL DEVICES Push Notification - Serial Quick Start Guide

Channel Adaptive ACK Mechanism in IEEE Wireless Personal Area Networks

Modelling TCP with Markov chains

Principles behind data link layer services:

Principles behind data link layer services:

EEC-484/584 Computer Networks

CS150 Assignment 7 DNA!

WLAN Performance Aspects

The CMU Monarch Project s Wireless and Mobility Extensions to ns

CMPE 257: Wireless and Mobile Networking

The Link Layer and LANs: Ethernet and Swiches

Connection-Level Scheduling in Wireless Networks Using Only MAC-Layer Information

6.9 Summary. 11/20/2013 Wireless and Mobile Networks (SSL) 6-1. Characteristics of selected wireless link standards a, g point-to-point

Node activity scheduling in wireless sensor networks

Project: IEEE P Working Group for Wireless Personal Area Networks N

Spatially aware sublayer support of VRRP. Marc Holness, Nortel Networks IEEE WG b SG San Antonio, Texas November, 2004

Lesson: Programmatic Access to Network Parameters

Computer Networks รศ.ดร.อน นต ผลเพ ม. Assoc. Prof. Anan Phonphoem, Ph.D. Kasetsart University, Bangkok, Thailand

20-EECE-4029 Operating Systems Fall, 2015 John Franco

ECS 152A Computer Networks Instructor: Liu. Name: Student ID #: Final Exam: March 17, 2005

MultiNet: Connecting to Multiple IEEE Networks Using a Single Wireless Card IEEE INFOCOM 2004

CSIS 331 Course Syllabus. Note:

Multimedia Communication Services Traffic Modeling and Streaming

Dynamic Source Routing in ad hoc wireless networks

C19: User Datagram and Multicast

Computer Science 425 Distributed Systems CS 425 / ECE 428. Fall 2013

WSN NETWORK ARCHITECTURES AND PROTOCOL STACK

Lecture 17: Wireless Networking"

COMP 361 Computer Communications Networks. Spring Semester Final Examination Solution Key

Outline. Wireless Channel Characteristics. Multi-path Fading. Opportunistic Communication - with a focus on WLAN environments -

Project: IEEE P Working Group for Wireless Personal Area Networks N

ECE 598HH: Special Topics in Wireless Networks and Mobile Systems

Cisco Cooperative Project. Coexistence of WiFi and LAA: Detection Thresholds. Students: Li Li Advisors: Len Cimini, Chien-Chung Shen

CS551 Ad-hoc Routing

Transcription:

Wireless Sensor Networks c.buratti@unibo.it +39 051 20 93147 Office Hours: Tuesday 3 5 pm @ Main Building, third floor Credits: 6

Syllabus: Laboratory Activities 1. PAN Formation 2. Data Transfer (point-to-point) 3. MAC Protocol 4. MAC Protocol: Small Network 5. NET Protocol: Small Network

Outline 1. Modify the Association Procedure at Coordinator 2. Send a query from Coordinator to End Devices (unicast packets) 3. Reply from End Devices with a burst of Data frames 4. Count the number of packets received from each End Device

Outline 1. Modify the Association Procedure at Coordinator 2. Send a query from Coordinator to End Devices (unicast packets) 3. Reply from End Devices with a burst of Data frames 4. Count the number of packets received from each End Device

static uint8_t App_SendAssociateResponse(nwkMessage_t *pmsgin) {. /* Create the Associate response message data. */ passocres = &pmsg->msgdata.associateres; if(pmsgin->msgdata.associateind.capabilityinfo & gcapinfoallocaddr_c) { if (counted == 0) { passocres->assocshortaddress[0] = 0x01; passocres->assocshortaddress[1] = 0x00; FLib_MemCpy(maDeviceShortAddress1, passocres->assocshortaddress, 2); FLib_MemCpy(maDeviceLongAddress1, passocres->deviceaddress, 8); counted++; } else { passocres->assocshortaddress[0] = 0x02; passocres->assocshortaddress[1] = 0x00; FLib_MemCpy(maDeviceShortAddress2, passocres->assocshortaddress, 2); FLib_MemCpy(maDeviceLongAddress2, passocres->deviceaddress, 8); } } Wireless Sensor Networks Association

Outline 1. Modify the Association Procedure at Coordinator 2. Send a query from Coordinator to End Devices (unicast packets) 3. Reply from End Devices with a burst of Data frames 4. Count the number of packets received from each End Device

Send the Query static void App_TransmitQuery(void) { if( (mcpendingpackets < mdefaultvalueofmaxpendingdatapackets_c) && (mppacket == NULL) ) { mppacket = MSG_AllocType(nwkToMcpsMessage_t); } if(mppacket!= NULL) { mppacket->msgdata.datareq.pmsdu = "query"; mppacket->msgtype = gmcpsdatareq_c; FLib_MemCpy(mpPacket->msgData.dataReq.dstAddr, madeviceshortaddress1, 2); FLib_MemCpy(mpPacket->msgData.dataReq.srcAddr, (void *)mashortaddress, 2); FLib_MemCpy(mpPacket->msgData.dataReq.dstPanId, (void *)mapanid, 2); FLib_MemCpy(mpPacket->msgData.dataReq.srcPanId, (void *)mapanid, 2); mppacket->msgdata.datareq.dstaddrmode = gaddrmodeshort_c; mppacket->msgdata.datareq.srcaddrmode = gaddrmodeshort_c; mppacket->msgdata.datareq.msdulength =5; mppacket->msgdata.datareq.txoptions = gtxoptsack_c gtxoptsindirect_c;

Outline 1. Modify the Association Procedure at Coordinator 2. Send a query from Coordinator to End Devices (unicast packets) 3. Reply from End Devices with a burst of Data frames 4. Count the number of packets received from each End Device

Reply to the Query Send the burst of data when Data Indication is received. Transmission with ACK and Retx (3): mppacket->msgdata.datareq.txoptions = gtxoptsack_c; Transmission of periodic data: TMR_StartSingleShotTimer(mTimer_c, period, App_TransmitData); Where: period to be set, corresponds to the period between two packets in ms static void App_TransmitData(uint8_t tmr) No need to wait for the ACK from Coordinator

Outline 1. Modify the Association Procedure at Coordinator 2. Send a query from Coordinator to End Devices (unicast packets) 3. Reply from End Devices with a burst of Data frames 4. Count the number of packets received from each End Device

Check the Address at the Coordinator uint8_t rxpacketaddress[2]; rxpacketaddress[0] = pmsgin->msgdata.dataind.srcaddr[0]; if ( rxpacketaddress[0] == madeviceshortaddress1[0] ) {count1++;} else {count2++;}

Wireless Sensor Networks www.chiaraburatti.org c.buratti@unibo.it