Hello all,
I am working on *S-MAC* protocol (which is given in *
/opt/tinyos-1.x/contrib/s-mac*). This code is only compatible with mica and
mica2 motes and the code is for tinyos-1.x. However, I want it to work for
tinyos-2.x so that we can simulate it.
I have successfully changed its source code and made it compatible for *
micaz* and *tinyos-2.1.1*. So the code complies well with "*make micaz*"
However, I am still not able to simulate it since it gives some errors with
"*make micaz sim*"
I am giving a snapshot of the errors below. All these errors are for
functions which are hardware dependent. Do I need to change these functions
?? How??
----------------------------------------------------------------------------------------------------------
xubuntos@xubuntos-tinyos:/opt/tinyos-2.1.1/contrib/s-mac/apps/SMACTest$ make
micaz sim
mkdir -p simbuild/micaz
placing object files in simbuild/micaz
writing XML schema to app.xml
compiling SMACTest to object file sim.o
ncc -c -shared -fPIC -o simbuild/micaz/sim.o -g -O0 -tossim
-fnesc-nido-tosnodes=1000 -fnesc-simulate
-fnesc-nido-motenumber=sim_node\(\) -fnesc-gcc=gcc -Wall -Wshadow -Wall
-target=micaz -fnesc-cfile=simbuild/micaz/app.c -board=micasb
-DDEFINED_TOS_AM_GROUP=0x22 --param max-inline-insns-single=100000 -I.
-I/opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz
-I/opt/tinyos-2.1.1/contrib/s-mac/tos/interfaces
-I/opt/tinyos-2.1.1/contrib/s-mac/tos/system -DIDENT_APPNAME=\"SMACTest\"
-DIDENT_USERNAME=\"xubuntos\" -DIDENT_HOSTNAME=\"xubuntos-tinyos\"
-DIDENT_USERHASH=0x00f95284L -DIDENT_TIMESTAMP=0x4d72122eL
-DIDENT_UIDHASH=0xe8dfd16bL -Wno-nesc-data-race SMACTest.nc
-fnesc-dump=components -fnesc-dump=variables -fnesc-dump=constants
-fnesc-dump=typedefs -fnesc-dump=interfacedefs -fnesc-dump=tags
-fnesc-dumpfile=app.xml
In file included from testMsg.h:8:
/opt/tinyos-2.1.1/contrib/s-mac/tos/system/SMACMsg.h:42:1: warning:
"TOS_BCAST_ADDR" redefined
In file included from testMsg.h:1:
<built-in>: warning: this is the location of the previous definition
In file included from /opt/tinyos-2.1.1/contrib/s-mac/tos/system/SMAC.nc:66,
from SMACTest.nc:38:
In component `SMACM':
/opt/tinyos-2.1.1/contrib/s-mac/tos/system/SMACM.nc: In function
`update_myNeighbList.runTask':
/opt/tinyos-2.1.1/contrib/s-mac/tos/system/SMACM.nc:655: implicit
declaration of function `inp'
/opt/tinyos-2.1.1/contrib/s-mac/tos/system/SMACM.nc: In function
`tryToSend':
/opt/tinyos-2.1.1/contrib/s-mac/tos/system/SMACM.nc:816: implicit
declaration of function `inp'
In file included from
/opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/RadioControl.nc:50,
from
/opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/PhyRadio.nc:50,
from /opt/tinyos-2.1.1/contrib/s-mac/tos/system/SMAC.nc:66,
from SMACTest.nc:38:
In component `RadioControlM':
/opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/RadioControlM.nc: In
function `RadControlInit.init':
/opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/RadioControlM.nc:95:
implicit declaration of function `cbi'
/opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/RadioControlM.nc: In
function `RadioState.idle':
/opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/RadioControlM.nc:120:
implicit declaration of function `outp'
/opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/RadioControlM.nc:121:
implicit declaration of function `cbi'
/opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/RadioControlM.nc:128:
implicit declaration of function `TOSH_SET_RFM_CTL0_PIN'
/opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/RadioControlM.nc:129:
implicit declaration of function `TOSH_SET_RFM_CTL1_PIN'
/opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/RadioControlM.nc:130:
implicit declaration of function `TOSH_CLR_RFM_TXD_PIN'
make: *** [sim-exe] Error 1
------------------------------------------------------------------------------------------------------------
Waiting for reply,
Thanking you,
--
- Hiral Jhaveri
[image: S-MAC Simulation
Error.doc]<http://?ui=2&ik=32484447da&view=att&th=12e8597f571a7626&attid=0.1&disp=attd&realattid=f_gkweg0e80&zw>
--
- Hiral Jhaveri
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help