[Tinyos-help] stop/start printf using splitcontrol
Kevin Klues
klueska at gmail.com
Thu May 1 14:28:26 PDT 2008
Sharing should work by default. Can you post the code where you are
seeing the problme (without calling start/stop) on the printf service.
Kevin
On Thu, May 1, 2008 at 2:00 PM, Andrew Parson O'Brien <apobrien at uvm.edu> wrote:
> Hello list,
>
> I'm under the impression that to share the serial port between AM
> messages and printf I must start/stop the printf service. I was
> thinking something like
>
> timer fires()
> start printf service using it's splitcontrol
>
> startDone
> printf things
> flush()
>
> flushDone()
> stop printf service
>
> stopDone()
> start the sampling of a sensor or some other task
>
> but this only works one iteration. Judging by the Leds startDone is
> not visited on the second round.
>
> If I never call stop it operates the way I want though AM message
> sending doesn't work then.
>
> Could anyone clarify?
>
> Thanks,
> Andy O'Brien
>
>
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help at millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
--
~Kevin
More information about the Tinyos-help
mailing list