Sounds like a simple case for arbitration. Use an arbiter and the Resource interface. All the clients will all get the Done signal and can check to see if the current owner.
On Tue, Mar 23, 2010 at 4:07 AM, Arik Sapojnik <[email protected]> wrote: > Hi Jordi, > > I don't have a mutual exclusion problem and the schenario is pretty simple: > I have several modules that want to change the frequency (one at a time). > So you say they both will receive the signaling but they should check the > current state and operate accordingly? > > Arik > > > On Tue, Mar 23, 2010 at 13:03, Jordi Soucheiron <[email protected] > > wrote: > >> Usually this kind of problem is easily solvable using a state machine and >> mutual exclusion. But depending on your implementation it may be quite >> difficult to achieve. >> *Jordi Soucheiron* >> Software Engineer >> >> *DEXMA* >> Parc Tecnològic la Salle >> Sant Joan de la Salle, 42 >> 08022 Barcelona >> t/f: [+34] 93 181 01 95 >> www.dexmatech.com >> [email protected] >> 2010/3/23 Arik Sapojnik <[email protected]> >> >>> Hi all, >>> >>> I have two modules that need to change frequencies via >>> CC2420Config.setChannel(). >>> But when the frequency is changed, both of them (probably) receive the >>> CC2420Config.syncDone() >>> event. >>> Can I make some "unicast" signaling? >>> I was thinking about adding some sort of status.. >>> Any ideas? >>> >>> -- >>> Best Regards, >>> Arik Sapojnik >>> >>> _______________________________________________ >>> Tinyos-help mailing list >>> [email protected] >>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help >>> >> >> > > > -- > Best Regards, > Arik Sapojnik > > _______________________________________________ > Tinyos-help mailing list > [email protected] > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > -- Eric B. Decker Senior (over 50 :-) Researcher
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
