Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qt-interest Archive, July 2006
connection through a ftdi ft232s usb to serial converter


Message 1 in thread

Hi all!

I wonder if anybody ever tried to connect to a serial device through usb 
using the ft232r converter by ftdi (www.ftdichip.com) on a linux box in a 
qt-application.
I compiled the module and my system finds the converter on ttyUSB0. So 
what I need was the possiblity to change properties like buffering, 
parity, flow-control, ... in a qt-application.

Is there allready some code to get such things to work? If not, could 
anybody please point me to some documentation, where such things are 
explained or to some example-code?

thanks in advance!

kind regards,
Andy

Message 2 in thread

Hi,

> I wonder if anybody ever tried to connect to a serial device through usb 
> using the ft232r converter by ftdi (www.ftdichip.com) on a linux box in 
> a qt-application.
> I compiled the module and my system finds the converter on ttyUSB0. So 
> what I need was the possiblity to change properties like buffering, 
> parity, flow-control, ... in a qt-application.

Why using ft232r in a Qt application as opposed to a non-Qt application 
makes a difference?

--
 [ signature omitted ] 

Message 3 in thread

>> I wonder if anybody ever tried to connect to a serial device through 
>> usb using the ft232r converter by ftdi (www.ftdichip.com) on a linux 
>> box in a qt-application.
>> I compiled the module and my system finds the converter on ttyUSB0.
So 
>> what I need was the possiblity to change properties like buffering, 
>> parity, flow-control, ... in a qt-application.
>
>Why using ft232r in a Qt application as opposed to a non-Qt application
makes a difference?

I think he expects that Qt abstracts the serial control interfaces for
linux, windows, mac, etc.
He should be looking at tcgetattr/tcsetattr in linux man pages instead

Cheers,
Ben

--
 [ signature omitted ] 

Message 4 in thread

"Benjamin Ari Schleimer" <BSchleimer@xxxxxxxxxxxx> schrieb am 07/05/2006 
01:45:30 PM:

> >> I wonder if anybody ever tried to connect to a serial device through 
> >> usb using the ft232r converter by ftdi (www.ftdichip.com) on a linux 
> >> box in a qt-application.
> >> I compiled the module and my system finds the converter on ttyUSB0.
> So 
> >> what I need was the possiblity to change properties like buffering, 
> >> parity, flow-control, ... in a qt-application.
> >
> >Why using ft232r in a Qt application as opposed to a non-Qt application
> makes a difference?
> 
> I think he expects that Qt abstracts the serial control interfaces for
> linux, windows, mac, etc.
> He should be looking at tcgetattr/tcsetattr in linux man pages instead
> 

I do not have tcgetattr or tcsetattr on my system (it´s an embedded linux 
btw)
What I tried was using qextserialport with such a device. the thing is, 
that this works with serial ports (/dev/ttySx) but not with my converter.

Bye,
Andy