Hi,

I am trying to emulate the TestSerial script in Python so that I can later
build a larger application with Mote-PC communication. My mote is connected
to an mib600 correctly and I can correctly use the TestSerial java program
(my MOTECOM environment variable is set up correctly):

echo $MOTECOM
> [email protected]:10002


java TestSerial



Sending packet 715

Received packet sequence number 761

Sending packet 716

Received packet sequence number 762


However, my Python script, based off of the example by Chad from
http://mail.millennium.berkeley.edu/pipermail/tinyos-help/2007-September/028165.html
,
errors saying "tinyos.message.MoteIF.MoteIFException: bad source". Looking
at MoteIF.py, I see that the file does not know how to handle a "network"
source:

if sourceType == "sf":
>             source = tinyos.packet.SFSource.SFSource(self, args)
>         elif sourceType == "serial" and tinyos.packet.SerialSource != None:
>             source = tinyos.packet.SerialSource.SerialSource(self, args)
>         else:
>             raise MoteIFException("bad source")



How can I use Python and the MoteIF interface with a network-attached
source?

Thanks for the help!

Jon
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to