[Tinyos-devel] Re: Python SDK

Vlado Handziski handzisk at tkn.tu-berlin.de
Tue Jul 3 14:45:31 PDT 2007


On 7/3/07, Philip Levis <pal at cs.stanford.edu> wrote:
>
> On Jul 3, 2007, at 2:33 PM, Vlado Handziski wrote:
>
> > If we aim for 2.1, we should first fix MIG because the code that is
> > currently generated is sometimes "unpythonic". Better support for
> > message encapsulation/decapsulation is also very important. I am
> > not sure how far these issues are addressed in the code from Matt,
> > but they were the main reason why we did not submit to the core our
> > serial forwarder implementation based on twisted python. We use
> > internal workarounds for the above problems, and pushing them into
> > the core would have required rewriting major parts of the TOSSIM
> > python support.
>
> Can you be more specific?


Well, things like:

    #
    # Read the array 'data' as a String
    #
    def getString_data(self):
        carr = "";
        for i in range(0, 4000):
            if self.getElement_data(i) == chr(0):
                break
            carr += self.getElement_data(i)
        return carr

in MIG output;

missing proper getters and setters in Message for self.data, etc.


> Another "nice to have" item would be to update the rpc and the nesc
> > modules from Kamin to handle the platform independent message
> > structures. This will give us a well rounded, powerful SDK.
>
> Agreed. But let's not make this a blocking item for progress on more
> contained (and pressing) issues.



That's why I said that this is "nice to have" :)

Vlado
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.millennium.berkeley.edu/pipermail/tinyos-devel/attachments/20070703/618de3ee/attachment.html


More information about the Tinyos-devel mailing list