[Tinyos-help] Dumb question about basestation.

David wizzardx at gmail.com
Wed Jan 9 22:46:24 PST 2008


>
> I know it's a classical way of doing things in order to use tossim..
> I've been searching everywhere and I just can't find an easy way to do
> the basestation thing.
> I know I could copy/paste some could from the basestation program but I
> think it's a bit dirty.
>
> Is there some easy way to act like a basestation ? Like wiring and
> starting a component of so ?
>

BaseStation (I assume you mean apps/BaseStation) is a full tinyos app,
not a regular component.

I think your best bet is to copy and paste the 2 .nc files to your
project, then add a SplitControl interface to BaseStationC.

Then you should be able to wire the new BaseStationC into your main
app, and call BaseStation.start() when your TOS_NODE_ID is 0.

The above should be a fairly small change, at least compared to
copying all the logic from BaseStation into your app.

David.


More information about the Tinyos-help mailing list