Re: Problems with serial port interface

2013-06-13 Thread lionelgreenstreet
I've some other informations: i've created a class like this class CReader(QThread): def start(self, ser, priority = QThread.InheritPriority): self.ser = ser QThread.start(self, priority) self._isRunning = True self.numData=0; def run(self):

Re: Problems with serial port interface

2013-06-12 Thread lionelgreenstreet
I've done some tests: i've simulated a serial transmission with 1. Terminal.exe https://sites.google.com/site/terminalbpp/ 2. Com0com I've made a script that transmit a char every 5ms. The test system is Terminal---Com0Com---Terminal so i haven't used my program. After 3-4minutes the terminal

Re: Problems with serial port interface

2013-06-08 Thread lionelgreenstreet
Ok, thanks for your reply. But i have another problem: i hadn't always the hardware needed for the tests. Before i've used a terminal and com0com to simulate a serial input: if i want to simulate a transmission every 5ms how can i do? I need a program or a code that i'm sure about its

Re: Problems with serial port interface

2013-06-07 Thread lionelgreenstreet
Sorry for my quote, but do you have any suggestion? Il giorno martedì 4 giugno 2013 23:25:21 UTC+2, lionelgr...@gmail.com ha scritto: Hi, i'm programming in python for the first time: i want to create a serial port reader. I'm using python3.3 and pyQT4; i'm using also pyserial. Below a

Re: Problems with serial port interface

2013-06-07 Thread Peter Otten
lionelgreenstr...@gmail.com wrote: Sorry for my quote, but do you have any suggestion? After 30seconds (more or less) the program crashes: seems a buffer problem, but i'm not really sure. What's wrong? I don't use qt or pyserial myself, but your problem description is too vague anyway.

Re: Problems with serial port interface

2013-06-07 Thread MRAB
On 07/06/2013 11:17, lionelgreenstr...@gmail.com wrote: Sorry for my quote, but do you have any suggestion? Il giorno martedì 4 giugno 2013 23:25:21 UTC+2, lionelgr...@gmail.com ha scritto: Hi, i'm programming in python for the first time: i want to create a serial port reader. I'm using

Problems with serial port interface

2013-06-04 Thread lionelgreenstreet
Hi, i'm programming in python for the first time: i want to create a serial port reader. I'm using python3.3 and pyQT4; i'm using also pyserial. Below a snippet of the code: class CReader(QThread): def start(self, ser, priority = QThread.InheritPriority): self.ser = ser