sending binary files to a 16 micro controller.

Peter Hansen peter at engcorp.com
Mon Aug 22 11:45:42 EDT 2005


johnny.karlsson at gmail.com wrote:
> I'm going to try the timed wait alternative, if i get it the
> application to work properly i'll post the results in this group and
> the code if anyone want's it. It's such a contrast to code a tcp-server
> for the microcontroller (MC9S12NE64) in C and coding in python :-) I
> really hope embedded python takes of again!

You mean you wrote the TCP server in the micro in the first place?  You 
must already know about its restrictions then and, more importantly, 
what it expects in the way of time delays and such.  Also, couldn't you 
have supported UDP as well?  It's simpler and on the PC side you can 
ensure that small packets are sent without being combined or any such 
monkey business.

As for embedded Python, it's very unlikely any Python that might ever be 
shoe-horned into an HC12 is going to support enough of Python to make 
this a no-brainer.  And Python doesn't itself provide the TCP stack, so 
even this wouldn't have helped.

-Peter



More information about the Python-list mailing list