


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



Professor Andreas Savvides [email protected]
Teaching Assistant: Dimitrios Lymberopoulos [email protected]
class url: http://www.eng.yale.edu/enalab/courses/eeng460a/
Introduction
This assignment builds on some of the basic embedded systems programming concepts introduced in PA#1 with the goal to familiarize you with a primitive sensor network. In this assignment you will use the SOS Operating System to write a basic wireless data collection application using the IEEE 802.15.4 protocol stack. This will familiarize you with the IEEE 802.15.4 packet types and packet format and it will expose you to the aspects involved with a complete system.
Application Scenario
Your application will collect a set of light and battery measurements from a small set of sensor nodes deployed inside the lab. A set of 3 pre-programmed sensor nodes will be placed at different places in the lab. These will be the data acquisition nodes and they will be programmed to respond to your requests (assuming that you use the correct packet format and protocol).
You will have to program a single sensor node to collect the value of the light sensor and the battery level of each one of the 3 pre-programmed nodes every 3 seconds for a total time of 2 minutes. In addition, your program should count all the transitions of the light sensor samples above or below a specified threshold. Your application should be running only for 2 minutes. In order to get the 3 seconds time interval you will have to use a software timer in the SOS operating system. Do NOT use a dedicated hardware timer to get the 3 seconds time interval.
The 3 data acquisition nodes will send you the required data only if you use the following protocol and packet formats.
Packet Format: All the packets sent and received must be IEEE 802.15.4 data packets and must be acknowledged. Short addressing modes must be used for both the source and the destination addresses. No encryption or data authentication should be used.
Communication Protocol: Your node will be able to communicate with the 3 data acquisition nodes by querying these nodes. Specifically, there are 3 different queries:
Compiling your code
The source code for this programming assignment will be posted on the following link: http://www.eng.yale.edu/enalab/XYZ/programming/sosPA2.tar All you have to do is to download the tar file and extract all the files included there in the directory you wish. The starting application for this assignment lies under the following directory: <extract_directory>/apps/EENG460_PA2. All the code that you have to modify lies under this directory. To compile your application type: make xyz.
Important notes
Deliverables
The deliverables of this assignment are the following:
Getting help and answers to your questions
If you need help or you have questions about the assignment you can contact the teaching assistant of the course in the following ways: