Re: [Twisted-Python] Twisted serialport dataReceived() provides fragmented data

2013-08-29 Thread Phil Mayers
On 29/08/13 17:15, Sivakumar Balasubramanian wrote: Dear Phil, I replaced thye dataReceived function by stringReceived, and ran the code. But when I do this, the program does not even enter the stringReceived function. That implies your protocol isn't an int16string-prefixed one. I assumed it

Re: [Twisted-Python] Twisted serialport dataReceived() provides fragmented data

2013-08-29 Thread Sivakumar Balasubramanian
Phil Mayers imperial.ac.uk> writes: > > On 29/08/13 16:38, Sivakumar Balasubramanian wrote: > > > Is there something that I doing wrong in my code? > > Yes. You are sub-classing Int16StringReceiver, but then breaking things > by overriding dataReceived. You should be implementing stringReceiv

Re: [Twisted-Python] Twisted serialport dataReceived() provides fragmented data

2013-08-29 Thread Phil Mayers
On 29/08/13 16:38, Sivakumar Balasubramanian wrote: Is there something that I doing wrong in my code? Yes. You are sub-classing Int16StringReceiver, but then breaking things by overriding dataReceived. You should be implementing stringReceived, and you'll get complete strings. dataReceived