From: scipio Date: Wed, 6 Jun 2007 17:58:04 +0000 (+0000) Subject: Add PYTHONPATH and CPM length comments. X-Git-Tag: release_tools_1_2_4_1~148 X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=commitdiff_plain;h=e9da0b3183c21250f226a993b4b17cd76d79017a;p=tinyos-2.x.git Add PYTHONPATH and CPM length comments. --- diff --git a/doc/html/tutorial/lesson11.html b/doc/html/tutorial/lesson11.html index 216f59fb..bd1a01c8 100644 --- a/doc/html/tutorial/lesson11.html +++ b/doc/html/tutorial/lesson11.html @@ -603,8 +603,9 @@ for i in range(0, 7):

CPM can use a good deal of RAM: using the entire meyer-heavy trace as input has a cost of approximately 10MB per node. You can reduce this overhead by using a shorter trace; this will of - course reduce simulation fidelity. Future versions of TOSSIM - will reduce this greatly through optimization.

+ course reduce simulation fidelity. The trace + must be at least 100 entries long, or CPM will not work as it does + not have enough data to generate a statistical model.

You can also use

The Radio object only deals with physical layer @@ -898,7 +899,10 @@ java net.tinyos.sim.PropagationModel config.txt variables properly. You do this by instantiating a Python object that parses the XML file to extract all of the relevant information. You have to import the Python support package for - TOSSIM to do this:

+ TOSSIM to do this. First, set your PYTHONPATH environment variable + to point to tinyos-2.x/support/sdk/python. This tells + Python where to find the TOSSIM packages. Then, in an interpreter + type this:

 from tinyos.tossim.TossimApp import *