Re: [Tutor] Serial communication ...

2010-09-13 Thread Markus Hubig
On Mon, Sep 13, 2010 at 8:33 PM, Adam Bark wrote: > Ideally you would send a specific ending packet and you read one byte at a > time until the > right sequence comes up. Alternatively you could have the first byte as a > length indicator. > Oh my dear! You're damn right! The protocol im impleme

Re: [Tutor] Serial communication ...

2010-09-13 Thread Emile van Sebille
On 9/13/2010 8:36 AM Markus Hubig said... Hi @all! I'm about to write a class for serial communication on Win32 and Linux which provides a method called "talk" to send something over the serial line, wait for the answer and returns it. My problem is, that I don't know how long the answer will be

Re: [Tutor] Serial communication ...

2010-09-13 Thread Adam Bark
On 13/09/10 16:36, Markus Hubig wrote: Hi @all! I'm about to write a class for serial communication on Win32 and Linux which provides a method called "talk" to send something over the serial line, wait for the answer and returns it. My problem is, that I don't know how long the answer will b

Re: [Tutor] Serial communication ...

2010-09-13 Thread Markus Hubig
On Mon, Sep 13, 2010 at 6:10 PM, André da Palma wrote: > Last year i was working with serial communication as well and there is > already a library for python, i guess it's pySerial. Try to google it, > perhaps it can be useful for you. Yes you're totally right! And that's the package im using