On Mon, Jan 3, 2011 at 11:45 AM, Sergio Valcarcel <[email protected]>wrote:
> 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). > Right. Sounds like what you want is a virtualization of the Serial AM port. > > However, what I understand from Phil's mail is that many instances of > AMSend will just simply try to write in the same buffer. That is correct and why you need to virtualize it. Once virtualized then each client has their own virtual interface to SerialAM and its AMSend interface. > So if the > buffer has not been released (signaled via AMSend.sendDone) it will > result in error = FAIL. > Is that right? > Correct. > > 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? > You could do this. But it is a lot of bother. I'd suggest starting by looking at code that uses SerialAMSender. eric > > 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 > > > > > > > -- Eric B. Decker Senior (over 50 :-) Researcher
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
