[Tinyos-help] Resource arbitration between CC2420 and Uart0 on Telosb
Philip Levis
pal at cs.stanford.edu
Tue Jul 1 18:35:19 PDT 2008
On Jul 1, 2008, at 5:19 PM, Kirak, Hong wrote:
> Sorry, I just found the cause.
>
> It seems that after send(), the Radio stack releases and my Serial
> stack
> gains the resource.
>
> The problem is my Serial stack is intended to release whenever
> Radio stack
> requests, but the Radio never re-requests after releasing.
>
> So I changed my serial stack to manually release after its work
> between
> send() and sendDone(), and it works.
>
> But still, I want the Serial stack to grab the resource as long as
> possible.
>
> Can you tell me if there were some issues about this?
>
> If it's not, maybe I'm doing something wrong.
I think there's something a bit iffy with your control logic.
It sounds like you want your serial stack to be the default owner. In
this case, it should never issue requests, as it will always be
granted the resource when no-one else wants it.
Phil
More information about the Tinyos-help
mailing list