[Tinyos-devel] SerialP.nc rxState and txState state variables
Vlado Handziski
handzisk at tkn.tu-berlin.de
Mon Mar 30 12:35:41 PDT 2009
Just setting the rxState and txState variables might not be enough there. We
might be better off by just repeating the Init.init() sequence here, namely
calling the full blown txInit(), rxInit() and ackInit() functions.
Vlado
2009/2/26 Chieh-Jan (Mike) Liang <cliang4 at cs.jhu.edu>
> I think there is a problem with rxState and txState variables in
> SerialP.nc. Specifically, they are not properly set in SplitControl.start().
> If you first stop the serial stack and then start it, both rxState and
> txState are still RXSTATE_INACTIVE and TXSTATE_INACTIVE respectively.
> Normally, we only start the serial stack, and this is fine because both
> state variables are init-ed to RXSTATE_NOSYNC and TXSTATE_IDLE in
> Init.init().
>
> I have attached the patch, and please let me know if I am mistaken.
>
> Thank you
>
> Mike
>
>
>
>
> _______________________________________________
> Tinyos-devel mailing list
> Tinyos-devel at millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-devel/attachments/20090330/83f86311/attachment.htm
More information about the Tinyos-devel
mailing list