[Tinyos-help] Deluge 1.0 and 2.0 TOSSIM simulation help !!!

csdoctor 1 csdoctor2000 at gmail.com
Thu Sep 1 02:13:40 PDT 2005


Dear all: 
I have to run Deluge on TOSSIM. However, I encountered some problems for 
both Deluge 1.0 and 2.0. 
 ======================
Deluge 1.0 TOSSIM simulation: 
problem: simulation stops after page 4
version: 1.1.13
======================

There are some threads posted previously with some suggestions: "Using 
Tossim simulate Deluge but it stop after some time" (
https://mail.millennium.berkeley.edu/pipermail/tinyos-help/2005-April/009234.html),
"Still have problems, Using Tossim simulate Deluge but it stop after some 
time" (
https://mail.millennium.berkeley.edu/pipermail/tinyos-help/2005-April/009212.html
)

I follow these suggestions but still can not finish the simulation. 
Followings are steps I have done:

(1) /tinyos-1.x/tos/platform/pc/PageEEPROMM.nc
line 68- 69, change read and write to 0 delay:
READ_DELAY = 0, //20000, // 10 milliseconds (40,000 cycles)
WRITE_DELAY = 0, //40000, // 10 milliseconds (40,000 cycles)

(2) change every post task to avoid repost after 50 times in
DelugePageTransferM.nc:
 define two variables: postingcount, postinglimit

if (postingcount < postinglimit) { 
dbg(DBG_USR1, "DELUGE=========post ******() in XXX function\n");
postingcount ++ ;
post *****; // any post function
} else {
dbg(DBG_USR1, "avoid reposting *****\n");
postingcount = 0 ;
}

(3) result:
.............
0: DELUGE=========post retrySendDataMsg() in retrySendDataMsg
0: DELUGE=========post retrySendDataMsg() in retrySendDataMsg
0: DELUGE=========post retrySendDataMsg() in retrySendDataMsg
0: DELUGE=========post retrySendDataMsg() in retrySendDataMsg
0: DELUGE=========post retrySendDataMsg() in retrySendDataMsg
0: DELUGE=========post retrySendDataMsg() in retrySendDataMsg
0: DELUGE=========post retrySendDataMsg() in retrySendDataMsg
0: DELUGE=========stop reposting retrySendDataMsg() in retrySendDataMsg
2: DELUGE: Sent
REQ_MSG(vNum=1,pgNum=1,000011111111111111111111111111111111111111111111)
2: DELUGE: STATE(ADV)
2: DELUGE: @184932716 RECEIVING_END
1: DELUGE: STATE(ADV)
1: DELUGE: @185273884 RECEIVING_END

************** simulation stops here ************
 Can anybody send me (csdoctor2000 at gmail.com) a working Deluge
1.0simulation code? or just a tar ball of your working opt\tinyos-
1.x\tos\lib\Deluge directory? 
   ======================
Deluge 2.0 TOSSIM simulation: 
problem: message length too long
version: 1.1.14
======================
$ export DBG=am
 
/opt/tinyos-1.x/apps/TestDeluge/DelugeBasic
$ ./build/pc/main.exe 3
SIM: Random seed is 62500
0: AM: Send length too long: 32. Fail.
0: AM: Send length too long: 32. Fail.
0: AM: Send length too long: 32. Fail.
0: AM: Send length too long: 32. Fail.
0: AM: Send length too long: 32. Fail.
0: AM: Send length too long: 32. Fail.
1: AM: Send length too long: 32. Fail.
1: AM: Send length too long: 32. Fail.

I have read one post before saying pc and mica platforms compiles the 
message structure differently due to different byte alignment
(https://mail.millennium.berkeley.edu/pipermail/tinyos-help/2005-March/008645.html<https://mail.millennium.berkeley.edu/pipermail/tinyos-help/2005-March/008645.html>).
My question is, how to run Deluge 2.0 on TOSSIM? 

After spending countless hours on this issue, I am now feel very frastrated. 
If anybody can help, please send me a tar ball of your working opt\tinyos-
1.x\tos\lib\Deluge directory to csdoctor2000 at gmail.com. Thanks a million 
!!!!!

 Qiang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20050901/c5efa0f7/attachment.html


More information about the Tinyos-help mailing list