[Tinyos-help] stop/start printf using splitcontrol

Andrew Parson O'Brien apobrien at uvm.edu
Thu May 1 14:00:14 PDT 2008


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




More information about the Tinyos-help mailing list