If you want to use TOSSIM with mobility, you will need to implement, by yourself, a way to modify the links' gain values during the simulation, in this sense, you will be able to create/remove and modify existing links based on the nodes' current positions.
As far as I know, there is not a direct way to set node positions, or to move nodes inside TOSSIM. Instead, the user must specify, at simulation setup, the 'quality' of the wireless links composing the network. This "quality" is represented by a 'gain' value, which is usually computed using a radio propagation model, such as the LinkLayerModel tool developed by Zúñiga which can be found within the TinyOS source tree. So, in practice, as nodes are moving, (a) new wireless links are created: when two nodes get within the transmission range of each other, (b) existing links disappear: when distance between two nodes becomes larger than the tx range, and, (c) the qualities of existing links change: increase gain if nodes get closer to each other, decrease gain if nodes get further away. . Therefore, in order to implement a mobility model, you need to keep track of the nodes' positions and, with certain frequency, re-update the links' gain values after processing the current topology using the radio propagation model. I did it once long time ago (I do not have the implementation at hand), but if I remember well, it just requires a basic understanding of how TOSSIM works, and a few lines of code. Hope this helps Cheers, Eduardo Feo On Fri, Nov 15, 2013 at 2:33 AM, deQ maz <[email protected]> wrote: > Hi all, > > How to implement random waypoint in Tossim? > > Thanks > > _______________________________________________ > 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
