Dear Eric, Thanks so much for your fast respond! :-)
I basically want to be able to asynchronously send messages to the serial port. Those messages come from different AM channels (e.g. measurements, computation results and control answers). However, what I understand from Phil's mail is that many instances of AMSend will just simply try to write in the same buffer. So if the buffer has not been released (signaled via AMSend.sendDone) it will result in error = FAIL. Is that right? I think I could use one queue per kind of message and assign them a priority as the order to empty them. What do you think? Thanks! Sergio On Mon, Jan 3, 2011 at 7:34 PM, Eric Decker <[email protected]> wrote: > > > On Mon, Jan 3, 2011 at 7:49 AM, Sergio Valcarcel <[email protected]> > wrote: >> >> Happy New Year!!!! >> >> Please, regarding the discussion in: >> >> http://www.mail-archive.com/[email protected]/msg10654.html >> >> I do not see how to use the queue when using different kind of >> messages. In this case I think that different instances of AMSend >> suits better. >> >> Should I have to use as many queues as kinds of message? > > Depends on what behaviour you want and what the queuing behaviour of message > generation looks like. > Starting off with just one instance of each message should be fine. The > queueing happens > at a simple level at the AMSender. > >> >> Thanks! >> Sergio >> _______________________________________________ >> 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
