[Tinyos-2-commits] CVS: tinyos-2.x/apps/tests/tkn154/nonbeacon-enabled/TestActiveScan README.txt, NONE, 1.1 app_profile.h, NONE, 1.1
Jan-Hinrich Hauer
janhauer at users.sourceforge.net
Wed Jun 10 02:38:43 PDT 2009
Update of /cvsroot/tinyos/tinyos-2.x/apps/tests/tkn154/nonbeacon-enabled/TestActiveScan
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv25725/apps/tests/tkn154/nonbeacon-enabled/TestActiveScan
Added Files:
README.txt app_profile.h
Log Message:
New app testing active scan in nonbeacon-enabled mode, written by Jasper Buesch
--- NEW FILE: README.txt ---
README for TestActiveScan
Author/Contact: tinyos-help at millennium.berkeley.edu
Description:
In this application one node takes the role of a PAN coordinator in a
nonbeacon-enabled 802.15.4 PAN; it switches its radio to receive mode.
A second node acts as a device; it switches to the pre-defined channel and
performs active-scans on the predefined channel.
A few basic parameters of this example can be adjusted through the
'app_profile.h' file.
Leds Coordinator: The first led (Telos: red) is used for debugging purposes
only and when switched on indicating an error in the protocol-stack. The
second led (Telos: green) flashes when an active scan, more exactly a
beacon-request, is received by the coordinator.
Leds Device: The third led (Telos: blue) is activated for a second whenever an
active-scan is performed. Shortly after that the second or the first led
flashes. The second led (Telos: green), indicating that the coordinator
defined in the 'app_profile.h' where found in that scan. The first led if
either no devices or only no matching devices where found within the scan.
Tools: NONE
Usage:
1. Install the coordinator:
$ cd coordinator; make <platform> install
2. Install one (or more) devices:
$ cd device; make <platform> install
You can change some of the configuration parameters in app_profile.h
Known bugs/limitations:
- Many TinyOS 2 platforms do not have a clock that satisfies the
precision/accuracy requirements of the IEEE 802.15.4 standard (e.g.
62.500 Hz, +-40 ppm in the 2.4 GHz band); in this case the MAC timing
is not standard compliant
$Id: README.txt,v 1.1 2009/06/10 09:38:41 janhauer Exp $o
--- NEW FILE: app_profile.h ---
/*
* Copyright (c) 2009, Technische Universitaet Berlin
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* - Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* - Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* - Neither the name of the Technische Universitaet Berlin nor the names
* of its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
* TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
* OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
* OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
* USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* - Revision -------------------------------------------------------------
* $Revision: 1.1 $
* $Date: 2009/06/10 09:38:41 $
* @author: Jasper Buesch <buesch at tkn.tu-berlin.de>
* ========================================================================
*/
#ifndef __APP_PROFILE_H
#define __APP_PROFILE_H
enum {
RADIO_CHANNEL = 26,
PAN_ID = 0x1234,
COORDINATOR_ADDRESS = 0x2345,
DEVICE_ADDRESS = 0x2346
};
#endif
More information about the Tinyos-2-commits
mailing list