Hey very bory
this is the step to execute TinyViz
in firt order sorry for my english
and if you have question please answer here in TinyViz help.
1)install TinyOS-1.0
2) go to this directory: cd /opt/tinyos-1.x/tools/java
type :make
3)installe the update NesC1.1.1 and TinyOS1.1.15
for this go to the net and seach the update and download the rpm and take
it in:C:\tinyos\cygwin\home\PLANETE PC
and type in tge shell this:
rpm -ivh --ignoreos nesc-1.1.2b-1.cygwin.i386.rpm
rpm -ivh --ignoreos tinyos-1.1.15Dec2005cvs-1.cygwin.noarch.rpm
4)go to opt/tinyos-1.x/tools/java/net/tinyos/sim and verify if this file is
present:
SimObjectGenerator.java and MoteSimObjectGenerator.java
if this too file exist so delete it from this repertory
5) edit the makefile witch you can find in
C:\tinyos\cygwin\opt\tinyos-1.x\tools\java\net\tinyos\sim
and writre this :net/tinyos/message/avrmote/*.class I hava join you the
makefile you can see what you have to edit
6)now go to the shell and go to the directory and type
cd opt/tinyos-1.x/tools/java/net/tinyos/sim
make clean
make
7)now you can go to your application I have choose blink for exemple and you
do this in the shell
cd opt/tinyos-1.x/apps/blink
make pc
# tinyviz
export PATH="$TOSROOT/tools/java/net/tinyos/sim:$PATH"
TinyViz -run build/pc/main.exe 12
8)it finish hope that it can help you
for every body I search the protocol key management like SNEP µTesla or
other if you have the implementation thank you
this is the makefile so add this line if you haven't
net/tinyos/message/avrmote/*.class :
SUBDIRS = event plugins packet lossy script
ROOT = ../../..
PLUGINS_SRC = $(wildcard plugins/*.java)
PLUGINS = $(PLUGINS_SRC:.java=.class)
INITIAL_TARGETS = msgs jython ../sf/old/nido/NidoSerialDataSource.class
OTHER_CLEAN = msgs-clean plugins-list-clean jarclean
# Uncomment this line to make jarfile mandatory
FINAL_TARGETS = jarfile
include $(ROOT)/Makefile.include
../sf/nido/NidoSerialDataSource.class:
../sf/old/nido/NidoSerialDataSource.java
(cd ../sf/nido; $(MAKE))
msgs:
(cd msg; $(MAKE))
msgs-clean:
(cd msg; $(MAKE) clean)
# Make sure that jython gets built
jython: $(ROOT)/org/python/core/parser.class
$(ROOT)/org/python/core/parser.class:
(cd $(ROOT)/org/python && $(MAKE))
(cd $(ROOT)/org/apache && $(MAKE))
# Create a list of default plugins
plugins/plugins.list: $(PLUGINS)
echo $(PLUGINS) > plugins/plugins.list
plugins-list-clean:
rm -f plugins/plugins.list
# This is ugly. The only way to embed a jar file inside another is to
# unpack it and repack them together into a single flat file.
jarfile: plugins/plugins.list
@echo "Creating simdriver.jar..."
(cd $(ROOT); \
jar cmf net/tinyos/sim/simdriver.manifest \
net/tinyos/sim/simdriver-tmp.jar \
net/tinyos/sim/*.class \
net/tinyos/sim/event/*.class \
net/tinyos/sim/lossy/*.class \
net/tinyos/sim/msg/*.class \
net/tinyos/sim/packet/*.class \
net/tinyos/sim/plugins/*.class \
net/tinyos/sim/script/*.class \
net/tinyos/sim/script/reflect/*.class \
net/tinyos/sim/ui \
net/tinyos/sim/plugins/plugins.list \
net/tinyos/sf/*.class \
net/tinyos/util/*.class \
net/tinyos/packet/*.class \
net/tinyos/message/*.class \
net/tinyos/message/avrmote/*.class \
org/apache/oro/text/regex/*.class \
org/python/compiler/*.class \
org/python/core/*.class \
org/python/modules/*.class \
org/python/parser/*.class \
org/python/parser/ast/*.class \
org/python/rmi/*.class \
org/python/util/*.class)
rm -rf jarbuild-tmp
mkdir jarbuild-tmp
(cd jarbuild-tmp; jar xf ../simdriver-tmp.jar; jar xf
../$(ROOT)/jars/oalnf.jar; rm -rf META-INF; jar cmf ../simdriver.manifest
../simdriver.jar .)
rm -rf simdriver-tmp.jar jarbuild-tmp
jarclean:
rm -f simdriver.jar
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help