Image 01
profile-image

peer

Paweł Rogoż , Poland
QSerialDevice

Qt Components by kuzulis 143 comments

OK I fixed :)

First at all I had to set port->setCharIntervalTimeout(900);//0.9 msec
If I set more the data sometimes was wrong.

Next the data from USB adapter is reading often without synchronization so I gave timer to wait, and buffer for data.

Now it works correctly :D - Dec 30 2011
QSerialDevice

Qt Components by kuzulis 143 comments

I did as you said. Clone this git://gitorious.org/qserialdevice/qserialdevice.git and change libs in my project.

Effect is the same, what I wrote above. In port com in my computer work great, but using adapter USB I get wrong data from device. On rs232 terminals when I using adapter USB work fine. - Dec 30 2011
QSerialDevice

Qt Components by kuzulis 143 comments

I using QSerialDevice 0.4.0 in my Qt program in Linux. It work great when I connect my device to com port in my computer. But when I using the USB adapter the sending work fine, but receiving get wrong data.

In property:
port->setCharIntervalTimeout(5000);//5 msec
When is set 5000 I get:
+0.,+

1Yp|vr


#697


1

6

xml v





60px;

I want get from rs232 encoder pulses and that look like this:
#789 (on the end value is 0x17)

#974

#857


When I change to 1000
port->setCharIntervalTimeout(1000);
the received data look better but it don't look like I want:
4*
15


#
781



#75




#1
6+



#799




#79



#798




#80
6



#80
3



#803

¾


#8
0


#7
3


#8
2G


Adapter work good in two rs232 terminal (cutecom and QSerialPortTerminal) using it I get from rs232 good data. The problem is in QSerialDevice lib.

Please help.
- Dec 29 2011
SMPlayer

Video Apps
by rvm

6.3
Feb 05 2012
QSerialDevice

Qt Components
by kuzulis

7.9
Feb 01 2012
SMPlayer

Video Apps
by rvm

6.3
9   Feb 05 2012
QSerialDevice

Qt Components
by kuzulis

7.9
9   Dec 30 2011