I trying to use the tinyDB in the TOSSIM.
I followed the note in the tutorial which said "make clean" in the
"tinyos-1.x/app/TinyDBApp" and the "tinyos-1.x/tools/java" then "make -f
MakePC" in the "tinyos-1.x/tools/java/.../Tinydb" and "make -f MakePC pc" in
the "tinyos-1.x/app/TinyDBApp".
But there was some error appeared like
===========================================================
r...@momo /opt/tinyos-1.x/apps/TinyDBApp
$ make -f MakePC pc
mkdir -p build/pc
compiling TinyDBApp to a pc binary
ncc -o build/pc/main.exe -g -O0 -I../../tos/lib/Attributes -I
../../tos/lib/Util
-I../../tos/lib/Commands -I../../tos/lib/TinyDB -I../../tos/lib/Route
-I../../t
os/lib/Queue -I../../tos/lib/FS -I../../tos/lib/TinyDB/Aggregates -pthread
-fnes
c-nido-tosnodes=1000 -fnesc-simulate -Wall -Wshadow -DDEF_TOS_AM_GROUP=0x7d
-Wne
sc-all -target=pc -fnesc-cfile=build/pc/app.c -board=micasb
-DTOSH_DATA_LENGTH=5
8 -DIDENT_PROGRAM_NAME=\"TinyDBApp\" -DIDENT_USER_ID=\"ray\"
-DIDENT_HOSTNAME=\"
momo\" -DIDENT_USER_HASH=0x6b4532a4L -DIDENT_UNIX_TIME=0x4c6ffa79L
-DIDENT_UID_H
ASH=0x39224d0eL TinyDBApp.nc -lm
C:\cygwin\opt\tinyos-1.x\tos\lib\TinyDB\NetworkMultiHop.nc:72: component
WMEWMAM
ultiHopRouter not found
In file included from
C:\cygwin\opt\tinyos-1.x\tos\lib\TinyDB\TupleRouterM.nc:13
3:
C:\cygwin\opt\tinyos-1.x\tos\lib\TinyDB\ParsedQueryIntf.nc:110: warning:
declara
tion of `select' shadows global declaration
/usr/include/sys/select.h:31: warning: location of shadowed declaration
C:\cygwin\opt\tinyos-1.x\tos\lib\TinyDB\TupleRouterM.nc: In function
`removeQuer
yTask':
C:\cygwin\opt\tinyos-1.x\tos\lib\TinyDB\TupleRouterM.nc:1360: warning:
suggest p
arentheses around && within ||
C:\cygwin\opt\tinyos-1.x\tos\lib\TinyDB\TupleRouterM.nc: In function
`sendQuery'
:
C:\cygwin\opt\tinyos-1.x\tos\lib\TinyDB\TupleRouterM.nc:1523: warning:
suggest p
arentheses around + or - inside shift
C:\cygwin\opt\tinyos-1.x\tos\lib\TinyDB\TupleRouterM.nc: In function
`AbsoluteTi
mer.fired':
C:\cygwin\opt\tinyos-1.x\tos\lib\TinyDB\TupleRouterM.nc:2252: warning: label
`do
ntSleep' defined but not used
C:\cygwin\opt\tinyos-1.x\tos\lib\TinyDB\NetworkMultiHop.nc: At top level:
C:\cygwin\opt\tinyos-1.x\tos\lib\TinyDB\NetworkMultiHop.nc:113: cannot find
`Int
ercept'
C:\cygwin\opt\tinyos-1.x\tos\lib\TinyDB\NetworkMultiHop.nc:114: cannot find
`Sen
d'
C:\cygwin\opt\tinyos-1.x\tos\lib\TinyDB\NetworkMultiHop.nc:115: cannot find
`Sno
op'
C:\cygwin\opt\tinyos-1.x\tos\lib\TinyDB\NetworkMultiHop.nc:116: no match
C:\cygwin\opt\tinyos-1.x\tos\lib\TinyDB\NetworkMultiHop.nc:117: no match
C:\cygwin\opt\tinyos-1.x\tos\lib\TinyDB\NetworkMultiHop.nc:126: cannot find
`Rec
eiveMsg'
C:\cygwin\opt\tinyos-1.x\tos\lib\TinyDB\NetworkMultiHop.nc:129: no match
C:\cygwin\opt\tinyos-1.x\tos\lib\TinyDB\ParsedQuery.nc:312: warning:
declaration
of `select' shadows global declaration
/usr/include/sys/select.h:31: warning: location of shadowed declaration
make: *** [exe0] Error 1
=========================================================
So i used the "make pc" in the "tinyos-1.x/app/TinyDBApp", sucessed but when
i started the tinyDB JAVA GUI and send query there is nothing in the graph,
and the TinyDBApp window was displayed like "0: deliver wait is 0/0: DUMMY
WAIT"
Could someone help me?
Sorry for my poor english.
Thank you and Best wishes!
Ray
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help