The TOSSIM I have in my GIT repository might be helpful to you. Here is what I sent to the mailing list a while ago, http://mail.millennium.berkeley.edu/pipermail/tinyos-help/2008-December/037688.html
Mike On Mar 18, 2009, at 10:49 PM, Yee Wei Law wrote: > Hi Razvan, > > Continuing this thread from last year, I have spent some time > finding a way to simulate DelugeT2 on TOSSIM. My understanding is > there are two main difficulties: (1) the storage, (2) the radio. The > following summarizes my (unsuccessful) experience so far: > > The storage > The make rule for TOSSIM is in $TOSROOT/support/make/sim.extra, > which does not depend on the target 'build_storage', hence the > storage-related files are never generated. This is easy to solve: > • First, do a "make micaz" to have the storage-related files > generated, and copy all the files (which most importantly include > the header file StorageVolumes.h) from build/micaz to simbuild/micaz > • Replace the value of SPM_PAGESIZE in $TOSROOT/extra/micaz/ > TOSBoot_platform.h with 256 (the value "256" can be gleaned from the > generated file build/micaz/app.c) > • Modify the file BlockStorageManager/BlockStorageManagerC.nc to > use FakeBlockReaderC and FakeBlockWriterC instead of BlockStorageC > The radio > This is where I got stuck. The file extra/NetProgC.nc uses > CC2420Config explicitly, what should we use to substitute for > CC2420Config? > > Thank you. > > Regards, > Yee Wei > > 2008/8/27 Razvan Musaloiu-E. <[email protected]> > Hi! > > On Tue, 26 Aug 2008, Ning "Martin" Xu wrote: > > > Hi all, > > > > I wonder if there's any support for external flash memory content > > simulation with Tossim for MicaZ motes in TinyOS 2.x. Would somebody > > give me some instructions on this? Thank you. > > I'm not aware of any Tossim support for storage but you can try to > use the > FakeBlockReaderC and FakeBlockWriterC from tos/lib/net/Deluge to avoid > using the real storage. > > -- > Razvan ME > _______________________________________________ > Tinyos-help mailing list > [email protected] > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > > _______________________________________________ > Tinyos-help mailing list > [email protected] > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
