ptII
to pc
or some other tinyos target like
mica
or mica install
.
Only running a simulation within ptII will bring up the pthreads issue.
pc.
- Run the model as usual by hitting Control-R or hitting the green
run button.
- Look in the output directory (you can find out what it was by
double-clicking on the PtinyOSDirector and examining the
destinationDirectory parameter. For demo models, this is usually
demo directory/output
.
- To run the generated TOSSIM:
cd demo directory/output
./build/pc/main.exe 1
This will run TOSSIM with 1 node.
- To only see selected debug output, you may also set your DBG environment
variable to the known dbg modes described described when you run:
./build/pc/main.exe --help
For example, in tcsh:
setenv DBG=usr1,am
or in Cygwin bash under Windows
export DB=-usr1,am
For information about using Viptos, see the Viptos documentation.