TOSSIM Live provides the SerialForwarder module: from TOSSIM import SerialForwarder sf = SerialForwarder(9002)
Then it's just a matter of listening to a SF connection on port 9002 (good luck ;-). It should be connectible using sflisten, et al. However, the standard sim-sf time synchronization does not play nice with python threads and sf works on a poll-basis. There is some python code to read from an SF connection distributed in support/sdk/python, IIRC. I think I tried to use it once, but dropped it for issues with my design. I am using a custom (thread-friendly) time synchronizer and a basic asyncore wrapper (understands enough SF to dispatch) with threads and Queues. HTH, Paul On Thu, Jul 31, 2008 at 9:38 AM, Raymond Paxton <[EMAIL PROTECTED]> wrote: > I'm sure this is somewhere on the forum already but I can not find it. Does > anyone have a code snippet on how read a serial packet from TOSSIM live. I > can inject them into the Mote but can not receive them back in the python > code. > > Raymond > > _______________________________________________ > Tinyos-help mailing list > [email protected] > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
