What about creating a message queue and a "SlotSender"? All the packets that are going to be sent are put into the queue. The "SlotSender" checks the queue every tx slot, if the queue is not empty send the first packet in the queue.
2010/1/20 Vikram vik76 <[email protected]> > Arik, you are right. I can post the Tx to the next slot. But I can > do this for only those messages which are originated by my > application. > What if my application also use some multi-hop routing protocol. In > that case if a node acts as the intermediate node, then I will not be > able to post the transmission of this intermediate packet to the next > slot. > > > Vikram > > On Wed, Jan 20, 2010 at 1:54 PM, Arik Sapojnik <[email protected]> wrote: > > How about checking your status (if you are in slot B now) in the sending > > function? > > If you are in slot 'B', post the Tx to the next slot. > > > > Arik > > > > > > On Wed, Jan 20, 2010 at 10:19, Vikram vik76 <[email protected]> wrote: > >> > >> I am able to create the slots. I just want to disable transmission in > >> alternate slots. > >> > >> Regards > >> Vikram > >> > >> On Wed, Jan 20, 2010 at 12:38 PM, Arik Sapojnik <[email protected]> > >> wrote: > >> > I think that if you want to use slots, you need to synchronize the > time > >> > between the motes. > >> > If the time will be synchronize - you can use timers to create slots. > >> > > >> > Arik > >> > > >> > > >> > > >> > On Wed, Jan 20, 2010 at 07:08, Vikram vik76 <[email protected]> wrote: > >> >> > >> >> Hello, > >> >> The motes are receiving all the time. But they do the transmission > >> >> only in certain periodic time slots say slot 'B'. > >> >> I can achieve this for a mote for the data originated from this mote. > >> >> But, what about multi-hop transmission for which this mote becomes an > >> >> intermediate node. In this case, too I want to restrict the > >> >> transmissions only in slot 'B'. > >> >> > >> >> Thanks > >> >> Vikram > >> >> > >> >> On Tue, Jan 19, 2010 at 8:28 PM, Arik Sapojnik <[email protected]> > >> >> wrote: > >> >> > Hi, > >> >> > You gotta be more specific. > >> >> > The motes are receiving all the time they don't transmit. > >> >> > Arik > >> >> > > >> >> > > >> >> > On Tue, Jan 19, 2010 at 11:31, Vikram vik76 <[email protected]> > wrote: > >> >> >> > >> >> >> Hello, > >> >> >> I want to put the motes only on receiving state periodically by > >> >> >> disabling the transmissions. > >> >> >> How do I achieve this. > >> >> >> > >> >> >> Thanks > >> >> >> Vikram > >> >> >> _______________________________________________ > >> >> >> Tinyos-help mailing list > >> >> >> [email protected] > >> >> >> > >> >> >> > >> >> >> > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > >> >> > > >> >> > > >> >> > > >> >> > -- > >> >> > Best Regards, > >> >> > Arik Sapojnik > >> >> > [email protected] > >> >> > > >> > > >> > > >> > > >> > -- > >> > Best Regards, > >> > Arik Sapojnik > >> > [email protected] > >> > > > > > > > > > -- > > Best Regards, > > Arik Sapojnik > > [email protected] > > > > _______________________________________________ > 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
