[Qt-interest] Serial Communication

Robert Wood robert.wood at apostrophe.co.uk
Tue Feb 9 15:29:49 CET 2010


Yuvraj wrote:
> Hi All
> 
> Just i am executing writing function code of Serial communication. It is 
> asking to enter the device name , if enter the device name nothing is 
> happening
> 
> sample code here
<snip>
Are you sure you are entering the right device name? On Linux I scan the 
/dev directory for ttyS* and ttyUSB* to see what's available as a valid 
serial port. You can do a similar thing on Windows, but it's so long 
since I had to use it I can't remember how. Once you have the valid name 
as a string you can pass that to your routine to open the port.

FWIW, I find the QExtSerialPort classes work very well.



More information about the Qt-interest-old mailing list